gcc 3.4 not making executibles

Hi,

I recently installed gcc 3.4 on a linode running ubuntu 11.10, because I needed it for some older software. I simply included a couple hardy apt sources in my sources.list so I could install the last version of gcc 3.4 that was in the repositories. It seemed to do ok, but when I ./configure CXX=gcc-3.4 it gives me the following: config.log follows

This file contains any messages produced by compilers while

running configure, to aid debugging if configure makes a mistake.

It was created by AweMUD configure 0.25, which was

generated by GNU Autoconf 2.60. Invocation command line was

$ ./configure CXX=g++-3.4 LD=ld-3.4

–-------

Platform.

---------

hostname = thestatus

uname -m = i686

uname -r = 3.0.18-linode43

uname -s = Linux

uname -v = #1 SMP Mon Jan 30 11:44:09 EST 2012

/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

-----------

Core tests.

-----------

configure:1795: checking for a BSD-compatible install

configure:1851: result: /usr/bin/install -c

configure:1862: checking whether build environment is sane

configure:1905: result: yes

configure:1970: checking for gawk

configure:2000: result: no

configure:1970: checking for mawk

configure:1986: found /usr/bin/mawk

configure:1997: result: mawk

configure:2008: checking whether make sets $(MAKE)

configure:2029: result: yes

configure:2338: checking for C++ compiler version

configure:2345: g++-3.4 --version >&5

g++-3.4 (GCC) 3.4.6 (Ubuntu 3.4.6-6ubuntu3)

Copyright (C) 2006 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:2348: $? = 0

configure:2355: g++-3.4 -v >&5

Reading specs from /usr/lib/gcc/i486-linux-gnu/3.4.6/specs

Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-_cxaatexit --enable-clocale=gnu --enable-libstdcxx-debug --with-tune=pentium4 i486-linux-gnu

Thread model: posix

gcc version 3.4.6 (Ubuntu 3.4.6-6ubuntu3)

configure:2358: $? = 0

configure:2365: g++-3.4 -V >&5

g++-3.4: `-V' option must have argument

configure:2368: $? = 1

configure:2391: checking for C++ compiler default output file name

configure:2418: g++-3.4 conftest.cpp >&5

/usr/bin/ld: cannot find crt1.o: No such file or directory

/usr/bin/ld: cannot find crti.o: No such file or directory

/usr/bin/ld: cannot find -lgcc_s

collect2: ld returned 1 exit status

configure:2421: $? = 1

configure: failed program was:

| /* confdefs.h. */

| #define PACKAGE_NAME "AweMUD"

| #define PACKAGE_TARNAME "awemud"

| #define PACKAGE_VERSION "0.25"

| #define PACKAGE_STRING "AweMUD 0.25"

| #define PACKAGE_BUGREPORT "http://bugs.awemud.net/submit.php"

| #define PACKAGE "awemud"

| #define VERSION "0.25"

| /* end confdefs.h. */

|

| int

| main ()

| {

|

| ;

| return 0;

| }

configure:2460: error: C++ compiler cannot create executables

See `config.log' for more details.

----------------

Cache variables.

----------------

accvenvCCCset=

accvenvCCCvalue=

accvenvCCset=

accvenvCCvalue=

accvenvCFLAGSset=

accvenvCFLAGSvalue=

accvenvCPPFLAGSset=

accvenvCPPFLAGSvalue=

accvenvCPPset=

accvenvCPPvalue=

accvenvCXXFLAGSset=

accvenvCXXFLAGSvalue=

accvenvCXXset=set

accvenvCXXvalue=g++-3.4

accvenvLDFLAGSset=

accvenvLDFLAGSvalue=

accvenvbuildalias_set=

accvenvbuildalias_value=

accvenvhostalias_set=

accvenvhostalias_value=

accvenvtargetalias_set=

accvenvtargetalias_value=

accvpath_install='/usr/bin/install -c'

accvprog_AWK=mawk

accvprogmakemake_set=yes

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /muds/aime/aime/awemud-0.25/missing --run aclocal-1.9'

AMDEPBACKSLASH=''

AMDEP_FALSE=''

AMDEP_TRUE=''

AMTAR='${SHELL} /muds/aime/aime/awemud-0.25/missing --run tar'

AUTOCONF='${SHELL} /muds/aime/aime/awemud-0.25/missing --run autoconf'

AUTOHEADER='${SHELL} /muds/aime/aime/awemud-0.25/missing --run autoheader'

AUTOMAKE='${SHELL} /muds/aime/aime/awemud-0.25/missing --run automake-1.9'

AWK='mawk'

BUILD_DATE=''

BUILDDOCSFALSE=''

BUILDDOCSTRUE=''

BUILDGRAMMARFALSE=''

BUILDGRAMMARTRUE=''

BUILDPDFDOCSFALSE=''

BUILDPDFDOCSTRUE=''

CC=''

CCDEPMODE=''

CFLAGS=''

CPP=''

CPPFLAGS=''

CXX='g++-3.4'

CXXDEPMODE=''

CXXFLAGS=''

CYGPATH_W='echo'

DEFS=''

DEPDIR=''

ECHO_C=''

ECHO_N='-n'

ECHO_T=''

EGREP=''

EXEEXT=''

GREP=''

HOSTNAME='thestatus'

INCLUDES=''

INSTALL_DATA='${INSTALL} -m 644'

INSTALL_PROGRAM='${INSTALL}'

INSTALL_SCRIPT='${INSTALL}'

INSTALLSTRIPPROGRAM='${SHELL} $(install_sh) -c -s'

LDFLAGS=''

LIBOBJS=''

LIBS=''

LTLIBOBJS=''

MAKEINFO='${SHELL} /muds/aime/aime/awemud-0.25/missing --run makeinfo'

OBJEXT=''

PACKAGE='awemud'

PACKAGE_BUGREPORT='http://bugs.awemud.net/submit.php'

PACKAGE_NAME='AweMUD'

PACKAGE_STRING='AweMUD 0.25'

PACKAGE_TARNAME='awemud'

PACKAGE_VERSION='0.25'

PATH_BISON=''

PATH_FLEX=''

PATH_SENDMAIL=''

PATH_SEPARATOR=':'

PATH_XMLTO=''

PATH_XSLTPROC=''

SET_MAKE=''

SHELL='/bin/bash'

STRIP=''

SX_CFLAGS=''

SX_INCLUDES=''

SX_LDFLAGS=''

SX_LIBS=''

USEXSLTFALSE=''

USEXSLTTRUE=''

VERSION='0.25'

WORDS_BIGENDIAN=''

acctCC=''

acctCXX=''

am_fastdepCCFALSE=''

am_fastdepCCTRUE=''

am_fastdepCXXFALSE=''

am_fastdepCXXTRUE=''

am__include=''

am_leadingdot='.'

am__quote=''

am__tar='${AMTAR} chof - "$tardir"'

am__untar='${AMTAR} xf -'

bindir='${exec_prefix}/bin'

build_alias=''

datadir='${datarootdir}'

datarootdir='${prefix}/share'

docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'

dvidir='${docdir}'

exec_prefix='NONE'

host_alias=''

htmldir='${docdir}'

includedir='${prefix}/include'

infodir='${datarootdir}/info'

install_sh='/muds/aime/aime/awemud-0.25/install-sh'

libdir='${exec_prefix}/lib'

libexecdir='${exec_prefix}/libexec'

localedir='${datarootdir}/locale'

localstatedir='${prefix}/var'

mandir='${datarootdir}/man'

mkdir_p='mkdir -p --'

oldincludedir='/usr/include'

pdfdir='${docdir}'

prefix='NONE'

programtransformname='s,x,x,'

psdir='${docdir}'

sbindir='${exec_prefix}/sbin'

sharedstatedir='${prefix}/com'

sysconfdir='${prefix}/etc'

target_alias=''

-----------

confdefs.h.

-----------

define PACKAGE_NAME "AweMUD"

define PACKAGE_TARNAME "awemud"

define PACKAGE_VERSION "0.25"

define PACKAGE_STRING "AweMUD 0.25"

define PACKAGE_BUGREPORT "http://bugs.awemud.net/submit.php"

define PACKAGE "awemud"

define VERSION "0.25"

configure: exit 77

I tried ld=… because I dind't know if I needed an older ld… but that didn't

Any help is appreciated.

seem to help… so just ignore it for now :P.

Thanks,

-Michael.

4 Replies

I had that setting up a Slackware system recently. You need some extra packages. You need binutils, dev86, autoconf, and possibly kernel-headers. They are the Slackware package names, but the Ubuntu names are probably similar. I think it was the lack of binutils that caused the "compiler cannot create executables" error for me.

You should really grab the meta-package that contains everything needed for building:

apt-get install build-essential

Usually that takes care of it.

-Tim

Hi,

The problem here is that I'm trying to have gcc-3.4 and gcc-4 coexist on the same machine. I do, in fact, have build-essential, just the one that comes with 11.10. I need the one for hardy and gcc-3.4, but I'm not sure how well they would coexist on the same machine, or even if they would, how on earth to specify that I want an older binutils.

Thanks,

-Michael.

@lilmike:

Hi,

The problem here is that I'm trying to have gcc-3.4 and gcc-4 coexist on the same machine. I do, in fact, have build-essential, just the one that comes with 11.10. I need the one for hardy and gcc-3.4, but I'm not sure how well they would coexist on the same machine, or even if they would, how on earth to specify that I want an older binutils.

Thanks,

-Michael.

I've never tried to accomplish that, best of luck to you! It may be a wiser scenario to have a system running Hardy if you need it.

-Tim

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct