Skip to content

pl-gcc build fails on static / shared gmp library  #72

Description

@lilgreenwein

I'm trying to build pl-gcc - gmp builds, then it moves on to mpfr which fails when looking for the gmp library:

Could not load program /opt/freeware/libexec/gcc/powerpc-ibm-aix7.2.0.0/8.1.0/cc1:
        Dependent module /tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp/.libs/libgmp.a(libgmp.so.10) could not be loaded.
        Member libgmp.so.10 is not found in archive

Looked for libgmp.so.10 and it is indeed not there:

ls -al /tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp/.libs
total 10424
drwxr-x---    2 root     system          256 Jul 19 08:40 ./
drwxr-x---   15 root     system         4096 Jul 19 08:40 ../
-rw-r-----    1 root     system      5326586 Jul 19 08:40 libgmp.a
lrwxrwxrwx    1 root     system           12 Jul 19 08:40 libgmp.la@ -> ../libgmp.la
-rw-r-----    1 root     system          746 Jul 19 08:40 libgmp.lai

gmp gets built with --disable-shared, went through the gmp config.log and verified that. I've tried updating configs/components/mpfr and configs/components/gcc, adding --disable-shared to each's configure, but it still fails at the same spot.

Is this an actual issue or am I looking in the wrong spot? Full config.log for mpfr:

 This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MPFR configure 2.4.2, which was
generated by GNU Autoconf 2.64.  Invocation command line was

  $ /tmp/tmp.LLCnjw6e5b/gcc-5.2.0/mpfr/configure --srcdir=../../gcc-5.2.0/mpfr --cache-file=./config.cache --prefix=/opt/pl-build-tools --disable-nls --disable-libgcj --disable-shared --disable-multilib --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-threads --enable-version-specific-runtime-libs --disable-libjava-multilib --enable-languages=c,c++ --program-transform-name=s,y,y, --disable-option-checking --build=powerpc-ibm-aix7.1.0.0 --host=powerpc-ibm-aix7.1.0.0 --target=powerpc-ibm-aix7.1.0.0 --disable-intermodule --enable-checking=yes,types --disable-coverage --enable-languages=c,c++ --disable-build-format-warnings --disable-shared --with-gmp-include=/tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp --with-gmp-lib=/tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp/.libs

## --------- ##
## Platform. ##
## --------- ##

hostname = scabbers
uname -m = 00C4BF874C00
uname -r = 2
uname -s = AIX
uname -v = 7

/usr/bin/uname -p = powerpc
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = 7.2.0.0
/bin/universe          = unknown

PATH: /usr/bin
PATH: /etc
PATH: /usr/sbin
PATH: /usr/ucb
PATH: /usr/bin/X11
PATH: /sbin
PATH: /usr/local/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2758: creating cache ./config.cache
configure:2871: checking for a BSD-compatible install
configure:2939: result: /tmp/tmp.LLCnjw6e5b/gcc-5.2.0/install-sh -c
configure:2950: checking whether build environment is sane
configure:3000: result: yes
configure:3141: checking for a thread-safe mkdir -p
configure:3180: result: ../../gcc-5.2.0/mpfr/install-sh -c -d
configure:3193: checking for gawk
configure:3220: result: gawk
configure:3231: checking whether gmake sets $(MAKE)
configure:3253: result: yes
configure:3325: checking whether to disable maintainer-specific portions of Makefiles
configure:3334: result: yes
configure:3357: checking build system type
configure:3371: result: powerpc-ibm-aix7.1.0.0
configure:3391: checking host system type
configure:3404: result: powerpc-ibm-aix7.1.0.0
configure:3566: checking for grep that handles long lines and -e
configure:3624: result: /usr/bin/grep
configure:3629: checking for egrep
configure:3691: result: /usr/bin/grep -E
configure:3696: checking for a sed that does not truncate output
configure:3760: result: /usr/bin/sed
configure:3829: checking for powerpc-ibm-aix7.1.0.0-gcc
configure:3856: result: /usr/bin/gcc
configure:4125: checking for C compiler version
configure:4134: /usr/bin/gcc --version >&5
gcc (GCC) 8.1.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:4145: $? = 0
configure:4134: /usr/bin/gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix7.2.0.0/8.1.0/lto-wrapper
Target: powerpc-ibm-aix7.2.0.0
Configured with: ../gcc-8.1.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++,go --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --disable-werror --host=powerpc-ibm-aix7.2.0.0
Thread model: aix
gcc version 8.1.0 (GCC)
configure:4145: $? = 0
configure:4134: /usr/bin/gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4145: $? = 1
configure:4134: /usr/bin/gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:4145: $? = 1
configure:4167: checking for C compiler default output file name
configure:4189: /usr/bin/gcc -g  -I/tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp -static-libstdc++ -static-libgcc -Wl,-bbigtoc -L/tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp/.libs conftest.c  >&5
Could not load program /opt/freeware/libexec/gcc/powerpc-ibm-aix7.2.0.0/8.1.0/cc1:
        Dependent module /tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp/.libs/libgmp.a(libgmp.so.10) could not be loaded.
        Member libgmp.so.10 is not found in archive
configure:4193: $? = 1
configure:4230: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "2.4.2"
| #define PACKAGE_STRING "MPFR 2.4.2"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <stdio.h>
| int
| main ()
| {
| FILE *f = fopen ("conftest.out", "w");
|  return ferror (f) || fclose (f) != 0;
|
|   ;
|   return 0;
| }
configure:4236: error: in `/tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/mpfr':
configure:4239: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=powerpc-ibm-aix7.1.0.0
ac_cv_env_CCC_set=''
ac_cv_env_CCC_value=''
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-g
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_CXXCPP_set=''
ac_cv_env_CXXCPP_value=''
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=-g
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=/usr/bin/g++
ac_cv_env_F77_set=''
ac_cv_env_F77_value=''
ac_cv_env_FFLAGS_set=''
ac_cv_env_FFLAGS_value=''
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-static-libstdc++ -static-libgcc -Wl,-bbigtoc'
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=powerpc-ibm-aix7.1.0.0
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=powerpc-ibm-aix7.1.0.0
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=powerpc-ibm-aix7.1.0.0
ac_cv_host=powerpc-ibm-aix7.1.0.0
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_path_SED=/usr/bin/sed
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=/usr/bin/gcc
ac_cv_prog_make_gmake_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /tmp/tmp.LLCnjw6e5b/gcc-5.2.0/mpfr/missing --run aclocal-1.11'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /tmp/tmp.LLCnjw6e5b/gcc-5.2.0/mpfr/missing --run tar'
ANSI2KNR=''
AR='ar'
AS='as'
AUTOCONF='${SHELL} /tmp/tmp.LLCnjw6e5b/gcc-5.2.0/mpfr/missing --run autoconf'
AUTOHEADER='${SHELL} /tmp/tmp.LLCnjw6e5b/gcc-5.2.0/mpfr/missing --run autoheader'
AUTOMAKE='${SHELL} /tmp/tmp.LLCnjw6e5b/gcc-5.2.0/mpfr/missing --run automake-1.11'
AWK='gawk'
CC='/usr/bin/gcc'
CCDEPMODE=''
CFLAGS='-g'
CPP=''
CPPFLAGS=' -I/tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp'
CXX='/usr/bin/g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-g'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL='dlltool'
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
F77=''
FFLAGS=''
FGREP=''
GREP='/usr/bin/grep'
INSTALL_DATA='/tmp/tmp.LLCnjw6e5b/gcc-5.2.0/install-sh -c -m 644'
INSTALL_PROGRAM='/tmp/tmp.LLCnjw6e5b/gcc-5.2.0/install-sh -c'
INSTALL_SCRIPT='/tmp/tmp.LLCnjw6e5b/gcc-5.2.0/install-sh -c'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/usr/bin/ld'
LDFLAGS='-static-libstdc++ -static-libgcc -Wl,-bbigtoc -L/tmp/tmp.LLCnjw6e5b/obj-gcc-build-dir/./gmp/.libs'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='/tmp/tmp.LLCnjw6e5b/gcc-5.2.0/missing makeinfo --split-size=5000000 --split-size=5000000'
MKDIR_P='../../gcc-5.2.0/mpfr/install-sh -c -d'
MPFR_LIBM=''
NM='nm'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='mpfr'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='MPFR'
PACKAGE_STRING='MPFR 2.4.2'
PACKAGE_TARNAME='mpfr'
PACKAGE_URL=''
PACKAGE_VERSION='2.4.2'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
U=''
VERSION='2.4.2'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
ac_ct_F77=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='powerpc-ibm-aix7.1.0.0'
build_alias='powerpc-ibm-aix7.1.0.0'
build_cpu='powerpc'
build_os='aix7.1.0.0'
build_vendor='ibm'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='powerpc-ibm-aix7.1.0.0'
host_alias='powerpc-ibm-aix7.1.0.0'
host_cpu='powerpc'
host_os='aix7.1.0.0'
host_vendor='ibm'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /tmp/tmp.LLCnjw6e5b/gcc-5.2.0/mpfr/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='print -r'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/../../gcc-5.2.0/mpfr/install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/pl-build-tools'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='powerpc-ibm-aix7.1.0.0'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "MPFR"
#define PACKAGE_TARNAME "mpfr"
#define PACKAGE_VERSION "2.4.2"
#define PACKAGE_STRING "MPFR 2.4.2"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions