Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gcc with 32 or 64 bits?

227 views
Skip to first unread message

EOT

unread,
May 7, 2002, 11:03:38 PM5/7/02
to
I've download the binary gcc and I'm trying to compile ipfilter.
I cant since make is telling me gcc cant compile in 64 bits.
gcc -m64
Is this true?

gcc -m64 returns this error
cc1: -m64 is not supported by this configuration

what is THIS configuration?

Im running solaris 8 64 bits (I've checked this with isainfo)

TIA

Barbie LeVile

unread,
May 8, 2002, 12:01:43 AM5/8/02
to
On Wed, 8 May 2002 00:03:38 -0300
"EOT" <f3_f...@hotmail.com> wrote:

> I've download the binary gcc and I'm trying to compile ipfilter.
> I cant since make is telling me gcc cant compile in 64 bits.
> gcc -m64
> Is this true?
>
> gcc -m64 returns this error
> cc1: -m64 is not supported by this configuration
>
> what is THIS configuration?
>

Get the forte demo, runs for 30 days without any limitations.
gcc makes realy shity sparc code, and its sparc64bit code is complet useless, 99.99% of the time its not even compiling anything.

--
Barbie - Prayers are like junkmail for Jesus

I have seen things you lusers would not believe.
I've seen Sun monitors on fire off the side of the multimedia lab.
I've seen NTU lights glitter in the dark near the Mail Gate.
All these things will be lost in time, like the root partition last week.
Time to die.

Juergen Keil

unread,
May 8, 2002, 8:50:06 AM5/8/02
to
"EOT" <f3_f...@hotmail.com> writes:

> I've download the binary gcc and I'm trying to compile ipfilter.
> I cant since make is telling me gcc cant compile in 64 bits.
> gcc -m64
> Is this true?

Yes.

> gcc -m64 returns this error
> cc1: -m64 is not supported by this configuration
>
> what is THIS configuration?

The way that the "gcc" you're using here was configured. It was
configured to only support 32-bit code.

If you build gcc-3.* from source and configure for a target
"sparcv9-sun-solaris2" you get a gcc compiler configuration that is
able to compile 32- and 64-bit programs.

Note: The SPARC 64-bit compiler is not yet officially supported by the
GCC team for version 3.0.x of gcc. It seems the upcoming gcc 3.1 will
make 64-bit SPARC an official supported platform; see "New Targets and
Target Specific Improvements" at <URL:
http://gcc.gnu.org/gcc-3.1/changes.html >.


Below are some instructions on how to bootstrap (the unsupported)
64-bit gcc 3.0.x compiler:
________________________________________________________________________


Build instruction to bootstrap a 64-bit gcc compiler on SPARC Solaris
=====================================================================


Get the 'gcc 3.0' source release from

http://gcc.gnu.org/
http://gcc.gnu.org/gcc-3.0/gcc-3.0.html


Prerequisites:

- gcc 2.95.[23] is installed and working
- gnu assember / gnu linker not required
(I've use solaris as and ld found in /usr/ccs/bin )

Step 1:
=======

Compile and install an ordinary 32-bit gcc compiler. The 32-bit
version of gcc on sparc solaris is a 'primary evaluation platform', so
there should be no major problem building the 32-bit version. I've
choosen to install the gcc 3.0 compiler into a separate directory tree
(/usr/local/gcc-3.0); by including or removing the
/usr/local/gcc-3.0/bin directory in my $PATH environment variable, I
can switch between different versions of the GCC compiler.

bunzip2 < gcc-3.0.tar.bz2 | tar xf -
mkdir gcc-3.0-sparc-32bit-obj
cd gcc-3.0-sparc-32bit-obj
../gcc-3.0/configure --prefix=/usr/local/gcc-3.0 --enable-languages=c
make
make install


Step 2:
=======

Prepend the bin directory for the compiler installed in step 1 to
$PATH, create a fresh object directory hierarchy for the 64-bit
compiler, then configure and compile the 64-bit compiler. Again I
choose a separate directory for the installed 64-bit gcc development
compiler, /usr/local/gcc-3.0-v9 in this example:


set path=(/usr/local/gcc-3.0/bin $path)
cd ..
mkdir gcc-3.0-sparc-64bit-obj
cd gcc-3.0-sparc-64bit-obj
../gcc-3.0/configure --prefix=/usr/local/gcc-3.0-v9 --enable-languages=c sparcv9-sun-solaris2
make
make install


Step 3:
=======

OPTIONAL: The compiler binaries installed in the previous step are
still using 32-bit code (but they are able to produce 64-bit binaries
now). You may want to recompile the 64-bit compiler into real 64-bit
binaries.

Prepend /usr/local/gcc-3.0-v9/bin to $PATH, create a fresh (empty)
object directory for the 64-bit objects, then configure and compile
the 64-bit compiler.

set path=(/usr/local/gcc-3.0-v9/bin $path)
cd ..
rm -rf gcc-3.0-sparc-64bit-obj
mkdir gcc-3.0-sparc-64bit-obj
cd gcc-3.0-sparc-64bit-obj
../gcc-3.0/configure --prefix=/usr/local/gcc-3.0-v9 --enable-languages=c sparcv9-sun-solaris2
make
make install

Dirk Boeing

unread,
May 8, 2002, 10:02:18 AM5/8/02
to
In article <wyelgmp...@leo.tools.intra>, Juergen Keil wrote:
> "EOT" <f3_f...@hotmail.com> writes:
>
>> I've download the binary gcc and I'm trying to compile ipfilter.
>> I cant since make is telling me gcc cant compile in 64 bits.
>> gcc -m64
>> Is this true?
>
> Yes.
>
>> gcc -m64 returns this error
>> cc1: -m64 is not supported by this configuration
>>
>> what is THIS configuration?
>
> The way that the "gcc" you're using here was configured. It was
> configured to only support 32-bit code.
>
> If you build gcc-3.* from source and configure for a target
> "sparcv9-sun-solaris2" you get a gcc compiler configuration that is
> able to compile 32- and 64-bit programs.
>
> Note: The SPARC 64-bit compiler is not yet officially supported by the
> GCC team for version 3.0.x of gcc. It seems the upcoming gcc 3.1 will
> make 64-bit SPARC an official supported platform; see "New Targets and
> Target Specific Improvements" at <URL:
> http://gcc.gnu.org/gcc-3.1/changes.html >.
>

But does it really make sense to compile GNU sources witch 64bit gcc? Will
they run any better or faster??? Don't think so.

I tried to compile 64 bit gcc too, but only succeeded to compile the C
compiler, C++ gave me some error messages. If you want to compile GNU software
witch a 64bit compiler, you have to compile the libraries too in 64bit, don't
you? I tried this and gave it up, too much trouble, which I think is not worth
it...
Unless there are 64bit packages of GNU-libraries available, I won't mess
around with compiling 64bit. It might be different, if you want to develop
your own 64bit applications yourself...

Dirk

ger...@gtconnect.net

unread,
May 8, 2002, 11:54:34 AM5/8/02
to
In article <a5bbba....@xnews.laudert.de>,

Dirk Boeing <dirk....@gmx.de> writes:
> In article <wyelgmp...@leo.tools.intra>, Juergen Keil wrote:
>> "EOT" <f3_f...@hotmail.com> writes:
>>
>>> I've download the binary gcc and I'm trying to compile ipfilter.
>>> I cant since make is telling me gcc cant compile in 64 bits.
>>> gcc -m64
>>> Is this true?
>>
>> Yes.

No. IF you roll your own gcc.

>>
>>> gcc -m64 returns this error
>>> cc1: -m64 is not supported by this configuration
>>>
>>> what is THIS configuration?
>>

Broken : >

>> The way that the "gcc" you're using here was configured. It was
>> configured to only support 32-bit code.
>>
>> If you build gcc-3.* from source and configure for a target
>> "sparcv9-sun-solaris2" you get a gcc compiler configuration that is
>> able to compile 32- and 64-bit programs.
>>

I used :
../gcc-3.0.4/configure sparcv9-sun-solaris2 -enable-languages=c --enable-multilib

>> Note: The SPARC 64-bit compiler is not yet officially supported by the
>> GCC team for version 3.0.x of gcc. It seems the upcoming gcc 3.1 will
>> make 64-bit SPARC an official supported platform; see "New Targets and
>> Target Specific Improvements" at <URL:
>> http://gcc.gnu.org/gcc-3.1/changes.html >.
>>
>
> But does it really make sense to compile GNU sources witch 64bit gcc? Will
> they run any better or faster??? Don't think so.

Actually sometimes they do. A recent thread in the awk newsgroup
had a math benchmark that ran marginally faster in 64 bit vs. 32 bit.

> I tried to compile 64 bit gcc too, but only succeeded to compile the C
> compiler, C++ gave me some error messages. If you want to compile GNU software
> witch a 64bit compiler, you have to compile the libraries too in 64bit, don't
> you? I tried this and gave it up, too much trouble, which I think is not worth
> it...

g++ didnt compile for me either as I recall but the java WOULD
if the configure scripts worked better but that isnt an issue...
I can wait for 3.1 for that.

> Unless there are 64bit packages of GNU-libraries available, I won't mess
> around with compiling 64bit. It might be different, if you want to develop
> your own 64bit applications yourself...

ipfilter compiles and installs just fine on Solaris 8 and 9
Hopefully the author fixed the Makefile for gcc 64 bit Solaris : >

Joerg Schilling

unread,
May 8, 2002, 1:34:58 PM5/8/02
to
In article <a5bbba....@xnews.laudert.de>,

Dirk Boeing <dirk....@gmx.de> wrote:
>In article <wyelgmp...@leo.tools.intra>, Juergen Keil wrote:
>> "EOT" <f3_f...@hotmail.com> writes:
>>
>>> I've download the binary gcc and I'm trying to compile ipfilter.
>>> I cant since make is telling me gcc cant compile in 64 bits.
>>> gcc -m64
>>> Is this true?
>>
>> Yes.
>>
>>> gcc -m64 returns this error
>>> cc1: -m64 is not supported by this configuration
...

>> GCC team for version 3.0.x of gcc. It seems the upcoming gcc 3.1 will
>> make 64-bit SPARC an official supported platform; see "New Targets and
>> Target Specific Improvements" at <URL:
>> http://gcc.gnu.org/gcc-3.1/changes.html >.
>>
>
>But does it really make sense to compile GNU sources witch 64bit gcc? Will
>they run any better or faster??? Don't think so.

Not all programs are expected to work faster if compiled in 64 bit mode.

If GNU grep is decently designed and uses inteligent algorythms, then is should
be twice as fast (or at least half as CPU hungry) than a 32 bit grep.

--
EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
j...@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schi...@fokus.gmd.de (work) chars I am J"org Schilling
URL: http://www.fokus.gmd.de/usr/schilling ftp://ftp.fokus.gmd.de/pub/unix

Michael Flohr

unread,
May 8, 2002, 6:31:58 PM5/8/02
to
EOT wrote:

> I've download the binary gcc and I'm trying to compile ipfilter.

[snip]

> Im running solaris 8 64 bits (I've checked this with isainfo)
>
> TIA

Hi EOT

I'm not an compiler expert but if you're interested in a 64-Bit binary
release for Solaris Sparc the following Link might be helpful.

http://www.maraudingpirates.org/ipfilter/

HTH and HAND ... Michael

Dragan Cvetkovic

unread,
May 8, 2002, 6:54:37 PM5/8/02
to
Michael Flohr <mic...@fl4u.de> writes:

>
> HTH and HAND ... Michael


HAND? Never seen it before. That must be an Americanism!

Bye, Dragan

--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

Akop Pogosian

unread,
May 8, 2002, 8:22:42 PM5/8/02
to
"Michael wrote:
> In article <20020508060143....@toppoint.de>,
> Barbie LeVile <bar...@toppoint.de> wrote:

>> On Wed, 8 May 2002 00:03:38 -0300
>> "EOT" <f3_f...@hotmail.com> wrote:
>>
>> > I've download the binary gcc and I'm trying to compile ipfilter.
>> > I cant since make is telling me gcc cant compile in 64 bits.
>> > gcc -m64
>> > Is this true?
>> >
>> > gcc -m64 returns this error
>> > cc1: -m64 is not supported by this configuration
>> >
>> > what is THIS configuration?
>> >
>>
>> Get the forte demo, runs for 30 days without any limitations.
>> gcc makes realy shity sparc code, and its sparc64bit code is complet useless,
>> 99.99% of the time its not even compiling anything.

> Why is the gcc 64-bit sparc code not supported? gcc on Alpha or SGI
> works. What's wrong with the code generator on sparc?


My guess is that there wasn't much demand for it until very recently.
Solaris on 64-bit hardware is still fully binary compatible with
32-bit apps and UltraSPARC II machines will even boot 32-bit kernels.
Also note that Solaris was 64-bit for only about three and a half
years now (since the Solaris 7 release) while Digital unix and Linux
on Alpha were 64-bit since the day one. Now that everyone and their
dog has a 64-bit sparc machine running Solaris in 64-bit mode, there
is much more demand for such compiler for compiling software that
needs to load its own kernel modules (in most cases, you can just
download the binaries though). I can imagine that once gcc-3 matures
this won't be a problem any more ..


-akop


Michael Flohr

unread,
May 9, 2002, 7:10:16 AM5/9/02
to
Dragan Cvetkovic wrote:

> Michael Flohr <mic...@fl4u.de> writes:
>
>>
>> HTH and HAND ... Michael
>
>
> HAND? Never seen it before. That must be an Americanism!
>
> Bye, Dragan
>

HAND = Have a nice day

This is available at the AAAAA (American Association Against Acronym
Abuse), oops.

Have a nice day ... Michael

Dragan Cvetkovic

unread,
May 9, 2002, 9:58:53 AM5/9/02
to
Michael Flohr <mic...@fl4u.de> writes:

> Dragan Cvetkovic wrote:
> >
> > HAND? Never seen it before. That must be an Americanism!
> >

> HAND = Have a nice day
>

Thanks. I have had guesses it myself (honestly!), just have never seen in
an actual use. Just imagine people from UK wishing HAND to each other! :-)

hburde

unread,
May 10, 2002, 7:23:45 AM5/10/02
to
hi;

NO problem - just rebuild gcc for 64 Bit support.
I have this working for over a year including 64 bit gcc compiled kern
mods that work ok.

PS i would avoid agressive optimization with 64 bit gcc - seems broken.

Use configure like this to build the 64 bit compiler :

CFLAGS=-O ./configure --prefix=/usr/local/gnu64 --enable-shared \
--target=sparcv9 -sun-solaris2.8 --host=sparcv9-sun-solaris2.8 \
--enable-languages=c

PS gcc 64 bit support is-a bit weak so don't expect anythink to work !

hb


"Michael Vilain " wrote:
> In article <20020508060143....@toppoint.de>,
> Barbie LeVile <bar...@toppoint.de> wrote:
>
>

>>On Wed, 8 May 2002 00:03:38 -0300
>>"EOT" <f3_f...@hotmail.com> wrote:
>>
>>
>>>I've download the binary gcc and I'm trying to compile ipfilter.
>>>I cant since make is telling me gcc cant compile in 64 bits.
>>>gcc -m64
>>>Is this true?
>>>
>>>gcc -m64 returns this error
>>>cc1: -m64 is not supported by this configuration
>>>
>>>what is THIS configuration?
>>>
>>
>>Get the forte demo, runs for 30 days without any limitations.
>>gcc makes realy shity sparc code, and its sparc64bit code is complet useless,
>>99.99% of the time its not even compiling anything.
>
>

0 new messages