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
* [Bug target/33036] LINUX_DYNAMIC_LINKER undefined in gcc-4.2.1/gcc/config/arm/linux-elf.h
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 ` 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
2 siblings, 0 replies; 4+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-04-21 14:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from ramana at gcc dot gnu dot org 2009-04-21 14:28 -------
LINUX_DYNAMIC_LINKER et al are defined in gcc/config/linux.h and the correct
definition must reach this case. Looking at the config parameters for --host
and --build , I can spot a typo of linuc-gnu instead of linux-gnu. That might
be one reason why the build isn't working for you .
arm-linux-gnueabi is a standard build and I bootstrap it regularly and many
folks use crosstool to build such a cross configuration. You might consider
using this for your purposes.
Can you check with a 4.3 toolchain or a compiler of recent vintage with the
correct parameters to --build , --host . Please also indicate the host platform
on which you were trying this.
--
ramana at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33036
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/33036] LINUX_DYNAMIC_LINKER undefined in gcc-4.2.1/gcc/config/arm/linux-elf.h
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
2 siblings, 0 replies; 4+ messages in thread
From: andreas_gajda at web dot de @ 2009-04-22 11:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from andreas_gajda at web dot de 2009-04-22 11:34 -------
Does this mean the target "arm-none-uclinux" is unsupported?
I checked again, using (binutils-2.17 and) gcc-4.3.3 from mirror site
ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.3.3/gcc-4.3.3.tar.bz2
Configuration was:
./configure --prefix=/prefix --build=i686-pc-linux-gnu --host=i686-pc-linux-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
I can confirm, that fixing my typo resolved the above issues. But I get several
other errors. I guess this is a different issue?!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33036
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/33036] LINUX_DYNAMIC_LINKER undefined in gcc-4.2.1/gcc/config/arm/linux-elf.h
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
2 siblings, 0 replies; 4+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-04-24 9:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from ramana at gcc dot gnu dot org 2009-04-24 09:05 -------
(In reply to comment #2)
> Does this mean the target "arm-none-uclinux" is unsupported?
>
> I checked again, using (binutils-2.17 and) gcc-4.3.3 from mirror site
> ftp://ftp.gwdg.de/pub/misc/gcc/releases/gcc-4.3.3/gcc-4.3.3.tar.bz2
>
> Configuration was:
>
> ./configure --prefix=/prefix --build=i686-pc-linux-gnu --host=i686-pc-linux-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
>
> I can confirm, that fixing my typo resolved the above issues. But I get several
> other errors. I guess this is a different issue?!
>
that must be a different issue . I'd suggest you file a fresh bug entry for
that as well as consider using the new ABI with arm-uclinux-eabi if you need
to.
Thanks.
Ramana
--
ramana at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
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).