Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 467094

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

Description Dennis Schridde 2013-04-24 18:22:30 UTC
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
Comment 1 Dennis Schridde 2013-04-24 18:23:11 UTC
Created attachment 346500 [details]
build.log
Comment 2 Dennis Schridde 2013-04-24 18:24:47 UTC
I am using cross-spu-elf/newlib-2.0.0.
Comment 3 Dennis Schridde 2013-04-24 18:30:27 UTC
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.
Comment 4 Aaron Bauman (RETIRED) gentoo-dev 2019-12-09 21:20:38 UTC
pkg is gone from tree