public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Link Error: GCC 4.2.0 on SunOS-5.8
@ 2011-02-03 12:21 HEGDE, ASHA (ASHA)
  2011-02-03 13:02 ` asyropoulos
  2011-02-04 16:26 ` Ian Lance Taylor
  0 siblings, 2 replies; 8+ messages in thread
From: HEGDE, ASHA (ASHA) @ 2011-02-03 12:21 UTC (permalink / raw)
  To: gcc-help

Hi,

I am trying to build my application with GCC 4.2.0 on Solaris - SunOS-5.8. I am getting the below mentioned link error during final linking step. Can some one help me to resolve this problem?

Thanks,
Asha

ERROR
============================================================================================================================================
Final link of ecemcectl.vx ...
        /vobs/gnu/gcc/SunOS-5.8/bin/g++ cectl_dummy.o newmain.o tmp/__ecemcectl_vx_what.o /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o /vobs/ecem_common/make/lib/ecectl/solaris/libcectl_common.o /vobs/ecem_common_oam/ucu/mhuapp/ecectl/solaris/mhuapp.o /vobs/ecem_rtcx/make/lib/ecectl/solaris/libcectl_rtcx.o /vobs/ecem_1bts/build/usl/pub/lib/ecectl/ram/solaris/usl_ecectl_ram_tgt.a /vobs/ecem_1bts/build/vxWorks4Host/solaris/libvxWorks4SunOS.a -v -uuslAppMain  -uusl_menu  -Wl,-R -Wl,/vobs/gnu/gcc/SunOS-5.8/lib -Wl,-R -Wl,/vobs/ecem_gnulibs/tclreadline/SunOS-5.8/lib -Wl,-R -Wl,/vobs/ecem_gnulibs/readline/SunOS-5.8/lib -W -L -Wl /vobs/ecem_gnulibs/zlib/SunOS-5.8/lib/libz_z.a -X -lnsl -lsocket -lposix4 -lthread -ldl   -o ecemcectl.vx
Using built-in specs.
g++: unrecognized option '-X'
Target: sparc-sun-solaris2.8
Configured with: /vobs/gnu/gcc/build/src/configure --prefix=/vobs/gnu/gcc/SunOS-5.8 --enable-languages=c,c++ --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --with-stabs
Thread model: posix
gcc version 4.2.0
 /vobs/gnu/gcc/SunOS-5.8/libexec/gcc/sparc-sun-solaris2.8/4.2.0/collect2 -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o ecemcectl.vx -uuslAppMain -uusl_menu /vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/crt1.o /vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/crti.o /usr/ccs/lib/values-Xa.o /vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/crtbegin.o -L -Wl -L/vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0 -L/vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/../../../../sparc-sun-solaris2.8/lib -L/usr/ccs/lib -L/vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/../../.. cectl_dummy.o newmain.o tmp/__ecemcectl_vx_what.o /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o /vobs/ecem_common/make/lib/ecectl/solaris/libcectl_common.o /vobs/ecem_common_oam/ucu/mhuapp/ecectl/solaris/mhuapp.o /vobs/ecem_rtcx/make/lib/ecectl/solaris/libcectl_rtcx.o /vobs/ecem_1bts/build/usl/pub/lib/ecectl/ram/solaris/usl_ecectl_ram_tgt.a /vobs/ecem_1bts/build/vxWorks4Host/solaris/libvxWorks4SunOS.a -R /vobs/gnu/gcc/SunOS-5.8/lib -R /vobs/ecem_gnulibs/tclreadline/SunOS-5.8/lib -R /vobs/ecem_gnulibs/readline/SunOS-5.8/lib /vobs/ecem_gnulibs/zlib/SunOS-5.8/lib/libz_z.a -lnsl -lsocket -lposix4 -lthread -ldl -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc -lc /vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/crtend.o /vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/crtn.o
ld: Software Generation Utilities - Solaris Link Editors: 5.8-1.302
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record
ld: fatal: relocation error: R_SPARC_UA32: file .rela.eh_frame: section: /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: offset: 0x320: relocation requires reference symbol
collect2: ld returned 1 exit status
*** Error code 1
clearmake: Error: Build script failed for "ecemcectl.vx"





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

* Re: Link Error: GCC 4.2.0 on SunOS-5.8
  2011-02-03 12:21 Link Error: GCC 4.2.0 on SunOS-5.8 HEGDE, ASHA (ASHA)
@ 2011-02-03 13:02 ` asyropoulos
  2011-02-03 13:20   ` HEGDE, ASHA (ASHA)
  2011-02-04 16:26 ` Ian Lance Taylor
  1 sibling, 1 reply; 8+ messages in thread
From: asyropoulos @ 2011-02-03 13:02 UTC (permalink / raw)
  To: asha.hegde, gcc-help



>I am trying to build my application with GCC 4.2.0 on Solaris - 
SunOS-5.8. I am
>getting the below mentioned link error during final linking step. Can 
some one
>help me to resolve this problem?

I have built 4.5.2 on OpenSolaris/OpenIndiana with no problem. Maybe it 
is
time to upgrade ;-)

Apostolos Syropoulos

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

* RE: Link Error: GCC 4.2.0 on SunOS-5.8
  2011-02-03 13:02 ` asyropoulos
@ 2011-02-03 13:20   ` HEGDE, ASHA (ASHA)
  2011-02-03 19:05     ` asyropoulos
  2011-02-03 20:59     ` kevin diggs
  0 siblings, 2 replies; 8+ messages in thread
From: HEGDE, ASHA (ASHA) @ 2011-02-03 13:20 UTC (permalink / raw)
  To: asyropoulos, gcc-help

I am not trying to build the GCC. I am only using this GCC version( which is already built) to build my application and I am suppose to get the build up with this version only. 

My ld version is - 2.16.1. Is this compatible with GCC 4.2.0? My build is using following options:
" Configured with: /vobs/gnu/gcc/build/src/configure --prefix=/vobs/gnu/gcc/SunOS-5.8 --enable-languages=c,c++ --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --with-stabs"

Is there any problem with these options?


Thanks,
Asha



-----Original Message-----
From: asyropoulos@aol.com [mailto:asyropoulos@aol.com] 
Sent: Thursday, February 03, 2011 6:32 PM
To: HEGDE, ASHA (ASHA); gcc-help@gcc.gnu.org
Subject: Re: Link Error: GCC 4.2.0 on SunOS-5.8



>I am trying to build my application with GCC 4.2.0 on Solaris - 
SunOS-5.8. I am
>getting the below mentioned link error during final linking step. Can 
some one
>help me to resolve this problem?

I have built 4.5.2 on OpenSolaris/OpenIndiana with no problem. Maybe it 
is
time to upgrade ;-)

Apostolos Syropoulos

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

* Re: Link Error: GCC 4.2.0 on SunOS-5.8
  2011-02-03 13:20   ` HEGDE, ASHA (ASHA)
@ 2011-02-03 19:05     ` asyropoulos
  2011-02-03 20:59     ` kevin diggs
  1 sibling, 0 replies; 8+ messages in thread
From: asyropoulos @ 2011-02-03 19:05 UTC (permalink / raw)
  To: asha.hegde, gcc-help

>My ld version is - 2.16.1. Is this compatible with GCC 4.2.0? My build 
is using
/>following options:
>" Configured with: /vobs/gnu/gcc/build/src/configure 
--prefix=/vobs/gnu/gcc/SunOS-5.8
>--enable-languages=c,c++ --with-as=/usr/ccs/bin/as 
--with-ld=/usr/ccs/bin/ld
>--enable-shared --with-stabs"



We have some differences:

gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i386-pc-solaris2.11/4.5.2/lto-wrapper
Target: i386-pc-solaris2.11
Έχει ρυθμιστεί με: ../gcc-4.5.2/configure --prefix=/usr 
--program-suffix=-4.5.2 --infodir=/usr/share/info 
--mandir=/usr/share/man --libexecdir=/usr/lib --enable-shared 
--disable-static --disable-libtool-lock --target= --enable-objc-gc 
--disable-libada --enable-libssp 
--enable-languages=c,c++,fortran,objc,obj-c++ --enable-threads=posix 
--enable-tls=yes --with-system-zlib --without-gnu-ld 
--with-ld=/usr/ccs/bin/ld --with-gnu-as --with-as=/usr/sfw/bin/gas 
--with-gmp-lib=/usr/lib --with-mpfr-lib=/usr/lib --enable-c99 
--enable-nls --enable-wchar_t --enable-libstdcxx-allocator=mt 
--with-pic --enable-multilib
Μοντέλο νημάτων: posix
gcc version 4.5.2 (GCC)

The main difference seems to be that I am using the GNU as while you 
are using the Solaris as.

Apostolos

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

* Re: Link Error: GCC 4.2.0 on SunOS-5.8
  2011-02-03 13:20   ` HEGDE, ASHA (ASHA)
  2011-02-03 19:05     ` asyropoulos
@ 2011-02-03 20:59     ` kevin diggs
  1 sibling, 0 replies; 8+ messages in thread
From: kevin diggs @ 2011-02-03 20:59 UTC (permalink / raw)
  To: HEGDE, ASHA (ASHA); +Cc: asyropoulos, gcc-help

Hi,

For whatever it might be worth I am using binutils 2.16.1 with gcc
4.3.5 on PowerPC and have built and used the Linux kernel and Firefox
2.x.

kevin

On Thu, Feb 3, 2011 at 7:20 AM, HEGDE, ASHA (ASHA)
<asha.hegde@alcatel-lucent.com> wrote:
>
> My ld version is - 2.16.1. Is this compatible with GCC 4.2.0? My build is using following options:

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

* Re: Link Error: GCC 4.2.0 on SunOS-5.8
  2011-02-03 12:21 Link Error: GCC 4.2.0 on SunOS-5.8 HEGDE, ASHA (ASHA)
  2011-02-03 13:02 ` asyropoulos
@ 2011-02-04 16:26 ` Ian Lance Taylor
  2011-02-05 18:48   ` HEGDE, ASHA (ASHA)
  2011-02-07  9:55   ` HEGDE, ASHA (ASHA)
  1 sibling, 2 replies; 8+ messages in thread
From: Ian Lance Taylor @ 2011-02-04 16:26 UTC (permalink / raw)
  To: HEGDE, ASHA (ASHA); +Cc: gcc-help

"HEGDE, ASHA (ASHA)" <asha.hegde@alcatel-lucent.com> writes:

> Final link of ecemcectl.vx ...
>         /vobs/gnu/gcc/SunOS-5.8/bin/g++ cectl_dummy.o newmain.o tmp/__ecemcectl_vx_what.o /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o /vobs/ecem_common/make/lib/ecectl/solaris/libcectl_common.o /vobs/ecem_common_oam/ucu/mhuapp/ecectl/solaris/mhuapp.o /vobs/ecem_rtcx/make/lib/ecectl/solaris/libcectl_rtcx.o /vobs/ecem_1bts/build/usl/pub/lib/ecectl/ram/solaris/usl_ecectl_ram_tgt.a /vobs/ecem_1bts/build/vxWorks4Host/solaris/libvxWorks4SunOS.a -v -uuslAppMain  -uusl_menu  -Wl,-R -Wl,/vobs/gnu/gcc/SunOS-5.8/lib -Wl,-R -Wl,/vobs/ecem_gnulibs/tclreadline/SunOS-5.8/lib -Wl,-R -Wl,/vobs/ecem_gnulibs/readline/SunOS-5.8/lib -W -L -Wl /vobs/ecem_gnulibs/zlib/SunOS-5.8/lib/libz_z.a -X -lnsl -lsocket -lposix4 -lthread -ldl   -o ecemcectl.vx
> Using built-in specs.
> g++: unrecognized option '-X'

g++ does not have a -X option.  I don't know where the problem is here,
but it doesn't seem to be with g++.  The linker does have a -X option;
perhaps this is intended by -Wl,-X?  But the linker's -X option is
rarely used.

> ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record

This seems very strange.  You appear to be using the Solaris linker, and
I assume you are also using the Solaris assembler.  The compiler does
not create relocation records; the assembler does.  I do not know why
the Solaris assembler would create an object file that the Solaris
linker complains about.

> ld: fatal: relocation error: R_SPARC_UA32: file .rela.eh_frame: section: /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: offset: 0x320: relocation requires reference symbol

This one, on the other hand, could be gcc's fault, or it could be the
assembler's fault.  You're going to need to look at that .o file and how
it was created to find out what is wrong.

Ian

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

* RE: Link Error: GCC 4.2.0 on SunOS-5.8
  2011-02-04 16:26 ` Ian Lance Taylor
@ 2011-02-05 18:48   ` HEGDE, ASHA (ASHA)
  2011-02-07  9:55   ` HEGDE, ASHA (ASHA)
  1 sibling, 0 replies; 8+ messages in thread
From: HEGDE, ASHA (ASHA) @ 2011-02-05 18:48 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

Ian, Thanks for your inputs.
I will relook into the used as part of my compilation and linking.

Regards,
Asha
-----Original Message-----
From: Ian Lance Taylor [mailto:iant@google.com] 
Sent: Friday, February 04, 2011 9:55 PM
To: HEGDE, ASHA (ASHA)
Cc: gcc-help@gcc.gnu.org
Subject: Re: Link Error: GCC 4.2.0 on SunOS-5.8

"HEGDE, ASHA (ASHA)" <asha.hegde@alcatel-lucent.com> writes:

> Final link of ecemcectl.vx ...
>         /vobs/gnu/gcc/SunOS-5.8/bin/g++ cectl_dummy.o newmain.o tmp/__ecemcectl_vx_what.o /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o /vobs/ecem_common/make/lib/ecectl/solaris/libcectl_common.o /vobs/ecem_common_oam/ucu/mhuapp/ecectl/solaris/mhuapp.o /vobs/ecem_rtcx/make/lib/ecectl/solaris/libcectl_rtcx.o /vobs/ecem_1bts/build/usl/pub/lib/ecectl/ram/solaris/usl_ecectl_ram_tgt.a /vobs/ecem_1bts/build/vxWorks4Host/solaris/libvxWorks4SunOS.a -v -uuslAppMain  -uusl_menu  -Wl,-R -Wl,/vobs/gnu/gcc/SunOS-5.8/lib -Wl,-R -Wl,/vobs/ecem_gnulibs/tclreadline/SunOS-5.8/lib -Wl,-R -Wl,/vobs/ecem_gnulibs/readline/SunOS-5.8/lib -W -L -Wl /vobs/ecem_gnulibs/zlib/SunOS-5.8/lib/libz_z.a -X -lnsl -lsocket -lposix4 -lthread -ldl   -o ecemcectl.vx
> Using built-in specs.
> g++: unrecognized option '-X'

g++ does not have a -X option.  I don't know where the problem is here,
but it doesn't seem to be with g++.  The linker does have a -X option;
perhaps this is intended by -Wl,-X?  But the linker's -X option is
rarely used.

> ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record

This seems very strange.  You appear to be using the Solaris linker, and
I assume you are also using the Solaris assembler.  The compiler does
not create relocation records; the assembler does.  I do not know why
the Solaris assembler would create an object file that the Solaris
linker complains about.

> ld: fatal: relocation error: R_SPARC_UA32: file .rela.eh_frame: section: /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: offset: 0x320: relocation requires reference symbol

This one, on the other hand, could be gcc's fault, or it could be the
assembler's fault.  You're going to need to look at that .o file and how
it was created to find out what is wrong.

Ian

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

* RE: Link Error: GCC 4.2.0 on SunOS-5.8
  2011-02-04 16:26 ` Ian Lance Taylor
  2011-02-05 18:48   ` HEGDE, ASHA (ASHA)
@ 2011-02-07  9:55   ` HEGDE, ASHA (ASHA)
  1 sibling, 0 replies; 8+ messages in thread
From: HEGDE, ASHA (ASHA) @ 2011-02-07  9:55 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

Hi Ian,

I have resolved this problem. My build script was using the std. GCC assembler and Solaris linker. Modifying the make file to use the Solaris assembler and linker fixed my relocation problem.

Thanks for your inputs.

Regards,
Asha

-----Original Message-----
From: Ian Lance Taylor [mailto:iant@google.com] 
Sent: Friday, February 04, 2011 9:55 PM
To: HEGDE, ASHA (ASHA)
Cc: gcc-help@gcc.gnu.org
Subject: Re: Link Error: GCC 4.2.0 on SunOS-5.8

"HEGDE, ASHA (ASHA)" <asha.hegde@alcatel-lucent.com> writes:

> Final link of ecemcectl.vx ...
>         /vobs/gnu/gcc/SunOS-5.8/bin/g++ cectl_dummy.o newmain.o tmp/__ecemcectl_vx_what.o /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o /vobs/ecem_common/make/lib/ecectl/solaris/libcectl_common.o /vobs/ecem_common_oam/ucu/mhuapp/ecectl/solaris/mhuapp.o /vobs/ecem_rtcx/make/lib/ecectl/solaris/libcectl_rtcx.o /vobs/ecem_1bts/build/usl/pub/lib/ecectl/ram/solaris/usl_ecectl_ram_tgt.a /vobs/ecem_1bts/build/vxWorks4Host/solaris/libvxWorks4SunOS.a -v -uuslAppMain  -uusl_menu  -Wl,-R -Wl,/vobs/gnu/gcc/SunOS-5.8/lib -Wl,-R -Wl,/vobs/ecem_gnulibs/tclreadline/SunOS-5.8/lib -Wl,-R -Wl,/vobs/ecem_gnulibs/readline/SunOS-5.8/lib -W -L -Wl /vobs/ecem_gnulibs/zlib/SunOS-5.8/lib/libz_z.a -X -lnsl -lsocket -lposix4 -lthread -ldl   -o ecemcectl.vx
> Using built-in specs.
> g++: unrecognized option '-X'

g++ does not have a -X option.  I don't know where the problem is here,
but it doesn't seem to be with g++.  The linker does have a -X option;
perhaps this is intended by -Wl,-X?  But the linker's -X option is
rarely used.

> ld: warning: relocation error: file /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: section .rela.stab: skipping null relocation record

This seems very strange.  You appear to be using the Solaris linker, and
I assume you are also using the Solaris assembler.  The compiler does
not create relocation records; the assembler does.  I do not know why
the Solaris assembler would create an object file that the Solaris
linker complains about.

> ld: fatal: relocation error: R_SPARC_UA32: file .rela.eh_frame: section: /vobs/ecem_ucu/make/lib/ecectl/solaris/libecectl_appl.o: offset: 0x320: relocation requires reference symbol

This one, on the other hand, could be gcc's fault, or it could be the
assembler's fault.  You're going to need to look at that .o file and how
it was created to find out what is wrong.

Ian

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

end of thread, other threads:[~2011-02-07  6:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-03 12:21 Link Error: GCC 4.2.0 on SunOS-5.8 HEGDE, ASHA (ASHA)
2011-02-03 13:02 ` asyropoulos
2011-02-03 13:20   ` HEGDE, ASHA (ASHA)
2011-02-03 19:05     ` asyropoulos
2011-02-03 20:59     ` kevin diggs
2011-02-04 16:26 ` Ian Lance Taylor
2011-02-05 18:48   ` HEGDE, ASHA (ASHA)
2011-02-07  9:55   ` HEGDE, ASHA (ASHA)

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