public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* RE: gcc 3.2 64 bit compiler error
@ 2002-10-24 14:04 Hillel (Sabba) Markowitz
  0 siblings, 0 replies; 3+ messages in thread
From: Hillel (Sabba) Markowitz @ 2002-10-24 14:04 UTC (permalink / raw)
  To: gcc-help; +Cc: sherwin

----------------- Original Message -----------------------------------------
    From: Ziying Sherwin <sherwin at lhc dot nlm dot nih dot gov>
     To: gcc-help at gcc dot gnu dot org
     Date: Wed, 23 Oct 2002 15:35:29 -0400 (EDT)
     Subject: gcc 3.2 64 bit compiler error



We recently built and installed gcc 3.2 64bit compiler. It works fine with any
programs that requires 64 bits compiler. However, we kept getting the 
following
error messages when we tried to build normal applications:

gcc -pipe   -o expect exp_main_exp.o libexpect5.38.a 
-L/depot/package/tcl_8.3.1/lib -ltcl8.3  -ldl  -lsocket -lnsl -lpthread -lm 
-Wl,-R,/depot/package/expect_5.38/vendor/lib:/depot/package/tk_8.3.1/lib:/depo
t/package/tcl_8.3.1/lib:/usr/openwin/lib
ld: fatal: file /depot/package/tcl_8.3.1/lib/libtcl8.3.so: wrong ELF class: 
ELFCLASS32
ld: fatal: File processing errors. No output written to expect
collect2: ld returned 1 exit status

Any suggestions? Thanks.  I am not on the gcc mailing list, please send your 
response to sherwin@nlm.nih.gov.

Ziying Sherwin
----------------------- End of Message --------------------------------------

You do not specify which platform you are running on.  However, it appears 
that the gcc that you are using is built so that the default is 64 bit 
compilation.  The tcl library on the other hand was built in 32 bit mode.  If 
you are using a Solaris platform, use the option "-m32" to build in 32 bit 
mode.

In any case, you will be better off if you always use the -m32 and -m64 (or 
equivalent for your platform) explicitly.  That way you will not get bitten if 
the default changes.

If you are using Solaris, you should also use the -R option as well as the -L 
option for linking.  That way the application will pick up the correct run 
time library.

-- 
Said the fox to the fish, "Join me ashore".
 The fish are the Jews, Torah is our water

Hillel (Sabba) Markowitz - sabbahem@bcpl.net

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

* Re: gcc 3.2 64 bit compiler error
  2002-10-23 12:35 Ziying Sherwin
@ 2002-10-23 12:42 ` Eljay Love-Jensen
  0 siblings, 0 replies; 3+ messages in thread
From: Eljay Love-Jensen @ 2002-10-23 12:42 UTC (permalink / raw)
  To: Ziying Sherwin, gcc-help

Hi Ziying,

I believe you need the 64-bit version of libtcl8.3.so.

--Eljay

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

* gcc 3.2 64 bit compiler error
@ 2002-10-23 12:35 Ziying Sherwin
  2002-10-23 12:42 ` Eljay Love-Jensen
  0 siblings, 1 reply; 3+ messages in thread
From: Ziying Sherwin @ 2002-10-23 12:35 UTC (permalink / raw)
  To: gcc-help


We recently built and installed gcc 3.2 64bit compiler. It works fine with any
programs that requires 64 bits compiler. However, we kept getting the following
error messages when we tried to build normal applications:

gcc -pipe   -o expect exp_main_exp.o libexpect5.38.a -L/depot/package/tcl_8.3.1/lib -ltcl8.3  -ldl  -lsocket -lnsl -lpthread -lm -Wl,-R,/depot/package/expect_5.38/vendor/lib:/depot/package/tk_8.3.1/lib:/depot/package/tcl_8.3.1/lib:/usr/openwin/lib
ld: fatal: file /depot/package/tcl_8.3.1/lib/libtcl8.3.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to expect
collect2: ld returned 1 exit status

Any suggestions? Thanks.  I am not on the gcc mailing list, please send your response to sherwin@nlm.nih.gov.

Ziying Sherwin

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

end of thread, other threads:[~2002-10-24 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24 14:04 gcc 3.2 64 bit compiler error Hillel (Sabba) Markowitz
  -- strict thread matches above, loose matches on Subject: below --
2002-10-23 12:35 Ziying Sherwin
2002-10-23 12:42 ` Eljay Love-Jensen

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