public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES
@ 2013-03-07 19:40 Daniel Albers
  2013-03-07 20:13 ` Kai Ruottu
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Albers @ 2013-03-07 19:40 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 621 bytes --]

Hello,

the compilation of gcc 4.7.2 fails on a fully patched ubuntu 12.04 with the error message 
"checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libssp] Fehler 1"

The configure call is: ../gcc-4.7.2_Source/configure --prefix=/opt/gcc_4_7_2 --enable-languages=c,c++,fortran --enable-threads=posix --enable-tls --enable-libgomp --disable-nls  --disable-checking --disable-multilib  --disable-shared  --disable-libstdcxx-pch --disable-bootstrap

The config.log is attached.

How can I build the gcc 4.7.2 on this system?



[-- Attachment #2: config.log --]
[-- Type: text/x-log, Size: 7844 bytes --]

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.64.  Invocation command line was

  $ ../gcc-4.7.2_Source/configure --prefix=/opt/gcc_4_7_2 --enable-languages=c,c++,fortran --enable-threads=posix --enable-tls --enable-libgomp --disable-nls --disable-checking --disable-multilib --disable-shared --disable-libstdcxx-pch --disable-bootstrap ls

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

hostname = Acer3820
uname -m = x86_64
uname -r = 3.2.0-38-generic
uname -s = Linux
uname -v = #61-Ubuntu SMP Tue Feb 19 12:18:21 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/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


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

configure:2237: checking build system type
configure:2248: error: /bin/bash ../gcc-4.7.2_Source/config.sub ls failed

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

ac_cv_build=
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_READELF_FOR_TARGET_set=
ac_cv_env_READELF_FOR_TARGET_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=ls
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=ls
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=ls
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=

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

AR=''
AR_FOR_BUILD=''
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD=''
AS_FOR_TARGET=''
AWK=''
BISON=''
BUILD_CONFIG=''
CC=''
CC_FOR_BUILD=''
CC_FOR_TARGET=''
CFLAGS=''
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD=''
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD=''
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
EXTRA_CONFIGARGS_LIBJAVA=''
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD=''
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD=''
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
GOC_FOR_BUILD=''
GOC_FOR_TARGET=''
INSTALL_DATA=''
INSTALL_GDB_TK=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LDFLAGS_FOR_TARGET=''
LD_FOR_BUILD=''
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN=''
LN_S=''
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD=''
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
POSTSTAGE1_CONFIGURE_FLAGS=''
RANLIB=''
RANLIB_FOR_BUILD=''
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
READELF=''
READELF_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SED=''
SHELL='/bin/bash'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc-4.7.2_Source/configure --prefix=/opt/gcc_4_7_2 --enable-languages=c,c++,fortran --enable-threads=posix --enable-tls --enable-libgomp --disable-nls --disable-checking --disable-multilib --disable-shared --disable-libstdcxx-pch --disable-bootstrap ls'
WINDMC=''
WINDMC_FOR_BUILD=''
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD=''
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='ls'
build_alias='ls'
build_configargs=''
build_configdirs=''
build_cpu=''
build_libsubdir=''
build_noncanonical=''
build_os=''
build_subdir=''
build_tooldir=''
build_vendor=''
clooginc=''
clooglibs=''
compare_exclusions=''
configdirs=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_host_libiberty_configure_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs=''
host='ls'
host_alias='ls'
host_configargs=''
host_cpu=''
host_noncanonical=''
host_os=''
host_subdir=''
host_vendor=''
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'
pdfdir='${docdir}'
poststage1_ldflags=''
poststage1_libs=''
pplinc=''
ppllibs=''
prefix='/opt/gcc_4_7_2'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='ls'
target_alias='ls'
target_configargs=''
target_configdirs=''
target_cpu=''
target_noncanonical=''
target_os=''
target_subdir=''
target_vendor=''
tooldir=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag=''
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

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

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

configure: exit 1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES
  2013-03-07 19:40 compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES Daniel Albers
@ 2013-03-07 20:13 ` Kai Ruottu
  2013-03-07 20:23   ` Jonathan Wakely
       [not found]   ` <trinity-11eb852c-f6de-44f2-afeb-9c410c8d709f-1362687570409@3capp-gmx-bs09>
  0 siblings, 2 replies; 5+ messages in thread
From: Kai Ruottu @ 2013-03-07 20:13 UTC (permalink / raw)
  To: gcc-help

7.3.2013 21:40, Daniel Albers kirjoitti:

> the compilation of gcc 4.7.2 fails on a fully patched ubuntu 12.04 with the error message
> "checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libssp] Fehler 1"
>
> The config.log is attached.
>

Didn't look being the right one 'config.log' from the $target/libssp 
directory...  What motive
sending the config.log from the $build directory has when the problem 
was elsewhere?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES
  2013-03-07 20:13 ` Kai Ruottu
@ 2013-03-07 20:23   ` Jonathan Wakely
       [not found]   ` <trinity-11eb852c-f6de-44f2-afeb-9c410c8d709f-1362687570409@3capp-gmx-bs09>
  1 sibling, 0 replies; 5+ messages in thread
From: Jonathan Wakely @ 2013-03-07 20:23 UTC (permalink / raw)
  To: Daniel Albers; +Cc: gcc-help

On 7 March 2013 20:13, Kai Ruottu wrote:
> 7.3.2013 21:40, Daniel Albers kirjoitti:
>
>> the compilation of gcc 4.7.2 fails on a fully patched ubuntu 12.04 with
>> the error message
>> "checking dynamic linker characteristics... configure: error: Link tests
>> are not allowed after GCC_NO_EXECUTABLES. make[1]: ***
>> [configure-target-libssp] Fehler 1"
>>
>> The config.log is attached.
>>
>
> Didn't look being the right one 'config.log' from the $target/libssp
> directory...  What motive
> sending the config.log from the $build directory has when the problem was
> elsewhere?

As Kai says, you need to look at the config.log file in the directory
where the build failed, and instead of just sending it to the list you
can look in there for the failure and see what caused the error.
There are always lots of non-fatal errors in config.log, you're
looking for the last one which causes the fatal error:
"checking dynamic linker characteristics... configure: error: Link
tests are not allowed after GCC_NO_EXECUTABLES. make[1]: ***
[configure-target-libssp] Fehler 1"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Aw: Re: compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES
       [not found]     ` <5138FED7.3050105@wippies.com>
@ 2013-03-07 21:12       ` Kai Ruottu
  2013-03-07 22:12         ` Aw: " gcc_mailinglist
  0 siblings, 1 reply; 5+ messages in thread
From: Kai Ruottu @ 2013-03-07 21:12 UTC (permalink / raw)
  To: gcc-help; +Cc: gcc_mailinglist

7.3.2013 22:55, Kai Ruottu kirjoitti:
> 7.3.2013 22:19, gcc_mailinglist@abwesend.de kirjoitti:
>> /usr/bin/ld: cannot find crt1.o: No such file or directory
>> /usr/bin/ld: cannot find crti.o: No such file or directory
>
> The previous seems to be the problem...  Basically the Ubuntu's custom
> ld should know where these startups are, in '/usr/lib/x86_64-linux-gnu'
> I think. Please check where they really are in your system...
>
> If the command  'ld -verbose' (used with '| less') doesn't show the 
> places
> where they are in the 'SEARCH_DIR' or something in the output 
> beginning, then
> something is broken :-(
>
> Searching with Google for "building GCC for Ubuntu" may tell what are the
> problems and workarounds, Ubuntu isn't a "standard" Linux but somehow
> "custom".
>

OK, in :

http://solarianprogrammer.com/2012/04/13/building-gcc-4-7-on-ubuntu-12-04/

there were instructions to set in environment (in your case) :

export LD_LIBRARY_PATH=/opt/gcc_4_7_2/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu
export CPLUS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu

before 'configure' and 'make' and make a symlink :

sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64

before 'make install'

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Aw: Re:  Re: compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES
  2013-03-07 21:12       ` Aw: " Kai Ruottu
@ 2013-03-07 22:12         ` gcc_mailinglist
  0 siblings, 0 replies; 5+ messages in thread
From: gcc_mailinglist @ 2013-03-07 22:12 UTC (permalink / raw)
  To: Kai Ruottu; +Cc: gcc-help



> Gesendet: Donnerstag, 07. März 2013 um 22:12 Uhr
> Von: "Kai Ruottu" <kai.ruottu@wippies.com>
> An: "gcc-help@gcc.gnu.org" <gcc-help@gcc.gnu.org>
> Cc: gcc_mailinglist@abwesend.de
> Betreff: Re: Aw: Re: compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES
>
> 7.3.2013 22:55, Kai Ruottu kirjoitti:
> > 7.3.2013 22:19, gcc_mailinglist@abwesend.de kirjoitti:
> >> /usr/bin/ld: cannot find crt1.o: No such file or directory
> >> /usr/bin/ld: cannot find crti.o: No such file or directory
> >
> > The previous seems to be the problem...  Basically the Ubuntu's custom
> > ld should know where these startups are, in '/usr/lib/x86_64-linux-gnu'
> > I think. Please check where they really are in your system...
> >
> > If the command  'ld -verbose' (used with '| less') doesn't show the
> > places
> > where they are in the 'SEARCH_DIR' or something in the output
> > beginning, then
> > something is broken :-(
> >
> > Searching with Google for "building GCC for Ubuntu" may tell what are the
> > problems and workarounds, Ubuntu isn't a "standard" Linux but somehow
> > "custom".
> >
>
> OK, in :
>
> http://solarianprogrammer.com/2012/04/13/building-gcc-4-7-on-ubuntu-12-04/
>
> there were instructions to set in environment (in your case) :
>
> export LD_LIBRARY_PATH=/opt/gcc_4_7_2/lib:$LD_LIBRARY_PATH
> export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
> export C_INCLUDE_PATH=/usr/include/x86_64-linux-gnu
> export CPLUS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu
>
> before 'configure' and 'make' and make a symlink :
>
> sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
>
> before 'make install'
>
>

With the export and the symbolic link it compiles without problems.
Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-07 22:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-07 19:40 compile gcc 4.7.2 Ubuntu 12.04 fails with GCC_NO_EXECUTABLES Daniel Albers
2013-03-07 20:13 ` Kai Ruottu
2013-03-07 20:23   ` Jonathan Wakely
     [not found]   ` <trinity-11eb852c-f6de-44f2-afeb-9c410c8d709f-1362687570409@3capp-gmx-bs09>
     [not found]     ` <5138FED7.3050105@wippies.com>
2013-03-07 21:12       ` Aw: " Kai Ruottu
2013-03-07 22:12         ` Aw: " gcc_mailinglist

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).