[prev in list] [next in list] [prev in thread] [next in thread]
List: pcc-list
Subject: Re: pcc unusable on Darwin (powerpc)?
From: Anders Magnusson <ragge () ludd ! ltu ! se>
Date: 2008-05-06 9:50:19
Message-ID: 482029DB.7040803 () ludd ! ltu ! se
[Download RAW message or body]
Gregory McGarry wrote:
>
>
>> Hi all,
>>
>> these are the problems with pcc on Darwin/macppc (Leopard too):
>>
>> $ pcc -v hello.o
>> pcc 0.9.9 for powerpc-apple-darwin9.2.0, [...]
>> ld -v -X -d -e start /usr/lib/crt1.o -lcrt2.o \
>> -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 hello.o -lSystem -lgcc [...]
>> ld64: warning: option -X is obsolete and being ignored
>> ld: library not found for -lcrt2.o
>>
>> $ gcc -v hello.o
>> [...]
>> /usr/libexec/gcc/powerpc-apple-darwin9/4.0.1/collect2 -dynamic -arch
>> ppc \
>> -macosx_version_min 10.5.2 -weak_reference_mismatches non-weak -o
>> a.out -lcrt1.10.5.o \
>> -L/usr/lib/powerpc-apple-darwin9/4.0.1
>> -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 \
>> -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 \
>> -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/../../../powerpc-apple-darwin9/4.0.1
>> \
>> -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1/../../.. hello.o
>> -lgcc_s.10.5 -lgcc \
>> -lSystemStubs -lSystem
>>
>> So the libraries are different. Now what does it do?
>
> Maybe we should have powerpc-darwin8 and powerpc-darwin9 targets? Or
> maybe we should have our own C runtime and stop using the one in gcc?
We need that, yes, the current situation with hardcoded links depending
on where the OS gcc
is installed is just broken.
-- Ragge
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic