From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 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: eternal-september.org!news.eternal-september.org!border-1.nntp.ord.giganews.com!nntp.giganews.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: Nick Kostyria Injection-Date: Thu, 27 Jul 2023 08:03:39 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:65458 List-Id: 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.=20 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/d= evel/freebsd-gnat12/work-armv7/.build/./gcc/ -B/usr/local/gnat12/armv7-gnue= abi-freebsd13.1/bin/ -B/usr/local/gnat12/armv7-gnueabi-freebsd13.1/lib/ -is= ystem /usr/local/gnat12/armv7-gnueabi-freebsd13.1/include -isystem /usr/loc= al/gnat12/armv7-gnueabi-freebsd13.1/sys-include --sysroot=3D/usr/local/free= bsd-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/.bu= ild/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 aar= ch64? ./configure --target=3Darmv7-gnueabi-freebsd13.1 --disable-nls --enable-lan= guages=3D"c,ada" \ --enable-gnu-indirect-function \ --with-sysroot=3D"/" \ --with-build-sysroot=3D"/usr/local/freebsd-sysroot/armv7" \ --with-as=3D/usr/local/bin/arm-gnueabi-freebsd13.1-as = \ --with-ld=3D/usr/local/bin/arm-gnueabi-freebsd13.1-ld = \ --enable-threads=3Dposix \ --disable-libquadmath \ --enable-host-shared \ --disable-libmudflap \ --with-system-zlib \ --disable-libgomp \ --disable-libssp \ --enable-libada \ --without-zstd Thanks.