[MacPorts] #27223: PETSc doesn't compile
MacPorts
noreply at macports.org
Tue Nov 9 06:00:21 PST 2010
#27223: PETSc doesn't compile
-----------------------------+----------------------------------------------
Reporter: mkr@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: petsc | Port: petsc
-----------------------------+----------------------------------------------
PETSc doesn't compile on MacOSX 10.6 due to some linking problem with
mixed C++ and Fortran objects (full logs are attached):
{{{
...
Pushing language FC
sh: gfortran -c -o conftest.o -PIC -Wall -Wno-unused-variable -g
conftest.F
Executing: gfortran -c -o conftest.o -PIC -Wall -Wno-unused-variable -g
conftest.F
sh:
Pushing language FC
Popping language FC
sh: gfortran -o conftest -Wl,-multiply_defined,suppress
-Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs
-Wl,-search_paths_first -PIC -Wall -Wno-unused-variable -g conftest.o
cxxobj.o confc.o -ldl -lsz
Executing: gfortran -o conftest -Wl,-multiply_defined,suppress
-Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs
-Wl,-search_paths_first -PIC -Wall -Wno-unused-variable -g conftest.o
cxxobj.o confc.o -ldl -lsz
sh:
Possible ERROR while running linker: Undefined symbols:
"___gxx_personality_v0", referenced from:
foo() in cxxobj.o
CIE in cxxobj.o
_d1chk_ in confc.o
CIE in confc.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
output: ret = 256
error message = {Undefined symbols:
"___gxx_personality_v0", referenced from:
foo() in cxxobj.o
CIE in cxxobj.o
_d1chk_ in confc.o
CIE in confc.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
}
Pushing language FC
Popping language FC
in gfortran -o conftest -Wl,-multiply_defined,suppress
-Wl,-multiply_defined -Wl,suppress -Wl,-commons,use_dylibs
-Wl,-search_paths_first -PIC -Wall -Wno-unused-variable -g conftest.o
cxxobj.o confc.o -ldl -lsz
Source:
program main
call d1chk()
end
Popping language FC
*******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
details):
-------------------------------------------------------------------------------
Fortran could not successfully link C++ objects
*******************************************************************************
}}}
I tried to install via
{{{
sudo port install petsc +hdf5 +triangle +debug
}}}
--
Ticket URL: <https://trac.macports.org/ticket/27223>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list