[gccsdk] [GCCSDK commit] joty - r3333 - trunk/gcc4

Adam lists at snowstone.org.uk
Wed Mar 19 09:43:08 PDT 2008


In message <43361a824f.Jo at hobbes.bass-software.com>, John Tytgat  wrote:

> In message <4ab79e814f.admin at snowstone.org.uk>
>           Adam <lists at snowstone.org.uk> wrote:
> 
> > If so, I've been having problems with the filename translation etc
> > on RISC OS. Trying to build DeskLib results in lots of "file not
> > found" errors for the "#include DeskLib:Whatever.o" lines.[1]
> > However, there's lots going on with DeskLib (different makefiles,
> > object types etc) so I've just been trying on a simple example.
> 
> I expect this work.  If you want I can make a new kit available with
> what we have right now so you can try this out and report back.

That sounds great, thanks.


> > Under GCC3.4.6 a file called "simple/c" is found with a "gcc
> > simple.c" command, but under GCC4, it is not.
> 
> That's a different subject:

Yes, I was working towards replicating my DeskLib problem, but thought
I'd stop at the first problem.


> you probably have UnixEnv$gcc$sfix (and others) still containing the
> 'c' suffix which is potentionally confusing for UnixLib or gcc itself

I don't recall altering the default values of the UnixEnv* variables,
though it is possible. Anyway, see below for an expanded test case.

    *gcc -v
    Using built-in specs.
    Configured with: ./configure
    Thread model: posix
    gcc version 3.4.6 (RISC OS GCCSDK 3.4.6 Release 3)
    *show unix*
    UnixEnv$as$sfix : h:hdr:Hdr:S:s:o
    UnixEnv$cc1$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$cc1plus$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$cpp$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$f771$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$g++$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$g77$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$gcc$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$gcov$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$HOME : /HostFS::Reverence.$/!boot/Resources/!UnixHome/home
    UnixEnv$LYNX_CFG : /HostFS::Reverence.$/!boot/Resources/!UnixHome/home/lynx.cfg
    UnixEnv$make$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$TERM : xterm-vt220
    UnixLib$Dir : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib
    UnixLib$Help : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib.!Help
    UnixLib$Path : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib.,HostFS::Reverence.$.Programs.Packages.Library.!Un
    ixLib.include.
    *gcc test.c
    *|RunImage produced OK
    *unset unixenv*
    *show unix*
    UnixLib$Dir : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib
    UnixLib$Help : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib.!Help
    UnixLib$Path : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib.,HostFS::Reverence.$.Programs.Packages.Library.!Un
    ixLib.include.
    *|GCC4 & DSO_Libs double-clicked
    *gcc -v
    Using built-in specs.
    Target: arm-unknown-riscos
    Configured with: /home/joty/projects/gccsdk/gccsdk_svn2/gcc4/srcdir/configure riscos
    Thread model: posix
    gcc version 4.1.1 (GCCSDK GCC 4.1.1 Prerelease 1)
    *show unix*
    UnixEnv$addr2line$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$ar$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$as$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$c++filt$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$cc1$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$cc1plus$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$collect2$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$cpp$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$g++$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$gcc$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$gcov$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$gprof$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$ld$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$make$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$nm$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$objcopy$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$objdump$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$ranlib$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$readelf$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$size$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$strings$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixEnv$strip$sfix : f:for:F:fpp:cc:cxx:cpp:c++:C:i:ii:rpo:c:m:h:hh:s:S:xrb:xrs:l:o:y:tcc:cmhg
    UnixLib$Dir : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib
    UnixLib$Help : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib.!Help
    UnixLib$Path : HostFS::Reverence.$.Programs.Packages.Library.!UnixLib.,HostFS::Reverence.$.Programs.Packages.Library.!Un
    ixLib.include.
    *gcc test.c
    cc1: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://gccsdk.riscos.info/> for instructions.
    *|taskwindow set to 21M
    *gcc test.c
    cc1: error: test.c: No such file or directory


> > [1] DeskLib cross-compiles here OK, but as I never managed to get
> > cross-compiler throwback working on this VRPC/XP/Cygwin setup I find
> > it easier to do the compiling within RISC OS.
> 
> Maybe you can retry this with pre-release 2 with the cross-compiler
> throwback support but as we never pinpointed the problem with GCCSDK
> 3.4.6 it could very well be that this still isn't working for you.

Since my last attempt to get this working I've changed computer and
don't have sshd etc installed any more. Unfortunately I found it quite
problematic just getting remote access to Cygwin from RISC OS, let alone
getting the throwback working. Unless there's been some substantial
change in GCC which might mean syslog-throwback will work where it
didn't before, I don't think it's worth me trying to get all the
networking etc set up again. :(

Thanks,
Adam

P.S. test/c consists of:
  #include <stdio.h>

  int main(void)
  {
    printf("hi");
    return 0;
  }
-- 
Adam Richardson          Carpe Diem
http://www.snowstone.org.uk/riscos/




More information about the gcc mailing list