pkgsrc-Users archive

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

Re: Any hints for bootstrapping in Solaris 10?



On Sat, 31 Oct 2020 16:48:27 -0700 (PDT)
Hisashi T Fujinaka <htodd%twofifty.com@localhost> wrote:

> Did you do anything special when you built gcc? I think I somehow
> built a 32-bit version:

On Solaris the default config for GCC is to build with multilib
support, i.e. same compiler supports both 32 and 64-bit code generation.

When I build GCC, I normally enable multilib and tell GCC configure
script to default to 64-bit mode. As long as your GCC supports
multilib, it doesn't matter if it generates 32 or 64-bit code by
default. If you look at my GCC wrapper scripts, I explicitly enable
64-bit mode when using pkgsrc. I don't see any reason to use 32-bit
packages on modern hardware.

I uploaded my GCC build to google drive, it supports C, C++ and Ada.

https://drive.google.com/file/d/1eHYwZYP-2ht8x5JCwpbFTHqwDhTOi-Fm/view?usp=sharing

There are two instances

/opt/gcc-9.2.0-sparc64
/opt/gcc-9.2.0-sparc64.bootstrap

They are both the same, but bootstrap has util/ subfolder that contains
useful GNU tools like tar, make, patch, etc, that are used for building
and testing other versions of GCC from source.


Home | Main Index | Thread Index | Old Index