Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The solution to a problem changes the nature of the problem. -- Peer


devel / comp.lang.ada / Build gnat for cross building from x86_64 to armv7 with OS runtime.

SubjectAuthor
o Build gnat for cross building from x86_64 to armv7 with OS runtime.Nick Kostyria

1
Build gnat for cross building from x86_64 to armv7 with OS runtime.

<0d20a0fe-350d-49f8-80df-e660ca634117n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9859&group=comp.lang.ada#9859

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:5806:0:b0:767:33a2:f4c2 with SMTP id m6-20020a375806000000b0076733a2f4c2mr10810qkb.5.1690445019766;
Thu, 27 Jul 2023 01:03:39 -0700 (PDT)
X-Received: by 2002:a05:6808:1891:b0:3a4:1082:9e5 with SMTP id
bi17-20020a056808189100b003a4108209e5mr4685316oib.2.1690445019566; Thu, 27
Jul 2023 01:03:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Thu, 27 Jul 2023 01:03:39 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=46.211.66.66; posting-account=Q3wfIQoAAACFNhWMe2AxRRj4O-43fTA9
NNTP-Posting-Host: 46.211.66.66
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0d20a0fe-350d-49f8-80df-e660ca634117n@googlegroups.com>
Subject: Build gnat for cross building from x86_64 to armv7 with OS runtime.
From: kostirya@gmail.com (Nick Kostyria)
Injection-Date: Thu, 27 Jul 2023 08:03:39 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3096
 by: Nick Kostyria - Thu, 27 Jul 2023 08:03 UTC

Hello.
I have gcc12 and gnat12 on x86_64 freebsd.
I succeed build gnat for cross building to i386 and to aarch64.
But I got error when i try to build for armv7.
I do not want to build for SMT32 or other board on arm.
I want to build for cross building to freebsd on armv7.

Received error is:

/usr/ports/devel/freebsd-gnat12/work-armv7/.build/./gcc/xgcc -B/usr/ports/devel/freebsd-gnat12/work-armv7/.build/./gcc/ -B/usr/local/gnat12/armv7-gnueabi-freebsd13.1/bin/ -B/usr/local/gnat12/armv7-gnueabi-freebsd13.1/lib/ -isystem /usr/local/gnat12/armv7-gnueabi-freebsd13.1/include -isystem /usr/local/gnat12/armv7-gnueabi-freebsd13.1/sys-include --sysroot=/usr/local/freebsd-sysroot/armv7 -c -g -O2 -W -Wall -gnatpg -nostdinc a-assert.adb -o a-assert.o
fatal error, run-time library not installed correctly
cannot locate file system.ads
compilation abandoned
gmake[7]: *** [../gcc-interface/Makefile:301: a-assert.o] Error 1
gmake[7]: Leaving directory '/usr/ports/devel/freebsd-gnat12/work-armv7/.build/gcc/ada/rts'

I suspect that there's a try to build with STM32 runtime. It's true?
`

What should I add to the configuration to get arm OS runtime, like with aarch64?

../configure --target=armv7-gnueabi-freebsd13.1 --disable-nls --enable-languages="c,ada" \
--enable-gnu-indirect-function \
--with-sysroot="/" \
--with-build-sysroot="/usr/local/freebsd-sysroot/armv7" \
--with-as=/usr/local/bin/arm-gnueabi-freebsd13.1-as \
--with-ld=/usr/local/bin/arm-gnueabi-freebsd13.1-ld \
--enable-threads=posix \
--disable-libquadmath \
--enable-host-shared \
--disable-libmudflap \
--with-system-zlib \
--disable-libgomp \
--disable-libssp \
--enable-libada \
--without-zstd

Thanks.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor