Skip to content

Error building on MacOS M2 arm64 #5

@kaltar

Description

@kaltar

building using python 3.13 on MacOS M2

python3 build.py --arch arm64 ends in error that is not displayed. (See the OSError is empty). No clue what is wrong. All scons seem to be built without problems.

ABBREVIATED LOG

python3 build.py --arch arm64
...
scons: done building targets.
Traceback (most recent call last):
  File "/Users/kaltar/Downloads/M8 Headless/m8gd/m8gd/build.py", line 308, in <module>
    export_templates_path = get_export_templates_path()
  File "/Users/kaltar/Downloads/M8 Headless/m8gd/m8gd/build.py", line 123, in get_export_templates_path
    raise EnvironmentError()
OSError

FULL LOG

$ python3 build.py --arch arm64
Found make! (/usr/bin/make)
Compiling libserialport...
./autogen.sh
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I autostuff
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy --force
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'autostuff'.
glibtoolize: copying file 'autostuff/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'autostuff'.
glibtoolize: copying file 'autostuff/libtool.m4'
glibtoolize: copying file 'autostuff/ltoptions.m4'
glibtoolize: copying file 'autostuff/ltsugar.m4'
glibtoolize: copying file 'autostuff/ltversion.m4'
glibtoolize: copying file 'autostuff/lt~obsolete.m4'
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal --force -I autostuff
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf --force
autoreconf: running: /opt/homebrew/Cellar/autoconf/2.72/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:46: installing 'autostuff/compile'
configure.ac:44: installing 'autostuff/missing'
Makefile.am: installing 'autostuff/depcomp'
autoreconf: Leaving directory '.'
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 2
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
configure: WARNING: Libtool does not cope well with whitespace in `pwd`
checking build system type... aarch64-apple-darwin22.6.0
checking host system type... aarch64-apple-darwin22.6.0
checking how to print strings... printf
checking for a sed that does not truncate output... /opt/homebrew/bin/gsed
checking for grep that handles long lines and -e... /opt/homebrew/bin/ggrep
checking for egrep... /opt/homebrew/bin/ggrep -E
checking for fgrep... /opt/homebrew/bin/ggrep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 786432
checking how to convert aarch64-apple-darwin22.6.0 file names to aarch64-apple-darwin22.6.0 format... func_convert_file_noop
checking how to convert aarch64-apple-darwin22.6.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for file... file
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ranlib... ranlib
checking for archiver @FILE support... no
checking for strip... strip
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -no_fixup_chains linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin22.6.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for IOKit/IOKitLib.h... yes
checking for gcc option to enable large file support... none needed
checking for size_t... yes
checking for struct termios2... no
checking for struct termios.c_ispeed... no
checking for struct termios.c_ospeed... no
checking for struct termios2.c_ispeed... no
checking for struct termios2.c_ospeed... no
checking for gcc options needed to detect all undeclared functions... none needed
checking whether BOTHER is declared... no
checking for struct serial_struct... no
checking for realpath... yes
checking for sys/file.h... yes
checking for flock... yes
checking for clock_gettime... yes
checking for visibility control... attribute
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libserialport.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

libserialport configuration summary:

 - Package version................. 0.1.2
 - Library ABI version............. 1:1:1
 - Prefix.......................... /usr/local
 - Building on..................... aarch64-apple-darwin22.6.0
 - Building for.................... aarch64-apple-darwin22.6.0
 - Building shared / static........ yes / yes

Compile configuration:
 - C compiler...................... gcc
 - C compiler version.............. Apple clang version 14.0.3 (clang-1403.0.22.14.1)
 - C compiler flags................ -g -O2
 - Linker flags....................

/usr/bin/make CFLAGS=-fPIC
/Library/Developer/CommandLineTools/usr/bin/make  all-am
Found scons! (/opt/homebrew/bin/scons)
Compiling libm8gd extension...
scons target=template_release  arch=arm64
scons: Reading SConscript files ...
Auto-detected 8 CPU cores available for build parallelism. Using 7 cores by default. You can override it with the -j argument.
Building for architecture arm64 on platform macos
scons: done reading SConscript files.
scons: Building targets ...
scons: `thirdparty/godot-cpp/bin/libgodot-cpp.macos.template_release.arm64.a' is up to date.
Retrieved `src/display_buffer.os' from cache
Retrieved `src/gdm8.os' from cache
Retrieved `src/libm8.os' from cache
Retrieved `src/register_types.os' from cache
Retrieved `project/addons/libm8gd/bin/libm8gd.macos.release.framework/libm8gd.macos.release' from cache
scons: done building targets.
Traceback (most recent call last):
  File "/Users/kaltar/Downloads/M8 Headless/m8gd/m8gd/build.py", line 308, in <module>
    export_templates_path = get_export_templates_path()
  File "/Users/kaltar/Downloads/M8 Headless/m8gd/m8gd/build.py", line 123, in get_export_templates_path
    raise EnvironmentError()
OSError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions