In message <[email protected]>
          John Tytgat <[email protected]> wrote:

> In message <[email protected]>
>           Michael Ben-Gershon <[email protected]> wrote:

>> I installed the new gcc 4.1.1 and 'make' on my Iyonix machine, but when
>> I tried to build the examples it failed. It does not seem to find the
>> 'libexec' files. [...]
>> File 'cc1' not found

> Very curious.  Basically cc1 gets located by the gcc frontend based on
> the location of gcc frontend itself.  And the latter knows where it is
> located based on its argv[0] which gets canonicalised by UnixLib.

> A question for someone else with an Iyonix: did someone else try the
> examples on an Iyonix as I hope this is not a RISC OS 5 filename
> canonicalisation/prefix problem ?

I get exactly the same effect both on my Iyonix (RISC OS 5.11) and on 
VirtualRPC (RISC OS 4.39). The only system I managed to get it to work 
on is RISC OS 6 (VirtualRPC again). On 4.39 and 5.11, any attempt to 
use GCC 4.1.1 to compile a source file results in the same error:

*wimpslot 8000k 8000k
*gcc helloworld.c -o hellow
File 'cc1' not found

Adding !GCC.libexec.gcc.arm-unknown-riscos.4/1/1.cc1 to Run$Path 
solves that problem but leads to a new one:

*gcc helloworld.c -o hellow
helloworld.c:5:19: error: no include path in which to search for 
stdio.h
helloworld.c: In function 'main':
helloworld.c:9: warning: incompatible implicit declaration of built-in 
function 'printf'

!GCC lives in ADFS::Toccata.$.GCC and the CSD is 
ADFS::Toccata.$.GCC.Examples. Verbose output:

*gcc -v helloworld.c -o hellow
Using built-in specs.
Target: arm-unknown-riscos
Configured with: /home/joty/projects/gccsdk/gccsdk_svn3/gcc4/srcdir/co 
nfigure --prefix=/home/joty/projects/gccsdk/gccsdk_svn3/gcc4/release-a 
rea/full/!GCC --build=x86_64-unknown-linux-gnu 
--host=arm-unknown-riscos --target=arm-unknown-riscos 
--enable-threads=posix --disable-nls --enable-sjlj-exceptions=yes 
--disable-c-mbchar --enable-languages=c,c++ --enable-checking=no 
--disable-libstdcxx-pch --enable-c99 --enable-cmath --with-cross-host 
--enable-multilib --without-pic --disable-shared --without-x 
--enable-libgcj --enable-maintainer-mode
Thread model: posix
gcc version 4.1.1 (GCCSDK GCC 4.1.1 release 1)
 cc1 -quiet -v -iprefix 
     /ADFS::Toccata.$/GCC/Examples/../lib/gcc/arm-unknown-riscos/ 
     4.1.1/ -D__TARGET_UNIXLIB__ -icrossdirafter /libunixlib 
     helloworld.c -quiet -dumpbase helloworld.c -auxbase 
     helloworld -version -o /tmp/ccP6elgN.s
ignoring nonexistent directory 
"/ADFS::Toccata.$/GCC/Examples/../lib/gcc/arm-unknown-riscos/4.1.1/include"
ignoring nonexistent directory 
"/ADFS::Toccata.$/GCC/Examples/../lib/gcc/arm-unknown-riscos/4.1.1/../../../../a
 
rm-unknown-riscos/include"
ignoring nonexistent directory 
"/ADFS::Toccata.$/GCC/Examples/../lib/gcc/arm-unknown-riscos/4.1.1/../../../../a
 
rm-unknown-riscos/include"
ignoring nonexistent directory 
"/home/joty/projects/gccsdk/gccsdk_svn3/gcc4/release-area/full/!GCC/include"
ignoring nonexistent directory 
"/home/joty/projects/gccsdk/gccsdk_svn3/gcc4/release-area/full/!GCC/include"
ignoring nonexistent directory 
"/home/joty/projects/gccsdk/gccsdk_svn3/gcc4/release-area/full/!GCC/lib/gcc/arm-
 
unknown-riscos/4.1.1/include"
ignoring nonexistent directory 
"/home/joty/projects/gccsdk/gccsdk_svn3/gcc4/release-area/full/!GCC/arm-unknown-
 
riscos/include"
ignoring nonexistent directory 
"/home/joty/projects/gccsdk/gccsdk_svn3/gcc4/release-area/full/!GCC/arm-unknown-
 
riscos/include"
ignoring nonexistent directory "/usr/include"
ignoring nonexistent directory 
"/ADFS::Toccata.$/GCC/Examples/../lib/gcc/arm-unknown-riscos/4.1.1/../../../../a
 
rm-unknown-riscos/include/libunixlib"
#include "..." search starts here:
#include <...> search starts here:
End of search list.
GNU C version 4.1.1 (GCCSDK GCC 4.1.1 release 1) (arm-unknown-riscos)
        compiled by GNU C version 4.1.1 (GCCSDK GCC 4.1.1 release 1).
GGC heuristics: --param ggc-min-expand=30 --param 
ggc-min-heapsize=4096
Compiler executable checksum: dacd538776e2ff73a17593704d19c90d
helloworld.c:5:19: error: no include path in which to search for 
stdio.h
helloworld.c: In function 'main':
helloworld.c:9: warning: incompatible implicit declaration of built-in 
function 'printf'

Martin
-- 
---------------------------------------------------------------------
Martin Wuerthner          MW Software          [email protected]
---------------------------------------------------------------------

_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to