Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gforth compile errors

6 views
Skip to first unread message

jzakiya

unread,
Dec 5, 2009, 9:48:41 PM12/5/09
to
I upgraded my PCLinuxOS system and now can't compile gforth 0.7.0.
I'm using a Toshiba Satelite laptop. Here's the 'uname -a' output.

Linux localhost 2.6.26.8.tex4 #1 SMP Fri Aug 14 05:54:23 CDT 2009 i686
Intel(R) Pentium(R) 4 CPU 2.80GHz GNU/Linux

gcc is 4.4.1

Here's what I get when I do ./configure:

checking for 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 ISO C89... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether to use two dispatches per conditional branch... 1
checking make type... GNU Make
checking whether the linker accepts -export-dynamic... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
Check for arch/386//gforth.ld (false)
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details


When I look into the config.log file it seems like its trying to
compile for a 64-bit system instead of a 32-bit system, which is my P4
cpu.

I know gforth doesn't compile correctly with certain gcc 4.*.*
Is gcc 4.4.1 one of those it doesn't compile under correctly?

How can I get it to compile correctly?

Thanks

Anton Ertl

unread,
Dec 6, 2009, 11:19:08 AM12/6/09
to
jzakiya <jza...@gmail.com> writes:
>I upgraded my PCLinuxOS system and now can't compile gforth 0.7.0.
>I'm using a Toshiba Satelite laptop. Here's the 'uname -a' output.
>
>Linux localhost 2.6.26.8.tex4 #1 SMP Fri Aug 14 05:54:23 CDT 2009 i686
>Intel(R) Pentium(R) 4 CPU 2.80GHz GNU/Linux
>
>gcc is 4.4.1
>
>Here's what I get when I do ./configure:
...

>checking host system type... i686-pc-linux-gnu
>Check for arch/386//gforth.ld (false)
>checking how to run the C preprocessor... /lib/cpp
>configure: error: C preprocessor "/lib/cpp" fails sanity check
>See `config.log' for more details

That error does not ring a bell. BTW, the normal result of that test is:

checking how to run the C preprocessor... gcc -E

>When I look into the config.log file it seems like its trying to
>compile for a 64-bit system instead of a 32-bit system, which is my P4
>cpu.

Why do you think so? The host system type was recognized as a 32-bit
CPU (i686).

>I know gforth doesn't compile correctly with certain gcc 4.*.*

That's not a common problem. Compiling correctly but lacking
performance is a more common problem.

>Is gcc 4.4.1 one of those it doesn't compile under correctly?

I have not tried 4.4.1, but 4.4.0 works correctly (although it
produces slow code).

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2009: http://www.euroforth.org/ef09/

jzakiya

unread,
Dec 8, 2009, 12:00:14 PM12/8/09
to
On Dec 6, 11:19 am, an...@mips.complang.tuwien.ac.at (Anton Ertl)
wrote:

It was a missing glibc-headers-develop library in my system.
I installed it and gforth compiled with no problems with gcc 4.4.1.
Will do some benchmarks to see if its slower/faster than before.

0 new messages