[collectd] Cross-compile error (MIPSEL)

Martin Herrman martin at herrman.nl
Fri Nov 4 20:16:11 CET 2011


Dear collectd users,

I'm trying to cross-compile collectd. The host platform is intel x686
running Gentoo, the target platform is mips little endian.

With both 4.10.4 and 5.0.1 I get the below error messages. Most noticeably are:

libtool: link: not configured to extract global symbols from dlpreopened files

/opt/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.3/../../../../mips-linux-gnu/bin/ld:
libcollectdclient.so.0: No such file: No such file or directory
collect2: ld returned 1 exit status

The client.o file is created during make.

Any help is greatly appreciated!

Martin

bin/sh ./libtool --tag=CC   --mode=link
/opt/Sourcery_G++_Lite/bin/mips-linux-gnu-gcc -EL -O2
-I/home/martin/EM7075/result/rrdtool-1.4.5/include  -EL -O2
-no-undefined -dlpreopen dlopen.la  -s
-L/opt/Sourcery_G++_Lite/lib/gcc/mips-linux-gnu/4.3.3/el -EL -Xlinker
-rpath-link /home/martin/EM7075/result/rrdtool-1.4.5/lib -o
libltdlc.la  libltdlc_la-preopen.lo libltdlc_la-lt__alloc.lo
libltdlc_la-lt_dlloader.lo libltdlc_la-lt_error.lo libltdlc_la-ltdl.lo
libltdlc_la-slist.lo lt__strl.lo -ldl
libtool: link: not configured to extract global symbols from dlpreopened files
libtool: link: (cd .libs/libltdlc.lax/dlopen.a &&
/opt/Sourcery_G++_Lite/bin/mips-linux-gnu-ar x
"/home/martin/EM7075/work/collectd-4.10.4/libltdl/./.libs/dlopen.a")
libtool: link: /opt/Sourcery_G++_Lite/bin/mips-linux-gnu-ar cru
.libs/libltdlc.a .libs/libltdlc_la-preopen.o
.libs/libltdlc_la-lt__alloc.o .libs/libltdlc_la-lt_dlloader.o
.libs/libltdlc_la-lt_error.o .libs/libltdlc_la-ltdl.o
.libs/libltdlc_la-slist.o .libs/lt__strl.o
.libs/libltdlc.lax/dlopen.a/dlopen.o
libtool: link: /opt/Sourcery_G++_Lite/bin/mips-linux-gnu-ranlib .libs/libltdlc.a
libtool: link: rm -fr .libs/libltdlc.lax
libtool: link: ( cd ".libs" && rm -f "libltdlc.la" && ln -s
"../libltdlc.la" "libltdlc.la" )
make[2]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/libltdl'
make[1]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/libltdl'
Making all in src
make[1]: Entering directory `/home/martin/EM7075/work/collectd-4.10.4/src'
make  all-recursive
make[2]: Entering directory `/home/martin/EM7075/work/collectd-4.10.4/src'
Making all in libcollectdclient
make[3]: Entering directory
`/home/martin/EM7075/work/collectd-4.10.4/src/libcollectdclient'
make  all-am
make[4]: Entering directory
`/home/martin/EM7075/work/collectd-4.10.4/src/libcollectdclient'
/bin/sh ../../libtool --tag=CC   --mode=compile
/opt/Sourcery_G++_Lite/bin/mips-linux-gnu-gcc -EL -O2
-I/home/martin/EM7075/result/rrdtool-1.4.5/include -DHAVE_CONFIG_H -I.
-I../../src    -Wall -Werror -EL -O2 -c -o client.lo client.c
libtool: compile:  /opt/Sourcery_G++_Lite/bin/mips-linux-gnu-gcc -EL
-O2 -I/home/martin/EM7075/result/rrdtool-1.4.5/include -DHAVE_CONFIG_H
-I. -I../../src -Wall -Werror -EL -O2 -c client.c  -fPIC -DPIC -o
.libs/client.o
/bin/sh ../../libtool --tag=CC   --mode=link
/opt/Sourcery_G++_Lite/bin/mips-linux-gnu-gcc -EL -O2
-I/home/martin/EM7075/result/rrdtool-1.4.5/include -Wall -Werror -EL
-O2 -version-info 0:0:0 -s
-L/opt/Sourcery_G++_Lite/lib/gcc/mips-linux-gnu/4.3.3/el -EL -Xlinker
-rpath-link /home/martin/EM7075/result/rrdtool-1.4.5/lib -o
libcollectdclient.la -rpath
/home/martin/EM7075/result/collectd-4.10.4/lib client.lo  -ldl
libtool: link: /opt/Sourcery_G++_Lite/bin/mips-linux-gnu-gcc -EL -O2
-I/home/martin/EM7075/result/rrdtool-1.4.5/include -shared
.libs/client.o
-L/opt/Sourcery_G++_Lite/lib/gcc/mips-linux-gnu/4.3.3/el -ldl
-Wl,-rpath-link   -Wl,-soname -Wl,libcollectdclient.so.0 -o
.libs/libcollectdclient.so.0.0.0
/opt/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.3/../../../../mips-linux-gnu/bin/ld:
libcollectdclient.so.0: No such file: No such file or directory
collect2: ld returned 1 exit status
make[4]: *** [libcollectdclient.la] Error 1
make[4]: Leaving directory
`/home/martin/EM7075/work/collectd-4.10.4/src/libcollectdclient'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/martin/EM7075/work/collectd-4.10.4/src/libcollectdclient'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/src'
make: *** [all-recursive] Error 1
Making install in libltdl
make[1]: Entering directory `/home/martin/EM7075/work/collectd-4.10.4/libltdl'
make  install-am
make[2]: Entering directory `/home/martin/EM7075/work/collectd-4.10.4/libltdl'
make[3]: Entering directory `/home/martin/EM7075/work/collectd-4.10.4/libltdl'
test -z "/home/martin/EM7075/result/collectd-4.10.4/lib" || /bin/mkdir
-p "/home/martin/EM7075/result/collectd-4.10.4/lib"
test -z "/home/martin/EM7075/result/collectd-4.10.4/include" ||
/bin/mkdir -p "/home/martin/EM7075/result/collectd-4.10.4/include"
test -z "" || /bin/mkdir -p ""
make[3]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/libltdl'
make[2]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/libltdl'
make[1]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/libltdl'
Making install in src
make[1]: Entering directory `/home/martin/EM7075/work/collectd-4.10.4/src'
make  install-recursive
make[2]: Entering directory `/home/martin/EM7075/work/collectd-4.10.4/src'
Making install in libcollectdclient
make[3]: Entering directory
`/home/martin/EM7075/work/collectd-4.10.4/src/libcollectdclient'
make  install-am
make[4]: Entering directory
`/home/martin/EM7075/work/collectd-4.10.4/src/libcollectdclient'
/bin/sh ../../libtool --tag=CC   --mode=link
/opt/Sourcery_G++_Lite/bin/mips-linux-gnu-gcc -EL -O2
-I/home/martin/EM7075/result/rrdtool-1.4.5/include -Wall -Werror -EL
-O2 -version-info 0:0:0 -s
-L/opt/Sourcery_G++_Lite/lib/gcc/mips-linux-gnu/4.3.3/el -EL -Xlinker
-rpath-link /home/martin/EM7075/result/rrdtool-1.4.5/lib -o
libcollectdclient.la -rpath
/home/martin/EM7075/result/collectd-4.10.4/lib client.lo  -ldl
libtool: link: /opt/Sourcery_G++_Lite/bin/mips-linux-gnu-gcc -EL -O2
-I/home/martin/EM7075/result/rrdtool-1.4.5/include -shared
.libs/client.o
-L/opt/Sourcery_G++_Lite/lib/gcc/mips-linux-gnu/4.3.3/el -ldl
-Wl,-rpath-link   -Wl,-soname -Wl,libcollectdclient.so.0 -o
.libs/libcollectdclient.so.0.0.0
/opt/Sourcery_G++_Lite/bin/../lib/gcc/mips-linux-gnu/4.3.3/../../../../mips-linux-gnu/bin/ld:
libcollectdclient.so.0: No such file: No such file or directory
collect2: ld returned 1 exit status
make[4]: *** [libcollectdclient.la] Error 1
make[4]: Leaving directory
`/home/martin/EM7075/work/collectd-4.10.4/src/libcollectdclient'
make[3]: *** [install] Error 2
make[3]: Leaving directory
`/home/martin/EM7075/work/collectd-4.10.4/src/libcollectdclient'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/martin/EM7075/work/collectd-4.10.4/src'
make: *** [install-recursive] Error 1



More information about the collectd mailing list