[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Preprocessor example
From: |
Scott Robinson |
Subject: |
[Gm2] Preprocessor example |
Date: |
Thu, 23 Oct 2008 18:31:00 -0500 |
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.
- [Gm2] Preprocessor example,
Scott Robinson <=