* Information Request
@ 2004-10-06 22:32 hnknbd
2004-10-07 4:12 ` ELF file OS ABI error in shared library kripashankar
0 siblings, 1 reply; 4+ messages in thread
From: hnknbd @ 2004-10-06 22:32 UTC (permalink / raw)
To: gcc-help
spect. GCC,
I am using cross compiler powerpc-eabi-gcc on Linux OS running on PC platform.
When I try to compile a source file prova2.c with the command:
/gnutools/powerpc-eabi/bin# ./gcc -Wall -o -g /gnutools/myprova/prova2.c
the following messages returns:
root@darkstar:/gnutools/powerpc-eabi/bin# ./gcc -Wall -o -g /gnutools/myprova/prova2.c
/gnutools/lib/gcc/powerpc-eabi/3.4.2/../../../../powerpc-eabi/bin/ld: warning:
cannot find entry symbol _start; defaulting to 01800074
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.text+0xc4): In function
`__eabi':
/tmp/build/gcc/gcc/eabi.S:232: undefined reference to `__init'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x8):/tmp/build/gcc/gcc/eabi.S:146:
undefined reference to `__SDATA_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0xc):/tmp/build/gcc/gcc/eabi.S:148:
undefined reference to `__SBSS_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x14):/tmp/build/gcc/gcc/eabi.S:150:
undefined reference to `__SDATA2_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x18):/tmp/build/gcc/gcc/eabi.S:151:
undefined reference to `__SBSS2_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x1c):/tmp/build/gcc/gcc/eabi.S:152:
undefined reference to `__GOT_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x28):/tmp/build/gcc/gcc/eabi.S:155:
undefined reference to `__GOT_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x2c):/tmp/build/gcc/gcc/eabi.S:156:
undefined reference to `__GOT2_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x30):/tmp/build/gcc/gcc/eabi.S:157:
undefined reference to `__GOT2_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x34):/tmp/build/gcc/gcc/eabi.S:158:
undefined reference to `__FIXUP_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x38):/tmp/build/gcc/gcc/eabi.S:159:
undefined reference to `__FIXUP_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x3c):/tmp/build/gcc/gcc/eabi.S:163:
undefined reference to `__CTOR_LIST__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x40):/tmp/build/gcc/gcc/eabi.S:164:
undefined reference to `__CTOR_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x44):/tmp/build/gcc/gcc/eabi.S:165:
undefined reference to `__DTOR_LIST__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x48):/tmp/build/gcc/gcc/eabi.S:166:
undefined reference to `__DTOR_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x4c):/tmp/build/gcc/gcc/eabi.S:167:
undefined reference to `__EXCEPT_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x50):/tmp/build/gcc/gcc/eabi.S:171:
undefined reference to `__EXCEPT_END__'
collect2: ld returned 1 exit status
I ask you any information to resolve this problem.
Many thanks and regards
Filippo D'Angelo
^ permalink raw reply [flat|nested] 4+ messages in thread
* ELF file OS ABI error in shared library
2004-10-06 22:32 Information Request hnknbd
@ 2004-10-07 4:12 ` kripashankar
0 siblings, 0 replies; 4+ messages in thread
From: kripashankar @ 2004-10-07 4:12 UTC (permalink / raw)
To: gcc-help
Hi all
I tried recompiling the arm-linux-gcc cross tool with
my own files and updates. I got a warning message
during the configure phase and an error when i ran
make.
Also i used the debian crosstool library as my shared
library which worked for me when i first built it.
The library is the directory
"/mymachine/arm-deb/bins/lib/"
any command (like "ls") other than "cd" in library
directory shows the error
ls: error while loading shared libraries: libc.so.6:
ELF file OS ABI invalid
---------------------------------------------------------
warning information during "configure"
---------------------------------------------------------
*** This configuration is not supported in the
following subdirectories:
target-libstdc++-v3 target-libf2c target-libffi
target-boehm-gc target-zlib target-libjava zlib
fastjar target-libobjc
(Any other directories should still work fine.)
------------------------------------------------------
Copying /mymachine/arm-deb/bins/lib/ to
/mymachine/arm-deb/bins//arm-linux/lib
tar: error while loading shared libraries: libc.so.6:
ELF file OS ABI invalid
------------------------------------------------------
Copying /mymachine/arm-deb/bins/include/ to
/mymachine/arm-deb/bins//arm-linux/sys-include
....
----------------------------------------------------------
Error during the make phase
----------------------------------------------------------
In file included from
/mymachine/arm-deb/bins/include/bits/posix1_lim.h:130,
from
/mymachine/arm-deb/bins/include/limits.h:144,
from
/mymachine/arm-deb/install/gcc/gcc/include/limits.h:122,
from
/mymachine/arm-deb/install/gcc/gcc/include/syslimits.h:7,
from
/mymachine/arm-deb/install/gcc/gcc/include/limits.h:11,
from
../../../gcc-3.3/gcc/tsystem.h:93,
from
../../../gcc-3.3/gcc/crtstuff.c:62:
/mymachine/arm-deb/bins/include/bits/local_lim.h:36:26:
linux/limits.h: No such file or directory
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory
`/mymachine/arm-deb/install/gcc/gcc'
make: *** [all-gcc] Error 2
I would appreciate any kind of help.
regards
kripa
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Information Request
@ 2004-10-07 18:54 Ramadass, Ramanathan
0 siblings, 0 replies; 4+ messages in thread
From: Ramadass, Ramanathan @ 2004-10-07 18:54 UTC (permalink / raw)
To: hnknbd, gcc-help
It seems like you are not linking against the C runtime startup files (files named crt1.o, crti.o, crtbegin.o etc). Did you build the cross-compiler? If so check that you have the runtime files built. Also use the "verbose" option (gcc -v) to see what exactly are the input files to "ld".
HTH
Ram
-----Original Message-----
From: hnknbd@tin.it [mailto:hnknbd@tin.it]
Sent: Wednesday, October 06, 2004 3:33 PM
To: gcc-help@gcc.gnu.org
Subject: Information Request
spect. GCC,
I am using cross compiler powerpc-eabi-gcc on Linux OS running on PC platform.
When I try to compile a source file prova2.c with the command:
/gnutools/powerpc-eabi/bin# ./gcc -Wall -o -g /gnutools/myprova/prova2.c
the following messages returns:
root@darkstar:/gnutools/powerpc-eabi/bin# ./gcc -Wall -o -g /gnutools/myprova/prova2.c
/gnutools/lib/gcc/powerpc-eabi/3.4.2/../../../../powerpc-eabi/bin/ld: warning:
cannot find entry symbol _start; defaulting to 01800074
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.text+0xc4): In function
`__eabi':
/tmp/build/gcc/gcc/eabi.S:232: undefined reference to `__init'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x8):/tmp/build/gcc/gcc/eabi.S:146:
undefined reference to `__SDATA_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0xc):/tmp/build/gcc/gcc/eabi.S:148:
undefined reference to `__SBSS_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x14):/tmp/build/gcc/gcc/eabi.S:150:
undefined reference to `__SDATA2_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x18):/tmp/build/gcc/gcc/eabi.S:151:
undefined reference to `__SBSS2_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x1c):/tmp/build/gcc/gcc/eabi.S:152:
undefined reference to `__GOT_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x28):/tmp/build/gcc/gcc/eabi.S:155:
undefined reference to `__GOT_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x2c):/tmp/build/gcc/gcc/eabi.S:156:
undefined reference to `__GOT2_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x30):/tmp/build/gcc/gcc/eabi.S:157:
undefined reference to `__GOT2_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x34):/tmp/build/gcc/gcc/eabi.S:158:
undefined reference to `__FIXUP_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x38):/tmp/build/gcc/gcc/eabi.S:159:
undefined reference to `__FIXUP_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x3c):/tmp/build/gcc/gcc/eabi.S:163:
undefined reference to `__CTOR_LIST__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x40):/tmp/build/gcc/gcc/eabi.S:164:
undefined reference to `__CTOR_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x44):/tmp/build/gcc/gcc/eabi.S:165:
undefined reference to `__DTOR_LIST__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x48):/tmp/build/gcc/gcc/eabi.S:166:
undefined reference to `__DTOR_END__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x4c):/tmp/build/gcc/gcc/eabi.S:167:
undefined reference to `__EXCEPT_START__'
/gnutools/lib/gcc/powerpc-eabi/3.4.2/libgcc.a(eabi.o)(.got2+0x50):/tmp/build/gcc/gcc/eabi.S:171:
undefined reference to `__EXCEPT_END__'
collect2: ld returned 1 exit status
I ask you any information to resolve this problem.
Many thanks and regards
Filippo D'Angelo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Information Request
@ 2004-09-09 9:56 alex19_82
0 siblings, 0 replies; 4+ messages in thread
From: alex19_82 @ 2004-09-09 9:56 UTC (permalink / raw)
To: gcc-help
spect. GCC,
i'm an italian student and i'm using gcc cross compiler to try to compile a .c file for a powerPC target using a solaris host. I've tried to compile by using the command line:
powerpc-eabi-gcc -c - o../../marco/prova3.out ../../c-src/prova2.c
and it correctly generate the obj file prova.o. When i try to generate the executable file, by writing the command line:
powerpc-eabi-gcc -o ../../marco/prova3.out ../../c-src/prova2.c
it doesn't work. It returns me an error. considering that it's able to create correctly obj file, i think that the problem is on the linking stage. It exactly give me this error:
> powerpc-eabi-gcc -o ../../marco/prova3.out ../../c-src/prova2.c
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/../../../../powerpc-
eabi/bin/ld: warning: cannot find entry symbol _start; defaulting to 01800074
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.te
xt+0xc4): In function `__eabi':
/users/students/tesi08/sources/build-gcc/gcc/eabi.S:232: undefined reference to
`__init'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x8):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:146: undefined refer
ence to `__SDATA_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0xc):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:148: undefined refer
ence to `__SBSS_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x14):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:150: undefined refe
rence to `__SDATA2_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x18):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:151: undefined refe
rence to `__SBSS2_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x1c):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:152: undefined refe
rence to `__GOT_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x28):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:155: undefined refe
rence to `__GOT_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x2c):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:156: undefined refe
rence to `__GOT2_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x30):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:157: undefined refe
rence to `__GOT2_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x34):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:158: undefined refe
rence to `__FIXUP_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x38):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:159: undefined refe
rence to `__FIXUP_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x3c):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:163: undefined refe
rence to `__CTOR_LIST__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x40):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:164: undefined refe
rence to `__CTOR_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x44):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:165: undefined refe
rence to `__DTOR_LIST__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x48):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:166: undefined refe
rence to `__DTOR_END__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x4c):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:167: undefined refe
rence to `__EXCEPT_START__'
/users/students/tesi08/tools/lib/gcc-lib/powerpc-eabi/3.3.4/libgcc.a(eabi.o)(.go
t2+0x50):/users/students/tesi08/sources/build-gcc/gcc/eabi.S:171: undefined refe
rence to `__EXCEPT_END__'
collect2: ld returned 1 exit status
i wish to receive any information about this error and about the way to resolve it! thanks a lot Mignogna Alessandro
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-07 18:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06 22:32 Information Request hnknbd
2004-10-07 4:12 ` ELF file OS ABI error in shared library kripashankar
-- strict thread matches above, loose matches on Subject: below --
2004-10-07 18:54 Information Request Ramadass, Ramanathan
2004-09-09 9:56 alex19_82
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).