[uClibc-cvs] [uClibc 0000317]: buildroot for sh4 stops with "undefined reference to `__sigprocmask'"

bugs at busybox.net bugs at busybox.net
Sun Aug 28 08:04:02 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=317 
====================================================================== 
Reported By:                hkubota
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   317
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             07-02-2005 20:11 PDT
Last Modified:              08-28-2005 01:04 PDT
====================================================================== 
Summary:                    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

====================================================================== 

---------------------------------------------------------------------- 
 hkubota - 07-02-05 20:15  
---------------------------------------------------------------------- 
Forgot to say: buildroot 10709 

---------------------------------------------------------------------- 
 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 

---------------------------------------------------------------------- 
 hkubota - 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.

 

---------------------------------------------------------------------- 
 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       
======================================================================




More information about the uClibc-cvs mailing list