[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
- Re: Portability Considerations, (continued)
- Re: Portability Considerations, Alice Osako, 2024/03/18
- Re: Portability Considerations, Benjamin Kowarsch, 2024/03/18
- Re: Portability Considerations, Alice Osako, 2024/03/18
- Portable bitwise operations library (was Re: Portability Considerations), Alice Osako, 2024/03/18
- Re: Portable bitwise operations library (was Re: Portability Considerations), Benjamin Kowarsch, 2024/03/20
- Re: Portable bitwise operations library (was Re: Portability Considerations), Alice Osako, 2024/03/20
- Re: Portable bitwise operations library (was Re: Portability Considerations), Benjamin Kowarsch, 2024/03/20
- Another ICE (was Re: Portable bitwise operations library), Alice Osako, 2024/03/20
- Re: Another ICE (was Re: Portable bitwise operations library), john o goyo, 2024/03/20
- Re: Portability Considerations, Alice Osako, 2024/03/20
- Re: Portability Considerations,
Gaius Mulley <=
- Re: Portability Considerations, Alice Osako, 2024/03/21
- Re: Portability Considerations, Gaius Mulley, 2024/03/21
- Re: Portability Considerations, Alice Osako, 2024/03/21
- Re: Portability Considerations, Gaius Mulley, 2024/03/21
- Re: Portability Considerations, Rudolf Schubert, 2024/03/21
- Re: Portable bitwise operations library (was Re: Portability Considerations), Gaius Mulley, 2024/03/22
- Re: Portable bitwise operations library (was Re: Portability Considerations), Alice Osako, 2024/03/21
- Re: Portable bitwise operations library (was Re: Portability Considerations), john o goyo, 2024/03/22
- Re: Portable bitwise operations library (was Re: Portability Considerations), Alice Osako, 2024/03/22
- Re: Portable bitwise operations library (was Re: Portability Considerations), john o goyo, 2024/03/22