On 2/28/2012 11:30 AM, Herbert Duerr wrote:
On 02/28/2012 07:57 PM, Andrew Rist wrote:
I am trying to sort out the build on Ubuntu 12.04 and other than
packaging I have a single issue. (I'm using build --all --html -P4 --
-P4 , so many packages are built after the initial failure is reached)
In addition to exact causes, I'm also looking for how people are
debugging (running cmds in isolation, from memory ("I saw something like
that once"), by Google, etc.) Thus, I'm trying to use this thread both
to solve this problem, but to also leave a trail for others hitting the
same or similar issues.
I remember seeing similar problems with missing symbols once and
switching linkers helped. Please run
ls -l /usr/bin/ld*
and you'll see ld.gold, ld.bfd and ld, the latter one being a softlink
to probably ld.gold. Switching this soft link to point to ld.bfd could
help. It is older and slower, but still more reliable
Herbert
interesting...
here's what I get:
$ cd ooo/main
$ . ./LinuxX86Env.Set.sh
$ ls -l /usr/bin/ld*
lrwxrwxrwx 1 root root 6 Feb 23 14:27 /usr/bin/ld -> ld.bfd
-rwxr-xr-x 1 root root 827396 Jan 25 03:11 /usr/bin/ld.bfd
-rwxr-xr-x 1 root root 5266 Feb 23 22:43 /usr/bin/ldd
-rwxr-xr-x 1 root root 1804464 Jan 25 03:11 /usr/bin/ld.gold
$ sudo rm /usr/bin/ld
$ sudo ln -s /usr/bin/ld.gold
/usr/bin/ldarist@Ubu12:~/apache/ooo/main$ cd
binfilter/filter/source/bf_offwrp/
$ g++ -Wl,-z,combreloc -Wl,-z,defs -Wl,-Bsymbolic-functions
-Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo
-Wl,--hash-style=both -Wl,-rpath,'$ORIGIN:$ORIGIN/../ure-link/lib'
-shared -L../../../unxlngi6.pro/lib -L../lib
-L/home/arist/apache/ooo/main/solenv/unxlngi6/lib
-L/home/arist/apache/ooo/main/solver/340/unxlngi6.pro/lib
-L/home/arist/apache/ooo/main/solenv/unxlngi6/lib
-L/usr/lib/jvm/java-6-openjdk/lib
-L/usr/lib/jvm/java-6-openjdk/jre/lib/i386
-L/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client
-L/usr/lib/jvm/java-6-openjdk/jre/lib/i386/native_threads
-L/usr/lib/i386-linux-gnu ../../../unxlngi6.pro/slo/bf_wrapper.o
../../../unxlngi6.pro/slo/bf_wrapper_version.o -o
../../../unxlngi6.pro/lib/libbf_wrapper.so -lbf_so -lbf_svt -lbf_ofa
-lvcl -lsot -luno_sal -ltl -luno_cppu -luno_cppuhelpergcc3 -lbf_ysch
-lbf_ysm -lbf_swlib -lbf_sdlib -lbf_sclib -lbf_svx -lutl
-lcomphelpgcc3 -llegacy_binfilters -Wl,--as-needed -ldl -lpthread
-lm -Wl,--no-as-needed -Wl,-Bdynamic -lstlport_gcc
$ ls ../../../unxlngi6.pro/lib/
bf_sclib.dump libbf_ofa.so libbf_sm.so libbf_ysch.a
bf_sclib.lib libbf_sb.so libbf_so.so libbf_ysm.a
bf_sdlib.dump libbf_sch.so libbf_svt.so libbindet.so
bf_sdlib.lib libbf_sclib.a libbf_svx.so liblegacy_binfilters.so
bf_swlib.dump libbf_sc.so libbf_swlib.a xmloff_core.dump
bf_swlib.lib libbf_sdlib.a libbf_sw.so xmloff_core.lib
libbf_frm.so libbf_sd.so libbf_wrapper.so xmloff_xmlkywd.dump
libbf_go.so libbf_sfx.a libbf_xo.so xmloff_xmlkywd.lib
And the libbf_wrapper.so is properly generated...
Question:
Do we just search until we get a combination of gcc and make and ld that
work on a platform?
or
Do we have preferred versions (e.g. default version on each platform)?
A.