[cups.bugs] [MOD] STR #1425: LD variable ignored during compilation

Tomasz Chmielewski mangoo at mch.one.pl
Wed Feb 15 13:02:36 PST 2006


[STR New]

I'm cross compiling a lot of software for an embedded Linux platform.

This means, I have to set some variables, to point to build programs that
build for another platforms.

These variables are:

AR=$EMB/mipsel-linux-uclibc-ar
AS=$EMB/mipsel-linux-uclibc-as
LD=$EMB/mipsel-linux-uclibc-ld
NM=$EMB/mipsel-linux-uclibc-nm
CC=$EMB/mipsel-linux-uclibc-gcc
CPP=$EMB/mipsel-linux-uclibc-cpp
GCC=$EMB/mipsel-linux-uclibc-gcc
CXX=$EMB/mipsel-linux-uclibc-g++
RANLIB=$EMB/mipsel-linux-uclibc-ranlib
LIBTOOL=$EMB/binutils-2.16.1-build/ld/libtool

It is normally accepted by most software, like Samba or OpenLDAP, but LD
variable is ignored by cups-1.2svn-r5102:

/usr/bin/ld: .libs/array.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: .libs/array.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: .libs/array.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: .libs/array.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: .libs/array.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: .libs/array.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: .libs/array.o: Relocations in generic ELF (EM: 8)
..libs/array.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [libcups.la] Fehler 1
make: *** [all] Fehler 1


This means that the build process wants to use "normal" ld (it doesn't
know what cross-compilation is), located in /usr/bin/ld, and build fails.

Link: http://www.cups.org/str.php?L1425
Version: 1.2-current





More information about the cups-devel mailing list