I ended up entirely deleting and replacing the local git repo, and that
solved the problem with building gm2 v.14.0.1 (this was built off of the
master trunk, so I don't know if there is a branch with the aforementioned
14.2 version).
I have tried compiling the code for the program ('make portable') with the
resulting compiler, but still got an ICE. I am seriously wondering if there
is something wrong with my setup.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Target: x86_64-pc-linux-gnu
// Configured with: /home/schol-r-lea/Deployments/gm2/gcc/configure
--host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu
--prefix=/home/schol-r-lea/opt --bindir=/home/schol-r-lea/opt/bin
--libdir=/home/schol-r-lea/opt/lib --libexecdir=/home/schol-r-lea/opt/lib
--enable-threads=posix --enable-clocale=gnu --disable-multilib
--disable-bootstrap --enable-checking --enable-languages=m2
// Thread model: posix
// Supported LTO compression algorithms: zlib zstd
// gcc version 14.0.1 20240321 (experimental) (GCC)
//
// -quiet: internal compiler error: illegal symbol
// 0x22a6c27 internal_error(char const*, ...)
// ???:0
// 0x967432 m2linemap_internal_error
// ???:0
// 0xa3534b M2Emit_InternalError
// ???:0
// 0x9930ae M2Error_InternalError
// ???:0
// 0x9f2c5a SymbolTable_IsProcedure
// ???:0
// 0x9e6ed9 PCSymBuild_PushConstFunctionType
// ???:0
// 0xa22723 PCBuild_CompilationUnit
// ???:0
// 0x9904ae M2Comp_compile
// ???:0
// Please submit a full bug report, with preprocessed source.
// Please include the complete backtrace with any bug report.
// See <https://gcc.gnu.org/bugs/> for instructions.
// /home/schol-r-lea/opt/lib/gcc/x86_64-pc-linux-gnu/14.0.1/cc1gm2 -quiet
-dumpdir objs/ -dumpbase CardBitOps.mod -dumpbase-ext .mod -mtune=generic
-march=x86-64 -g -freport-bug -fm2-pathname=- -fm2-pathnameIdefs/
-fm2-pathnameI. -fscaffold-dynamic -flibs=m2cor,m2log,m2pim,m2iso
-fm2-pathname=- -fm2-pathnameIdefs/ -fm2-pathnameI.
impls/portable/CardBitOps.mod -c -o - -frandom-seed=0 -fdump-noaddr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I realize it is something of a big request, but could someone please see if
they can get this to compile on their system?
https://github.com/Schol-R-LEA/Modula-2-Portable-Bit-Manipulation/tree/main