Problems cross-compiling with clang 3.7 & 3.9 on 10.6
Mojca Miklavec
mojca at macports.org
Mon Mar 27 16:07:03 UTC 2017
On 27 March 2017 at 17:39, Mojca Miklavec wrote:
> 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
I'm sorry, that's probably closely related to
https://trac.macports.org/ticket/39052
I guess I forgot that I should not be using clang for cross-compiling for PPC.
I tried (not ever sure if that makes any sense):
sudo port -v -n upgrade --force libcxxabi +universal
universal_archs="x86_64 i386 ppc"
but I get another error:
ld: symbol dyld_stub_binder not found (normally in libSystem.dylib).
Needed to perform lazy binding to function _abort for architecture ppc
So I'll forget about clang & PPC. But it would still be nice to get
clang 3.9 working on 10.6.
Mojca
More information about the macports-dev
mailing list