PowerPC snapshot compilation failures
Joakim Tjernlund
joakim.tjernlund at transmode.se
Sun Sep 25 22:20:25 UTC 2005
>
> > > > > - vfork.S fails to compile. If the line #include <error.h> is
> > > > > wipped out from libc/sysdeps/linux/powerpc/bits/syscalls.h,
> > > > > everything seems to flow okay. As the intel file does not
> > > > > include this file, I'm assuming that it should not be
> there anyway.
> >
> > what is the failure?
> >
> > __set_errno is used and INTERNAL_SYSCALL_ERRNO, so maybe errno.h
> > should be included instead of error.h
> >
> It is:
>
> ../../../../include/errno.h: Assembler messages:
> ../../../../include/errno.h:32: Error: Unrecognized opcode:
> `__begin_decls'
> ../../../../include/errno.h:61: Error: Unrecognized opcode:
> `__end_decls'
>
> And it happens, as you might know, because the decls macros
> are not expanded while compiling the .S file. So, if I run
> the preprocessor alone into it, the definitions are there,
> and are understood as labels.
hmm, I think this change broke it
http://uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/include/features.h?rev=11524&r1=11100&r2=11524
The #include <sys/cdefs.h> was removed.
> > > > > ld -shared --warn-common --warn-once -z combreloc -z defs -s
> > > > > -soname=libdl.so.0 \ -o libdl-0.9.28.so -fini dl_cleanup
> > > > > --whole-archive libdl_pic.a \ --no-whole-archive
> > > > > ../..//libc/misc/internals/interp.o \ -L../..//lib -lc
> > > > > ../../lib/ld-uClibc.so.0
> > > > > /usr/lib/gcc-lib/powerpc-suse-linux/3.3.3/libgcc.a;
> > > > > ld: Error: The symbol `__syscall_error' has a R_PPC_REL24
> > > > > relocation, that means '../..//lib/libc.a(brk.o)' was
> compiled without -fPIC.
I wonder if not attribute_hidden has been lost for __syscall_error?
Jocke
More information about the uClibc
mailing list