Ticket #27223 (closed defect: fixed)
PETSc doesn't compile
| Reported by: | mkr@… | Owned by: | mmoll@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.9.2 |
| Keywords: | Cc: | ||
| Port: | petsc |
Description
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


