public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Information Request
@ 2004-09-09  9:56 alex19_82
  0 siblings, 0 replies; 3+ 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] 3+ messages in thread

* RE: Information Request
@ 2004-10-07 18:54 Ramadass, Ramanathan
  0 siblings, 0 replies; 3+ 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] 3+ messages in thread

* Information Request
@ 2004-10-06 22:32 hnknbd
  0 siblings, 0 replies; 3+ 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] 3+ messages in thread

end of thread, other threads:[~2004-10-07 18:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-09  9:56 Information Request alex19_82
2004-10-06 22:32 hnknbd
2004-10-07 18:54 Ramadass, Ramanathan

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).