LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-23-2020, 02:15 PM   #1
Pipeline79
Member
 
Registered: Sep 2018
Location: Kent, United Kingdom
Distribution: Slackware 14.2
Posts: 33

Rep: Reputation: Disabled
multilib enable produces SBopkg failures "gcc is unable to produce executables"


Since upgrading my quite fresh Slackware 14.2 64 to multilib, following the Quick and Dirty instructions to the letter (I think), I cannot compile anything with gcc.
I get:

Code:
gcc is unable to create an executable file.
With everything in sbopkg.
I have gcc and glibc versions 5.5.0 & 2.23 multilib.
The build/config.log says this:-

Code:
     1  This file contains any messages produced by compilers while
     2  running configure, to aid debugging if configure makes a mistake.
     3  
     4  It was created by atomicparsley configure 0.9.6, which was
     5  generated by GNU Autoconf 2.69.  Invocation command line was
     6  
     7    $ ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstate
dir=/var --mandir=/usr/man --infodir=/usr/info --docdir=/usr/doc/AtomicParsley-0.9.6 --b
uild=x86_64-slackware-linux
     8  
     9  ## --------- ##
    10  ## Platform. ##
    11  ## --------- ##
    12  
    13  hostname = slackware
    14  uname -m = x86_64
    15  uname -r = 4.4.208
    16  uname -s = Linux
    17  uname -v = #1 SMP Wed Jan 8 15:23:19 CST 2020
    18  
    19  /usr/bin/uname -p = Intel(R) Core(TM) i5-3380M CPU @ 2.90GHz
    20  /bin/uname -X     = unknown
    21  
    22  /bin/arch              = x86_64
    23  /usr/bin/arch -k       = unknown
    24  /usr/convex/getsysinfo = unknown
    25  /usr/bin/hostinfo      = unknown
    26  /bin/machine           = unknown
    27  /usr/bin/oslevel       = unknown
    28  /bin/universe          = unknown
    29  
    30  PATH: /opt/lxd/bin
    31  PATH: /usr/lib64/go1.13.7/go/bin
    32  PATH: /usr/local/bin
    33  PATH: /usr/bin
    34  PATH: /bin
    35  PATH: /usr/games
    36  PATH: /usr/lib64/kde4/libexec
    37  PATH: /usr/lib64/qt/bin
    38  PATH: /usr/lib64/qt5/bin
    39  PATH: /usr/share/texmf/bin
    40  PATH: /usr/local/sbin
    41  PATH: /usr/sbin
    42  PATH: /sbin
    43  
    44  
    45  ## ----------- ##
    46  ## Core tests. ##
    47  ## ----------- ##
    48  
    49  configure:2526: checking for a BSD-compatible install
    50  configure:2594: result: /usr/bin/ginstall -c
    51  configure:2605: checking whether build environment is sane
    52  configure:2660: result: yes
    53  configure:2811: checking for a thread-safe mkdir -p
    54  configure:2850: result: /usr/bin/mkdir -p
    55  configure:2857: checking for gawk
    56  configure:2873: found /usr/bin/gawk
    57  configure:2884: result: gawk
    58  configure:2895: checking whether make sets $(MAKE)
    59  configure:2917: result: yes
    60  configure:2946: checking whether make supports nested variables
    61  configure:2963: result: yes
    62  configure:3094: checking build system type
    63  configure:3108: result: x86_64-slackware-linux-gnu
    64  configure:3128: checking host system type
    65  configure:3141: result: x86_64-slackware-linux-gnu
    66  configure:3261: checking for gcc
    67  configure:3277: found /usr/bin/gcc
    68  configure:3288: result: gcc
    69  configure:3517: checking for C compiler version
    70  configure:3526: gcc --version >&5
    71  gcc (GCC) 5.5.0
    72  Copyright (C) 2015 Free Software Foundation, Inc.
    73  This is free software; see the source for copying conditions.  There is NO
    74  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    75  
    76  configure:3537: $? = 0
    77  configure:3526: gcc -v >&5
    78  Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/5.5.0/specs
    79  COLLECT_GCC=gcc
    80  COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/5.5.0/lto-wrapper
    81  Target: x86_64-slackware-linux
    82  Configured with: ../gcc-5.5.0/configure --prefix=/usr --libdir=/usr/lib64 --mand
ir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ad
a,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enab
le-objc-gc --with-system-zlib --with-python-dir=/lib64/python2.7/site-packages --enable-
libstdcxx-dual-abi --with-default-libstdcxx-abi=gcc4-compatible --disable-libunwind-exce
ptions --enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty --
with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib64/jvm/jre --with-jvm-
root-dir=/usr/lib64/jvm --with-jvm-jar-dir=/usr/lib64/jvm/jvm-exports --with-arch-direct
ory=amd64 --with-antlr-jar=/home/slackware/slackbuilds/gcc-5.5.0/antlr-runtime-3.4.jar -
-enable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x
86_64-slackware-linux
    83  Thread model: posix
    84  gcc version 5.5.0 (GCC)
    85  configure:3537: $? = 0
    86  configure:3526: gcc -V >&5
    87  gcc: error: unrecognized command line option '-V'
    88  gcc: fatal error: no input files
    89  compilation terminated.
    90  configure:3537: $? = 1
    91  configure:3526: gcc -qversion >&5
    92  gcc: error: unrecognized command line option '-qversion'
    93  gcc: fatal error: no input files
    94  compilation terminated.
    95  configure:3537: $? = 1
    96  configure:3557: checking whether the C compiler works
    97  configure:3579: gcc -O2 -fPIC   conftest.c  >&5
    98  gcc: error trying to exec 'as': execvp: No such file or directory
    99  configure:3583: $? = 1
   100  configure:3621: result: no
   101  configure: failed program was:
   102  | /* confdefs.h */
   103  | #define PACKAGE_NAME "atomicparsley"
   104  | #define PACKAGE_TARNAME "atomicparsley"
   105  | #define PACKAGE_VERSION "0.9.6"
   106  | #define PACKAGE_STRING "atomicparsley 0.9.6"
   107  | #define PACKAGE_BUGREPORT "http://bitbucket.org/wez/atomicparsley/issues/new/"
   108  | #define PACKAGE_URL ""
   109  | #define PACKAGE "atomicparsley"
   110  | #define VERSION "0.9.6"
   111  | /* end confdefs.h.  */
   112  |
   113  | int
   114  | main ()
   115  | {
   116  |
   117  |   ;
   118  |   return 0;
   119  | }
   120  configure:3626: error: in `/tmp/SBo/wez-atomicparsley-da2f6e4fc120':
   121  configure:3628: error: C compiler cannot create executables
   122  See `config.log' for more details
   123  
   124  ## ---------------- ##
   125  ## Cache variables. ##
   126  ## ---------------- ##
   127  
   128  ac_cv_build=x86_64-slackware-linux-gnu
   129  ac_cv_env_CCC_set=
   130  ac_cv_env_CCC_value=
   131  ac_cv_env_CC_set=
   132  ac_cv_env_CC_value=
   133  ac_cv_env_CFLAGS_set=set
   134  ac_cv_env_CFLAGS_value='-O2 -fPIC'
   135  ac_cv_env_CPPFLAGS_set=
   136  ac_cv_env_CPPFLAGS_value=
   137  ac_cv_env_CPP_set=
   138  ac_cv_env_CPP_value=
   139  ac_cv_env_CXXFLAGS_set=set
   140  ac_cv_env_CXXFLAGS_value='-O2 -fPIC'
   141  ac_cv_env_CXX_set=
   142  ac_cv_env_CXX_value=
   143  ac_cv_env_LDFLAGS_set=
   144  ac_cv_env_LDFLAGS_value=
   145  ac_cv_env_LIBS_set=
   146  ac_cv_env_LIBS_value=
   147  ac_cv_env_OBJCFLAGS_set=
   148  ac_cv_env_OBJCFLAGS_value=
   149  ac_cv_env_OBJCXXFLAGS_set=
   150  ac_cv_env_OBJCXXFLAGS_value=
   151  ac_cv_env_OBJCXX_set=
   152  ac_cv_env_OBJCXX_value=
   153  ac_cv_env_OBJC_set=
   154  ac_cv_env_OBJC_value=
   155  ac_cv_env_build_alias_set=set
   156  ac_cv_env_build_alias_value=x86_64-slackware-linux
   157  ac_cv_env_host_alias_set=
   158  ac_cv_env_host_alias_value=
   159  ac_cv_env_target_alias_set=
   160  ac_cv_env_target_alias_value=
   161  ac_cv_host=x86_64-slackware-linux-gnu
   162  ac_cv_path_install='/usr/bin/ginstall -c'
   163  ac_cv_path_mkdir=/usr/bin/mkdir
   164  ac_cv_prog_AWK=gawk
   165  ac_cv_prog_ac_ct_CC=gcc
   166  ac_cv_prog_make_make_set=yes
   167  am_cv_make_support_nested_variables=yes
   168  
   169  ## ----------------- ##
   170  ## Output variables. ##
   171  ## ----------------- ##
   172  
   173  ACLOCAL='${SHELL} /tmp/SBo/wez-atomicparsley-da2f6e4fc120/missing aclocal-1.15'
   174  AMTAR='$${TAR-tar}'
   175  AM_BACKSLASH='\'
   176  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   177  AM_DEFAULT_VERBOSITY='1'
   178  AM_V='$(V)'
   179  AP_64_ARCH=''
   180  AP_CROSS_ARCH=''
   181  AP_NATIVE_ARCH=''
   182  AUTOCONF='${SHELL} /tmp/SBo/wez-atomicparsley-da2f6e4fc120/missing autoconf'
   183  AUTOHEADER='${SHELL} /tmp/SBo/wez-atomicparsley-da2f6e4fc120/missing autoheader'
   184  AUTOMAKE='${SHELL} /tmp/SBo/wez-atomicparsley-da2f6e4fc120/missing automake-1.15
'
   185  AWK='gawk'
   186  CC='gcc'
   187  CFLAGS='-O2 -fPIC'
   188  CPP=''
   189  CPPFLAGS=''
   190  CXX=''
   191  CXXFLAGS='-O2 -fPIC'
   192  CYGPATH_W='echo'
   193  DARWIN_FALSE=''
   194  DARWIN_TRUE=''
   195  DEFS=''
   196  ECHO_C=''
   197  ECHO_N='-n'
   198  ECHO_T=''
   199  EGREP=''
   200  EXEEXT=''
   201  GREP=''
   202  HAVE_DARWIN_PLATFORM='false'
   203  HAVE_GETOPT_H=''
   204  HAVE_LIBZ=''
   205  INSTALL_DATA='${INSTALL} -m 644'
   206  INSTALL_PROGRAM='${INSTALL}'
   207  INSTALL_SCRIPT='${INSTALL}'
   208  INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
   209  LDFLAGS=''
   210  LIBOBJS=''
   211  LIBS=''
   212  LTLIBOBJS=''
   213  MAKEINFO='${SHELL} /tmp/SBo/wez-atomicparsley-da2f6e4fc120/missing makeinfo'
   214  MKDIR_P='/usr/bin/mkdir -p'
   215  NEED_GETOPT_FALSE=''
   216  NEED_GETOPT_TRUE=''
   217  OBJC=''
   218  OBJCFLAGS=''
   219  OBJCXX=''
   220  OBJCXXFLAGS=''
   221  OBJEXT=''
   222  PACKAGE='atomicparsley'
   223  PACKAGE_BUGREPORT='http://bitbucket.org/wez/atomicparsley/issues/new/'
   224  PACKAGE_NAME='atomicparsley'
   225  PACKAGE_STRING='atomicparsley 0.9.6'
   226  PACKAGE_TARNAME='atomicparsley'
   227  PACKAGE_URL=''
   228  PACKAGE_VERSION='0.9.6'
   229  PATH_SEPARATOR=':'
   230  SET_MAKE=''
   231  SHELL='/bin/sh'
   232  STRIP=''
   233  UNIVERSAL_FALSE=''
   234  UNIVERSAL_FLAGS=''
   235  UNIVERSAL_TRUE=''
   236  VERSION='0.9.6'
   237  ac_ct_CC='gcc'
   238  ac_ct_CXX=''
   239  ac_ct_OBJC=''
   240  ac_ct_OBJCXX=''
   241  am__EXEEXT_FALSE=''
   242  am__EXEEXT_TRUE=''
   243  am__isrc=''
   244  am__leading_dot='.'
   245  am__tar='$${TAR-tar} chof - "$$tardir"'
   246  am__untar='$${TAR-tar} xf -'
   247  bindir='${exec_prefix}/bin'
   248  build='x86_64-slackware-linux-gnu'
   249  build_alias='x86_64-slackware-linux'
   250  build_cpu='x86_64'
   251  build_os='linux-gnu'
   252  build_vendor='slackware'
   253  datadir='${datarootdir}'
   254  datarootdir='${prefix}/share'
   255  debug=''
   256  docdir='/usr/doc/AtomicParsley-0.9.6'
   257  dvidir='${docdir}'
   258  exec_prefix='NONE'
   259  host='x86_64-slackware-linux-gnu'
   260  host_alias=''
   261  host_cpu='x86_64'
   262  host_os='linux-gnu'
   263  host_vendor='slackware'
   264  htmldir='${docdir}'
   265  includedir='${prefix}/include'
   266  infodir='/usr/info'
   267  install_sh='${SHELL} /tmp/SBo/wez-atomicparsley-da2f6e4fc120/install-sh'
   268  libdir='/usr/lib64'
   269  libexecdir='${exec_prefix}/libexec'
   270  localedir='${datarootdir}/locale'
   271  localstatedir='/var'
   272  mandir='/usr/man'
   273  mkdir_p='$(MKDIR_P)'
   274  oldincludedir='/usr/include'
   275  pdfdir='${docdir}'
   276  prefix='/usr'
   277  program_transform_name='s,x,x,'
   278  psdir='${docdir}'
   279  sbindir='${exec_prefix}/sbin'
   280  sharedstatedir='${prefix}/com'
   281  sysconfdir='/etc'
   282  target_alias=''
   283  universal='no'
   284  
   285  ## ----------- ##
   286  ## confdefs.h. ##
   287  ## ----------- ##
   288  
   289  /* confdefs.h */
   290  #define PACKAGE_NAME "atomicparsley"
   291  #define PACKAGE_TARNAME "atomicparsley"
   292  #define PACKAGE_VERSION "0.9.6"
   293  #define PACKAGE_STRING "atomicparsley 0.9.6"
   294  #define PACKAGE_BUGREPORT "http://bitbucket.org/wez/atomicparsley/issues/new/"
   295  #define PACKAGE_URL ""
   296  #define PACKAGE "atomicparsley"
   297  #define VERSION "0.9.6"
   298  
   299  configure: exit 77
I can't think what I could have changed from when it was compiling fine in 64-only state to multilib-enabled state, apart from the multilib libraries.
 
Old 02-24-2020, 03:29 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
There's several errors there that I can see.
Code:
86  configure:3526: gcc -V >&5
    87  gcc: error: unrecognized command line option '-V'
    88  gcc: fatal error: no input files
    89  compilation terminated.
    90  configure:3537: $? = 1
    91  configure:3526: gcc -qversion >&5
    92  gcc: error: unrecognized command line option '-qversion'
    93  gcc: fatal error: no input files
    94  compilation terminated.
    95  configure:3537: $? = 1
    96  configure:3557: checking whether the C compiler works
    97  configure:3579: gcc -O2 -fPIC   conftest.c  >&5
    98  gcc: error trying to exec 'as': execvp: No such file or directory
    99  configure:3583: $? = 1
   100  configure:3621: result: no
   101  configure: failed program was:
   102  | /* confdefs.h */
   103  | #define PACKAGE_NAME "atomicparsley"
   104  | #define PACKAGE_TARNAME "atomicparsley"
   105  | #define PACKAGE_VERSION "0.9.6"
   106  | #define PACKAGE_STRING "atomicparsley 0.9.6"
   107  | #define PACKAGE_BUGREPORT "http://bitbucket.org/wez/atomicparsley/issues/new/"
   108  | #define PACKAGE_URL ""
   109  | #define PACKAGE "atomicparsley"
   110  | #define VERSION "0.9.6"
   111  | /* end confdefs.h.  */
   112  |
   113  | int
   114  | main ()
   115  | {
   116  |
   117  |   ;
   118  |   return 0;
   119  | }
   120  configure:3626: error: in `/tmp/SBo/wez-atomicparsley-da2f6e4fc120':
   121  configure:3628: error: C compiler cannot create executables
   122  See `config.log' for more details
Looks like something's up with gcc. Try these two commands
Code:
which as
ldd /usr/bin/gcc |grep found
If either give suspicious outputs, reinstall gcc and try again.

EDIT: With Compat32, there's a bunch of gcc and glibc packages which have 64 bit packages with 32bit compatibility libs. Did you install those? If not, install what you need from them with upgradepkg --reinstall --install-new

Last edited by business_kid; 02-24-2020 at 04:15 AM.
 
Old 02-24-2020, 05:08 AM   #3
Pipeline79
Member
 
Registered: Sep 2018
Location: Kent, United Kingdom
Distribution: Slackware 14.2
Posts: 33

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Looks like something's up with gcc. Try these two commands
Code:
which as
ldd /usr/bin/gcc |grep found
If either give suspicious outputs, reinstall gcc and try again.

EDIT: With Compat32, there's a bunch of gcc and glibc packages which have 64 bit packages with 32bit compatibility libs. Did you install those? If not, install what you need from them with upgradepkg --reinstall --install-new
Those two commands tell me "as" is not in my path and there is no 'found' for /usr/bin/gcc.

Code:
root@slackware:~# ldd /usr/bin/gcc            
        linux-vdso.so.1 (0x00007ffed3907000)
        libm.so.6 => /lib64/libm.so.6 (0x00007ff036540000)
        libc.so.6 => /lib64/libc.so.6 (0x00007ff036177000)
        /lib64/ld-linux-x86-64.so.2 (0x00007ff036849000)
I already tried reinstalling all the packages that this command on the slackdocs multilib guide grabbed:

Code:
lftp -c "open http://bear.alienbase.nl/mirrors/people/alien/multilib/ ; mirror -c -e ${SLACKVER}"
But I did it again anyway, and those two commands gave the same thing.

A slackpkg file-search for "as" showed some weird things at the bottom of the list, offering several packages to upgrade to a lower version, so they come back again on the next search.
But binutils was there and when I upgraded it to whichever version it was no longer on the list and has provided the necessary as binary and everything is working again.

Thanks for your help.

Last edited by Pipeline79; 02-24-2020 at 05:52 AM.
 
Old 02-24-2020, 01:29 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Quote:
Originally Posted by Pipeline79
Those two commands tell me "as" is not in my path and there is no 'found' for /usr/bin/gcc.
The 'found' is part of 'not found' so that's a good thing. /usr/bin/as should be part of the binutils package so install that if it's not there, or reinstall it. It should be in the d/ directory on the dvd.

Upgradepkg --reinstall /path/to/binutils*.txz
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 14.2 multilib - Unable to upgrade mpd via sbopkg glupa4e Slackware 2 01-26-2017 01:43 PM
[SOLVED] LFS 7.9: 6.17 GCC-5.3.0: unexpected failures in gcc tests sudo_maas Linux From Scratch 4 06-23-2016 08:19 AM
Of "libvte2_90.so.9" not existing on a Peppermint Six machine and GCC "being unable to create executables" DerAxeEffekt Linux - Newbie 3 12-22-2015 03:34 AM
[SOLVED] Joomla Drupal Update failures and Install from URL failures JimJS Linux - Desktop 4 05-26-2014 04:40 PM
default gcc installed from hardy cd does not produce executables raphtor Linux - Newbie 6 12-30-2008 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration