Apple M1 compilation issue.

27 views
Skip to first unread message

Karel Gardas

unread,
May 16, 2022, 1:21:18 PM5/16/22
to isl Development
Hello,

RTEMS community is using ISL library as a part of GNU C compiler. Recently we have been hit by an issue of compiling GNU C compiler toolchain on the Apple M1 hardware. The issue is easily fixable by the patch below, but RTEMS community refuses to include the fix without a clear sign that upstream project (you) were contacted and asked either for patch acceptance or fixing the issue.

Could you be so kind and in next release use latest available autotools to generate configure script and associated files? This way, problematic config.sub file is generated with the proper support for Apple M1 hardware and everything should be working again.

Thanks!
Karel Gardas

--- isl/config.sub.orig 2022-05-11 07:19:04.000000000 +0200
+++ isl/config.sub      2022-05-11 07:19:26.000000000 +0200
@@ -516,6 +516,9 @@
                basic_machine=m68k-apollo
                os=-bsd
                ;;
+       arm64-*)
+               basic_machine=aarch64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
+               ;;
        aros)
                basic_machine=i386-pc
                os=-aros

Sven Verdoolaege

unread,
May 18, 2022, 4:22:39 PM5/18/22
to Karel Gardas, isl Development
On Mon, May 16, 2022 at 10:21:18AM -0700, Karel Gardas wrote:
> Hello,
>
> RTEMS community is using ISL library as a part of GNU C compiler. Recently
> we have been hit by an issue of compiling GNU C compiler toolchain on the
> Apple M1 hardware. The issue is easily fixable by the patch below, but
> RTEMS community refuses to include the fix without a clear sign that
> upstream project (you) were contacted and asked either for patch acceptance
> or fixing the issue.

This code is not in the isl repository, so there isn't anything to patch there.

> Could you be so kind and in next release use latest available autotools to
> generate configure script and associated files? This way, problematic
> config.sub file is generated with the proper support for Apple M1 hardware
> and everything should be working again.

Which version of autoconf fixes this issue?

skimo

Sven Verdoolaege

unread,
May 18, 2022, 4:23:14 PM5/18/22
to Karel Gardas, isl Development
On Mon, May 16, 2022 at 10:21:18AM -0700, Karel Gardas wrote:
> Hello,
>
> RTEMS community is using ISL library as a part of GNU C compiler. Recently
> we have been hit by an issue of compiling GNU C compiler toolchain on the
> Apple M1 hardware. The issue is easily fixable by the patch below, but
> RTEMS community refuses to include the fix without a clear sign that
> upstream project (you) were contacted and asked either for patch acceptance
> or fixing the issue.

This code is not in the isl repository, so there isn't anything to patch there.

> Could you be so kind and in next release use latest available autotools to
> generate configure script and associated files? This way, problematic
> config.sub file is generated with the proper support for Apple M1 hardware
> and everything should be working again.

Reply all
Reply to author
Forward
0 new messages