pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 64 bit ABI issue on Solaris

Hi all,
> Pkgsrc on Sparc/Solaris 9. ABI=64 (set in mk.conf). Gcc 3.4.6.
> Compiling my first c++ port, graphics/tiff fails in the linking phase:
> Apparently, some object files such as crti.o are taken from
> /usr/gcc/lib/gcc/sparc-sun-solaris2.9/3.4.6. That are the 32 bit
> files. The 64 bit files reside under
> /usr/gcc/lib/gcc/sparc-sun-solaris2.9/3.4.6/sparcv9. Same for
> values-Xa.o.

Just for the records. Compiling my second c++ port, devel/ncurses results in 
the same issue. 

Compiling my third c++ port, devel/gmp causes issues already in the 
configuration phase:

checking compiler gcc -mcpu=ultrasparc -mtune=v9 -O2 -pipe has 
sizeof(long)==4... no
configure: error: could not find a working compiler, see config.log for details
*** Error code 1

A test showed that type long is 8 bytes on Solaris 64 bit. Is that so uncommon? 
How do other 64 bit pkgsrc architectures deal with gmp? Gmp is needed to 
compile recent gccs.



Scotty: Captain, we din' can reference it!
Kirk:   Analysis, Mr. Spock?
Spock:  Captain, it doesn't appear in the symbol table.
Kirk:   Then it's of external origin?
Spock:  Affirmative.
Kirk:   Mr. Sulu, go to pass two.
Sulu:   Aye aye, sir, going to pass two.

Home | Main Index | Thread Index | Old Index