public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/33036]  New: LINUX_DYNAMIC_LINKER undefined in gcc-4.2.1/gcc/config/arm/linux-elf.h
@ 2007-08-09 13:33 andreas_gajda at web dot de
  2009-04-21 14:29 ` [Bug target/33036] " ramana at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: andreas_gajda at web dot de @ 2007-08-09 13:33 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2404 bytes --]

Hello!

The undefined variable LINUX_DYNAMIC_LINKER, included in the Variable LINK_SPEC
in the file gcc-4.2.1/gcc/config/arm/linux-elf.h lines 56-68 causes an error
during compilation of gcc-4.2.1/gcc/gcc.c at line 740. The error was:

path/gcc-4.2.1/gcc/gcc.c:740: error: expected ‘,’ or ‘;’ before
‘LINUX_DYNAMIC_LINKER’

Defining this variable fixed the compilation problem. 

I assume, a reasonable value would be e.g.

#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
#define LINUX_DYNAMIC_LINKER GLIBC_DYNAMIC_LINKER

and will solve this problem at once. I looked up, how this variable was defined
in other architecture header files e.g. at
gcc-4.2.1/gcc/config/alpha/linux-elf.h. There is the dynamic linker of uClibc
("/lib/ld-uClibc.so.0") used as well. Maybe it is more reasonable to use the
same definition like in the alpha header file.

Also, there is another bug, caused by the undefined funcion or macro 
LINUX_TARGET_OS_CPP_BUILTINS() in the same file
(gcc-4.2.1/gcc/config/alpha/linux-elf.h) line 73, which caused a compilation
error in file gcc-4.2.1/gcc/c-cppbuiltin.c line 559: The error was:

c-cppbuiltin.o: In function `c_cpp_builtins':
path/gcc-4.2.1/gcc/c-cppbuiltin.c:559: undefined reference to
`LINUX_TARGET_OS_CPP_BUILTINS'

Before I posted this bug, I had a look at the current development tree snapshot
  (file gcc-4.3-20070803.tar.bz2) and found the same header file. (with minor
change in commentaries)

The configuration was:

configure --prefix=/prefix --build=i686-pc-linuc-gnu --host=i686-pc-linuc-gnu
--target=arm-none-uclinux --disable-nls --disable-shared --enable-languages=c
--disable-threads --disable-tls --with-sysroot=/prefix/sysroot --with-gnu-as
--with-gnu-ld --without-headers 

If you need further information, please feel free to contact me by email:
andreas_gajda@web.de

Best regards

Andreas Gajda


-- 
           Summary: LINUX_DYNAMIC_LINKER undefined in gcc-
                    4.2.1/gcc/config/arm/linux-elf.h
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andreas_gajda at web dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-none-uclinux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33036


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-24  9:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-09 13:33 [Bug target/33036] New: LINUX_DYNAMIC_LINKER undefined in gcc-4.2.1/gcc/config/arm/linux-elf.h andreas_gajda at web dot de
2009-04-21 14:29 ` [Bug target/33036] " ramana at gcc dot gnu dot org
2009-04-22 11:34 ` andreas_gajda at web dot de
2009-04-24  9:05 ` ramana at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).