gm2
[Top][All Lists]
Advanced

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

Re: Portability Considerations


From: Gaius Mulley
Subject: Re: Portability Considerations
Date: Thu, 21 Mar 2024 09:59:11 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Alice Osako <alicetrillianosako@gmail.com> writes:

> Gaius Mulley:
>> Greetings, Alice.
>>
>> On 2024-03-20 18:17, Alice Osako wrote (in part):
>>> [...]
>>>
>>> Worse, when I try to build GM2 for 14.x rather than 13.x, it also
>>> gets an ICE when building the ISO libraries.
>>>
>> What is your configuration script for 14.2?  (I have compiled
>> GM2-14.2 on Solaris 11.3/sparc without problems.)
>>
>> Sincerely,
>> john
>>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> #!/bin/bash -e
>
> GM2_DIR="$HOME/Deployments/gm2"
> GCC_SRC="$GM2_DIR/gcc"
> GCC_BUILD="$GCC_SRC/build"
> DEST="$HOME/opt"
> LIBDIR="$DEST/lib"
>
> TARGET="x86_64-pc-linux-gnu"
>
> cd $GCC_SRC
>
> git pull origin
>
> cd $GCC_BUILD
>
> TARGET_DIR="$GCC_BUILD/$TARGET"
> if [ ! -d $TARGET_DIR ]; then
>    mkdir -p $TARGET_DIR
> fi
>
> cd $TARGET_DIR
>
> $GCC_SRC/configure --host=$TARGET \
>                    --target=$TARGET \
>                    --prefix=$DEST     \
>                    --bindir=$DEST/bin \
>                    --libdir=$LIBDIR \
>                    --libexecdir=$LIBDIR \
>                    --enable-threads=posix \
>                    --enable-clocale=gnu \
>                    --disable-multilib \
>                    --disable-bootstrap \
>                    --enable-checking \
>                    --enable-languages="m2"
>
> make all-gcc
> make all-target-libgcc
> make all-target-libgm2
> make install-strip-gcc install-target-libgcc install-target-libgm2
> make check-m2 -j 4
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On debian, suse, fedora etc - it should be possible to use a really simple
configure.

git clone git://gcc.gnu.org/git/gcc.git
cd gcc
./contrib/download_prerequisites
mkdir build
cd build
../configure --enable-languages=m2 --prefix=$HOME/opt
make -j $(nproc)
make install

is often what I use (maybe add --disable-bootstrap / multilib).
But no need to specify libgm2 etc as that is automatically built when
requesting m2 (I suspect a number of the make targets above are
internal).  Note that the ./contrib/download_prerequisites is quite
useful as (for modern hardware/os you don't have to worry about isl
versions and others)

regards,
Gaius

reply via email to

[Prev in Thread] Current Thread [Next in Thread]