#135 closed defect (fixed)
make distcheck fails because of library load errors
Reported by: | Juergen Reuter | Owned by: | ALL |
---|---|---|---|
Priority: | P1 | Milestone: | |
Component: | core | Version: | 2.0.0beta |
Severity: | blocker | Keywords: | everything |
Cc: |
Description
This is the problem:
libtool: link: ranlib .libs/modeltest.a libtool: link: ( cd ".libs" && rm -f "modeltest.la" && ln -s "../modeltest.la" "modeltest.la" ) | Loading process library 'modeltest' *** Fatal error: dlopen(./.libs/modeltest.0.so, 1): Library not loaded: /Users/reuter/Physik/progs/omwhiz/svn/trunk/whizard-2.0.0_rc1/_inst/lib/omega/libomega_core.0.dylib Ref WHIZARD run aborted. FAIL: whizard_test_modeltest.sh ===================== 14 of 20 tests failed ===================== make[4]: *** [check-TESTS] Error 1 make[3]: *** [check-am] Error 2 make[2]: *** [check] Error 2 make[1]: *** [check-recursive] Error 1 make: *** [distcheck] Error 1
I don't know why and I don't care.
Attachments (3)
Change History (26)
Changed 15 years ago by
Attachment: | dist.check.log added |
---|
comment:1 Changed 15 years ago by
Here is the complete log file for 'make distcheck'. Funny thing (funny?, muharhar) is that 'make check' and 'make installcheck' are working, so it seems to be a problem of the paths.
comment:2 Changed 15 years ago by
Maybe I should mention that on my x86_64 system with gfortran, make distcheck completes successfully.
The problem above: the error message says dlopen fails. Is the library really present? Or could this be related to #136?
comment:3 Changed 15 years ago by
From what we have been experimenting tonight, the situation is as follows: the process libraries seem to carry a dependence on libomega in the _installation_ directory which is not yet populated when "make distcheck" invokes "make check", triggering this issue. The same problem arises if "make check" is performed with an empty installation directory. I've no clue what causes this to happen, I can't reproduce this either on my machines, so it must be something which triggers this erroneous dependence in specific cases only.
comment:4 Changed 15 years ago by
Unfortunately there is no solution at the horizon. Losing MAC as a development platform would be a catastrophe. I tried to google the stuff, but it seems that there is no solution to it. There seems to be no entry around. It is libomega, maybe a libtool or Makefile problem with O'Mega???
comment:5 Changed 15 years ago by
So it looks as the Makefile output from automake from the MAC and Linux are different, even after I used both autoconf 2.65 and automake 1.11.1 (i.e. identical versions) on both OS. Any ideas?
Changed 15 years ago by
Attachment: | macosxlinuxautomake_vs_linuxautomake.diff added |
---|
Difference of MAC build recompiled on Linux with Linux
Changed 15 years ago by
Attachment: | macosx_vs_linux.diff added |
---|
Difference of MAC build and Linux build
comment:6 Changed 15 years ago by
I attached the differences of the Makefile from the _build directory of the distcheck procedure, both for a MAC WHIZARD distribution and a Linux distribution (from SuSe? 11.1). I furthermore attached the difference from a MAC WHIZARD,copied over to Linux and then reprocessed with the Linux tools. In both cases it was auto(re)conf 2.65 and automake 1.11.1. So it is not the usage of the most modern versions per se, but something queer on the MAC. I guess (?). I will try to compile autotools by myself on the MAC. It could be a problem from the MACports installation. Could someone make sense from the differences???
comment:7 Changed 15 years ago by
After I installed automake and autoconf from sources, now also 'make check' fails on the MAC. So first of all, it obviously is an autotools problem, secondly, there are some nontrivial dependencies of the WHIZARD distubution on those tools to be installed on a specific OS.
comment:9 Changed 15 years ago by
Summary: | make distcheck failes because of library load errors → make distcheck fails because of library load errors |
---|
OK, the following: (I post this from an Linux computer and the MAC, hence the doubling of entries. Looking for the dependencies on the Linux machine in the build/src/.libs directory, I get for libwhizard.so:
linux-vdso.so.1 => (0x00007fff393ff000) libLHAPDF.so.0 => /usr/local//lib/libLHAPDF.so.0 (0x00007fdf8519f000) libgfortran.so.3 => /usr/local/lib/../lib64/libgfortran.so.3 (0x00007fdf84eba000) libstdc++.so.6 => /usr/local/lib/../lib64/libstdc++.so.6 (0x00007fdf84b87000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fdf84964000) libgcc_s.so.1 => /usr/local/lib/../lib64/libgcc_s.so.1 (0x00007fdf8474e000) libc.so.6 => /lib64/libc.so.6 (0x00007fdf843f5000) libm.so.6 => /lib64/libm.so.6 (0x00007fdf8419e000) /lib64/ld-linux-x86-64.so.2 (0x00007fdfe4e46000)
and for libomega.so:
linux-vdso.so.1 => (0x00007fffd43ff000) libomega_core.so.0 => /home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/omega/src/.libs/libomega_core.so.0 (0x00007f9940e55000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f9940c33000) libc.so.6 => /lib64/libc.so.6 (0x00007f99408da000) libgfortran.so.3 => /usr/lib64/libgfortran.so.3 (0x00007f99405fd000) libm.so.6 => /lib64/libm.so.6 (0x00007f99403a7000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f994018f000) /lib64/ld-linux-x86-64.so.2 (0x00007f9941716000)
For the MAC, we have the following dependencies:
comment:10 Changed 15 years ago by
for libwhizard.dylib:
/Users/reuter/Physik/progs/omwhiz/svn/trunk/jr_install/lib/whizard/libwhizard.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local//lib/libLHAPDF.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/lib/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0) /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
and for libomega.dylib:
/Users/reuter/Physik/progs/omwhiz/svn/trunk/jr_install/lib/whizard/libomega.0.dylib (compatibility version 1.0.0, current version 1.0.0) /Users/reuter/Physik/progs/omwhiz/svn/trunk/jr_install/lib/omega/libomega_core.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/local/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.0.0)
So first of all, we see that libwhizard on the MAC does depend on libomega (single pass linker???) Secondly, the dependencies on the MAC are the ones for the install paths. Why the f*ing hell?
comment:11 Changed 15 years ago by
This is how the libraries are made on the MAC:
libtool: link: ( cd ".libs" && rm -f "libwhizard.la" && ln -s "../libwhizard.la" "libwhizard.la" ) /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o libomega.la -rpath /Users/reuter/Physik/progs/omwhiz/svn/trunk/jr_install/lib/whizard omega/src/libomega_core.la models/libmodels.la libtool: link: (cd .libs/libomega.lax/libmodels.a && ar x "/Users/reuter/Physik/progs/omwhiz/svn/trunk/build/src/models/.libs/libmodels.a") libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libomega.0.dylib .libs/libomega.lax/libmodels.a/parameters.GravTest.o .libs/libomega.lax/libmodels.a/parameters.Littlest.o .libs/libomega.lax/libmodels.a/parameters.Littlest_Eta.o .libs/libomega.lax/libmodels.a/parameters.Littlest_Tpar.o .libs/libomega.lax/libmodels.a/parameters.MSSM.o .libs/libomega.lax/libmodels.a/parameters.MSSM_CKM.o .libs/libomega.lax/libmodels.a/parameters.MSSM_Grav.o .libs/libomega.lax/libmodels.a/parameters.NMSSM.o .libs/libomega.lax/libmodels.a/parameters.NMSSM_CKM.o .libs/libomega.lax/libmodels.a/parameters.PSSSM.o .libs/libomega.lax/libmodels.a/parameters.QCD.o .libs/libomega.lax/libmodels.a/parameters.QED.o .libs/libomega.lax/libmodels.a/parameters.Simplest.o .libs/libomega.lax/libmodels.a/parameters.Simplest_univ.o .libs/libomega.lax/libmodels.a/parameters.SM.o .libs/libomega.lax/libmodels.a/parameters.SM_ac.o .libs/libomega.lax/libmodels.a/parameters.SM_ac_CKM.o .libs/libomega.lax/libmodels.a/parameters.SM_CKM.o .libs/libomega.lax/libmodels.a/parameters.SM_km.o .libs/libomega.lax/libmodels.a/parameters.SM_top.o .libs/libomega.lax/libmodels.a/parameters.Template.o .libs/libomega.lax/libmodels.a/parameters.Test.o .libs/libomega.lax/libmodels.a/parameters.Threeshl.o .libs/libomega.lax/libmodels.a/parameters.Threeshl_nohf.o .libs/libomega.lax/libmodels.a/parameters.UED.o .libs/libomega.lax/libmodels.a/parameters.Xdim.o .libs/libomega.lax/libmodels.a/parameters.Zprime.o .libs/libomega.lax/libmodels.a/threeshl_bundle.o omega/src/.libs/libomega_core.dylib -install_name /Users/reuter/Physik/progs/omwhiz/svn/trunk/jr_install/lib/whizard/libomega.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module libtool: link: dsymutil .libs/libomega.0.dylib || : libtool: link: (cd ".libs" && rm -f "libomega.dylib" && ln -s "libomega.0.dylib" "libomega.dylib") libtool: link: (cd .libs/libomega.lax/lt1-libmodels.a && ar x "/Users/reuter/Physik/progs/omwhiz/svn/trunk/build/src/models/.libs/libmodels.a") libtool: link: ar cru .libs/libomega.a .libs/libomega.lax/lt1-libmodels.a/parameters.GravTest.o .libs/libomega.lax/lt1-libmodels.a/parameters.Littlest.o .libs/libomega.lax/lt1-libmodels.a/parameters.Littlest_Eta.o .libs/libomega.lax/lt1-libmodels.a/parameters.Littlest_Tpar.o .libs/libomega.lax/lt1-libmodels.a/parameters.MSSM.o .libs/libomega.lax/lt1-libmodels.a/parameters.MSSM_CKM.o .libs/libomega.lax/lt1-libmodels.a/parameters.MSSM_Grav.o .libs/libomega.lax/lt1-libmodels.a/parameters.NMSSM.o .libs/libomega.lax/lt1-libmodels.a/parameters.NMSSM_CKM.o .libs/libomega.lax/lt1-libmodels.a/parameters.PSSSM.o .libs/libomega.lax/lt1-libmodels.a/parameters.QCD.o .libs/libomega.lax/lt1-libmodels.a/parameters.QED.o .libs/libomega.lax/lt1-libmodels.a/parameters.Simplest.o .libs/libomega.lax/lt1-libmodels.a/parameters.Simplest_univ.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_ac.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_ac_CKM.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_CKM.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_km.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_top.o .libs/libomega.lax/lt1-libmodels.a/parameters.Template.o .libs/libomega.lax/lt1-libmodels.a/parameters.Test.o .libs/libomega.lax/lt1-libmodels.a/parameters.Threeshl.o .libs/libomega.lax/lt1-libmodels.a/parameters.Threeshl_nohf.o .libs/libomega.lax/lt1-libmodels.a/parameters.UED.o .libs/libomega.lax/lt1-libmodels.a/parameters.Xdim.o .libs/libomega.lax/lt1-libmodels.a/parameters.Zprime.o .libs/libomega.lax/lt1-libmodels.a/threeshl_bundle.o libtool: link: ranlib .libs/libomega.a libtool: link: rm -fr .libs/libomega.lax .libs/libomega.lax libtool: link: ( cd ".libs" && rm -f "libomega.la" && ln -s "../libomega.la" "libomega.la" ) /bin/sh ../libtool --tag=FC --mode=link gfortran -g -O2 -o whizard whizard-core/libwhizard_main.la ./libwhizard.la prebuilt/libwhizard_prebuilt.la -L/usr/local//lib -lLHAPDF -lHepMC libtool: link: gfortran -g -O2 -o .libs/whizard whizard-core/.libs/libwhizard_main.dylib ./.libs/libwhizard.dylib -L/usr/local//lib -L/usr/local/lib/gcc/x86_64-apple-darwin10.0.0/4.5.0 -L/usr/local/lib/gcc/x86_64-apple-darwin10.0.0/4.5.0/../../.. prebuilt/.libs/libwhizard_prebuilt.dylib /usr/local//lib/libLHAPDF.dylib /usr/local/lib/libgfortran.dylib -lm /usr/local/lib/libHepMC.dylib
comment:12 Changed 15 years ago by
This is the build on Linux:
ranscript written on gamelan.log. make[2]: Leaving directory `/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/gamelan' make[2]: Entering directory `/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src' /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o libwhizard.la -rpath /home/reuter/Physik/progs/svn/dlopen_test/install/lib/whizard whizard-core/libwhizard_core.la vamp/libvamp.la misc/libaux.la hepmc/libHepMCWrap.la -L/usr/local//lib -lLHAPDF -ldl libtool: link: gcc -shared -Wl,--whole-archive whizard-core/.libs/libwhizard_core.a vamp/.libs/libvamp.a misc/.libs/libaux.a hepmc/.libs/libHepMCWrap.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/usr/local/lib/../lib64 -Wl,-rpath -Wl,/usr/local//lib -Wl,-rpath -Wl,/usr/local/lib/../lib64 -Wl,-rpath -Wl,/usr/local//lib -L/usr/local//lib /usr/local//lib/libLHAPDF.so -L/usr/local/lib/../lib64 /usr/local/lib/../lib64/libgfortran.so /usr/local/lib/../lib64/libstdc++.so -ldl -Wl,-soname -Wl,libwhizard.so.0 -o .libs/libwhizard.so.0.0.0 /usr/bin/ld: skipping incompatible /usr/local//lib/libgcc_s.so when searching for -lgcc_s /usr/bin/ld: skipping incompatible /usr/local//lib/libgcc_s.so when searching for -lgcc_s libtool: link: (cd ".libs" && rm -f "libwhizard.so.0" && ln -s "libwhizard.so.0.0.0" "libwhizard.so.0") libtool: link: (cd ".libs" && rm -f "libwhizard.so" && ln -s "libwhizard.so.0.0.0" "libwhizard.so") libtool: link: (cd .libs/libwhizard.lax/libwhizard_core.a && ar x "/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/whizard-core/.libs/libwhizard_core.a") libtool: link: (cd .libs/libwhizard.lax/libvamp.a && ar x "/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/vamp/.libs/libvamp.a") libtool: link: (cd .libs/libwhizard.lax/libaux.a && ar x "/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/misc/.libs/libaux.a") libtool: link: (cd .libs/libwhizard.lax/libHepMCWrap.a && ar x "/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/hepmc/.libs/libHepMCWrap.a") libtool: link: ar cru .libs/libwhizard.a .libs/libwhizard.lax/libwhizard_core.a/variables.o .libs/libwhizard.lax/libwhizard_core.a/mappings.o .libs/libwhizard.lax/libwhizard_core.a/phs_trees.o .libs/libwhizard.lax/libwhizard_core.a/permutations.o .libs/libwhizard.lax/libwhizard_core.a/analysis.o .libs/libwhizard.lax/libwhizard_core.a/os_interface.o .libs/libwhizard.lax/libwhizard_core.a/commands.o .libs/libwhizard.lax/libwhizard_core.a/events.o .libs/libwhizard.lax/libwhizard_core.a/pdg_arrays.o .libs/libwhizard.lax/libwhizard_core.a/evaluators.o .libs/libwhizard.lax/libwhizard_core.a/whizard.o .libs/libwhizard.lax/libwhizard_core.a/sorting.o .libs/libwhizard.lax/libwhizard_core.a/prt_lists.o .libs/libwhizard.lax/libwhizard_core.a/hepmc_interface.o .libs/libwhizard.lax/libwhizard_core.a/prclib_interfaces.o .libs/libwhizard.lax/libwhizard_core.a/sf_epa.o .libs/libwhizard.lax/libwhizard_core.a/particles.o .libs/libwhizard.lax/libwhizard_core.a/les_houches_events.o .libs/libwhizard.lax/libwhizard_core.a/beams.o .libs/libwhizard.lax/libwhizard_core.a/decays.o .libs/libwhizard.lax/libwhizard_core.a/helicities.o .libs/libwhizard.lax/libwhizard_core.a/slha_interface.o .libs/libwhizard.lax/libwhizard_core.a/processes.o .libs/libwhizard.lax/libwhizard_core.a/process_libraries.o .libs/libwhizard.lax/libwhizard_core.a/sf_ewa.o .libs/libwhizard.lax/libwhizard_core.a/clock.o .libs/libwhizard.lax/libwhizard_core.a/md5.o .libs/libwhizard.lax/libwhizard_core.a/flavors.o .libs/libwhizard.lax/libwhizard_core.a/hard_interactions.o .libs/libwhizard.lax/libwhizard_core.a/state_matrices.o .libs/libwhizard.lax/libwhizard_core.a/bytes.o .libs/libwhizard.lax/libwhizard_core.a/syntax_rules.o .libs/libwhizard.lax/libwhizard_core.a/phs_forests.o .libs/libwhizard.lax/libwhizard_core.a/expressions.o .libs/libwhizard.lax/libwhizard_core.a/polarizations.o .libs/libwhizard.lax/libwhizard_core.a/colors.o .libs/libwhizard.lax/libwhizard_core.a/parser.o .libs/libwhizard.lax/libwhizard_core.a/ifiles.o .libs/libwhizard.lax/libwhizard_core.a/hashes.o .libs/libwhizard.lax/libwhizard_core.a/quantum_numbers.o .libs/libwhizard.lax/libwhizard_core.a/strfun.o .libs/libwhizard.lax/libwhizard_core.a/interactions.o .libs/libwhizard.lax/libwhizard_core.a/lexers.o .libs/libwhizard.lax/libwhizard_core.a/sf_lhapdf.o .libs/libwhizard.lax/libwhizard_core.a/cascades.o .libs/libwhizard.lax/libwhizard_core.a/sf_isr.o .libs/libwhizard.lax/libwhizard_core.a/models.o .libs/libwhizard.lax/libwhizard_core.a/sf_aux.o .libs/libwhizard.lax/libvamp.a/vamp_bundle.o .libs/libwhizard.lax/libaux.a/constants.o .libs/libwhizard.lax/libaux.a/diagnostics.o .libs/libwhizard.lax/libaux.a/limits.o .libs/libwhizard.lax/libaux.a/system_dependencies.o .libs/libwhizard.lax/libaux.a/kinds.o .libs/libwhizard.lax/libaux.a/sm_physics.o .libs/libwhizard.lax/libaux.a/lorentz.o .libs/libwhizard.lax/libaux.a/iso_varying_string.o .libs/libwhizard.lax/libaux.a/file_utils.o .libs/libwhizard.lax/libHepMCWrap.a/libHepMCWrap_la-HepMCWrap.o libtool: link: ranlib .libs/libwhizard.a libtool: link: rm -fr .libs/libwhizard.lax libtool: link: ( cd ".libs" && rm -f "libwhizard.la" && ln -s "../libwhizard.la" "libwhizard.la" ) /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o libomega.la -rpath /home/reuter/Physik/progs/svn/dlopen_test/install/lib/whizard omega/src/libomega_core.la models/libmodels.la -ldl libtool: link: gcc -shared -Wl,--whole-archive models/.libs/libmodels.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/omega/src/.libs -Wl,-rpath -Wl,/home/reuter/Physik/progs/svn/dlopen_test/install/lib/omega omega/src/.libs/libomega_core.so -ldl -Wl,-soname -Wl,libomega.so.0 -o .libs/libomega.so.0.0.0 /usr/bin/ld: error in models/.libs/libmodels.a(parameters.MSSM.o)(.eh_frame); no .eh_frame_hdr table will be created. /usr/bin/ld: error in models/.libs/libmodels.a(parameters.MSSM_CKM.o)(.eh_frame); no .eh_frame_hdr table will be created. /usr/bin/ld: error in models/.libs/libmodels.a(parameters.MSSM_Grav.o)(.eh_frame); no .eh_frame_hdr table will be created. libtool: link: (cd ".libs" && rm -f "libomega.so.0" && ln -s "libomega.so.0.0.0" "libomega.so.0") libtool: link: (cd ".libs" && rm -f "libomega.so" && ln -s "libomega.so.0.0.0" "libomega.so") libtool: link: (cd .libs/libomega.lax/libmodels.a && ar x "/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/models/.libs/libmodels.a") libtool: link: ar cru .libs/libomega.a .libs/libomega.lax/libmodels.a/parameters.SM_CKM.o .libs/libomega.lax/libmodels.a/parameters.Threeshl.o .libs/libomega.lax/libmodels.a/parameters.Test.o .libs/libomega.lax/libmodels.a/parameters.GravTest.o .libs/libomega.lax/libmodels.a/parameters.SM.o .libs/libomega.lax/libmodels.a/parameters.Threeshl_nohf.o .libs/libomega.lax/libmodels.a/parameters.SM_ac.o .libs/libomega.lax/libmodels.a/parameters.MSSM_CKM.o .libs/libomega.lax/libmodels.a/parameters.Zprime.o .libs/libomega.lax/libmodels.a/parameters.Simplest.o .libs/libomega.lax/libmodels.a/parameters.SM_km.o .libs/libomega.lax/libmodels.a/parameters.Littlest_Tpar.o .libs/libomega.lax/libmodels.a/parameters.SM_top.o .libs/libomega.lax/libmodels.a/parameters.QED.o .libs/libomega.lax/libmodels.a/parameters.Littlest.o .libs/libomega.lax/libmodels.a/parameters.MSSM.o .libs/libomega.lax/libmodels.a/parameters.MSSM_Grav.o .libs/libomega.lax/libmodels.a/threeshl_bundle.o .libs/libomega.lax/libmodels.a/parameters.Littlest_Eta.o .libs/libomega.lax/libmodels.a/parameters.Template.o .libs/libomega.lax/libmodels.a/parameters.QCD.o .libs/libomega.lax/libmodels.a/parameters.PSSSM.o .libs/libomega.lax/libmodels.a/parameters.UED.o .libs/libomega.lax/libmodels.a/parameters.SM_ac_CKM.o .libs/libomega.lax/libmodels.a/parameters.Xdim.o .libs/libomega.lax/libmodels.a/parameters.NMSSM_CKM.o .libs/libomega.lax/libmodels.a/parameters.NMSSM.o .libs/libomega.lax/libmodels.a/parameters.Simplest_univ.o libtool: link: ranlib .libs/libomega.a libtool: link: rm -fr .libs/libomega.lax libtool: link: ( cd ".libs" && rm -f "libomega.la" && ln -s "../libomega.la" "libomega.la" ) /bin/sh ../libtool --tag=FC --mode=link gfortran -g -O2 -o whizard whizard-core/libwhizard_main.la ./libwhizard.la prebuilt/libwhizard_prebuilt.la -L/usr/local//lib -lLHAPDF -L/opt/whizard/lib -lHepMC -ldl libtool: link: gfortran -g -O2 -o .libs/whizard whizard-core/.libs/libwhizard_main.so ./.libs/libwhizard.so -L/usr/local//lib prebuilt/.libs/libwhizard_prebuilt.so /usr/local//lib/libLHAPDF.so /usr/local/lib/../lib64/libgfortran.so -L/opt/whizard/lib /usr/local/lib/libHepMC.so /usr/local/lib/../lib64/libstdc++.so -lm -ldl -Wl,-rpath -Wl,/home/reuter/Physik/progs/svn/dlopen_test/install/lib/whizard -Wl,-rpath -Wl,/usr/local/lib/../lib64 -Wl,-rpath -Wl,/usr/local//lib
comment:13 Changed 15 years ago by
Now its again libtool which is suspicious I'm concentrating on the libomega build process now. Under MAC, this is the explicit libtool command line:
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o libomega.la -rpath /Users/reuter/Physik/progs/omwhiz/svn/trunk/jr_install/lib/whizard omega/src/libomega_core.la models/libmodels.la libtool: link: rm -fr .libs/libomega.0.dylib .libs/libomega.0.dylib.dSYM .libs/libomega.a .libs/libomega.dylib .libs/libomega.la .libs/libomega.lai libtool: link: (cd .libs/libomega.lax/libmodels.a && ar x "/Users/reuter/Physik/progs/omwhiz/svn/trunk/build/src/models/.libs/libmodels.a") libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libomega.0.dylib .libs/libomega.lax/libmodels.a/parameters.GravTest.o .libs/libomega.lax/libmodels.a/parameters.Littlest.o .libs/libomega.lax/libmodels.a/parameters.Littlest_Eta.o .libs/libomega.lax/libmodels.a/parameters.Littlest_Tpar.o .libs/libomega.lax/libmodels.a/parameters.MSSM.o .libs/libomega.lax/libmodels.a/parameters.MSSM_CKM.o .libs/libomega.lax/libmodels.a/parameters.MSSM_Grav.o .libs/libomega.lax/libmodels.a/parameters.NMSSM.o .libs/libomega.lax/libmodels.a/parameters.NMSSM_CKM.o .libs/libomega.lax/libmodels.a/parameters.PSSSM.o .libs/libomega.lax/libmodels.a/parameters.QCD.o .libs/libomega.lax/libmodels.a/parameters.QED.o .libs/libomega.lax/libmodels.a/parameters.Simplest.o .libs/libomega.lax/libmodels.a/parameters.Simplest_univ.o .libs/libomega.lax/libmodels.a/parameters.SM.o .libs/libomega.lax/libmodels.a/parameters.SM_ac.o .libs/libomega.lax/libmodels.a/parameters.SM_ac_CKM.o .libs/libomega.lax/libmodels.a/parameters.SM_CKM.o .libs/libomega.lax/libmodels.a/parameters.SM_km.o .libs/libomega.lax/libmodels.a/parameters.SM_top.o .libs/libomega.lax/libmodels.a/parameters.Template.o .libs/libomega.lax/libmodels.a/parameters.Test.o .libs/libomega.lax/libmodels.a/parameters.Threeshl.o .libs/libomega.lax/libmodels.a/parameters.Threeshl_nohf.o .libs/libomega.lax/libmodels.a/parameters.UED.o .libs/libomega.lax/libmodels.a/parameters.Xdim.o .libs/libomega.lax/libmodels.a/parameters.Zprime.o .libs/libomega.lax/libmodels.a/threeshl_bundle.o omega/src/.libs/libomega_core.dylib -install_name /Users/reuter/Physik/progs/omwhiz/svn/trunk/jr_install/lib/whizard/libomega.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module libtool: link: dsymutil .libs/libomega.0.dylib || : libtool: link: (cd ".libs" && rm -f "libomega.dylib" && ln -s "libomega.0.dylib" "libomega.dylib") libtool: link: (cd .libs/libomega.lax/lt1-libmodels.a && ar x "/Users/reuter/Physik/progs/omwhiz/svn/trunk/build/src/models/.libs/libmodels.a") libtool: link: ar cru .libs/libomega.a .libs/libomega.lax/lt1-libmodels.a/parameters.GravTest.o .libs/libomega.lax/lt1-libmodels.a/parameters.Littlest.o .libs/libomega.lax/lt1-libmodels.a/parameters.Littlest_Eta.o .libs/libomega.lax/lt1-libmodels.a/parameters.Littlest_Tpar.o .libs/libomega.lax/lt1-libmodels.a/parameters.MSSM.o .libs/libomega.lax/lt1-libmodels.a/parameters.MSSM_CKM.o .libs/libomega.lax/lt1-libmodels.a/parameters.MSSM_Grav.o .libs/libomega.lax/lt1-libmodels.a/parameters.NMSSM.o .libs/libomega.lax/lt1-libmodels.a/parameters.NMSSM_CKM.o .libs/libomega.lax/lt1-libmodels.a/parameters.PSSSM.o .libs/libomega.lax/lt1-libmodels.a/parameters.QCD.o .libs/libomega.lax/lt1-libmodels.a/parameters.QED.o .libs/libomega.lax/lt1-libmodels.a/parameters.Simplest.o .libs/libomega.lax/lt1-libmodels.a/parameters.Simplest_univ.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_ac.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_ac_CKM.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_CKM.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_km.o .libs/libomega.lax/lt1-libmodels.a/parameters.SM_top.o .libs/libomega.lax/lt1-libmodels.a/parameters.Template.o .libs/libomega.lax/lt1-libmodels.a/parameters.Test.o .libs/libomega.lax/lt1-libmodels.a/parameters.Threeshl.o .libs/libomega.lax/lt1-libmodels.a/parameters.Threeshl_nohf.o .libs/libomega.lax/lt1-libmodels.a/parameters.UED.o .libs/libomega.lax/lt1-libmodels.a/parameters.Xdim.o .libs/libomega.lax/lt1-libmodels.a/parameters.Zprime.o .libs/libomega.lax/lt1-libmodels.a/threeshl_bundle.o libtool: link: ranlib .libs/libomega.a libtool: link: rm -fr .libs/libomega.lax .libs/libomega.lax libtool: link: ( cd ".libs" && rm -f "libomega.la" && ln -s "../libomega.la" "libomega.la" )
comment:14 Changed 15 years ago by
Thiss is the corresponding Linux one:
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -o libomega.la -rpath /home/reuter/Physik/progs/svn/dlopen_test/install/lib/whizard omega/src/libomega_core.la models/libmodels.la -ldl libtool: link: rm -fr .libs/libomega.a .libs/libomega.la .libs/libomega.lai .libs/libomega.so .libs/libomega.so.0 libtool: link: gcc -shared -Wl,--whole-archive models/.libs/libmodels.a -Wl,--no-whole-archive -Wl,-rpath -Wl,/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/omega/src/.libs -Wl,-rpath -Wl,/home/reuter/Physik/progs/svn/dlopen_test/install/lib/omega omega/src/.libs/libomega_core.so -ldl -Wl,-soname -Wl,libomega.so.0 -o .libs/libomega.so.0.0.0 /usr/bin/ld: error in models/.libs/libmodels.a(parameters.MSSM.o)(.eh_frame); no .eh_frame_hdr table will be created. /usr/bin/ld: error in models/.libs/libmodels.a(parameters.MSSM_CKM.o)(.eh_frame); no .eh_frame_hdr table will be created. /usr/bin/ld: error in models/.libs/libmodels.a(parameters.MSSM_Grav.o)(.eh_frame); no .eh_frame_hdr table will be created. libtool: link: (cd ".libs" && rm -f "libomega.so.0" && ln -s "libomega.so.0.0.0" "libomega.so.0") libtool: link: (cd ".libs" && rm -f "libomega.so" && ln -s "libomega.so.0.0.0" "libomega.so") libtool: link: (cd .libs/libomega.lax/libmodels.a && ar x "/home/reuter/Physik/progs/svn/dlopen_test/trunk/build/src/models/.libs/libmodels.a") libtool: link: ar cru .libs/libomega.a .libs/libomega.lax/libmodels.a/parameters.SM_CKM.o .libs/libomega.lax/libmodels.a/parameters.Threeshl.o .libs/libomega.lax/libmodels.a/parameters.Test.o .libs/libomega.lax/libmodels.a/parameters.GravTest.o .libs/libomega.lax/libmodels.a/parameters.SM.o .libs/libomega.lax/libmodels.a/parameters.Threeshl_nohf.o .libs/libomega.lax/libmodels.a/parameters.SM_ac.o .libs/libomega.lax/libmodels.a/parameters.MSSM_CKM.o .libs/libomega.lax/libmodels.a/parameters.Zprime.o .libs/libomega.lax/libmodels.a/parameters.Simplest.o .libs/libomega.lax/libmodels.a/parameters.SM_km.o .libs/libomega.lax/libmodels.a/parameters.Littlest_Tpar.o .libs/libomega.lax/libmodels.a/parameters.SM_top.o .libs/libomega.lax/libmodels.a/parameters.QED.o .libs/libomega.lax/libmodels.a/parameters.Littlest.o .libs/libomega.lax/libmodels.a/parameters.MSSM.o .libs/libomega.lax/libmodels.a/parameters.MSSM_Grav.o .libs/libomega.lax/libmodels.a/threeshl_bundle.o .libs/libomega.lax/libmodels.a/parameters.Littlest_Eta.o .libs/libomega.lax/libmodels.a/parameters.Template.o .libs/libomega.lax/libmodels.a/parameters.QCD.o .libs/libomega.lax/libmodels.a/parameters.PSSSM.o .libs/libomega.lax/libmodels.a/parameters.UED.o .libs/libomega.lax/libmodels.a/parameters.SM_ac_CKM.o .libs/libomega.lax/libmodels.a/parameters.Xdim.o .libs/libomega.lax/libmodels.a/parameters.NMSSM_CKM.o .libs/libomega.lax/libmodels.a/parameters.NMSSM.o .libs/libomega.lax/libmodels.a/parameters.Simplest_univ.o libtool: link: ranlib .libs/libomega.a libtool: link: rm -fr .libs/libomega.lax libtool: link: ( cd ".libs" && rm -f "libomega.la" && ln -s "../libomega.la" "libomega.la" )
comment:15 Changed 15 years ago by
Seeing you working on this reminds me about something I wanted to try and forgot: it may be worthwhile to play around a bit with the environment variables mentioned in the "dyld" manpage - expecially DYLD_FALLBACK_LIBRARY_PATH looks interesting, if setting it (or some other variable) would allow the dynamic linker to locate the libraries during make check, then we'd at least have a workaround. In addition, it seems that these environment variables can enable verbose debugging output, making the problem possibly a bit easier to troubleshoot...
comment:16 Changed 15 years ago by
libtool preliminary version 2.2.7alpha does not solve the problem. Unfortunately. CS is preparing a test case to be sent to the libtool people. What changed from Leopard to Snow Leopard that screwed up the linking???
comment:18 Changed 15 years ago by
comment:19 Changed 15 years ago by
OMG, IT IS NOT WORKING. NOT EVEN WITH THE SETTING OF THE DYLD_LIBRARY_PATH, IN NEW SHELLS I RUN INTO THE PROBLEM THAT MAKE DISTCHECK FAILS. :-(((((
comment:20 Changed 15 years ago by
So maybe the only hopefully safe thing would be to do an explicit "export" of the paths on a MAC OS X system.
comment:21 Changed 15 years ago by
You have to explicitly export the environment variables, this will fail if they do not exist yet or aren't exported. On the other hand, after sleeping on it, symlinking the libraries might be the best approach as it will also work on platforms where Libtool doesn't relink and which don't use DYLD_...
comment:22 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
In r1589 we have a workaround for this. The dl.m4 macro tests for the host system and exports the DYLD_LIBRARY_PATH in that case. The checks are working now, the other OSs (Linux up to now) are unaffected. Closing.
Log file for make distcheck