OS X Build Problems tag 5.2 ->Invalid configuration `arm64-apple-darwin22.3.0': machine `arm64-apple' not recognized

Chris Johns chrisj at rtems.org
Wed Mar 29 20:43:16 UTC 2023


On 30/3/2023 3:06 am, Heinz Junkes wrote:
> Hi,
> 
> I have, once again, a problem with building RTEMS on OS X.
> 
> It works fine with rtems6/master 
> 
> with clang 10.0.0 , python 3.8.5 on 
> Darwin Judiciary-Pag.fritz.box 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64
> python shows:
> (base) Judiciary-Pag:rtems-libbsd heinz$ python
> Python 3.8.5 (default, Sep  4 2020, 02:22:02)
> [Clang 10.0.0 ] :: Anaconda, Inc. on darwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sysconfig
>>>> sysconfig.get_config_vars()['HOST_GNU_TYPE']
> 'x86_64-apple-darwin13.4.0'

OK

> and clang 14.0.0 with python 3.11.2 on
> mac07:VE_RTEMS_INST hjunkes$ uname -a
> Darwin mac07.pse.bht-berlin.de 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103 arm64

My machine shows:

% uname -a
Darwin weka.contemporary.net.au 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30
20:39:46 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6020 arm64

I have a M2 Pro processor so I wonder if that explains the T6020 vs T8103? The
work I am doing can be tracked here https://devel.rtems.org/ticket/4892

> python shows:
> mac07:VE_RTEMS_INST hjunkes$ python
> Python 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 (clang-1400.0.29.202)] on darwin

Where is this python from?

> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sysconfig
>>>> sysconfig.get_config_vars()['HOST_GNU_TYPE']
> 'aarch64-apple-darwin22.3.0'
> 
> 
> on CLANG 14.0.0 and python 3.11.2
> 
> OK with rtems 6 / master 
> 
>   git clone https://github.com/RTEMS/rtems-source-builder.git rsb
>> 
> RTEMS Source Builder - Set Builder, 6 (f0e34eab8bf3 modified)
>  Command Line: ../source-builder/sb-set-builder --jobs=2 --prefix=/Users/hjunkes/RTEMS_RASPI_RUN/rtems/6 6/rtems-arm
>  Python: 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 (clang-1400.0.29.202)]
> warning: exe: absolute exe found in path: (__install_info) /usr/bin/install-info
> warning: exe: absolute exe found in path: (__makeinfo) /usr/bin/makeinfo
> Build Set: 6/rtems-arm
> Build Set: tools/rtems-default-tools.bset
> Build Set: textproc/gsed-internal.bset
> config: textproc/gsed.cfg
> package: gsed-4.8-arm64-apple-darwin22.3.0-1
> script:  1: #!/bin/sh
> 
> Failed with rtems 5.2
> 
> git clone https://github.com/RTEMS/rtems-source-builder.git rsb
> cd rsb
> git checkout tags/5.2
> 
> ...
> RTEMS Tools Project - Source Builder Error Report
>  Build: error: building autoconf-2.69-arm64-apple-darwin22.3.0-1
>  Command Line: ../source-builder/sb-set-builder --jobs=2 --prefix=/Users/hjunkes/VE_RTEMS_RUN/rtems/5 5/rtems-arm
>  Python: 3.11.2 (main, Feb 16 2023, 02:55:59) [Clang 14.0.0 (clang-1400.0.29.202)]
>  https://github.com/RTEMS/rtems-source-builder.git/origin/1116c5f85fb5dceca4a57c1b69195b6e9215b084-modified
>  Darwin mac07.pse.bht-berlin.de 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:39:35 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T8103 arm64
> Tail of the build log:
> ...
> + ac_prefix=/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/Users/hjunkes/VE_RTEMS_RUN/rtems/5
> + test arm64-apple-darwin22.3.0 '!=' arm64-apple-darwin22.3.0
> + export CFLAGS CFLAGS_FOR_BUILD CC
> + CFLAGS='-O2 -pipe -fbracket-depth=1024 -I/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/5/rtems-autotools-internal/Users/hjunkes/VE_RTEMS_RUN/rtems/5/include '
> + ./configure --build=arm64-apple-darwin22.3.0 --host=arm64-apple-darwin22.3.0 --verbose --disable-nls --without-included-gettext --prefix=/Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/tmp/sb-659039/Users/hjunkes/VE_RTEMS_RUN/rtems/5
> configure: WARNING: unrecognized options: --disable-nls, --without-included-gettext
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> Invalid configuration `arm64-apple-darwin22.3.0': machine `arm64-apple' not recognized

There have been a number of fixes on RTEMS 6 to work the latest aarch64 MacOS
releases from Karel Gardas. Maybe they need to be back ported to 5?

> configure: error: /bin/sh build-aux/config.sub arm64-apple-darwin22.3.0 failed
> checking build system type...
> checking build system type...
> shell cmd failed: /bin/sh -ex  /Users/hjunkes/VE_RTEMS_INST/rsb/rtems/build/autoconf-2.69-arm64-apple-darwin22.3.0-1/do-build
> error: building autoconf-2.69-arm64-apple-darwin22.3.0-1
> 
> 
> on CLANG 10.0.0 and python 3.8.5
> 
> Ok with RTEMS 5.2 (and rtems6)

On which MacOS?

Chris

> 
> RTEMS Source Builder - Set Builder, 5 (1116c5f85fb5 modified)
>  Command Line: ../source-builder/sb-set-builder --jobs=2 --prefix=/Users/heinz/VE_RTEMS_RUN/rtems/5 5/rtems-arm
>  Python: 3.8.5 (default, Sep  4 2020, 02:22:02) [Clang 10.0.0 ]
> warning: exe: absolute exe found in path: (__install_info) /usr/bin/install-info
> warning: exe: absolute exe found in path: (__makeinfo) /usr/bin/makeinfo
> Build Set: 5/rtems-arm
> Build Set: 5/rtems-autotools.bset
> Build Set: 5/rtems-autotools-internal.bset
> config: tools/rtems-autoconf-2.69-1.cfg
> package: autoconf-2.69-x86_64-apple-darwin22.2.0-1
> script:  1: #!/bin/sh




More information about the users mailing list