Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jun 11, 2012 12:15 pm 
Offline
Senior Member

Joined: Thu Nov 12, 2009 3:27 pm
Posts: 57
Website: http://www.mtgames.org/
WLM: ai5hf@hotmail.com
AOL: btakillermich11
Location: Baton Rouge, Louisiana
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-__cxa_atexit --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. ##
## ---------------- ##

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=set
ac_cv_env_CXX_value=g++-3.4
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_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_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=mawk
ac_cv_prog_make_make_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=''
BUILD_DOCS_FALSE=''
BUILD_DOCS_TRUE=''
BUILD_GRAMMAR_FALSE=''
BUILD_GRAMMAR_TRUE=''
BUILD_PDFDOCS_FALSE=''
BUILD_PDFDOCS_TRUE=''
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}'
INSTALL_STRIP_PROGRAM='${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=''
USE_XSLT_FALSE=''
USE_XSLT_TRUE=''
VERSION='0.25'
WORDS_BIGENDIAN=''
ac_ct_CC=''
ac_ct_CXX=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
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'
program_transform_name='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.

_________________
http://mtgames.org/
"A world that contained a creature as amazing as that bumblebee was a world he wanted to live in." -- Christopher Paolini, Brisingr.
"The songs of the dead are the lamentations of the living." -- Christopher Paolini, Eldest.


Top
   
PostPosted: Mon Jun 11, 2012 4:32 pm 
Offline
Senior Newbie

Joined: Sun Jun 10, 2012 2:44 pm
Posts: 14
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.


Top
   
PostPosted: Mon Jun 11, 2012 4:34 pm 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
You should really grab the meta-package that contains everything needed for building:

Code:
apt-get install build-essential


Usually that takes care of it.

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
PostPosted: Wed Jun 13, 2012 2:28 am 
Offline
Senior Member

Joined: Thu Nov 12, 2009 3:27 pm
Posts: 57
Website: http://www.mtgames.org/
WLM: ai5hf@hotmail.com
AOL: btakillermich11
Location: Baton Rouge, Louisiana
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.

_________________
http://mtgames.org/

"A world that contained a creature as amazing as that bumblebee was a world he wanted to live in." -- Christopher Paolini, Brisingr.

"The songs of the dead are the lamentations of the living." -- Christopher Paolini, Eldest.


Top
   
PostPosted: Wed Jun 13, 2012 10:12 am 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
lilmike wrote:
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

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group