buildroot problem with building uClibc

stari pas staripas at operamail.com
Thu Nov 23 06:47:56 UTC 2006


I wonder if anybody has seen a similar problem while building uClibc using buildroot.

...
Must remake target `../utils/readelf.host'.
make[1]: Entering directory '/tmp/buildroot/toolchain_build_m68k/uClibc/utils'
	gcc ../utils/readelf.c  -o ../utils/readelf.host  -Wl,-s  -O2 -Wall -include ../include/elf.h
	../utils/readelf.c:27:18: link.h: No such file or directory
	../utils/readelf.c: In function `byteswap64_to_host':
	../utils/readelf.c:42: warning: implicit declaration of function `bswap_64'
	../utils/readelf.c: At top level:
	../utils/readelf.c:53: error: parse error before '*' token
...

It appears there are multiple problems here. The mentioned link.h is located in ../include directory. 
Even when I manually add -I../include to the above gcc command and run it from the shell prompt there's another error:

$ gcc ../utils/readelf.c  -o ../utils/readelf.host  -Wl,-s -O2 -Wall -include ../include/elf.h -I../include

../utils/readelf.c: In function `byteswap32_to_host':
../utils/readelf.c:34: error: invalid `asm': invalid %-code
../utils/readelf.c:34: error: invalid `asm': invalid %-code
../utils/readelf.c:34: error: invalid `asm': invalid %-code
../utils/readelf.c:34: error: invalid `asm': invalid %-code

That assembly code seems to be pulled in from a macro in uClibc/libc/sysdeps/linux/m68k/bits/byteswap.h file, but I'm running out of my depth here.

The source code comes from uClibc-snapshot.tar.bz2 from 22nd Nov.


-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze



More information about the uClibc mailing list