[#4969] build shared flat fails at libpng
Submitted By: Mingquan Pan
Open Date
2009-03-09 00:27:33 Close Date
2009-03-13 07:03:39
Priority:
Medium High Assignee:
Bernd Schmidt
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
ALL Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
toolchain-09r1-1
App binary format:
N/A
Summary: build shared flat fails at libpng
Details:
build shared flat fails at libpng with toolchain-09r1-1 and uclibc-full-09r1-1.
test@45-bf527-toolchain:~/work/cruise/checkouts/uclinux-dist> uname -a
Linux 45-bf527-toolchain 2.6.25.5-1.1-pae #1 SMP 2008-06-07 01:55:22 +0200 i686 i686 i386 GNU/Linux
~/work/cruise/checkouts/uclinux-dist> make NON_SMP_BUILD=1
...checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working strtod... no
checking for pow... no
checking for pow in -lm... no
configure: WARNING: cannot find library containing definition of pow
checking for memset... yes
checking for pow... (cached) no
checking for pow in -lm... (cached) no
configure: error: cannot find pow
make[3]: *** [build-libpng-1.2.35/Makefile] Error 1
make[3]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib/libpng'
make[2]: *** [libpng] Error 2
make[2]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/test/work/cruise/checkouts/uclinux-dist/lib'
uclinux version: 7854, linux-kernel Revision: 6157.
But it looks building into shared flat ok on another machine with :
test@40-bf537-toolchain:~/work/cruise/test_scripts/toolchain/toolchain-build> uname -a
Linux 40-bf537-toolchain 2.6.8-24.14-smp #1 SMP Tue Mar 29 09:27:43 UTC 2005 i686 i686 i386 GNU/Linux
The versions are:
toolchain Revision: 3224 (build with Buildtoolchain script), uclinux-dist Revision: 7854, linux Revision: 6156.
The build good log is attached.
Follow-ups
--- Mike Frysinger 2009-03-10 00:30:21
the config.log from the build dir is needed
--- Mingquan Pan 2009-03-10 23:07:56
config.log under libpng/build-libpng-1.2.35 is posted.
--- Mike Frysinger 2009-03-11 05:38:14
bug in toolchain, not libpng
configure:12091: checking for pow in -lm
configure:12126: bfin-uclinux-gcc -o conftest -pipe -Wall -g -O2
-mid-shared-library -mshared-library-id=0 -mcpu=bf537-0.2 -DEMBED
-D__uClinux__ -I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2
-Wl,-elf2flt -Wl,-shared-lib-id,0 -mid-shared-library
-Wl,-R,/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
-mcpu=bf537-0.2 conftest.c -lm >&5
conftest.c:33: warning: conflicting types for built-in function 'pow'
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libm.a(e_pow.os):
In function `__ieee754_pow':
libm/e_pow.c:128: relocation truncated to fit: R_pcrel24 against symbol
`___adddf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:161: relocation truncated to fit: R_pcrel24 against symbol
`___divdf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:154: relocation truncated to fit: R_pcrel24 against symbol
`___subdf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:187: relocation truncated to fit: R_pcrel24 against symbol
`___subdf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:187: relocation truncated to fit: R_pcrel24 against symbol
`___divdf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:163: relocation truncated to fit: R_pcrel24 against symbol
`___muldf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:223: relocation truncated to fit: R_pcrel24 against symbol
`___subdf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:224: relocation truncated to fit: R_pcrel24 against symbol
`___adddf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:224: relocation truncated to fit: R_pcrel24 against symbol
`___divdf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:225: relocation truncated to fit: R_pcrel24 against symbol
`___muldf3' defined in .text section in
/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime/usr/lib/mid-shared-library/libc.gdb
libm/e_pow.c:232: additional relocation overflows omitted from the output
collect2: ld returned 1 exit status
configure:12133: $? = 1
--- Bernd Schmidt 2009-03-11 18:19:06
Should be fixed in the next build.
--- Mingquan Pan 2009-03-13 07:03:39
Yes, fixed with 09r1-3 toolchain and full-uclibc. close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
config.log.gz application/x-gzip 8514 Mingquan Pan
build_toolchain_kernel_log.shared_flat.gz application/x-gzip 152043 Mingquan Pan