error using gcc 48 on PPC

Ken Cunningham ken.cunningham.webuse at gmail.com
Fri Apr 20 06:53:07 UTC 2018


In https://github.com/tpoechtrager/osxcross/issues/50  it is suggested that to link against the 10.4 SDK with PPC you need to use Tiger's linker. Well down the page.

I haven't tried that myself as yet.

There's lots of further good PPC lore there too....

K



> On Apr 19, 2018, at 23:17, Riccardo via macports-users <macports-users at lists.macports.org> wrote:
> 
> Hi,
> 
> When using gcc48 from macports on 10.5 Leopart PPC (trying to reporduce exact TenFourFox build environment needed) it will fail this way during configure:
> 
> Ever seen something like this? I  *think* gcc was installed from binary, I don't remember if you provide them, I just left ports running overnight to get all the stuff.
> 
> Riccardo
> 
> 
> checking for -allow_heap_execute option to ld... no
> checking whether the C++ compiler (/opt/local/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti ) actually is a C++ compiler... no
> configure: error: /opt/local/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti  failed to compile and link a simple C++ source.
> ------ config.log ------
> return 0;
> ; return 0; }
> configure:9529: checking for -allow_heap_execute option to ld
> configure:9540: /opt/local/bin/gcc-mp-4.8 -flax-vector-conversions -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic -o conftest  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -std=gnu99 -fno-strict-aliasing -fno-exceptions   -Wl,-allow_heap_execute conftest.c  1>&5
> ld: -allow_heap_execute option can only be used when linking for i386
> collect2: error: ld returned 1 exit status
> configure: failed program was:
> #line 9533 "configure"
> #include "confdefs.h"
> 
> int main() {
> return 0;
> ; return 0; }
> configure:10503: checking whether the C++ compiler (/opt/local/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti ) actually is a C++ compiler
> configure:10522: /opt/local/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic -o conftest  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti   conftest.C  1>&5
> ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/crt1.o, in section __TEXT,__text reloc 1: sectionForNum(4) section number not for any section for architecture ppc7450
> collect2: error: ld returned 1 exit status
> configure: failed program was:
> #line 10515 "configure"
> #include "confdefs.h"
> #include <new>
> int main() {
> int *foo = new int;
> ; return 0; }
> configure: error: /opt/local/bin/g++-mp-4.8 -flax-vector-conversions -fpermissive -O3 -mcpu=7450 -mtune=7450 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -read_only_relocs suppress -mdynamic-no-pic  -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-exceptions -fno-strict-aliasing -fno-rtti  failed to compile and link a simple C++ source.
> *** Fix above errors and then restart with\
>               "gmake -f client.mk build"
> gmake[2]: *** [/Users/multix/Documents/code/tenfourfox/client.mk:361: configure] Error 1
> gmake[2]: Leaving directory '/Users/multix/Documents/code/tenfourfox'
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20180419/69a2cb10/attachment.html>


More information about the macports-users mailing list