Summary: | sys-libs/libspe2-2.3.0_p135 fails to crosscompile: ./spebase/spebase.h:65:2: error: unknown type name 'pthread_mutex_t' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | [OLD] Core system | Assignee: | Luca Barbato <lu_zero> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Created attachment 346500 [details]
build.log
I am using cross-spu-elf/newlib-2.0.0. This affects cross-spu-elf/libspe2-2.2.80_p95-r1, too. Just that that version crosscompiles even worse, because it sets weird EXTRA_CFLAGS in make.defines. pkg is gone from tree |
If you need additional information, please ask. >>> Compiling source in /var/tmp/portage/cross-spu-elf/libspe2-2.3.0_p135/work/libspe2-2.3.0 ... spu-elf-gcc -O2 -Wall -I. -fPIC -I./include -fexceptions -std=gnu99 -Wformat -Wdisabled-optimization -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -Wnested-ex terns -Winline -Wformat -I./spebase -I./speevent -c -o libspe2.o libspe2.c In file included from libspe2.c:33:0: ./spebase/spebase.h:65:2: error: unknown type name 'pthread_mutex_t' In file included from libspe2.c:34:0: ./speevent/speevent.h:37:3: error: unknown type name 'pthread_mutex_t' ./speevent/speevent.h:38:3: error: unknown type name 'pthread_mutex_t' make: *** [libspe2.o] Error 1 I tried defining _POSIX_THREADS, but that leads to other problems in system headers, and thus is probably not the way to go. Reproducible: Always