problem installing gcc 4.1.1

hello everyone

I am trying to install gcc4.1.1 upon my opensuse machine which already has gcc 4.5 installed but I want an earlier version.

  1. I downloaded gcc-4.1.1.tar.bz2
  2. Extracted the contents
  3. When I tried to run the command “./configure” on terminal its giving error “configure: error: can not find sources in . or …”. However I can see the configure file in the directory. Below are the files present in directory.

compile config.guess config-ml.in configure gcc libtool.m4 Makefile.in objdir zlib
confdefs.h config.log config.rpath depcomp libstdc+±v3 tcf-c.sh obj symlink-tree

Can anyone please help me out??? :frowning:

Welcome here (I see this is your first post).

While many people here like to help others like you, you should make it as easy as possible for them to understand you and to get the real facts of your problem.

Thus please, when you want to show what your system displays as output/messages when you type a command, then post the complete prompt-command-output part from your terminal emulator here between CODE tags. Thus we can see what you see and you do not have to tell a long story, which story also may contain conclusions you jumped to. Posting in Code Tags - A Guide . Thus do not “tell” what files are in a directory, but do

ls -la

inside that directory.
Same for what you get doing

./configure

Thanks Henk van Velden for these suggestions :slight_smile: Here’s the proper format of the problem I am getting.

I am trying to install gcc4.1.1 upon my opensuse machine which already has gcc 4.5 installed but I want an earlier version.

  1. I downloaded gcc-4.1.1.tar.bz2
  2. Extracted the contents
  3. But its giving error when I type

administrator@linux-wnx3:~/Downloads/gcc-4.1.1> ./configure
configure: error: can not find sources in . or ..

However I can see the file in my current directory


administrator@linux-wnx3:~/Downloads/gcc-4.1.1> ls
compile     config.guess  config-ml.in  configure  gcc           libtool.m4  Makefile.in  symlink-tree
confdefs.h  config.log    config.rpath  depcomp    libstdc++-v3  ltcf-c.sh   obj          zlib

Can anyone please help me out??? :frowning:

Well, thanks for that. Much better readable IMHO. I hope you think the same.
I have three remarks. None of them may be of much help, but nevertheless.

  1. Next time better to do what was asked for (well, after checking if unknown people do not ask you to execute harmfull statmnets of course). Thus an* ls -la,*as I suggested, would have shown more then what we have now. We can e.g. not see what is a normal file and what is a directory. It may not be very important, but …

  2. I see there is no README (or something like that) there that could have given us clues to how to build.

  3. As you say you have allready a C compiler, I guess you have installed the Developement pattern with YaST (or zypper).

To see what happens I also downloaded gcc4.1.1 from here
http://ftp.uni-hd.de/ftp/pub/gnu/gcc/gcc-4.1.1/gcc-4.1.1.tar.bz2
and ran ./configure, it worked. So I cannot see the same problem, the
contents of my folder are


martinh@sirius:~/Downloads/gcc-4.1.1> ls -la
insgesamt 5900
drwxr-xr-x 26 martinh users    4096  8. Aug 14:42 .
drwxr-xr-x 13 martinh users   12288  8. Aug 14:41 ..
-rw-r--r--  1 martinh users   38475  4. Jul 2003  ABOUT-NLS
drwxr-xr-x  7 martinh users    4096 25. Mai 2006  boehm-gc
-rw-r--r--  1 martinh users   33360 25. Mai 2006  BUGS
-rw-r--r--  1 martinh users   33053 25. Mai 2006  bugs.html
drwxr-xr-x  4 martinh users    4096  8. Aug 14:42 build-x86_64-unknown-
linux-gnu
-rw-r--r--  1 martinh users  393699 25. Mai 2006  ChangeLog
-rw-r--r--  1 martinh users    3262 13. Mai 2004  ChangeLog.tree-ssa
-rw-r--r--  1 martinh users    3707 14. Jul 2005  compile
drwxr-xr-x  2 martinh users    4096 25. Mai 2006  config
-rw-r--r--  1 martinh users    2722  8. Aug 14:41 config.cache
-rwxr-xr-x  1 martinh users   43466 24. Nov 2005  config.guess
-rw-r--r--  1 martinh users    4924  8. Aug 14:41 config.log
-rw-r--r--  1 martinh users   25987 14. Jul 2005  config-ml.in
-rwxr-xr-x  1 martinh users   14995 16. Jul 2005  config.rpath
-rwxr-xr-x  1 martinh users   11900  8. Aug 14:41 config.status
-rwxr-xr-x  1 martinh users   32069 16. Dez 2005  config.sub
-rwxr-xr-x  1 martinh users  199036 16. Dez 2005  configure
-rw-r--r--  1 martinh users   77978 16. Dez 2005  configure.in
drwxr-xr-x  4 martinh users    4096 25. Mai 2006  contrib
-rw-r--r--  1 martinh users   18002 14. Jul 2005  COPYING
-rw-r--r--  1 martinh users   26527 14. Jul 2005  COPYING.LIB
-rwxr-xr-x  1 martinh users   16619 13. Jun 2005  depcomp
-rw-r--r--  1 martinh users   28856 25. Mai 2006  FAQ
-rw-r--r--  1 martinh users   28213 25. Mai 2006  faq.html
drwxr-xr-x  2 martinh users    4096 25. Mai 2006  fastjar
drwxr-xr-x  3 martinh users    4096 25. Mai 2006  fixincludes
drwxr-xr-x 14 martinh users   20480 25. Mai 2006  gcc
drwxr-xr-x  2 martinh users    4096 25. Mai 2006  gnattools
drwxr-xr-x  9 martinh users    4096  8. Aug 14:42 host-x86_64-unknown-linux-
gnu
drwxr-xr-x  2 martinh users    4096 25. Mai 2006  include
drwxr-xr-x  2 martinh users    4096 25. Mai 2006  INSTALL
-rwxr-xr-x  1 martinh users    9233 14. Jul 2005  install-sh
drwxr-xr-x  2 martinh users    4096 25. Mai 2006  intl
-rw-r--r--  1 martinh users      58 25. Mai 2006  LAST_UPDATED
drwxr-xr-x  2 martinh users    4096 25. Mai 2006  libada
drwxr-xr-x  4 martinh users    4096 25. Mai 2006  libcpp
drwxr-xr-x  5 martinh users    4096 25. Mai 2006  libffi
drwxr-xr-x  8 martinh users    4096 25. Mai 2006  libgfortran
drwxr-xr-x  4 martinh users    4096 25. Mai 2006  libiberty
drwxr-xr-x 11 martinh users    4096 25. Mai 2006  libjava
drwxr-xr-x  3 martinh users    4096 25. Mai 2006  libmudflap
drwxr-xr-x  3 martinh users    4096 25. Mai 2006  libobjc
drwxr-xr-x  3 martinh users    4096 25. Mai 2006  libssp
drwxr-xr-x 11 martinh users    4096 25. Mai 2006  libstdc++-v3
-rw-r--r--  1 martinh users   33121 16. Jul 2005  libtool.m4
-rw-r--r--  1 martinh users   33972 18. Nov 2005  ltcf-c.sh
-rw-r--r--  1 martinh users   39048 16. Jul 2005  ltcf-cxx.sh
-rw-r--r--  1 martinh users   29666 16. Jul 2005  ltcf-gcj.sh
-rwxr-xr-x  1 martinh users   87021 16. Jul 2005  ltconfig
-rw-r--r--  1 martinh users  161936  5. Okt 2005  ltmain.sh
-rw-r--r--  1 martinh users   14089 22. Mär 2006  MAINTAINERS
drwxr-xr-x  2 martinh users    4096 25. Mai 2006  maintainer-scripts
-rw-r--r--  1 martinh users  372447  8. Aug 14:41 Makefile
-rw-r--r--  1 martinh users   21096 11. Nov 2005  Makefile.def
-rw-r--r--  1 martinh users 1102403  4. Apr 2006  Makefile.in
-rw-r--r--  1 martinh users   55812  4. Apr 2006  Makefile.tpl
-rw-r--r--  1 martinh users 2396343 25. Mai 2006  MD5SUMS
-rwxr-xr-x  1 martinh users   11014 14. Jul 2005  missing
-rwxr-xr-x  1 martinh users    2179 22. Jul 2000  mkdep
-rwxr-xr-x  1 martinh users    3474 14. Jul 2005  mkinstalldirs
-rwxr-xr-x  1 martinh users     884 16. Jul 2005  move-if-change
-rw-r--r--  1 martinh users  382942 25. Mai 2006  NEWS
-rw-r--r--  1 martinh users     795 13. Jun 2001  README
-rw-r--r--  1 martinh users     383  8. Mai 2005  README.SCO
-rw-r--r--  1 martinh users      13  8. Aug 14:41 serdep.tmp
-rwxr-xr-x  1 martinh users    2265 14. Jul 2005  symlink-tree
-rwxr-xr-x  1 martinh users    6193 14. Jul 2005  ylwrap
drwxr-xr-x 11 martinh users    4096 25. Mai 2006  zlib



PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

I am sorry AG88, but you indeed also failed to tell where you downloaded from. Never assume that others (we) understand magicly what you did/see/got.
Now we see there is a big difference between your download and martin_helm’s (and he explains where he found it).

As Henk already asked I also wonder where your gcc archive comes from, it
looks very incomplete. In fact your unpacked file seems not even to contain
the usual README and INSTALL files. Maybe it is simply a bad download or the
wrong archive (a diff or something like that instead of the full one??).
There are many mirrors available you may want to use the one I used or
directly from the gnu ftp server
ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.1/


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

Thanks martin_helm and Henk for these suggestions. Actually am totally new to linux so dont know of much technicalities. Previous download was a bad download. I downloaded gcc-4.1.1 from the link suggested by martin_helm and it has alot more content and even the command ./configure worked.


administrator@linux-wnx3:~/Downloads/gcc-4.1.1> ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for MPFR... no
The following languages will be built: c,c++,java,objc
*** This configuration is not supported in the following subdirectories:
     target-libada gnattools target-libgfortran
    (Any other directories should still work fine.)
checking for bison... (cached) bison -y
checking for bison... (cached) bison
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for expect... (cached) expect
checking for runtest... no
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-as... (cached) as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-ld... (cached) /usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... (cached) nm
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-strip... (cached) strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking for i686-pc-linux-gnu-objcopy... (cached) objcopy
checking for i686-pc-linux-gnu-objdump... (cached) objdump
checking for i686-pc-linux-gnu-ar... (cached) ar
checking for i686-pc-linux-gnu-as... (cached) as
checking for i686-pc-linux-gnu-cc... (cached) cc
checking for i686-pc-linux-gnu-c++... (cached) c++
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for i686-pc-linux-gnu-gcj... no
checking for gcj... no
checking for i686-pc-linux-gnu-gfortran... no
checking for gfortran... no
checking for i686-pc-linux-gnu-ld... (cached) ld
checking for i686-pc-linux-gnu-lipo... no
checking for lipo... no
checking for i686-pc-linux-gnu-nm... (cached) nm
checking for i686-pc-linux-gnu-objdump... (cached) objdump
checking for i686-pc-linux-gnu-ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-strip... (cached) strip
checking for i686-pc-linux-gnu-windres... no
checking for windres... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile

Now the files which I have in the directory are


administrator@linux-wnx3:~/Downloads/gcc-4.1.1> ls -la
total 5880
drwxr-xr-x 25 administrator users    4096 2011-08-09 10:41 .
drwxr-xr-x  4 administrator users    4096 2011-08-09 10:31 ..
-rw-r--r--  1 administrator users   38475 2003-07-04 23:18 ABOUT-NLS
drwxr-xr-x  7 administrator users    4096 2006-05-25 04:45 boehm-gc
-rw-r--r--  1 administrator users   33360 2006-05-25 04:46 BUGS
-rw-r--r--  1 administrator users   33053 2006-05-25 04:46 bugs.html
-rw-r--r--  1 administrator users  393699 2006-05-25 04:43 ChangeLog
-rw-r--r--  1 administrator users    3262 2004-05-13 11:41 ChangeLog.tree-ssa
-rw-r--r--  1 administrator users    3707 2005-07-14 06:08 compile
drwxr-xr-x  2 administrator users    4096 2006-05-25 04:45 config
-rw-r--r--  1 administrator users    2593 2011-08-09 10:29 config.cache
-rwxr-xr-x  1 administrator users   43466 2005-11-24 17:49 config.guess
-rw-r--r--  1 administrator users    4318 2011-08-09 10:41 config.log
-rw-r--r--  1 administrator users   25987 2005-07-14 06:08 config-ml.in
-rwxr-xr-x  1 administrator users   14995 2005-07-16 07:30 config.rpath
-rwxr-xr-x  1 administrator users   11505 2011-08-09 10:41 config.status
-rwxr-xr-x  1 administrator users   32069 2005-12-16 17:57 config.sub
-rwxr-xr-x  1 administrator users  199036 2005-12-16 17:57 configure
-rw-r--r--  1 administrator users   77978 2005-12-16 17:57 configure.in
drwxr-xr-x  4 administrator users    4096 2006-05-25 04:45 contrib
-rw-r--r--  1 administrator users   18002 2005-07-14 06:08 COPYING
-rw-r--r--  1 administrator users   26527 2005-07-14 06:41 COPYING.LIB
-rwxr-xr-x  1 administrator users   16619 2005-06-13 13:26 depcomp
-rw-r--r--  1 administrator users   28856 2006-05-25 04:46 FAQ
-rw-r--r--  1 administrator users   28213 2006-05-25 04:46 faq.html
drwxr-xr-x  2 administrator users    4096 2006-05-25 05:33 fastjar
drwxr-xr-x  3 administrator users    4096 2006-05-25 04:46 fixincludes
drwxr-xr-x 14 administrator users   20480 2006-05-25 04:52 gcc
drwxr-xr-x  2 administrator users    4096 2006-05-25 04:46 gnattools
drwxr-xr-x  5 administrator users    4096 2011-08-09 10:34 host-i686-pc-linux-gnu
drwxr-xr-x  2 administrator users    4096 2006-05-25 04:45 include
drwxr-xr-x  2 administrator users    4096 2006-05-25 04:46 INSTALL
-rwxr-xr-x  1 administrator users    9233 2005-07-14 06:08 install-sh
drwxr-xr-x  2 administrator users    4096 2006-05-25 04:45 intl
-rw-r--r--  1 administrator users      58 2006-05-25 04:46 LAST_UPDATED
drwxr-xr-x  2 administrator users    4096 2006-05-25 04:45 libada
drwxr-xr-x  4 administrator users    4096 2006-05-25 04:46 libcpp
drwxr-xr-x  5 administrator users    4096 2006-05-25 04:45 libffi
drwxr-xr-x  8 administrator users    4096 2006-05-25 04:45 libgfortran
drwxr-xr-x  4 administrator users    4096 2006-05-25 04:45 libiberty
drwxr-xr-x 11 administrator users    4096 2006-05-25 04:46 libjava
drwxr-xr-x  3 administrator users    4096 2006-05-25 04:45 libmudflap
drwxr-xr-x  3 administrator users    4096 2006-05-25 04:45 libobjc
drwxr-xr-x  3 administrator users    4096 2006-05-25 04:45 libssp
drwxr-xr-x 11 administrator users    4096 2006-05-25 04:45 libstdc++-v3
-rw-r--r--  1 administrator users   33121 2005-07-16 07:30 libtool.m4
-rw-r--r--  1 administrator users   33972 2005-11-19 03:53 ltcf-c.sh
-rw-r--r--  1 administrator users   39048 2005-07-16 07:30 ltcf-cxx.sh
-rw-r--r--  1 administrator users   29666 2005-07-16 07:30 ltcf-gcj.sh
-rwxr-xr-x  1 administrator users   87021 2005-07-16 07:30 ltconfig
-rw-r--r--  1 administrator users  161936 2005-10-05 14:19 ltmain.sh
-rw-r--r--  1 administrator users   14089 2006-03-22 21:05 MAINTAINERS
drwxr-xr-x  2 administrator users    4096 2006-05-25 04:46 maintainer-scripts
-rw-r--r--  1 administrator users  362350 2011-08-09 10:41 Makefile
-rw-r--r--  1 administrator users   21096 2005-11-12 02:47 Makefile.def
-rw-r--r--  1 administrator users 1102403 2006-04-05 02:03 Makefile.in
-rw-r--r--  1 administrator users   55812 2006-04-05 02:03 Makefile.tpl
-rw-r--r--  1 administrator users 2396343 2006-05-25 06:50 MD5SUMS
-rwxr-xr-x  1 administrator users   11014 2005-07-14 06:08 missing
-rwxr-xr-x  1 administrator users    2179 2000-07-22 13:08 mkdep
-rwxr-xr-x  1 administrator users    3474 2005-07-14 06:08 mkinstalldirs
-rwxr-xr-x  1 administrator users     884 2005-07-16 07:30 move-if-change
-rw-r--r--  1 administrator users  382942 2006-05-25 04:46 NEWS
-rw-r--r--  1 administrator users     795 2001-06-13 23:48 README
-rw-r--r--  1 administrator users     383 2005-05-08 22:49 README.SCO
-rw-r--r--  1 administrator users      13 2011-08-09 10:41 serdep.tmp
-rwxr-xr-x  1 administrator users    2265 2005-07-14 06:08 symlink-tree
-rwxr-xr-x  1 administrator users    6193 2005-07-14 06:08 ylwrap
drwxr-xr-x 11 administrator users    4096 2006-05-25 04:45 zlib

Now for full installation I am following the commands given here “https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/2006-October/021683.html” i.e., after configuration, I have to run the command “make” and “make install”. However after executing the command “make” I get some errors in the end.


administrator@linux-wnx3:~/Downloads/gcc-4.1.1> make
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1'
make[2]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" "MAKEINFO=/home/administrator/Downloads/gcc-4.1.1/missing makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/i686-pc-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[2]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/zlib'
make[2]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libiberty'
make[3]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libiberty'
make[2]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" "MAKEINFO=/home/administrator/Downloads/gcc-4.1.1/missing makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" all-am
make[3]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
restore=: && backupdir=".am$$" && \
        rm -rf $backupdir && mkdir $backupdir && \
        for f in fastjar.info fastjar.info-[0-9] fastjar.info-[0-9][0-9] fastjar.i[0-9] fastjar.i[0-9][0-9]; do \
          if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
        done; \
        if /home/administrator/Downloads/gcc-4.1.1/missing makeinfo --split-size=5000000 --split-size=5000000  -I ../.././fastjar/../gcc/doc/include  -I ../.././fastjar \
         -o fastjar.info `test -f 'fastjar.texi' || echo '../.././fastjar/'`fastjar.texi; \
        then \
          rc=0; \
        else \
          rc=$?; \
          $restore $backupdir/* `echo "./fastjar.info" | sed 's|^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
make[3]: *** [fastjar.info] Error 1
make[3]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make[1]: *** [all-fastjar] Error 2
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1'
make: *** [all] Error 2

What does these error means??or am I executing wrong command?? Is there some other way for full installation in linux?? I shall be very thankful for help/replies.

If you just want to compile C and C++ programs and don’t care about GCJ, you should restrict the languages in the ./configure step with:

–enable-languages=“c,c++”

Otherwise by default it builds all compilers and it will hit some missing dependencies building GCJ. It also wastes time.

The official documentation is here and should be consulted in preference to random posts on the Net.

Installing GCC: Configuration - GNU Project - Free Software Foundation (FSF)

But its still giving error. can’t figure out exactly why :frowning:


administrator@linux-wnx3:~/Downloads/gcc-4.1.1> make bootstrap
Configuring in build-i686-pc-linux-gnu/libiberty
configure: loading cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... (cached) /home/administrator/Downloads/gcc-4.1.1/missing makeinfo
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... (cached) perl
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking for i686-pc-linux-gnu-ar... no
checking for ar... (cached) ar
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... (cached) ranlib
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
.
.
.
.
checking for working strncmp... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default commands
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/build-i686-pc-linux-gnu/libiberty'
rm -f needed-list; touch needed-list; \
        for f in atexit calloc memchr memcmp memcpy memmove memset rename strchr strerror strncmp strrchr strstr strtol strtoul tmpnam vfprintf vprintf vfork waitpid bcmp bcopy bzero; do \
          for g in  ; do \
            case "$g" in \
              *$f*) echo $g >> needed-list ;; \
            esac; \
          done; \
        done
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./ternary.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o > required-list
make[2]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/build-i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/build-i686-pc-linux-gnu/libiberty/testsuite'
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/build-i686-pc-linux-gnu/libiberty'
Configuring in build-i686-pc-linux-gnu/fixincludes
configure: loading cache ../config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) i686-pc-linux-gnu
checking target system type... (cached) i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... (cached) gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking whether gcc supports -W... (cached) yes
checking whether gcc supports -Wall... (cached) yes
checking whether gcc supports -Wwrite-strings... (cached) yes
checking whether gcc supports -Wstrict-prototypes... (cached) yes
checking whether gcc supports -Wmissing-prototypes... (cached) yes
checking whether gcc supports -Wold-style-definition... (cached) yes
checking whether gcc supports -Wmissing-format-attribute... (cached) yes
checking whether gcc supports -pedantic -Wno-long-long... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for clearerr_unlocked... (cached) yes
checking for feof_unlocked... (cached) yes
checking for ferror_unlocked... (cached) yes
checking for fflush_unlocked... (cached) yes
checking for fgetc_unlocked... (cached) yes
checking for fgets_unlocked... (cached) yes
checking for fileno_unlocked... (cached) yes
checking for fprintf_unlocked... (cached) no
checking for fputc_unlocked... (cached) yes
checking for fputs_unlocked... (cached) yes
checking for fread_unlocked... (cached) yes
checking for fwrite_unlocked... (cached) yes
checking for getchar_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for putchar_unlocked... (cached) yes
checking for putc_unlocked... (cached) yes
checking whether abort is declared... (cached) yes
checking whether errno is declared... (cached) no
checking whether clearerr_unlocked is declared... (cached) yes
checking whether feof_unlocked is declared... (cached) yes
checking whether ferror_unlocked is declared... (cached) yes
checking whether fflush_unlocked is declared... (cached) yes
checking whether fgetc_unlocked is declared... (cached) yes
checking whether fgets_unlocked is declared... (cached) no
checking whether fileno_unlocked is declared... (cached) yes
checking whether fprintf_unlocked is declared... (cached) no
checking whether fputc_unlocked is declared... (cached) yes
checking whether fputs_unlocked is declared... (cached) no
checking whether fread_unlocked is declared... (cached) yes
checking whether fwrite_unlocked is declared... (cached) yes
checking whether getchar_unlocked is declared... (cached) yes
checking whether getc_unlocked is declared... (cached) yes
checking whether putchar_unlocked is declared... (cached) yes
checking whether putc_unlocked is declared... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... (cached) yes
checking whether mmap from /dev/zero works... (cached) yes
checking for MAP_ANON(YMOUS)... (cached) yes
checking whether mmap with MAP_ANON(YMOUS) works... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mkheaders.almost
config.status: creating config.h
config.status: config.h is unchanged
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/build-i686-pc-linux-gnu/fixincludes'
srcdir="../.././fixincludes" /bin/sh ../.././fixincludes/mkfixinc.sh i686-pc-linux-gnu
sed -e 's/@gcc_version@/4.1.1/' < mkheaders.almost > mkheadersT
mv -f mkheadersT mkheaders
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/build-i686-pc-linux-gnu/fixincludes'
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/intl'
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libiberty'
make[2]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libiberty/testsuite'
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libiberty'
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/libcpp'
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" "MAKEINFO=/home/administrator/Downloads/gcc-4.1.1/missing makeinfo --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/i686-pc-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/zlib'
Bootstrapping the compiler
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/gcc'
make[1]: *** No rule to make target `bootstrap'.  Stop.
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/gcc'
make: *** [bootstrap] Error 2

and afterwards when I try to install


administrator@linux-wnx3:~/Downloads/gcc-4.1.1> make install
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1'
/bin/sh ./mkinstalldirs /usr/local /usr/local
make[2]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
restore=: && backupdir=".am$$" && \
        rm -rf $backupdir && mkdir $backupdir && \
        for f in fastjar.info fastjar.info-[0-9] fastjar.info-[0-9][0-9] fastjar.i[0-9] fastjar.i[0-9][0-9]; do \
          if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
        done; \
        if /home/administrator/Downloads/gcc-4.1.1/missing makeinfo --split-size=5000000 --split-size=5000000 -I ../.././fastjar/../gcc/doc/include  -I ../.././fastjar \
         -o fastjar.info `test -f 'fastjar.texi' || echo '../.././fastjar/'`fastjar.texi; \
        then \
          rc=0; \
        else \
          rc=$?; \
          $restore $backupdir/* `echo "./fastjar.info" | sed 's|^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
make[2]: *** [fastjar.info] Error 1
make[2]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make[1]: *** [install-fastjar] Error 2
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1'
make: *** [install] Error 2

Any thoughts? :frowning:

Make as to work before you can install it.

Why this is failing I can’t say but make sure you have make installed

I also do not know what is wrong exactly, but it has no use to go for the next step when a step is not finished OK. Not only it has no use, But you never know what happens then.

Also while the configure and make are to be run as normal user, the make install has to be run as root because root is the only one that can put the files in their proper system places.

And I also repeat what is said before. Do not follow the Internet somewhere, but check the README that belongs to the product and/or ask here when in doubt.

You should make clean or perhaps make distclean (check doco) before doing the configure step again with language restrictions. Rubbish left behind by a previous make may not be cleared if you reconfigure.

I checked if it compiles on my system and got the same error. The reason
seems to be that configure does not detect makeinfo (which is installed). I
guess the makeinfo on the system is too new for this old configure script or
something like that. I took a brute force approach.


kwrite Makefile

look at line 258 (this can slightly differ on your system, the line in
question starts with “MAKEINFO = …” and change it to


MAKEINFO = makeinfo

and run make again (it compiled now on my machine).


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

@all thanks for suggestions…

@martin_helm…in my case its again giving same warning/error…that makeinfo is missing on your system…???


administrator@linux-wnx3:~/Downloads/gcc-4.1.1> make
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1'
mkdir -p -- host-i686-pc-linux-gnu/fastjar
Configuring in host-i686-pc-linux-gnu/fastjar
configure: creating cache ./config.cache
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for strip... /usr/bin/strip
checking for chmod... /bin/chmod
checking whether to enable maintainer-specific portions of Makefiles... no
.
.
.
make[3]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
(echo "@set version-GCC 4.1.1"; \
         if  "" = "experimental" ]; \
         then echo "@set DEVELOPMENT"; \
         else echo "@clear DEVELOPMENT"; \
         fi) > gcc-vers.texiT
mv -f gcc-vers.texiT gcc-vers.texi
restore=: && backupdir=".am$$" && \
        rm -rf $backupdir && mkdir $backupdir && \
        for f in fastjar.info fastjar.info-[0-9] fastjar.info-[0-9][0-9] fastjar.i[0-9] fastjar.i[0-9][0-9]; do \
          if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
        done; \
        if /home/administrator/Downloads/gcc-4.1.1/missing makeinfo --split-size=5000000 --split-size=5000000  -I ../.././fastjar/../gcc/doc/include  -I ../.././fastjar \
         -o fastjar.info `test -f 'fastjar.texi' || echo '../.././fastjar/'`fastjar.texi; \
        then \
          rc=0; \
        else \
          rc=$?; \
          $restore $backupdir/* `echo "./fastjar.info" | sed 's|^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
WARNING: `makeinfo' is missing on your system.  You should only need it if
         you modified a `.texi' or `.texinfo' file, or any other file
         indirectly affecting the aspect of the manual.  The spurious
         call might also be the consequence of using a buggy `make' (AIX,
         DU, IRIX).  You might want to install the `Texinfo' package or
         the `GNU make' package.  Grab either from any GNU archive site.
make[3]: *** [fastjar.info] Error 1
make[3]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make[1]: *** [all-fastjar] Error 2
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1'
make: *** [all] Error 2

:frowning: what should I do now??

I don’t think makeinfo is the problem. It’s printed as a WARNING. I think the problem is it’s trying to build the Java compiler part. You might want to use the --disable-gcj (check this) option of configure to not build that part at all. Did you also restrict the languages? I would have thought that would exclude Java.

@all…well thanks for all your suggestions…the make command actually worked by overwriting MAKEINFO = … with MAKEINFO=makeinfo…Previously the changes in the file were not saved… Thanksalot @martin_helms

Now I need to install it…but now its again giving error in this step…arrrggghhhh :frowning:


 administrator@linux-wnx3:~/Downloads/gcc-4.1.1> make install
make[1]: Entering directory `/home/administrator/Downloads/gcc-4.1.1'
/bin/sh ./mkinstalldirs /usr/local /usr/local
make[2]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make[3]: Entering directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
  /usr/bin/install -c 'fastjar' '/usr/local/bin/fastjar'
/usr/bin/install: cannot create regular file `/usr/local/bin/fastjar': Permission denied
make[3]: *** [install-binPROGRAMS] Error 1
make[3]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1/host-i686-pc-linux-gnu/fastjar'
make[1]: *** [install-fastjar] Error 2
make[1]: Leaving directory `/home/administrator/Downloads/gcc-4.1.1'
make: *** [install] Error 2

Whats this error now about?? :frowning: :frowning: :frowning:

@all…thanks for useful suggestions…
@martin_helm…thanks for kind help…gcc4.1.1 finally installed… :slight_smile:

A “make install” needs to be run with root permissions. But be carefull not
to shadow your default gcc compiler with the older version. Think twice
about it if you really want to install it system wide.


PC: oS 11.4 64 bit | Intel Core i7-2600@3.40GHz | KDE 4.6.0 | GeForce GT 420
| 16GB Ram
Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.5 | nVidia
ION | 3GB Ram

Hi all,
I too facing the same problem as: WARNING: makeinfo' is missing on your system. You should only need it if you modified a .texi’ or .texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy make’ (AIX,
DU, IRIX). You might want to install the Texinfo' package or the GNU make’ package. Grab either from any GNU archive site.
make[3]: *** [fastjar.info] Error 1
And not able to build gcc4.1.2.
I am running on ubuntu with configuration as …/gcc-4.1.2/configure --target=$TARGET --prefix=$PREFIX --with-newlib --with-gnu-as --with-gnu-ld --disable-shared --disable-libssp .

I tried with option --disable-gcj mentioned by ken_yap, but still not working.

Please tell me alternative or other work-around to do to remove this error.