Find the answer to your Linux question:
Results 1 to 2 of 2
Hey guys, first of all, thanks for everyone who is reading this to help me. I have spent two days of googeling, tried everything and still have no solution for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2013
    Posts
    1

    Unhappy GCC - configure - cannot create executables


    Hey guys,

    first of all, thanks for everyone who is reading this to help me. I have spent two days of googeling, tried everything and still have no solution for my problem :/.

    The Problem: I need to install RVM (ruby version manager) to install a good version of ruby on my system. Actually it seems like there are no binary rubies for mint 64 bit, so rvm compiles one on its own. On my system, this fails (in the ./configure-process). Here is the output of "rvm install 2.0":

    Code:
    Searching for binary rubies, this might take some time.
    Found remote file 
    No binary rubies available for: mint/15/x86_64/ruby-2.0.0-p247.
    Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
    Checking requirements for mint.
    Requirements installation successful.
    Installing Ruby from source to: /home/xxx/.rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)...
    ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 10.3M  100 10.3M    0     0  1326k      0  0:00:07  0:00:07 --:--:-- 1592k
    ruby-2.0.0-p247 - #extracting ruby-2.0.0-p247 to /home/xxx/.rvm/src/ruby-2.0.0-p247
    ruby-2.0.0-p247 - #extracted to /home/xxx/.rvm/src/ruby-2.0.0-p247
    Applying patch /home/xxx/.rvm/patches/ruby/2.0.0/logging.patch....
    ruby-2.0.0-p247 - #configuring........
    Error running './configure --prefix=/home/xxx/.rvm/rubies/ruby-2.0.0-p247 --disable-install-doc --enable-shared',
    please read /home/xxx/.rvm/log/1382481878_ruby-2.0.0-p247/configure.log
    There has been an error while running configure. Halting the installation.
    ~/.rvm/log/1382481878_ruby-2.0.0-p247/configure.log:
    Code:
    [2013-10-23 00:44:42] ./configure
    current path: /home/xxx/.rvm/src/ruby-2.0.0-p247
    command(4): ./configure --prefix=/home/xxx/.rvm/rubies/ruby-2.0.0-p247 --disable-install-doc --enable-shared
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for gcc... gcc
    checking whether the C compiler works... no
    configure: error: in `/home/xxx/.rvm/src/ruby-2.0.0-p247':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
    `/home/xxx/.rvm/src/ruby-2.0.0-p247/config.log
    Code:
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    
    It was created by configure, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      $ ./configure --prefix=/home/xxx/.rvm/rubies/ruby-2.0.0-p247 --disable-install-doc --enable-shared
    
    ## --------- ##
    ## Platform. ##
    ## --------- ##
    
    hostname = xxx-nb-mint
    uname -m = x86_64
    uname -r = 3.8.0-19-generic
    uname -s = Linux
    uname -v = #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013
    
    /usr/bin/uname -p = unknown
    /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       = unknown
    /bin/universe          = unknown
    
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/games
    PATH: /usr/local/games
    PATH: /home/xxx/.rvm/bin
    
    
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
    
    configure:2882: checking build system type
    configure:2896: result: x86_64-unknown-linux-gnu
    configure:3002: checking host system type
    configure:3015: result: x86_64-unknown-linux-gnu
    configure:3035: checking target system type
    configure:3048: result: x86_64-unknown-linux-gnu
    configure:3480: checking for gcc
    configure:3496: found /usr/bin/gcc
    configure:3507: result: gcc
    configure:3736: checking for C compiler version
    configure:3745: gcc --version >&5
    gcc (Ubuntu/Linaro 4.7.3-1ubuntu1) 4.7.3
    Copyright (C) 2012 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:3756: $? = 0
    configure:3745: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.3-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --with-system-zlib --enable-objc-gc --with-cloog --enable-cloog-backend=ppl --disable-cloog-version-check --disable-ppl-version-check --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) 
    configure:3756: $? = 0
    configure:3745: gcc -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3756: $? = 4
    configure:3745: gcc -qversion >&5
    gcc: error: unrecognized command line option '-qversion'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3756: $? = 4
    configure:3776: checking whether the C compiler works
    configure:3798: gcc    conftest.c  >&5
    conftest.c:1:0: internal compiler error: Bus error
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
    configure:3802: $? = 1
    configure:3840: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define PACKAGE_URL ""
    | #define CANONICALIZATION_FOR_MATHN 1
    | #define RUBY_BASE_NAME "ruby" !<verconf>!
    | #define RUBY_VERSION_NAME RUBY_BASE_NAME"-"RUBY_LIB_VERSION !<verconf>!
    | /* end confdefs.h.  */
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    configure:3845: error: in `/home/xxx/.rvm/src/ruby-2.0.0-p247':
    configure:3847: error: C compiler cannot create executables
    See `config.log' for more details
    
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
    
    ac_cv_build=x86_64-unknown-linux-gnu
    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    ac_cv_host=x86_64-unknown-linux-gnu
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_target=x86_64-unknown-linux-gnu
    
    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##
    
    ALLOCA=''
    AR=''
    ARCHFILE=''
    ARCH_FLAG=''
    AS=''
    ASFLAGS=''
    BASERUBY='echo executable host ruby is required.  use --with-baseruby option.; false'
    BTESTRUBY=''
    BUILTIN_ENCOBJS=''
    BUILTIN_TRANSOBJS=''
    BUILTIN_TRANSSRCS=''
    CAPITARGET=''
    CC='gcc'
    CCDLFLAGS=''
    CFLAGS=''
    CHDIR=''
    COMMON_HEADERS=''
    COMMON_LIBS=''
    COMMON_MACROS=''
    COUTFLAG=''
    CP=''
    CPP=''
    CPPFLAGS=''
    CPPOUTFILE=''
    CROSS_COMPILING=''
    CXX=''
    CXXFLAGS=''
    DEFS=''
    DLDFLAGS=''
    DLDLIBS=''
    DLEXT2=''
    DLEXT=''
    DLLWRAP=''
    DLNOBJ=''
    DOT=''
    DOXYGEN=''
    DTRACE=''
    DTRACE_EXT=''
    DTRACE_GLOMMED_OBJ=''
    DTRACE_OBJ=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_SHARED=''
    ENCOBJS=''
    EXECUTABLE_EXTS=''
    EXEEXT=''
    EXPORT_PREFIX=''
    EXTDLDFLAGS=''
    EXTLDFLAGS=''
    EXTOBJS=''
    EXTOUT=''
    EXTSTATIC=''
    GCC=''
    GNU_LD=''
    GREP=''
    INSTALLDOC=''
    INSTALL_DATA=''
    INSTALL_PROGRAM=''
    INSTALL_SCRIPT=''
    LD=''
    LDFLAGS=''
    LDSHARED=''
    LDSHAREDXX=''
    LIBEXT=''
    LIBOBJS=''
    LIBPATHENV=''
    LIBPATHFLAG=''
    LIBRUBY=''
    LIBRUBYARG=''
    LIBRUBYARG_SHARED=''
    LIBRUBYARG_STATIC=''
    LIBRUBY_A=''
    LIBRUBY_ALIASES=''
    LIBRUBY_A_OBJS=''
    LIBRUBY_DLDFLAGS=''
    LIBRUBY_LDSHARED=''
    LIBRUBY_RELATIVE=''
    LIBRUBY_SO=''
    LIBS=''
    LINK_SO=''
    LN_S=''
    LTLIBOBJS=''
    MAINLIBS=''
    MAJOR='2'
    MAKEDIRS=''
    MAKEFILES=''
    MANTYPE=''
    MINIOBJS=''
    MINIRUBY=''
    MINOR='0'
    MKDIR_P=''
    NACL_SDK_ROOT=''
    NACL_SDK_VARIANT=''
    NACL_TOOLCHAIN=''
    NM=''
    NROFF=''
    NULLCMD=''
    OBJCOPY=''
    OBJDUMP=''
    OBJEXT=''
    OUTFLAG=''
    PACKAGE=''
    PACKAGE_BUGREPORT=''
    PACKAGE_NAME=''
    PACKAGE_STRING=''
    PACKAGE_TARNAME=''
    PACKAGE_URL=''
    PACKAGE_VERSION=''
    PATH_SEPARATOR=':'
    PKG_CONFIG=''
    PLATFORM_DIR=''
    POSTLINK=''
    PREP=''
    PYTHON=''
    RANLIB=''
    RDOCTARGET=''
    RI_BASE_NAME=''
    RM=''
    RMALL=''
    RMDIR=''
    RMDIRS=''
    RPATHFLAG=''
    RUBYW_BASE_NAME='rubyw'
    RUBYW_INSTALL_NAME=''
    RUBY_BASE_NAME='ruby'
    RUBY_INSTALL_NAME=''
    RUBY_PROGRAM_VERSION='2.0.0'
    RUBY_RELEASE_DATE='2013-06-27'
    RUBY_SO_NAME=''
    RUBY_VERSION_NAME='${RUBY_BASE_NAME}-${ruby_version}'
    RUNRUBY=''
    SET_MAKE=''
    SHELL='/bin/bash'
    SOLIBS=''
    STATIC=''
    STRIP=''
    SYMBOL_PREFIX=''
    TEENY='0'
    TEST_RUNNABLE=''
    THREAD_MODEL=''
    TRY_LINK=''
    UNIVERSAL_ARCHNAMES=''
    UNIVERSAL_INTS=''
    USE_RUBYGEMS=''
    WERRORFLAG=''
    WINDRES=''
    XCFLAGS=''
    XLDFLAGS=''
    XRUBY=''
    XRUBY_LIBDIR=''
    XRUBY_RUBYHDRDIR=''
    XRUBY_RUBYLIBDIR=''
    ac_ct_CC='gcc'
    ac_ct_CXX=''
    ac_ct_OBJCOPY=''
    ac_ct_OBJDUMP=''
    arch=''
    archincludedir=''
    archlibdir=''
    bindir='${exec_prefix}/bin'
    build='x86_64-unknown-linux-gnu'
    build_alias=''
    build_cpu='x86_64'
    build_os='linux-gnu'
    build_vendor='unknown'
    cflags=' ${optflags} ${debugflags} ${warnflags}'
    codesign=''
    configure_args=''
    cppflags=''
    cxxflags=' ${optflags} ${debugflags} ${warnflags}'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    debugflags=''
    docdir='${datarootdir}/doc/${PACKAGE}'
    dvidir='${docdir}'
    exec=''
    exec_prefix='NONE'
    host='x86_64-unknown-linux-gnu'
    host_alias=''
    host_cpu='x86_64'
    host_os='linux-gnu'
    host_vendor='unknown'
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    oldincludedir='/usr/include'
    optflags=''
    pdfdir='${docdir}'
    prefix='/home/xxx/.rvm/rubies/ruby-2.0.0-p247'
    program_transform_name='s&^&&'
    psdir='${docdir}'
    ridir=''
    ruby_pc=''
    ruby_version=''
    rubyarchdir=''
    rubyarchhdrdir=''
    rubyarchprefix=''
    rubyhdrdir=''
    rubylibdir=''
    rubylibprefix=''
    rubysitearchprefix=''
    rubyw_install_name=''
    sbindir='${exec_prefix}/sbin'
    setup=''
    sharedstatedir='${prefix}/com'
    sitearch=''
    sitearchdir=''
    sitearchhdrdir=''
    sitearchincludedir=''
    sitearchlibdir=''
    sitedir=''
    sitehdrdir=''
    sitelibdir=''
    strict_warnflags=''
    sysconfdir='${prefix}/etc'
    target='x86_64-unknown-linux-gnu'
    target_alias=''
    target_cpu='x86_64'
    target_os='linux'
    target_vendor='unknown'
    try_header=''
    vendorarchdir=''
    vendorarchhdrdir=''
    vendordir=''
    vendorhdrdir=''
    vendorlibdir=''
    warnflags=''
    
    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##
    
    /* confdefs.h */
    #define PACKAGE_NAME ""
    #define PACKAGE_TARNAME ""
    #define PACKAGE_VERSION ""
    #define PACKAGE_STRING ""
    #define PACKAGE_BUGREPORT ""
    #define PACKAGE_URL ""
    #define CANONICALIZATION_FOR_MATHN 1
    #define RUBY_BASE_NAME "ruby" !<verconf>!
    #define RUBY_VERSION_NAME RUBY_BASE_NAME"-"RUBY_LIB_VERSION !<verconf>!
    
    configure: exit 77

    Someone told me I need to have the same linux-header-package as the kernel I am running. Since " dpkg --list | grep 'linux-headers'" gives me two different package versions, I don't know if everything is correct here..:
    Code:
    $ uname -r
    3.8.0-19-generic
    $ dpkg --list | grep 'linux-headers'
    ii  linux-headers-3.8.0-19                      3.8.0-19.30                            all          Header files related to Linux kernel version 3.8.0
    ii  linux-headers-3.8.0-19-generic              3.8.0-19.30                            amd64        Linux kernel headers for version 3.8.0 on 64 bit x86 SMP
    ii  linux-headers-3.8.0-32                      3.8.0-32.47                            all          Header files related to Linux kernel version 3.8.0
    ii  linux-headers-3.8.0-32-generic              3.8.0-32.47                            amd64        Linux kernel headers for version 3.8.0 on 64 bit x86 SMP
    ii  linux-headers-generic                       3.8.0.32.50                            amd64        Generic Linux kernel headers
    My system is a Fujitsu Lifebook AH-530, actually linux mint is a fresh installation besides windows 7, have had ubuntu 12 before.

    I already looked for similar errors in other forums (esp. in combination with "'x86_64-unknown-linux-gnu"), but did not find anything. I already tried:
    • Reinstalled GCC / build-essential / G++
    • Installed gcc-multilib, g++-multilib (although I don't think I need it)
    • Reinstalled RVM
    • Did upgrades, dist-upgrade, now got newest linux-kernel-headers, then reinstalled gcc / rvm
    • Installed clang instead of gcc - installing ruby works then, but had errors on installing gems.. Actually, I don't know anything about clang, but it seems that it is mainly for mac-users, not for me, so I did not continue to try anything with it since I do not want to break my system / ruby..


    Last but not least: I am very sorry, but I do not know much about gcc / g++ / clang / ... :/

    I really hope anyone can help me.. This would be so great!!!

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    478
    your kernel, x86_64-unknown-linux-gnu, is this precompiled? My
    experiences have shown, local compiling of anything at all complex, is
    best done while running a kernel that you yourself have compiled. If
    the source of this kernel is in /usr/src/linux, or somesuch, then the
    compiler can find headers, libraries, etc.

    suggest you go to kernel.org, and download the source for some kernel
    that you like to run--64 bit, or whatever--and compile it.
    the sun is new every day (heraclitus)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •