[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] trouble with mintlib + gcc 4.4.2



Hi,

I've found interesting problem with I tried to native compilation of mintlib with (only) gcc 4.4.2:

make[1]: Entering directory `/e/mintlib/sunrpc'
./rpcgen `gcc -print-file-name=cpp | sed -e "s,/cpp$,," -e "s,^cpp$,," -e "s,^..*,-Y &,"` -h bootparam_prot.x -o bootparam_prot.T
cannot find any C preprocessor (cpp)
./rpcgen: C preprocessor failed with exit code 1

First thing what surprises me is why we use -print-file-name (for library paths) for 'cpp' when it should be -print-prog-name. Second thing is the fact gcc -print-prog-name=cpp fails (returns just 'cpp') but gcc -print-prog-name=cc1 works (returns '/d/usr/local/bin/../libexec/gcc/m68k-atari-mint/4.4.2/cc1'). 'which cpp' returns '/usr/local/bin/cpp'

Any idea why it works with gcc 2.95 and how to fix it on 4.4.2?

--
MiKRO / Mystic Bytes
http://mikro.atari.org