gm2
[Top][All Lists]
Advanced

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

Building gm2 on FreeBSD 12.4 amd64, results


From: Ben Stuyts
Subject: Building gm2 on FreeBSD 12.4 amd64, results
Date: Thu, 21 Dec 2023 15:57:45 +0100

Hi,

I’ve built gm2 on a pristine FreeBSD amd64 12.4 jail, so I thought I’d share what packages I had to install, how to build and the test results:

// install prereq.:
# pkg install sudo screen pkg install git-lite python3 bash gawk binutils gmake perl5 gmp mpfr mpc isl zstd py39-pip gettext autoconf automake gperf dejagnu expect tcl86 autogen guile2 flex texinfo tex-xetex py39-sphinx diffutils patch

// back to user:
mkdir ~/src
mkdir ~/opt
cd ~/src
git clone git://gcc.gnu.org/git/gcc.git gcc-git
cd gcc-git
mkdir build
cd build
../configure --enable-languages=m2 --prefix=$HOME/opt --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
gmake -j 30
gmake install
gmake check-m2

                === gm2 Summary ===

# of expected passes            12722
# of unexpected failures        120
# of unresolved testcases       120
runtest completed at Thu Dec 21 15:24:04 2023

Do those test results seem reasonable?

Kind regards,
Ben


On 20 Dec 2023, at 23:38, Ben Stuyts <ben@altus-escon.com> wrote:

Thanks Gaius,

Building on FreeBSD-amd64 as I type this.

Kind regards,
Ben

On 20 Dec 2023, at 23:06, Gaius Mulley <gaiusmod2@gmail.com> wrote:

Ben Stuyts <ben@altus-escon.com> writes:

Hi all,

First, thank you Gaius for all the great work on gm2 and it’s great to see it is now a standard part of gcc.

Many years ago I played around with gm2, using the patch files that
Gaius provided. I’d like to get into it again but I am at a loss about
the instructions for building (or even getting) it. So a few questions
please:

- Can somebody please point me to the correct gcc git repo I should use to get the latest and greatest?
- Are the build instructions the same as the usual gcc, but with the added gm2 (m2?) language specified?

I’d like to build it on FreeBSD-amd64, FreeBSD-aarch64 and maybe MacOS
Sonoma on an M2. But I read in some messages that the latter has quite
a few problems to get it to compile.

Unfortunately the prebuilt packages for FreeBSD do not have gm2
enabled as far as I can tell, so those are not a good starting point
for me. And anyway, I’d rather have a git repo with Gaius’ latest
patches in it.

Thanks,
Ben

Hi Ben,

welcome back!  gm2 is now in the gcc git, a minimal clone and build
could be (depending upon your system):

$ git clone git://gcc.gnu.org/git/gcc.git gcc-git

If you are behind a firewall that does not allow the git protocol
through, you can replace git:// with https://.

Building
========

$ cd gcc-git
$ mkdir build
$ cd build
$ ../configure --enable-languages=m2 --prefix=$HOME/opt
$ make -j 30
$ make install
$ make check-m2 -j 30   # testsuite running is optional (dejagnu needs
                      # to be installed)

Running the compiler
====================

$ export PATH=$HOME/opt/bin:$PATH
$ gm2 hello.mod
$ export LD_LIBRARY_PATH=$HOME/opt/lib64:$LD_LIBRARY_PATH
$ ./a.out

hope this helps,

regards,
Gaius






reply via email to

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