Prefix on Darwin, ppc64

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Prefix on Darwin, ppc64

Johan Hattne-4
Dear all;

I’m lead to believe that there’s at least one other person with a 64-bit PPC Mac at hand.  I see this problem with the linker when I try to build e.g. gcc-apple:

powerpc64-apple-darwin9-gcc -m64 -std=gnu89   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o darwin-c.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
  main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a -L/home/hattne/Gentoo/usr/lib -lintl -L/home/hattne/Gentoo/usr/lib -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
ld: bl out of range (-17201436 max is +/-16M) from _predict_loops at 0x101321154 in __text of libbackend.a(predict.o) to _scev_initialize at 0x1002B9878 in __text of  libbackend.a(tree-scalar-evolution.o) in _predict_loops from libbackend.a(predict.o)
collect2: error: ld returned 1 exit status

This is within an old prefix, with 4.2.1_p5666-r1 and binutils-apple-3.2.6.  I’ve googled a bit, but haven’t found anything.  Is the above something anybody recognizes?

// Best wishes; Johan
Reply | Threaded
Open this post in threaded view
|

Re: Prefix on Darwin, ppc64

Francois Bissey
I think it looks like
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37632
It seems like your initial compiler is at fault.
At the very least gcc spits out impossible assembly,
you cannot branch that far on ppc64.
Can you build clang on that machine?

François

> On 11/09/2019, at 12:08 PM, Johan Hattne <[hidden email]> wrote:
>
> Dear all;
>
> I’m lead to believe that there’s at least one other person with a 64-bit PPC Mac at hand.  I see this problem with the linker when I try to build e.g. gcc-apple:
>
> powerpc64-apple-darwin9-gcc -m64 -std=gnu89   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o darwin-c.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
>  main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a -L/home/hattne/Gentoo/usr/lib -lintl -L/home/hattne/Gentoo/usr/lib -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
> ld: bl out of range (-17201436 max is +/-16M) from _predict_loops at 0x101321154 in __text of libbackend.a(predict.o) to _scev_initialize at 0x1002B9878 in __text of  libbackend.a(tree-scalar-evolution.o) in _predict_loops from libbackend.a(predict.o)
> collect2: error: ld returned 1 exit status
>
> This is within an old prefix, with 4.2.1_p5666-r1 and binutils-apple-3.2.6.  I’ve googled a bit, but haven’t found anything.  Is the above something anybody recognizes?
>
> // Best wishes; Johan

Reply | Threaded
Open this post in threaded view
|

Re: Prefix on Darwin, ppc64

Fabian Groffen-2
In reply to this post by Johan Hattne-4
Hmmmm, I gave up on ppc64, I tried not too long ago, but ran in these
kinds of errors.  I'm surprised it ever worked, actually!  ppc-macos
should be fine though, using gcc-8, clang is a no-go on ppc.

Fabian

On 10-09-2019 17:08:22 -0700, Johan Hattne wrote:

> Dear all;
>
> I’m lead to believe that there’s at least one other person with a 64-bit PPC Mac at hand.  I see this problem with the linker when I try to build e.g. gcc-apple:
>
> powerpc64-apple-darwin9-gcc -m64 -std=gnu89   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H  -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o darwin-c.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
>   main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a -L/home/hattne/Gentoo/usr/lib -lintl -L/home/hattne/Gentoo/usr/lib -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
> ld: bl out of range (-17201436 max is +/-16M) from _predict_loops at 0x101321154 in __text of libbackend.a(predict.o) to _scev_initialize at 0x1002B9878 in __text of  libbackend.a(tree-scalar-evolution.o) in _predict_loops from libbackend.a(predict.o)
> collect2: error: ld returned 1 exit status
>
> This is within an old prefix, with 4.2.1_p5666-r1 and binutils-apple-3.2.6.  I’ve googled a bit, but haven’t found anything.  Is the above something anybody recognizes?
>
> // Best wishes; Johan
--
Fabian Groffen
Gentoo on a different level

signature.asc (499 bytes) Download Attachment