WORKAROUND for gmp 6.0.0 build on Mac OS X 10.4.11, gcc 4.0.1, build 5341

Michael Jones michael.jones28206.sf at gmail.com
Sun Nov 1 17:50:55 UTC 2015


The infamous Mac OS X build 5341 compiler bug (still working on this):

I seem to have found a workaround by capturing the "make check" shell
scripting and through "hacking" and tinkering discovered that if I
drop the "-mtune=970" option the object and binary created do not
return an "Illegal Instruction" error on invocation.  But, now, trying
to find a sophisticated method of doing this via ./configure.
**Note: building on Intel Mac OS X 10.5.8 had no issues!!  But, I need
10.4.11 since I have many apps that have not ported to later editions
of Mac OS X Intel/PPC.  And, I like having f95 and OpenCOBOL available
for PowerPC, since IBM XL Fortran has ceased being "open".

Enoch Michael Jones
Charlotte, NC


gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5341.obj~1/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8
--target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5341)



FAIL: reuse
=======================================================================================
1 of 14 tests failed
Please report to gmp-bugs at gmplib.org, see
https://gmplib.org/manual/Reporting-Bugs.html
=======================================================================================
make[4]: *** [check-TESTS] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2


======================================

===================
All 14 tests passed
===================
Making check in mpf
make  t-add t-sub t-conv t-sqrt t-sqrt_ui t-muldiv t-dm2exp reuse
t-cmp_d t-cmp_si t-div t-fits t-get_d t-get_d_2exp t-get_si t-get_ui
t-gsprec t-inp_str t-int_p t-mul_ui t-set t-set_q t-set_si t-set_ui
t-trunc t-ui_div t-eq
make[2]: `t-add' is up to date.
make[2]: `t-sub' is up to date.
make[2]: `t-conv' is up to date.
make[2]: `t-sqrt' is up to date.
make[2]: `t-sqrt_ui' is up to date.
make[2]: `t-muldiv' is up to date.
make[2]: `t-dm2exp' is up to date.
make[2]: `reuse' is up to date.
make[2]: `t-cmp_d' is up to date.
make[2]: `t-cmp_si' is up to date.
make[2]: `t-div' is up to date.
make[2]: `t-fits' is up to date.
make[2]: `t-get_d' is up to date.
make[2]: `t-get_d_2exp' is up to date.
make[2]: `t-get_si' is up to date.
make[2]: `t-get_ui' is up to date.
make[2]: `t-gsprec' is up to date.
make[2]: `t-inp_str' is up to date.
make[2]: `t-int_p' is up to date.
make[2]: `t-mul_ui' is up to date.
make[2]: `t-set' is up to date.
make[2]: `t-set_q' is up to date.
make[2]: `t-set_si' is up to date.
make[2]: `t-set_ui' is up to date.
make[2]: `t-trunc' is up to date.
make[2]: `t-ui_div' is up to date.
make[2]: `t-eq' is up to date.
make  check-TESTS
PASS: t-add
PASS: t-sub
PASS: t-conv
PASS: t-sqrt
PASS: t-sqrt_ui
PASS: t-muldiv
PASS: t-dm2exp
FAIL: reuse
PASS: t-cmp_d
PASS: t-cmp_si
PASS: t-div
PASS: t-fits
PASS: t-get_d
PASS: t-get_d_2exp
PASS: t-get_si
PASS: t-get_ui
PASS: t-gsprec
PASS: t-inp_str
PASS: t-int_p
PASS: t-mul_ui
PASS: t-set
PASS: t-set_q
PASS: t-set_si
PASS: t-set_ui
PASS: t-trunc
PASS: t-ui_div
PASS: t-eq
=======================================================================================
1 of 27 tests failed
Please report to gmp-bugs at gmplib.org, see
https://gmplib.org/manual/Reporting-Bugs.html
=======================================================================================
make[2]: *** [check-TESTS] Error 1
make[1]: *** [check-am] Error 2
make: *** [check-recursive] Error 1


More information about the gmp-bugs mailing list