On Mon, Sep 09, 2002 at 03:18:44PM +0200, Rafael Garcia-Suarez wrote:
> > This Week on perl5-porters (2-8 September 2002)
> ....
> >     *Last minute update* : has Jarkko dreamed ? have the sunspots moved ?
> >     He's apparently no longer able to reproduce this bug.
> 
> And moreover Jarkko was referring to another bug. Compilation of 5.8.0 on Jaguar
> with the August Developers Tools is reproducibly broken. Thanks to Jarkko for
> pointing this out.

Recent changes, presumably in the gcc -I/usr/local/include checking code,
cause things to break when using ccache with gcc 3.2 (and presumably 3.1):

diff between config.sh generated with and without ccache:

--- config.sh.ccache    Mon Sep  9 14:24:48 2002
+++ config.sh   Mon Sep  9 14:30:44 2002
@@ -11 +11 @@
-# Configuration time: Mon Sep  9 14:23:16 BST 2002
+# Configuration time: Mon Sep  9 14:29:16 BST 2002
@@ -56 +56 @@
-cc='ccache /usr/local/bin/gcc'
+cc='/usr/local/bin/gcc'
@@ -59 +59 @@
-ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING 
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm'
+ccflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING 
+-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm'
@@ -66 +66 @@
-cf_time='Mon Sep  9 14:23:16 BST 2002'
+cf_time='Mon Sep  9 14:29:16 BST 2002'
@@ -80 +80 @@
-cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING 
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
+cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING 
+-fno-strict-aliasing -I/usr/include/gdbm'
@@ -83,2 +83,2 @@
-cpprun='ccache /usr/local/bin/gcc -E'
-cppstdin='ccache /usr/local/bin/gcc -E'
+cpprun='/usr/local/bin/gcc -E'
+cppstdin='/usr/local/bin/gcc -E'
@@ -113 +113 @@
-d_attribut='undef'
+d_attribut='define'
@@ -485,2 +485,2 @@
-db_hashtype='int'
-db_prefixtype='int'
+db_hashtype='u_int32_t'
+db_prefixtype='size_t'
@@ -705 +705 @@
-locincpth='/usr/local/include /opt/local/include /usr/gnu/include /opt/gnu/include 
/usr/GNU/include /opt/GNU/include'
+locincpth=' /opt/local/include /usr/gnu/include /opt/gnu/include /usr/GNU/include 
+/opt/GNU/include '
@@ -970 +970 @@
-config_args='-de -Dusedevel -Dcc=ccache /usr/local/bin/gcc -Dld=gcc -Dusedevel 
-Ubincompat5005 -Doptimize=-g -Uinstallusrbinperl [EMAIL PROTECTED] 
[EMAIL PROTECTED] -Dinc_version_list= -Dinc_version_list_init=0 
-Dinstallman1dir=none -Dinstallman3dir=none -Dusethreads'
+config_args='-de -Dusedevel -Dcc=/usr/local/bin/gcc -Dld=gcc -Dusedevel 
+-Ubincompat5005 -Doptimize=-g -Uinstallusrbinperl [EMAIL PROTECTED] 
[EMAIL PROTECTED] -Dinc_version_list= -Dinc_version_list_init=0 
+-Dinstallman1dir=none -Dinstallman3dir=none -Dusethreads'
@@ -974 +974 @@
-config_arg3='-Dcc=ccache /usr/local/bin/gcc'
+config_arg3='-Dcc=/usr/local/bin/gcc'

Notice that with ccache -I/usr/local/bin is not being removed from the flags,
d_attribut is becoming 'undef', and db_hashtype and db_prefixtype both become
'int'.

I'm not sure what the cause is (yet) - ccache with gcc 2.95 on FreeBSD
works just fine.

Nicholas Clark

Reply via email to