Mac OS X 10.5

Carlos Santander csantander619 at gmail.com
Wed Oct 31 08:49:32 PDT 2007


Anders F Bjöšrklund escribió:
> Dave Cheney wrote:
> 
>> I haven't had any luck compiling gdc from svn yet as the only apple 
>> compiler sources available are gcc-5363, which is from the tiger 
>> series. It appears that the gcc built into Leopard is build from 
>> revision 5465 which has just been released now. If I have any luck 
>> building against leopards gcc i'll report it to this list
> 
> As reported earlier, the check in setup-gcc.sh for "Apple Computer"
> doesn't match the new "Apple the Phone company", errr, "Apple Inc.":
> 
> grep version_string gcc/version.c | grep -qF '(Apple Computer, Inc.'
> const char version_string[] = "4.0.1 (Apple Inc. build 5465)";
> 
> It should instead be: if grep -q 'Apple version' gcc/version.c; then
> so that the correct GCC patch is used, and build_gcc needs fixing up.
> 
> But then the build is on its way, let's see whether it completes/works.
> (I don't think there are too many differences actually, but we'll know)
> 
> --anders

Trying gcc-5465 now.

I added another if to setup-gcc.sh, since I don't know enough sh to do it better:

if grep version_string gcc/version.c | grep -qF '(Apple Inc.'; then
     gcc_apple=apple-
fi

But now I got a different error:

../../gcc-5465/gcc/d/d-lang.cc: In function 'void d_write_global_declarations()':
../../gcc-5465/gcc/d/d-lang.cc:670: warning: comparison between signed and 
unsigned integer expressions
../../gcc-5465/gcc/d/d-lang.cc: At global scope:
../../gcc-5465/gcc/d/d-lang.cc:1580: error: invalid conversion from 'char' to 
'tree_code_class'

I wonder if I should report it as a bug?

-- 
Carlos Santander Bernal


More information about the D.gnu mailing list