Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error crosscompiling bluez-utils: problem with linker ld
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
gentoopopel
n00b
n00b


Joined: 26 Nov 2004
Posts: 5

PostPosted: Tue Oct 30, 2007 4:54 pm    Post subject: Error crosscompiling bluez-utils: problem with linker ld Reply with quote

When crosscompiling bluez-utils (bluez-libs suckessfully installed) i get a strange compiling error
Code:
rubbish...
hciattach.c: In function 'bcsp_tshy_sig_alarm':
hciattach.c:327: warning: ignoring return value of 'write', declared with attribute warn_unused_result
hciattach.c: In function 'bcsp_tconf_sig_alarm':
hciattach.c:342: warning: ignoring return value of 'write', declared with attribute warn_unused_result
hciattach.c: In function 'bcsp':
hciattach.c:418: warning: ignoring return value of 'write', declared with attribute warn_unused_result
hciattach.c:462: warning: ignoring return value of 'write', declared with attribute warn_unused_result
hciattach.c:464: warning: ignoring return value of 'write', declared with attribute warn_unused_result
{standard input}: Assembler messages:
{standard input}:5263: Error: Unrecognized opcode: `rorw'
{standard input}:5268: Error: Unrecognized opcode: `rorw'
{standard input}:5273: Error: Unrecognized opcode: `rorw'
{standard input}:5278: Error: Unrecognized opcode: `rorw'
{standard input}:5283: Error: Unrecognized opcode: `rorw'
{standard input}:5283: Error: Unrecognized opcode: `rorl'
{standard input}:5283: Error: Unrecognized opcode: `rorw'
{standard input}:5287: Error: Unrecognized opcode: `rorw'
{standard input}:5287: Error: Unrecognized opcode: `rorl'
{standard input}:5287: Error: Unrecognized opcode: `rorw'
make[2]: *** [sdptool.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25'
make: *** [all] Error 2

so i looked at the output of configure and found the following:
Code:

...
checking for ld used by powerpc-gentoo-linux-gnu-gcc... /usr/libexec/gcc/powerpc-gentoo-linux-gnu/ld
...

but when crosscompiling without support of emerge it looks like this:
Code:
checking for ld used by powerpc-gentoo-linux-gnu-gcc... powerpc-gentoo-linux-gnu-ld

and works fine.


Might that be the problem? and how can i solve it?

THX for your support!

Code:
>>> Unpacking source...
>>> Unpacking bluez-utils-2.25.tar.gz to /var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work
 * Applying bluez-utils-2.25-dinovo-mdl.patch ...                                                                      [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25 ...
 * econf: updating bluez-utils-2.25/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating bluez-utils-2.25/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=powerpc-gentoo-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-alsa --disable-cups --disable-dbus --disable-pcmcia --disable-bluepin --enable-avctrl --enable-bcm203x --enable-dfutool --enable-hid2hci --enable-obex --enable-bccmd --disable-initscripts --localstatedir=/var --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for powerpc-gentoo-linux-gnu-strip... powerpc-gentoo-linux-gnu-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for powerpc-gentoo-linux-gnu-gcc... powerpc-gentoo-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc-gentoo-linux-gnu-gcc accepts -g... yes
checking for powerpc-gentoo-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of powerpc-gentoo-linux-gnu-gcc... gcc3
checking whether powerpc-gentoo-linux-gnu-gcc accepts -fPIE... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... no
checking for yywrap in -ll... no
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-gentoo-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by powerpc-gentoo-linux-gnu-gcc... /usr/libexec/gcc/powerpc-gentoo-linux-gnu/ld
checking if the linker (/usr/libexec/gcc/powerpc-gentoo-linux-gnu/ld) is GNU ld... yes
checking for /usr/libexec/gcc/powerpc-gentoo-linux-gnu/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/powerpc-gentoo-linux-gnu-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... powerpc-gentoo-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/powerpc-gentoo-linux-gnu-nm -B output from powerpc-gentoo-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for powerpc-gentoo-linux-gnu-ar... powerpc-gentoo-linux-gnu-ar
checking for powerpc-gentoo-linux-gnu-ranlib... powerpc-gentoo-linux-gnu-ranlib
checking for powerpc-gentoo-linux-gnu-strip... (cached) powerpc-gentoo-linux-gnu-strip
checking if powerpc-gentoo-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for powerpc-gentoo-linux-gnu-gcc option to produce PIC... -fPIC
checking if powerpc-gentoo-linux-gnu-gcc PIC flag -fPIC works... yes
checking if powerpc-gentoo-linux-gnu-gcc static flag -static works... yes
checking if powerpc-gentoo-linux-gnu-gcc supports -c -o file.o... yes
checking whether the powerpc-gentoo-linux-gnu-gcc linker (/usr/libexec/gcc/powerpc-gentoo-linux-gnu/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
checking bluetooth/bluetooth.h usability... yes
checking bluetooth/bluetooth.h presence... yes
checking for bluetooth/bluetooth.h... yes
checking for hci_open_dev in -lbluetooth... yes
checking for sdp_connect in -lbluetooth... yes
checking openobex/obex.h usability... no
checking openobex/obex.h presence... no
checking for openobex/obex.h... no
checking for OBEX_Init in -lopenobex... no
checking for BtOBEX_TransportConnect in -lopenobex... no
checking dbus/dbus.h usability... no
checking dbus/dbus.h presence... no
checking for dbus/dbus.h... no
checking for dbus_error_init in -ldbus-1... no
checking for dbus_message_iter_get_basic in -ldbus-1... no
checking fuse.h usability... no
checking fuse.h presence... no
checking for fuse.h... no
checking for fuse_main in -lfuse... no
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking alsa/pcm_ioplug.h usability... no
checking alsa/pcm_ioplug.h presence... no
checking for alsa/pcm_ioplug.h... no
checking for snd_pcm_ioplug_create in -lasound... no
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking for usb_open in -lusb... no
checking for usb_get_busses in -lusb... no
checking for usb_interrupt_read in -lusb... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating common/Makefile
config.status: creating daemon/Makefile
config.status: creating tools/Makefile
config.status: creating rfcomm/Makefile
config.status: creating hcid/Makefile
config.status: creating sdpd/Makefile
config.status: creating dund/Makefile
config.status: creating pand/Makefile
config.status: creating hidd/Makefile
config.status: creating cups/Makefile
config.status: creating fuse/Makefile
config.status: creating alsa/Makefile
config.status: creating test/Makefile
config.status: creating scripts/Makefile
config.status: creating pcmcia/Makefile
config.status: creating extra/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25'
Making all in common
make[2]: Entering directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25/common'
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT textfile.o -MD -MP -MF ".deps/textfile.Tpo" \
          -c -o textfile.o `test -f 'textfile.c' || echo './'`textfile.c; \
        then mv -f ".deps/textfile.Tpo" ".deps/textfile.Po"; \
        else rm -f ".deps/textfile.Tpo"; exit 1; \
        fi
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT glib-ectomy.o -MD -MP -MF ".deps/glib-ectomy.Tpo" \
          -c -o glib-ectomy.o `test -f 'glib-ectomy.c' || echo './'`glib-ectomy.c; \
        then mv -f ".deps/glib-ectomy.Tpo" ".deps/glib-ectomy.Po"; \
        else rm -f ".deps/glib-ectomy.Tpo"; exit 1; \
        fi
textfile.c: In function 'textfile_put':
textfile.c:179: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result
textfile.c:199: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result
textfile.c:203: warning: ignoring return value of 'write', declared with attribute warn_unused_result
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT test_textfile.o -MD -MP -MF ".deps/test_textfile.Tpo" \
          -c -o test_textfile.o `test -f 'test_textfile.c' || echo './'`test_textfile.c; \
        then mv -f ".deps/test_textfile.Tpo" ".deps/test_textfile.Po"; \
        else rm -f ".deps/test_textfile.Tpo"; exit 1; \
        fi
rm -f libtextfile.a
powerpc-gentoo-linux-gnu-ar cru libtextfile.a textfile.o
powerpc-gentoo-linux-gnu-ranlib libtextfile.a
rm -f libglib-ectomy.a
powerpc-gentoo-linux-gnu-ar cru libglib-ectomy.a glib-ectomy.o
powerpc-gentoo-linux-gnu-ranlib libglib-ectomy.a
/bin/sh ../libtool --mode=link powerpc-gentoo-linux-gnu-gcc  -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2   -o test_textfile  test_textfile.o libtextfile.a
mkdir .libs
powerpc-gentoo-linux-gnu-gcc -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -o test_textfile test_textfile.o  libtextfile.a
make[2]: Leaving directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25/common'
Making all in daemon
make[2]: Entering directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25/daemon'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25/daemon'
Making all in tools
make[2]: Entering directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25/tools'
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common   -I/usr/include  -I/usr/include -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT hcitool.o -MD -MP -MF ".deps/hcitool.Tpo" \
          -c -o hcitool.o `test -f 'hcitool.c' || echo './'`hcitool.c; \
        then mv -f ".deps/hcitool.Tpo" ".deps/hcitool.Po"; \
        else rm -f ".deps/hcitool.Tpo"; exit 1; \
        fi
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common   -I/usr/include  -I/usr/include -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT oui.o -MD -MP -MF ".deps/oui.Tpo" \
          -c -o oui.o `test -f 'oui.c' || echo './'`oui.c; \
        then mv -f ".deps/oui.Tpo" ".deps/oui.Po"; \
        else rm -f ".deps/oui.Tpo"; exit 1; \
        fi
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common   -I/usr/include  -I/usr/include -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT l2ping.o -MD -MP -MF ".deps/l2ping.Tpo" \
          -c -o l2ping.o `test -f 'l2ping.c' || echo './'`l2ping.c; \
        then mv -f ".deps/l2ping.Tpo" ".deps/l2ping.Po"; \
        else rm -f ".deps/l2ping.Tpo"; exit 1; \
        fi
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common   -I/usr/include  -I/usr/include -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT sdptool.o -MD -MP -MF ".deps/sdptool.Tpo" \
          -c -o sdptool.o `test -f 'sdptool.c' || echo './'`sdptool.c; \
        then mv -f ".deps/sdptool.Tpo" ".deps/sdptool.Po"; \
        else rm -f ".deps/sdptool.Tpo"; exit 1; \
        fi
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common   -I/usr/include  -I/usr/include -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT ciptool.o -MD -MP -MF ".deps/ciptool.Tpo" \
          -c -o ciptool.o `test -f 'ciptool.c' || echo './'`ciptool.c; \
        then mv -f ".deps/ciptool.Tpo" ".deps/ciptool.Po"; \
        else rm -f ".deps/ciptool.Tpo"; exit 1; \
        fi
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common   -I/usr/include  -I/usr/include -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT hcisecfilter.o -MD -MP -MF ".deps/hcisecfilter.Tpo" \
          -c -o hcisecfilter.o `test -f 'hcisecfilter.c' || echo './'`hcisecfilter.c; \
        then mv -f ".deps/hcisecfilter.Tpo" ".deps/hcisecfilter.Po"; \
        else rm -f ".deps/hcisecfilter.Tpo"; exit 1; \
        fi
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common   -I/usr/include  -I/usr/include -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT ppporc.o -MD -MP -MF ".deps/ppporc.Tpo" \
          -c -o ppporc.o `test -f 'ppporc.c' || echo './'`ppporc.c; \
        then mv -f ".deps/ppporc.Tpo" ".deps/ppporc.Po"; \
        else rm -f ".deps/ppporc.Tpo"; exit 1; \
        fi
if powerpc-gentoo-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../common   -I/usr/include  -I/usr/include -Os -pipe -mcpu=603e -D_FORTIFY_SOURCE=2 -MT hciattach.o -MD -MP -MF ".deps/hciattach.Tpo" \
          -c -o hciattach.o `test -f 'hciattach.c' || echo './'`hciattach.c; \
        then mv -f ".deps/hciattach.Tpo" ".deps/hciattach.Po"; \
        else rm -f ".deps/hciattach.Tpo"; exit 1; \
        fi
hciattach.c: In function 'bcsp_tshy_sig_alarm':
hciattach.c:327: warning: ignoring return value of 'write', declared with attribute warn_unused_result
hciattach.c: In function 'bcsp_tconf_sig_alarm':
hciattach.c:342: warning: ignoring return value of 'write', declared with attribute warn_unused_result
hciattach.c: In function 'bcsp':
hciattach.c:418: warning: ignoring return value of 'write', declared with attribute warn_unused_result
hciattach.c:462: warning: ignoring return value of 'write', declared with attribute warn_unused_result
hciattach.c:464: warning: ignoring return value of 'write', declared with attribute warn_unused_result
{standard input}: Assembler messages:
{standard input}:5263: Error: Unrecognized opcode: `rorw'
{standard input}:5268: Error: Unrecognized opcode: `rorw'
{standard input}:5273: Error: Unrecognized opcode: `rorw'
{standard input}:5278: Error: Unrecognized opcode: `rorw'
{standard input}:5283: Error: Unrecognized opcode: `rorw'
{standard input}:5283: Error: Unrecognized opcode: `rorl'
{standard input}:5283: Error: Unrecognized opcode: `rorw'
{standard input}:5287: Error: Unrecognized opcode: `rorw'
{standard input}:5287: Error: Unrecognized opcode: `rorl'
{standard input}:5287: Error: Unrecognized opcode: `rorw'
make[2]: *** [sdptool.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/work/bluez-utils-2.25'
make: *** [all] Error 2
 *
 * ERROR: net-wireless/bluez-utils-2.25-r1 failed.
 * Call stack:
 *                    ebuild.sh, line 1695:  Called dyn_compile
 *                    ebuild.sh, line 1033:  Called qa_call 'src_compile'
 *                    ebuild.sh, line   44:  Called src_compile
 *   bluez-utils-2.25-r1.ebuild, line   74:  Called die
 * The specific snippet of code:
 *      emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-wireless/bluez-utils-2.25-r1/temp/build.log'.
 *
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum