Problems cross-compiling with clang 3.7 & 3.9 on 10.6

Mojca Miklavec mojca at macports.org
Mon Mar 27 15:39:58 UTC 2017


On 27 March 2017 at 17:14, Mojca Miklavec wrote:
> Hi,
>
> After a long time I tried cross-compiling a few things on 10.6, but
> most attempts failed:
>
>> clang-mp-3.4 -arch ppc test.c -o test
>
> [OK]

Plus another problem that I don't quite understand:

libtool: link: clang-mp-3.4 -Wimplicit -Wreturn-type
-Wdeclaration-after-statement -Wno-unknown-pragmas -arch ppc -isysroot
/Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -arch ppc
-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -o
kpseaccess access.o  -L/Developer/SDKs/MacOSX10.5.sdk/usr/lib
ld: absolute address to symbol ___stdoutp in a different linkage unit
not supported in _main from access.o
collect2: ld returned 1 exit status

Mojca


More information about the macports-dev mailing list