[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Preprocessor example
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Preprocessor example |
Date: |
25 Oct 2008 17:10:38 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Scott Robinson <address@hidden> writes:
> Hello,
>
> I am having a problem getting the example that runs hello.mod through
> the C preprocessor to build on my system:
>
> $ cd gcc-4.1.2+gm2-cvs-latest/gcc/gm2/examples/cpp/
>
> $ make
> gm2 -fcpp -c -g -I. hello.mod
> sh: cc1: command not found
> C preprocessor failed when preprocessing hello.mod
> make: *** [all] Error 1
>
> $ gm2 -### -fcpp -c -g -I. hello.mod
> Using built-in specs.
> Target: i386-apple-darwin9.5.0
> Configured with: ../gcc-4.1.2+gm2-cvs-latest/configure --enable-
> languages=c,c++,gm2 --enable-checking=all --disable-multilib
> Thread model: posix
> gcc version 4.1.2
> "/usr/local/libexec/gcc/i386-apple-darwin9.5.0/4.1.2/cc1gm2" "-
> fcppbegin" "cc1" "-E" "-lang-asm" "-traditional-cpp" "-quiet" "-quiet"
> "-I.:/usr/local/lib/gcc/i386-apple-darwin9.5.0/4.1.2/gm2/pim:/usr/
> local/lib/gcc/i386-apple-darwin9.5.0/4.1.2/gm2/logitech" "-
> D__DYNAMIC__" "hello.mod" "-fcppend" "-fPIC"
> "-feliminate-unused-debug-
> symbols" "-quiet" "-dumpbase" "hello.mod" "-auxbase" "hello" "-g" "-
> ftarget-ranlib=/usr/bin/ranlib" "-ftarget-ar=/usr/bin/ar" "-fobject-
> path=.:/usr/local/lib/gcc/i386-apple-darwin9.5.0/4.1.2/gm2/pim:/usr/
> local/lib/gcc/i386-apple-darwin9.5.0/4.1.2/gm2/logitech" "-fcpp" "-
> ftarget-ranlib=/usr/bin/ranlib" "-ftarget-ar=/usr/bin/ar" "-fobject-
> path=.:/usr/local/lib/gcc/i386-apple-darwin9.5.0/4.1.2/gm2/pim:/usr/
> local/lib/gcc/i386-apple-darwin9.5.0/4.1.2/gm2/logitech" "-fcpp"
> "-I.:/
> usr/local/lib/gcc/i386-apple-darwin9.5.0/4.1.2/gm2/pim:/usr/local/lib/
> gcc/i386-apple-darwin9.5.0/4.1.2/gm2/logitech" "hello.mod" "-o" "/var/
> folders/Ra/Ra38-meoGL4siqcTGYDw5k+++TU/-Tmp-//ccOsqrTb.s"
> "as" "-arch" "i386" "-force_cpusubtype_ALL" "-o" "hello.o" "/var/
> folders/Ra/Ra38-meoGL4siqcTGYDw5k+++TU/-Tmp-//ccOsqrTb.s"
>
> I'm guessing that the "cc1" above needs the full path to the
> executable (/usr/local/libexec/gcc/i386-apple-darwin9.5.0/4.1.2/cc1).
> Or is this something wrong with the way I built gm2?
>
> Thanks for the help.
Hi Scott,
thanks for the bug report - you guessed correct the full path needed
to be given to cc1 (and it was a bug). It is now fixed in the current
cvs - although I had to patch gcc slightly. So if in doubt about
applying a new patch (from
gcc-4.1.2/gcc/gm2/patches/gcc/4.1.2/05.gaius_patch_gcc) it might be
easier to download the combined tarball from:
http://floppsie.comp.glam.ac.uk/download/c/gcc-4.1.2+gm2-cvs-latest.tar.gz
regards,
Gaius