I see the same problem using gcc 4.3 and ccache when compiling gauche
0.8.14:

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -I../../gc/include    -g -O2 
-fPIC  -fomit-frame-pointer  -c thrlib.c
thrlib.stub: In function ‘thrlib_mutex_state’:
thrlib.stub:115: error: stray ‘#’ in program
thrlib.stub:115: error: expected ‘;’ before string constant
make: *** [thrlib.o] Fehler 1


The offending preprocessed code looks like:
j...@thialfi:~/down/scheme/gauche/debian/delme/Gauche-0.8.14/ext/threads$ 
/usr/bin/cpp-4.3 -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -I../../gc/include  
  -g -O2 -fPIC  -fomit-frame-pointer  -E thrlib.c|grep --context=5 '# 123 
\"thrlib.stub"'
[...]
((void)(
# 115 "thrlib.stub"
pthread_mutex_unlock(&((mutex)->mutex))));}# 123 "thrlib.stub"
SCM_RESULT=(r);}

Greetings,
Jens



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to