PPC cross with NPTL
Peter Schaefer
peter.schaefer@gmx.de
Wed Aug 3 21:48:00 GMT 2005
Am 03.08.2005 23:45, Peter Schaefer wrote:
> Am 03.08.2005 23:30, Paul Bilke wrote:
>
>>Using crosstool-0.37 I have been trying to build a PPC-604 with NPTL
>>target on x86 host. Multiple configurations fail with the same error but
>>the included info is for
>>gcc-4.0.0 and glibc-2.3.5
>>
>>It fails building the GLIB trying to create tcb-offsets.h
>>
>>It is trying to build the following from STDIN:
>>
>>#include <sysdep.h>
>>#include <tls.h>
>>void dummy(void) {
>># undef __thread_register
>># define __thread_register ((void *) 0)
>># define thread_offsetof(mem) ((void *) &THREAD_SELF->mem - (void *) 0)
>>#if TLS_MULTIPLE_THREADS_IN_TCB
>>asm ("@@@name@@@MULTIPLE_THREADS_OFFSET@@@value@@@%0@@@end@@@" : : "i"
>>(thread_offsetof (header.multiple_threads)));
>>#endif
>>asm ("@@@name@@@PID@@@value@@@%0@@@end@@@" : : "i" (thread_offsetof (pid)));
>>asm ("@@@name@@@TID@@@value@@@%0@@@end@@@" : : "i" (thread_offsetof (tid)));
>>}
>>
>>There seems to be issues on several arch's building this but I have yet
>>to find any resolution to this issue.
>>
>>Any help would be appreciated!
>
>
> You can try the following patch:
>
> [ snip ]
Forgot to say: Put it in patches/glibc-2.3.5.
Regards,
Peter
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list