Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200868 - uclibc-0.9.27 fails to build for mips due to redefinition of static malloc funcs
Summary: uclibc-0.9.27 fails to build for mips due to redefinition of static malloc funcs
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-30 20:26 UTC by ddc
Modified: 2008-06-05 18:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/portage/cross-mips-linux-uclibc-uclibc.log (cross-mips-linux-uclibc-uclibc.log,17.52 KB, text/plain)
2008-06-05 18:54 UTC, Luke-Jr
Details
/var/log/portage/cross-mips-linux-uclibc-info.log (cross-mips-linux-uclibc-info.log,12.49 KB, text/plain)
2008-06-05 18:55 UTC, Luke-Jr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ddc 2007-11-30 20:26:21 UTC
hi,
my host is: ppc linux with gcc 3.4.6/4.1.2 binutils 2.17/2.18

if i invoke crossdev target --target mipsel-linux-uclibc
the build has issues and ends


as you can see from the included logs
there is something wrong at the uclibc stage
"error: static declaration of '_dl_malloc_addr' follows non-static declaration"
i can't understand what does it mean, but i clearly think there is a bug in the build system "



Reproducible: Always




tail of error log

(*) crossdev target --target mipsel-linux-uclibc
mipsel-linux-uclibc-gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-stack-protector -Os -mno-split-addresses -mips1 -fPIC -DUCLIBC_RUNTIME_PREFIX=\"/\" -fno-builtin -nostdinc -D_LIBC -I../../ldso/include -I. -I../../include -isystem /usr/lib/gcc/mipsel-linux-uclibc/4.1.2/include -D__SUPPORT_LD_DEBUG__  -I../libdl -c mips/resolve.S -o mips/resolve.o
true -Since_we_are_debugging -x -R .note -R .comment mips/resolve.o
mipsel-linux-uclibc-gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-stack-protector -Os -mno-split-addresses -mips1 -fPIC -DUCLIBC_RUNTIME_PREFIX=\"/\" -fno-builtin -nostdinc -D_LIBC -I../../ldso/include -I. -I../../include -isystem /usr/lib/gcc/mipsel-linux-uclibc/4.1.2/include -D__SUPPORT_LD_DEBUG__ -I../libdl -c ldso.c -o ldso.o
ldso.c:74: error: static declaration of '_dl_malloc_addr' follows non-static declaration
../../ldso/include/ldso.h:45: error: previous declaration of '_dl_malloc_addr' was here
ldso.c:75: error: static declaration of '_dl_mmap_zero' follows non-static declaration
../../ldso/include/ldso.h:46: error: previous declaration of '_dl_mmap_zero' was here
In file included from ldso.c:935:
dl-hash.c: In function '_dl_find_hash':
dl-hash.c:150: warning: pointer targets in passing argument 1 of '_dl_elf_hash' differ in signedness
make[2]: *** [ldso.o] Error 1
make[2]: Leaving directory `/var/tmp/cross/mipsel-linux-uclibc/portage/cross-mipsel-linux-uclibc/uclibc-0.9.27-r1/work/uClibc-0.9.27/ldso/ldso'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/cross/mipsel-linux-uclibc/portage/cross-mipsel-linux-uclibc/uclibc-0.9.27-r1/work/uClibc-0.9.27/ldso'
make: *** [_dir_ldso] Error 2

!!! ERROR: cross-mipsel-linux-uclibc/uclibc-0.9.27-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3413:   Called src_compile
  uclibc-0.9.27-r1.ebuild, line 326:   Called die

!!! could not make
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/cross/mipsel-linux-uclibc/portage/cross-mipsel-linux-uclibc/uclibc-0.9.27-r1/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/local/portage'
Comment 1 SpanKY gentoo-dev 2007-12-01 18:08:41 UTC
crossdev told you to post a lot more files as attachments ... do it
Comment 2 Luke-Jr 2008-06-05 18:54:59 UTC
Created attachment 155639 [details]
/var/log/portage/cross-mips-linux-uclibc-uclibc.log
Comment 3 Luke-Jr 2008-06-05 18:55:25 UTC
Created attachment 155641 [details]
/var/log/portage/cross-mips-linux-uclibc-info.log
Comment 4 Luke-Jr 2008-06-05 18:55:55 UTC
There's the two logfiles, please reopen.
Comment 5 Luke-Jr 2008-06-05 18:57:31 UTC
Note that while my logs appear to have a different Segfault issue, if I emerge cross-mips-linux-uclibc/uclibc by hand, I get the same problem the original reporter did.