Kai Ruottu kirjoitti 4.11.2020 klo 2.41:
Chris Pittsley kirjoitti 3.11.2020 klo 22.14:
Error occurs in the while making libmpn, which is the first thing to
be compiled:
libtool: link: ar rc .libs/libmpn.a fib_table.o mp_bases.o add.o add_1.o
add_n.o sub.o sub_1.o sub_n.o cnd_add_n.o cnd_sub_n.o
<clip>
Could you please check the sanity of '.libs/libmpn.a' with 'ar t' etc ?
libtool: link: ranlib .libs/libmpn.a
ar: 0707-108 File .libs/libmpn.a is not an archive file.
ranlib: 0654-601 Execution of ar failed
Using 'ranlib' seems to be vain in AIX :
http://ps-2.kev009.com/tl/techlib/qna/wwqa/html/RISCO/rta38149.htm
So this seems to be some problem with the native AIX binutils...
This was forgotten in the error notifications :
Usage: ranlib [-t] [-X {32|64|32_64}] [--] file ...
When I looked in the 'gcc-9.3.0/configure' there was this :
*-*-aix4.[3456789]* | *-*-aix[56789].*)
# nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
# commands to handle both 32-bit and 64-bit objects. These flags are
# harmless if we're using GNU nm or ar.
extra_arflags_for_target=" -X32_64"
extra_nmflags_for_target=" -B -X32_64"
;;
Why this wasn't forwarded into your Makefile(s) is one question... How did
you configured your GCC build when the '*-*-aix[56789].*' template didn't match
to your $host/$target name?