| Summary: | binutils fails to build for i386 | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | buildroot |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | buildroot |
| Priority: | P5 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
buildroot
2010-05-19 20:34:37 UTC
I tried exactly the same configuration :
make ARCH=i386 defconfig
make
and I cannot reproduce the build failure. fibheap.c just builds fine here:
if [ x"" != x ]; then \
/usr/bin/gcc -Wl,-rpath -Wl,/home/test/buildroot/output/host/usr/lib -I/home/test/buildroot/output/host/include -I/home/test/buildroot/output/host/usr/include -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/test/buildroot/output/toolchain/binutils-2.20.1/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic /home/test/buildroot/output/toolchain/binutils-2.20.1/libiberty/fibheap.c -o pic/fibheap.o; \
else true; fi
/usr/bin/gcc -Wl,-rpath -Wl,/home/test/buildroot/output/host/usr/lib -I/home/test/buildroot/output/host/include -I/home/test/buildroot/output/host/usr/include -c -DHAVE_CONFIG_H -g -O2 -I. -I/home/test/buildroot/output/toolchain/binutils-2.20.1/libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic /home/test/buildroot/output/toolchain/binutils-2.20.1/libiberty/fibheap.c -o fibheap.o
See my config: http://free-electrons.com/~thomas/pub/bug1789/config1 And the full build log: http://free-electrons.com/~thomas/pub/bug1789/build1.log > See my config: > http://free-electrons.com/~thomas/pub/bug1789/config1 Yes, it's the same config as I am using (only with different number of simultaneous jobs). I have uploaded the full log to http://files.invalid-domain.net/buildroot-without-patch.log I tried the patch you posted to the mailing list (changing HOST_CFLAGS+=-Wl,-rpath -Wl,$(HOST_DIR)/usr/lib to HOST_LDFLAGS+=-Wl,-rpath -Wl,$(HOST_DIR)/usr/lib in packages/Makefile.in) and it fixed the compiling problems for binutils for me. Unfortunately, fakeroot reports an error ("fakeroot: preload library not found, aborting.") when creating the ext2 fs. Log can be found at http://files.invalid-domain.net/buildroot-with-proposed-patch.log Completely removing the line HOST_CFLAGS+=-Wl,-rpath -Wl,$(HOST_DIR)/usr/lib from packages/Makefile.in) leads to a successfull build (see log at http://files.invalid-domain.net/buildroot-with-dirty-fix.log). for me, removing the line HOST_CFLAGS+=-Wl,-rpath -Wl,$(HOST_DIR)/usr/lib leads to a successful build too, otherwise I have the same problems as described in this bug report. Tested with buildroot 2010.05rc3. My host system is Ubuntu 8.04/32-bit. Target AT91RM9200. I've reverted the commit (6b939d40f6a) for now, thanks. |