This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: #error "Both _ILP32 and _LP64 are defined"
- From: lrtaylor at micron dot com
- To: <lrtaylor at micron dot com>, <Phil dot Crescioli at gd-ais dot com>, <gcc-help at gcc dot gnu dot org>
- Date: Thu, 12 Feb 2004 12:08:05 -0700
- Subject: RE: #error "Both _ILP32 and _LP64 are defined"
Ahah! Do you really need to use the -ansi option? I found that it
fails when I use it, and succeeds when I don't.
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of lrtaylor
Sent: Thursday, February 12, 2004 11:57 AM
To: Phil.Crescioli@gd-ais.com; gcc-help@gcc.gnu.org
Subject: RE: #error "Both _ILP32 and _LP64 are defined"
Sorry. I meant to try compiling the program passing -m64 as an argument
to GCC, not building GCC that way...
I just tried building your program below on my Solaris 8 box with GCC
3.3.1, and it succeeded. Question, was your compiler built on that box,
or did you install a prebuilt version? Was it built for Solaris 8? If
you're building your own compiler, is upgrading to 3.3.x an option?
I'm not sure if that's the problem, but, like I said, it worked for me.
Another thing to check - is your box up to date on patches?
Cheers,
Lyle
-----Original Message-----
From: Crescioli, Phil [mailto:Phil.Crescioli@gd-ais.com]
Sent: Thursday, February 12, 2004 8:14 AM
To: gcc-help@gcc.gnu.org
Cc: lrtaylor
Subject: RE: #error "Both _ILP32 and _LP64 are defined"
If I must recompile gcc323 with -m64, If I use -mtune=ultrasparc option
instead (as noted in the install readme below) would that do the trick
since my platforms are all ultrasparcs ?