Hi everyone,
Trying to experiment with C++0x , which will be the new C++ standard by next year, I've downloaded the tarball of the gnu gcc compiler under development. But I'm stuck at the installation...
Anyone, HELP!
I did, according to the description http://gcc.gnu.org/install/configure.html , the following things:
1. get the MPL (multiple precision library) including source --> OK
2. get the MPFRCPP (which requires MPFR and GMP) --> OK
3. make the object-dir separated from the src dir (for testing) --> OK
4. from within the object-dir : `src dir`/configure --> OK
now just to be sure, I have checked the Makefile which has been generated by the 'configure' command. this contains the following lines:
and these are exactly the directories I've created. So it all seems to be OK.# Directory where sources are, from where we are.
srcdir = ../gcc
gcc_docdir = ../gcc/doc
# Directory where sources are, absolute.
abs_srcdir = /usr/share/gcc-4.3.1/gcc_objectdir/../gcc
abs_docdir = /usr/share/gcc-4.3.1/gcc_objectdir/../gcc/doc
# Top build directory for this package, relative to here.
top_builddir = .
# objdir is set by configure.
# It's normally the absolute path to the current directory.
objdir = /usr/share/gcc-4.3.1/gcc_objectdir
BUT:
I get the following error:
build/genmodes -h > tmp-modes.h
/bin/sh: build/genmodes: No such file or directory
Then when I look in the Makefile just mentioned (the Makefile created in the 'object-dir' by the command 'configure'), I see these lines:
insn-modes.c: s-modes; @true
insn-modes.h: s-modes-h; @true
min-insn-modes.c: s-modes-m; @true
s-modes: build/genmodes$(build_exeext)
$(RUN_GEN) build/genmodes$(build_exeext) > tmp-modes.c
$(SHELL) $(srcdir)/../move-if-change tmp-modes.c insn-modes.c
$(STAMP) s-modes
s-modes-h: build/genmodes$(build_exeext)
$(RUN_GEN) build/genmodes$(build_exeext) -h > tmp-modes.h
$(SHELL) $(srcdir)/../move-if-change tmp-modes.h insn-modes.h
$(STAMP) s-modes-h
s-modes-m: build/genmodes$(build_exeext)
$(RUN_GEN) build/genmodes$(build_exeext) -m > tmp-min-modes.c
$(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c
$(STAMP) s-modes-m
There is no file or directory which is called genmodes in the directory "build" (which itself does exist)!!
sniff..... anyone an idea? I don't put any options with 'make' , and I'm just installing it as a native compiler.
Thanks sooooo much in advance.