Here is our gcc info: Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs Configured with: ../../src/gcc-3.4.3/configure : (reconfigured) ../../src/gcc-3.4.3/configure Thread model: posix gcc version 3.4.3 and os/platform info, SunOS sunfire6 5.10 Generic_118833-36 sun4u sparc SUNW,UltraAX-i2 Thanks a lot. Jack -----Original Message----- From: Jeanne Rasata via RT [mailto:info@xxxxxxx] Sent: Thursday, October 02, 2008 5:42 AM To: jack.rong@xxxxxxxxxxxxx Subject: [gnu.org #379891] failed to link for 64 bit application in solaris 10 Hello, Jack, > [jack.rong@xxxxxxxxxxxxx - Mi. 01. Okt. 2008, 16:38:38]: > > Hi, > > > > We are having problem to link objects with the error message below by using > GNU "ld", > > > > /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../sparc-sun-solaris > 2.10/bin/ld: skipping incompatible > /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.3/sparcv9/libgcc.a when > searching for -lgcc > > /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.3/../../../../sparc-sun-solaris > 2.10/bin/ld: skipping incompatible > /usr/local/lib/gcc/sparc-sun-solaris2.10/3.4.3/sparcv9/libgcc_eh.a when > searching for -lgcc_eh > > .. > > > > The command line is: > > > > gcc -o test3 test3.c -m64 > > > > By the way, we can compile 64 bit without problem. It's the linker causing > the grief. Also, 32 bit always works. > > > > Could you please advise. > > > > Thanks. > > > > Jack Rong I'm sorry, but as this is only a general contact address, I cannot properly answer technical questions such as yours. The best I can do is refer you to the GCC Manual at http://gcc.gnu.org/onlinedocs/ and Frequently Asked Questions at http://gcc.gnu.org/faq.html. If neither of those provide an answer to your question, please, contact the GCC users' help list. You can learn more about it at http://gcc.gnu.org/lists.html. I am sorry that I couldn't be of more help. Sincerely, -- Jeanne Rasata Program Assistant Free Software Foundation --- Have we been helpful to you today? Would you like to help the FSF continue to spread the word about software freedom? You too can become a member! Learn more at: http://donate.fsf.org