gcc + uclibc

Alberich de megres alberich2k5 at gmail.com
Tue Apr 17 14:25:16 UTC 2012


Thanks khem!!
That solved my problem :)

However I'm having now a different one, it cannot find sysctl while
build with ntpl support.
I checked the makefile, it says that sysctl.c depends on
UCLIBC_LINUX_SPECIFIC=y

Which was already turned on.

The error:

  AS libpthread/nptl/sysdeps/unix/sysv/linux/read.o
  CC libpthread/nptl/alloca_cutoff.o
  CC libpthread/nptl/libc-cancellation.o
  CC libpthread/nptl/sysdeps/arm/libc-tls.o
  CC libpthread/nptl/sysdeps/generic/dl-tls.o
In file included from ./ldso/include/dl-string.h:11:0,
                 from ./ldso/include/dl-elf.h:11,
                 from libpthread/nptl/sysdeps/generic/dl-tls.c:30:
./ldso/ldso/arm/dl-sysdep.h: In function 'elf_machine_load_address':
./ldso/ldso/arm/dl-sysdep.h:119:37: warning: taking address of
expression of type 'void' [enabled by default]
  CC libc/sysdeps/linux/arm/aeabi_lcsts.o
  CC libc/sysdeps/linux/arm/aeabi_math.o
  CC libc/misc/elf/dl-support.o
  CC libc/misc/elf/dl-core.o
In file included from ./ldso/include/dl-string.h:11:0,
                 from ./ldso/include/ldso.h:44,
                 from libc/misc/elf/../../../ldso/ldso/dl-symbols.c:18,
                 from libc/misc/elf/dl-core.c:18:
./ldso/ldso/arm/dl-sysdep.h: In function 'elf_machine_load_address':
./ldso/ldso/arm/dl-sysdep.h:119:37: warning: taking address of
expression of type 'void' [enabled by default]
  CC libc/misc/elf/dl-iterate-phdr.o
In file included from ./ldso/include/dl-string.h:11:0,
                 from ./ldso/include/ldso.h:44,
                 from libc/misc/elf/dl-iterate-phdr.c:16:
./ldso/ldso/arm/dl-sysdep.h: In function 'elf_machine_load_address':
./ldso/ldso/arm/dl-sysdep.h:119:37: warning: taking address of
expression of type 'void' [enabled by default]
  CC libc/misc/internals/__uClibc_main.o
  CC libc/stdlib/atexit.o
  CC libc/stdlib/system.o
  AR cr /home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/lib/libc.a
  STRIP -x -R .note -R .comment
/home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/lib/libc.a
  CC libc/sysdeps/linux/arm/aeabi_lcsts.os
  CC libc/sysdeps/linux/arm/aeabi_math.os
  CC libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.o
  CC libc/stdlib/atexit.os
  AR cr /home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/lib/uclibc_nonshared.a
  STRIP -x -R .note -R .comment
/home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/lib/uclibc_nonshared.a
  STRIP -x -R .note -R .comment
/home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/libc/libc_so.a
  AR cr /home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/libc/libc_so.a
  STRIP -x -R .note -R .comment
/home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/libc/libc_so.a
  LD libuClibc-0.9.33.so
/home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/libc/libc_so.a(ioperm.os):
In function `init_iosys':
ioperm.c:(.text+0x40): undefined reference to `sysctl'
collect2: ld returned 1 exit status
make: *** [/home/diegom/kr/xenv-0.3.01/work/rpi/build/uclibc-0.9.33/lib/libc.so]
Error 1


Thanks in advance!!




On Wed, Apr 11, 2012 at 12:10 AM, Khem Raj <raj.khem at gmail.com> wrote:
> On Tue, Apr 10, 2012 at 11:43 AM, Mike Frysinger <vapier at gentoo.org> wrote:
>> On Tuesday 10 April 2012 13:06:44 Alberich de megres wrote:
>>> After some testings, and check your script and link (thanks for both),
>>> i'm having a different problem:
>>>
>>> while building gcc step 2, and libgcc:
>>> libgcc/../gcc/libgcc2.c:29:
>>> /opt/x/usr/include/pthread.h:25:19: fatal error: sched.h: No such file
>>> or directory
>>>
>>> In pthread.h I can see the include line is this one:
>>> #include <sched.h>
>>>
>>> while headers are located at include/linux/sched.h
>>>
>>> shouldn't it be:
>>> #include <linux/sched.h>
>>
>> no.  uClibc provides sched.h.  you should see why it wasn't installed in the
>> uClibc headers stage.
>
> probably you dont have
> UCLIBC_HAS_REALTIME=y in .config
>
>> -mike
>>
>> _______________________________________________
>> uClibc mailing list
>> uClibc at uclibc.org
>> http://lists.busybox.net/mailman/listinfo/uclibc


More information about the uClibc mailing list