Opened 15 years ago

Closed 11 years ago

#23345 closed defect (fixed)

geant4 needs to use configure.cc, configure.cxx, etc.

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: geant4

Description

geant4 should ensure it's UsingTheRightCompiler. It probably just needs to set CC and CXX in build.env.

$ sudo port install
--->  Computing dependencies for geant4
--->  Fetching geant4
--->  Verifying checksum(s) for geant4
--->  Extracting geant4
--->  Configuring geant4
--->  Building geant4
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source" && /usr/bin/nice -n 10 /usr/bin/make -j2 " returned error 2
Command output: make[2]: *** [4INSTALL/tmp/4.9.3/G4visXXX/G4XXXFile.o] Error 1
make[2]: *** Waiting for unfinished jobs....
g++ -DG4OPTIMISE -Iinclude -I/opt/local/include -DG4VERBOSE -DG4_STORE_TRAJECTORY -DG4VIS_BUILD -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/visualization/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/visualization/modeling/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/global/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/global/HEPGeometry/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/graphics_reps/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/intercoms/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/solids/CSG/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/solids/specific/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/tracking/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/digits_hits/hits/include -c -o 4INSTALL/tmp/4.9.3/G4visXXX/G4XXX.o src/G4XXX.cc
g++: Error: You should be using ${configure.cxx}
See http://trac.macports.org/wiki/UsingTheRightCompiler
make[2]: *** [4INSTALL/tmp/4.9.3/G4visXXX/G4XXX.o] Error 1
Making dependency for file src/G4GMocrenMessenger.cc ...
Making dependency for file src/G4GMocrenIO.cc ...
Making dependency for file src/G4GMocrenFileViewer.cc ...
Making dependency for file src/G4GMocrenFileSceneHandler.cc ...
Making dependency for file src/G4GMocrenFileCTtoDensityMap.cc ...
Making dependency for file src/G4GMocrenFile.cc ...
Compiling G4GMocrenFile.cc ...
Compiling G4GMocrenFileCTtoDensityMap.cc ...
g++ -DG4OPTIMISE -Iinclude -I/opt/local/include -DG4VERBOSE -DG4_STORE_TRAJECTORY -DG4VIS_BUILD -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/visualization/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/visualization/modeling/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/global/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/global/HEPGeometry/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/graphics_reps/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/intercoms/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/solids/CSG/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/solids/specific/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/navigation/include/ -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/particles/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/event/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/tracking/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/materials/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/digits_hits/hits/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/digits_hits/digits/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/digits_hits/utils/include -c -o 4INSTALL/tmp/4.9.3/G4GMocren/G4GMocrenFile.o src/G4GMocrenFile.cc
g++: Error: You should be using ${configure.cxx}
See http://trac.macports.org/wiki/UsingTheRightCompiler
g++ -DG4OPTIMISE -Iinclude -I/opt/local/include -DG4VERBOSE -DG4_STORE_TRAJECTORY -DG4VIS_BUILD -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/visualization/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/visualization/modeling/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/global/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/global/HEPGeometry/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/graphics_reps/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/intercoms/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/solids/CSG/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/solids/specific/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/geometry/navigation/include/ -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/particles/management/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/event/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/tracking/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/materials/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/digits_hits/hits/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/digits_hits/digits/include -I/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/source/digits_hits/utils/include -c -o 4INSTALL/tmp/4.9.3/G4GMocren/G4GMocrenFileCTtoDensityMap.o src/G4GMocrenFileCTtoDensityMap.cc
g++: Error: You should be using ${configure.cxx}
See http://trac.macports.org/wiki/UsingTheRightCompiler
make[2]: *** [4INSTALL/tmp/4.9.3/G4GMocren/G4GMocrenFileCTtoDensityMap.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [4INSTALL/tmp/4.9.3/G4GMocren/G4GMocrenFile.o] Error 1
make[1]: *** [granular] Error 2
Building library management utility liblist ...
cc -L/opt/local/lib -o /opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/lib/4.9.3/liblist /opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/config/liblist.c
cc: Error: You should be using ${configure.cc}
See http://trac.macports.org/wiki/UsingTheRightCompiler
make[1]: *** [/opt/local/var/macports/build/_Users_rschmidt_macports_dports_science_geant4/work/geant4.9.3/lib/4.9.3/liblist] Error 1
make: *** [all] Error 2

Error: Status 1 encountered during processing.

Change History (4)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Owner: changed from cristiano.fontana@… to cristiano.fontana@…

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: mojca@… added
Owner: changed from cristiano.fontana@… to macports-tickets@…

comment:3 Changed 11 years ago by mojca (Mojca Miklavec)

Cc: mojca@… removed
Owner: changed from macports-tickets@… to mojca@…
Version: 1.8.2

comment:4 Changed 11 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed

I upgraded the port in r111720 with substantial changes (including a switch to CMake-based build). I believe the problem should be gone, but please let me know if this is still an issue.

Note: See TracTickets for help on using tickets.