BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000317 [uClibc] Architecture Specific major always 07-02-05 20:11 08-28-05 01:04
Reporter hkubota View Status public  
Assigned To uClibc
Priority normal Resolution fixed  
Status closed   Product Version 0.9.27
Summary 0000317: buildroot for sh4 stops with "undefined reference to `__sigprocmask'"
Description When trying to use buildroot for sh4, I cannot get past creating uClibc as I get this error:
/export/sh4/buildroot/build_sh4/staging_dir/bin/sh4-linux-uclibc-ld -EL -shared --warn-common --warn-once -z combreloc -z defs -s -soname=libc.so.0 -o libuClibc-0.9.27.so \
        --whole-archive shared_libc.a \
        ../libc/misc/internals/interp.o --no-whole-archive \
        -init __uClibc_init ../lib/ld-uClibc.so.0 /export/sh4/buildroot/build_sh4/staging_dir/lib/gcc/sh4-linux-uclibc/3.4.4/libgcc.a
shared_libc.a(longjmp.o): In function `siglongjmp':
longjmp.c:(.text+0x40): undefined reference to `__sigprocmask'
make[2]: *** [shared] Error 1
Additional Information gcc-3.4.4 used as compiler and cross compiler. uClibc daily snapshot as of today.
Linux header 2.4.29 (2.6.11 gives me another error about asm/ucb.h missing, but that's a completely different problem).

When compiling for sh4 I also get some questions about CPU type and subtype. sh is not well supported it seems...
The questions are trivial to answer though. However the missing sigprocmask is not (for me). In glibc, there's a file sigprocmask.c which is missing in uClibc. Maybe that's all which is needed.
Attached Files

- Relationships

- Notes
(0000260)
hkubota
07-02-05 20:15

Forgot to say: buildroot 10709
 
(0000261)
hkubota
07-02-05 21:14

If I comment out the reference to __sigprocmask in longjmp.c, then I get another stop with __fpscr_values being undefined:
/export/sh4/buildroot/build_sh4/staging_dir/bin/sh4-linux-uclibc-ld -EL -shared --warn-common --warn-once -z combreloc -z defs -s -soname=libm.so.0 \
        -o libm-0.9.27.so --whole-archive libm.a \
        --no-whole-archive ../libc/misc/internals/interp.o \
        -L../lib -lc /export/sh4/buildroot/build_sh4/staging_dir/lib/gcc/sh4-linux-uclibc/3.4.4/libgcc.a
libm.a(fpmacros.o): In function `__fpclassifyf':
fpmacros.c:(.text+0x60): undefined reference to `__fpscr_values'
make[2]: *** [shared] Error 1

It is defined in crt0.S though:
#if defined __CONFIG_SH4__
       .global __fpscr_values
__fpscr_values:
       .long 0
       .long 0x80000
#endif

And __CONFIG_SH4__ is defined in include/bits/uClibc_config.h:
#define __CONFIG_SH4__ 1
 
(0000262)
hkubota
07-03-05 00:24
edited on: 07-03-05 08:13

Ok, after having a hard look at __fpscr_values the problem with it was found to be: .global does not work just like .globl which does not work either.
I'll post a bug report in the uClibc bug tracker

The problem with `__sigprocmask' remains.

 
(0000451)
vapier
08-28-05 01:04

this should be fixed in uClibc 0.9.28
 

- Issue History
Date Modified Username Field Change
07-02-05 20:11 hkubota New Issue
07-02-05 20:15 hkubota Note Added: 0000260
07-02-05 21:14 hkubota Note Added: 0000261
07-03-05 00:24 hkubota Note Added: 0000262
07-03-05 05:48 hkubota Note Edited: 0000262
07-03-05 08:12 hkubota Note Edited: 0000262
07-03-05 08:13 hkubota Note Edited: 0000262
08-28-05 01:03 vapier Project buildroot => uClibc
08-28-05 01:04 vapier Note Added: 0000451
08-28-05 01:04 vapier Status assigned => closed
08-28-05 01:04 vapier Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker