This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: (bib) libobjc build failure


On Sun, Dec 01, 2002 at 11:13:50PM -0800, Zack Weinberg wrote:
> Zack Weinberg <zack@codesourcery.com> writes:
> > Nathanael Nerode <neroden@twcny.rr.com> writes:
> >> On b-i-b (i686-pc-linux-gnu), I'm getting a failure to build libobjc; 
> >> it's complaining that BITS_PER_UNIT is not defined in "encoding.c".
> >
> > This did not happen to me when I tested the patch.  I am trying to
> > reproduce the problem now.
> 
> I have reproduced the problem and devised a fix.  I am getting a lot
> of testsuite failures of the form
> 
> libobjc.a(thr-objc.o)(.text+0x46): In function `__objc_init_thread_system':
> gcc/gthr-posix.h:129: undefined reference to `pthread_key_create'
> 
> for no apparent reason.  However, the appended patch improves the

You can't include defaults.h without including some target files. In
this particular case, defaults.h doesn't know if SUPPORTS_WEAK should
be defined. It has been a long standing issue that a library may want
to know what features the target platform supports.



H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]