Has anyone had success with GCC SVN/4.7

Christian Prochaska christian.prochaska at ...1...
Mon Mar 19 16:50:43 CET 2012


Hi Taru,

On 03/19/2012 05:40 AM, Taru Karttunen wrote:
> Hello
>
> I was hacking around gccgo (go implementation in gcc) and I can get the
> runtime and the compiler compiled when using gcc-4.7-RC-20120314. But
> the issue becomes rest of Genode not liking a newer gcc.
>
> Has anyone else had success with either GCC 4.7 or a SVN version of GCC?
>
> My current issue is:
>   Library libc
>     MERGE    libc.lib.so
> fd_alloc.o: In function `Libc::file_descriptor_allocator()':
> /home/taruti/genohack/genode/libports/src/lib/libc/fd_alloc.cc:26:
>   undefined reference to `__dso_handle'
> /usr/local/genode-gcc/bin/genode-x86-ld: fd_alloc.o: relocation
>   R_X86_64_PC32 against undefined hidden symbol `__dso_handle' can not
>   be used when making a shared object
>
> Has anyone got an idea how to solve this?
>
> ps. if someone is trying this, one has to compile libsupc++ explicitely
> with -fPIC to get cxx working.
>
> - Taru Karttunen
>

I just tried to build gcc-4.7-RC-20120314 using the Genode 'tool_chain'
script, but got compile errors:

../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25840:118:
error: ‘VOID_FTYPE_PLONGLONG_LONGLONG’ undeclared here (not in a function)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25840:3: warning:
missing initializer
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25840:3: warning:
(near initialization for ‘bdesc_special_args[21].flag’)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25889:111:
error: ‘V4DI_FTYPE_PV4DI’ undeclared here (not in a function)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25889:3: warning:
missing initializer
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25889:3: warning:
(near initialization for ‘bdesc_special_args[55].flag’)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25890:108:
error: ‘V4SI_FTYPE_PCV4SI_V4SI’ undeclared here (not in a function)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25890:3: warning:
missing initializer
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25890:3: warning:
(near initialization for ‘bdesc_special_args[56].flag’)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25891:108:
error: ‘V2DI_FTYPE_PCV2DI_V2DI’ undeclared here (not in a function)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25891:3: warning:
missing initializer
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25891:3: warning:
(near initialization for ‘bdesc_special_args[57].flag’)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25892:117:
error: ‘V8SI_FTYPE_PCV8SI_V8SI’ undeclared here (not in a function)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25892:3: warning:
missing initializer
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25892:3: warning:
(near initialization for ‘bdesc_special_args[58].flag’)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25893:117:
error: ‘V4DI_FTYPE_PCV4DI_V4DI’ undeclared here (not in a function)
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25893:3: warning:
missing initializer
../../../../contrib/gcc-4.7.0-RC-20120314/gcc/config/i386/i386.c:25893:3: warning:
(near initialization for ‘bdesc_special_args[59].flag’)

...

Did you get these errors, too? If you did, could you please tell me how
you fixed them and if you had to fix anything else to build your GCC?

Christian





More information about the users mailing list