On 01/25/2013 07:26 PM, Henrik /KaarPoSoft wrote:
However, it is still strange that I got the salhelper problem
in the first place, and apparently nobody else does.
And why are nobody else seeing the abovementioned multiple definition
problem?

I certainly will not rule out problems in my build environment as
KaarPux http://kaarpux.kaarposoft.dk/ is my own creation.
However, I have build some 500 packages in this environment, and
things like linux kernel, gnome3, and firefox work like a charm,
as does LO 3.6.2.1

Yeah, there must be something hidden in your platform that would explain the linker problems and the odd truncation of pathnames seen with strace. However, nothing springs to the eye when comparing your gcc configurations with what I have here on Fedora 18, see below. I'm afraid you're on your own tracking down what makes your platform behave so oddly when building LO.

$ gcc -v
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.2/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla 
--enable-bootstrap --enable-shared --enable-threads=posix 
--enable-checking=release --disable-build-with-cxx 
--disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-gnu-unique-object 
--enable-linker-build-id --with-linker-hash-style=gnu 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin 
--enable-initfini-array --enable-java-awt=gtk --disable-dssi 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib 
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC)

$ diff -u gcc_dumpspecs.txt <(gcc -dumpspecs)
--- gcc_dumpspecs.txt   2013-01-28 11:29:09.115663835 +0100
+++ /dev/fd/63  2013-01-28 11:35:06.640228079 +0100
@@ -1,4 +1,3 @@
-gcc -dumpspecs
 *asm:
 %{m32:--32}  %{m32|mx32:;:--64}  %{mx32:--x32}  
%{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}

@@ -49,7 +48,7 @@
 %{Ofast|ffast-math|funsafe-math-optimizations:crtfastmath.o%s}    
%{mpc32:crtprec32.o%s}    %{mpc64:crtprec64.o%s}    %{mpc80:crtprec80.o%s}    
%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s

 *link:
-%{!static:--eh-frame-hdr} %{m32|mx32:;:-m elf_x86_64}                    
%{m32:-m elf_i386}                    %{mx32:-m elf32_x86_64}   
%{shared:-shared}   %{!shared:     %{!static:       %{rdynamic:-export-dynamic} 
      %{m32:-dynamic-linker 
%{muclibc:/lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/lib/ld-linux.so.2}}}
       %{m32|mx32:;:-dynamic-linker 
%{muclibc:/lib/ld64-uClibc.so.0;:%{mbionic:/system/bin/linker64;:/lib64/ld-linux-x86-64.so.2}}}
       %{mx32:-dynamic-linker 
%{muclibc:/lib/ldx32-uClibc.so.0;:%{mbionic:/system/bin/linkerx32;:/libx32/ld-linux-x32.so.2}}}}
     %{static:-static}}
+%{!r:--build-id} --no-add-needed %{!static:--eh-frame-hdr} --hash-style=gnu 
%{m32|mx32:;:-m elf_x86_64}                    %{m32:-m elf_i386}               
     %{mx32:-m elf32_x86_64}   %{shared:-shared}   %{!shared:     %{!static:    
   %{rdynamic:-export-dynamic}       %{m32:-dynamic-linker 
%{muclibc:/lib/ld-uClibc.so.0;:%{mbionic:/system/bin/linker;:/lib/ld-linux.so.2}}}
       %{m32|mx32:;:-dynamic-linker 
%{muclibc:/lib/ld64-uClibc.so.0;:%{mbionic:/system/bin/linker64;:/lib64/ld-linux-x86-64.so.2}}}
       %{mx32:-dynamic-linker 
%{muclibc:/lib/ldx32-uClibc.so.0;:%{mbionic:/system/bin/linkerx32;:/libx32/ld-linux-x32.so.2}}}}
     %{static:-static}}

 *lib:
 %{pthread:-lpthread}    %{shared:-lc}    %{!shared:%{mieee-fp:-lieee} 
%{profile:-lc_p}%{!profile:-lc}}
@@ -76,7 +75,7 @@
 4.7.2

 *multilib:
-. !m64 !m32;.:../lib64 m64 !m32;.:../lib !m64 m32;
+. !m64 !m32;64:../lib64 m64 !m32;32:../lib !m64 m32;

 *multilib_defaults:
 m64
@@ -138,4 +137,3 @@
 *link_command:
 %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:    %(linker) 
%{!fno-use-linker-plugin:%{flto|flto=*|fuse-linker-plugin:     -plugin 
%(linker_plugin_file)     -plugin-opt=%(lto_wrapper)     
-plugin-opt=-fresolution=%u.res     
%{!nostdlib:%{!nodefaultlibs:%:pass-through-libs(%(link_gcc_c_sequence))}}     
}}%{flto|flto=*:%<fcompare-debug*}     %{flto} %{flto=*} %l %{pie:-pie} %X 
%{o*} %{e*} %{N} %{n} %{r}    %{s} %{t} %{u*} %{z} %{Z} 
%{!nostdlib:%{!nostartfiles:%S}}    %{static:} %{L*} %(mfwrap) %(link_libgcc) %o   
 %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)}    
%{fgnu-tm:%:include(libitm.spec)%(link_itm)}    %(mflib)  %{fsplit-stack: 
--wrap=pthread_create}    %{fprofile-arcs|fprofile-generate*|coverage:-lgcov}    
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}    
%{!nostdlib:%{!nostartfiles:%E}} %{T*} }}}}}}

-

Stephan
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to