Mac OS X 10.5

Carlos Santander csantander619 at gmail.com
Wed Oct 31 08:59:51 PDT 2007


Carlos Santander escribió:
> 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?
> 

Oh, and setup-gcc.sh also failed, but I went ahead anyway. This is the relevant 
section:

patching file build_gcc
Hunk #1 succeeded at 114 (offset 8 lines).
Hunk #2 FAILED at 149.
Hunk #3 FAILED at 246.
Hunk #4 succeeded at 288 (offset 18 lines).
Hunk #5 succeeded at 304 (offset 18 lines).
Hunk #6 succeeded at 354 (offset -7 lines).
Hunk #7 succeeded at 419 with fuzz 2 (offset -4 lines).
Hunk #8 FAILED at 437.
3 out of 8 hunks FAILED -- saving rejects to file build_gcc.rej


-- 
Carlos Santander Bernal


More information about the D.gnu mailing list