gm2
[Top][All Lists]
Advanced

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

Re: Bare metal Modula-2 on a Raspberry Pi-4 64 bit mode (Embedded aarch6


From: Robert Roland
Subject: Re: Bare metal Modula-2 on a Raspberry Pi-4 64 bit mode (Embedded aarch64)
Date: Mon, 6 Sep 2021 23:31:52 +0000

Okay, I retried this using a Debian Buster container with Docker, and success! It builds!

I'm guessing this is a difference between using GCC 8 and GCC 11 as the bootstrap compilers.

If anyone wants to do this like I did:

docker run -v /home/rroland/src:/root/src -v /home/rroland/opt-gcc-12:/root/opt-gcc-12 -it debian:buster

And you need a few additional apt packages:

apt install wget patch flex rsync libgmp3-dev python3-dev gawk bison

Other than adding the additional apt packages, I followed the rest of the instructions to the letter.

Thanks again, Gaius!

  - Rob


From: Robert Roland <rob.roland@outlook.com>
Sent: Monday, September 6, 2021 3:19 PM
To: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Cc: gm2@nongnu.org <gm2@nongnu.org>
Subject: Re: Bare metal Modula-2 on a Raspberry Pi-4 64 bit mode (Embedded aarch64)
 
I get an error during the build, unfortunately. Same one I've gotten in the past when trying to create a cross-compiler that involves C++. I'm on openSUSE with GCC 11.2.1.

checking whether the /home/rroland/src/build-m2-cross/build-gcc/./gcc/xgcc -B/home/rroland/src/build-m2-cross/build-gcc/./gcc/ -B/home/rroland/opt-gcc-12/cross/aarch64-linux/bin/ -B/home/rr
oland/opt-gcc-12/cross/aarch64-linux/lib/ -isystem /home/rroland/opt-gcc-12/cross/aarch64-linux/include -isystem /home/rroland/opt-gcc-12/cross/aarch64-linux/sys-include    linker (/home/rr
oland/src/build-m2-cross/build-gcc/./gcc/collect-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[2]: *** [Makefile:14653: configure-target-libssp] Error 1


From: Gaius Mulley <gaius.mulley@southwales.ac.uk>
Sent: Monday, September 6, 2021 7:03 AM
To: Robert Roland <rob.roland@outlook.com>
Cc: gm2@nongnu.org <gm2@nongnu.org>
Subject: Bare metal Modula-2 on a Raspberry Pi-4 64 bit mode (Embedded aarch64)
 
Robert Roland <rob.roland@outlook.com> writes:

> Is it possible to build gm2 for an AArch64 embedded host? I have the
> aarch64-elf toolchain from Linaro installed.
>
> I haven't had much luck - I was wanting to experiment with m2min, but
> it seems to need a working C++ compiler.
>
> Thanks,
>
> Robert

Hi,

I thought this might be of interest as a proof of concept to show gm2
can now be built as a cross compiler (either targeting GNU/Linux or
targeting bare metal).

  https://na01.safelinks.protection.outlook.com/?url="">
 
https://na01.safelinks.protection.outlook.com/?url="">

and

  git clone
https://na01.safelinks.protection.outlook.com/?url="">

enjoy,
Gaius

reply via email to

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