Error Compiling Julia on Apple M1

I am running into an error while compiling Julia from GitHub (both using today’s master and using this commit) on an M1 chip. I’d highly appreciate any help in resolving this. The specific error message is:

make[1]: *** No rule to make target `/Users/sebastianament/Documents/SEA/julia/base/namedtuple.jl', needed by `/Users/sebastianament/Documents/SEA/julia/usr/lib/julia/corecompiler.ji'.  Stop.
make: *** [julia-sysimg-ji] Error 2

And here’s a comprehensive printout including a preceding make cleanall call

(base) MacBook-Pro:julia sebastianament$ git branch
* master
(base) MacBook-Pro:julia sebastianament$ make cleanall
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/base
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/test
rm -f ./pcre_h.jl
rm -f ./errno_h.jl
rm -f ./build_h.jl
rm -f ./build_h.jl.phony
rm -f ./features_h.jl
rm -f ./uv_constants.jl
rm -f ./file_constants.jl
rm -f ./version_git.jl
rm -f ./version_git.jl.phony
rm -f /Users/sebastianament/Documents/SEA/julia/usr/lib/julia/lib*.dylib*
rm -rf _build/* deps/* docbuild.log UnicodeData.txt
rm -fr /Users/sebastianament/Documents/SEA/julia/usr/lib/libjulia-internal* /Users/sebastianament/Documents/SEA/julia/usr/lib/libjulia-codegen* /Users/sebastianament/Documents/SEA/julia/usr/lib/libccalltest* /Users/sebastianament/Documents/SEA/julia/usr/lib/libllvmcalltest*
rm -f ./julia_flisp.boot ./julia_flisp.boot.inc ./jl_internal_funcs.inc
rm -f ./*.dbg.obj ./*.o ./*.dwo ./*.dylib ./*.a ./*.h.gen
rm -f ./julia_version.h
rm -f ./*.o ./*.dbg.obj
rm -f /Users/sebastianament/Documents/SEA/julia/usr/bin/julia*
rm -f /Users/sebastianament/Documents/SEA/julia/test/embedding/embedding-debug /Users/sebastianament/Documents/SEA/julia/test/embedding/embedding
rm -f /Users/sebastianament/Documents/SEA/julia/test/gcext/gcext-debug /Users/sebastianament/Documents/SEA/julia/test/gcext/gcext
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Pkg
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/Pkg
rm ./Pkg-b4da4946735fe4c7c6bb3e2bc16af95b4e76e487/build-compiled
rm: ./Pkg-b4da4946735fe4c7c6bb3e2bc16af95b4e76e487/build-compiled: No such file or directory
make[1]: [clean-Pkg] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Statistics
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/Statistics
rm ./Statistics-61a021bcb330e6c52f2435f2abaffc77875ab6f2/build-compiled
rm: ./Statistics-61a021bcb330e6c52f2435f2abaffc77875ab6f2/build-compiled: No such file or directory
make[1]: [clean-Statistics] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LibCURL
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/LibCURL
rm ./LibCURL-fd8af649b38ae20c3ff7f5dca53753512ca00376/build-compiled
rm: ./LibCURL-fd8af649b38ae20c3ff7f5dca53753512ca00376/build-compiled: No such file or directory
make[1]: [clean-LibCURL] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Downloads
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/Downloads
rm ./Downloads-2a21b1536aec0219c6bdb78dbb6570fc31a40983/build-compiled
rm: ./Downloads-2a21b1536aec0219c6bdb78dbb6570fc31a40983/build-compiled: No such file or directory
make[1]: [clean-Downloads] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/ArgTools
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/ArgTools
rm ./ArgTools-08b11b2707593d4d7f92e5f1b9dba7668285ff82/build-compiled
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Tar
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/Tar
rm ./Tar-0f8a73d5cd4b0c8f1f3c36799c96e9515e9dc595/build-compiled
rm: ./Tar-0f8a73d5cd4b0c8f1f3c36799c96e9515e9dc595/build-compiled: No such file or directory
make[1]: [clean-Tar] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/NetworkOptions
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/NetworkOptions
rm ./NetworkOptions-01e6ec17aa4ef74b4a0ea19c193dacf8d2cfc353/build-compiled
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SuiteSparse
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/SuiteSparse
rm ./SuiteSparse-f63732c1c6adecb277d8f2981cc8c1883c321bcc/build-compiled
rm: ./SuiteSparse-f63732c1c6adecb277d8f2981cc8c1883c321bcc/build-compiled: No such file or directory
make[1]: [clean-SuiteSparse] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SparseArrays
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/SparseArrays
rm ./SparseArrays-aa51c9b82d952502139213715c9b077ec36c4623/build-compiled
rm: ./SparseArrays-aa51c9b82d952502139213715c9b077ec36c4623/build-compiled: No such file or directory
make[1]: [clean-SparseArrays] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SHA
rm /Users/sebastianament/Documents/SEA/julia/usr/manifest/SHA
rm ./SHA-57c3a8c8358021b7a58526364e6885768fd95de2/build-compiled
rm: ./SHA-57c3a8c8358021b7a58526364e6885768fd95de2/build-compiled: No such file or directory
make[1]: [clean-SHA] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Artifacts
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Base64
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/CRC32c
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Dates
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/DelimitedFiles
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Distributed
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/FileWatching
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Future
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/InteractiveUtils
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LazyArtifacts
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Libdl
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LibGit2
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LinearAlgebra
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Logging
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Markdown
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Mmap
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Printf
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Profile
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Random
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/REPL
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Serialization
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SHA
rm: /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SHA: No such file or directory
make[1]: [clean-/Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SHA] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SharedArrays
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Sockets
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SparseArrays
rm: /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SparseArrays: No such file or directory
make[1]: [clean-/Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SparseArrays] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SuiteSparse
rm: /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SuiteSparse: No such file or directory
make[1]: [clean-/Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SuiteSparse] Error 1 (ignored)
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Test
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/TOML
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Unicode
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/UUIDs
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/MozillaCACerts_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/dSFMT_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/GMP_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LibCURL_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LibGit2_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/libLLVM_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LibSSH2_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LibUV_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/MbedTLS_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/MPFR_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/nghttp2_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/libblastrampoline_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/OpenBLAS_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/OpenLibm_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/p7zip_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/PCRE2_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/SuiteSparse_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/Zlib_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LLVMLibUnwind_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/CompilerSupportLibraries_jll
rm -r /Users/sebastianament/Documents/SEA/julia/usr/share/julia/stdlib/v1.8/LibUnwind_jll
for module in Pkg Statistics LibCURL Downloads ArgTools Tar NetworkOptions SuiteSparse SparseArrays SHA ; do \
		rm -rf /Users/sebastianament/Documents/SEA/julia/stdlib/${module}-*; \
	done
rm -f /Users/sebastianament/Documents/SEA/julia/julia
rm -f /Users/sebastianament/Documents/SEA/julia/*.tar.gz
rm -f /Users/sebastianament/Documents/SEA/julia/usr/tools/stringreplace \
	   /Users/sebastianament/Documents/SEA/julia/light-source-dist.tmp /Users/sebastianament/Documents/SEA/julia/light-source-dist.tmp1 \
	   /Users/sebastianament/Documents/SEA/julia/full-source-dist.tmp /Users/sebastianament/Documents/SEA/julia/full-source-dist.tmp1
rm -fr /Users/sebastianament/Documents/SEA/julia/usr/lib/julia
rm -fr /Users/sebastianament/Documents/SEA/julia/usr/share/julia/extras
/Library/Developer/CommandLineTools/usr/bin/make -C /Users/sebastianament/Documents/SEA/julia/src/flisp clean BUILDDIR='/Users/sebastianament/Documents/SEA/julia/src/flisp'
rm -f /Users/sebastianament/Documents/SEA/julia/src/flisp/*.o
rm -f /Users/sebastianament/Documents/SEA/julia/src/flisp/*.dbg.obj
rm -f /Users/sebastianament/Documents/SEA/julia/src/flisp/*.a
rm -f /Users/sebastianament/Documents/SEA/julia/src/flisp/flisp
rm -f /Users/sebastianament/Documents/SEA/julia/src/flisp/flisp-debug
rm -f /Users/sebastianament/Documents/SEA/julia/src/flisp/host/*
/Library/Developer/CommandLineTools/usr/bin/make -C /Users/sebastianament/Documents/SEA/julia/src/support clean BUILDDIR='/Users/sebastianament/Documents/SEA/julia/src/support'
rm -f /Users/sebastianament/Documents/SEA/julia/src/support/*.o
rm -f /Users/sebastianament/Documents/SEA/julia/src/support/*.dbg.obj
rm -f /Users/sebastianament/Documents/SEA/julia/src/support/*.a
rm -f /Users/sebastianament/Documents/SEA/julia/src/support/*~ *#
rm -f /Users/sebastianament/Documents/SEA/julia/src/support/core*
rm -f /Users/sebastianament/Documents/SEA/julia/src/support/libsupport.a
rm -f /Users/sebastianament/Documents/SEA/julia/src/support/libsupport-debug.a
rm -f /Users/sebastianament/Documents/SEA/julia/src/support/host/*
gfortran: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gfortran: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
make[1]: Nothing to be done for `clean-libuv'.
rm -fr /Users/sebastianament/Documents/SEA/julia/usr /Users/sebastianament/Documents/SEA/julia/usr-staging
(base) MacBook-Pro:julia sebastianament$ make
gfortran: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
gfortran: warning: '-mcpu=' is deprecated; use '-mtune=' or '-march=' instead
Creating usr/etc/julia/startup.jl
Copying in usr/share/man/man1/julia.1
/Users/sebastianament/Documents/SEA/julia/contrib/install.sh 755 /Users/sebastianament/Documents/SEA/julia/contrib/julia-config.jl /Users/sebastianament/Documents/SEA/julia/usr/share/julia/
    PERL base/pcre_h.jl
    PERL base/errno_h.jl
    PERL base/build_h.jl.phony
    PERL base/features_h.jl
    PERL base/features_h.jl
    PERL base/features_h.jl
    PERL base/file_constants.jl
    PERL base/uv_constants.jl
    PERL base/version_git.jl.phony
    CC cli/loader_exe.o
    CC cli/loader_lib.o
    CC cli/loader_trampolines.o
    LINK usr/lib/libjulia.1.8.dylib
    LINK usr/lib/libjulia.1.dylib
    LINK usr/lib/libjulia.dylib
    LINK usr/bin/julia
    CC src/support/hashing.o
    CC src/support/timefuncs.o
    CC src/support/ptrhash.o
    CC src/support/operators.o
    CC src/support/utf8.o
    CC src/support/ios.o
    CC src/support/htable.o
    CC src/support/bitvector.o
    CC src/support/int2str.o
    CC src/support/libsupportinit.o
    CC src/support/arraylist.o
    CC src/support/strtod.o
    CC src/support/rle.o
    LINK src/support/libsupport.a
    CC src/flisp/flisp.o
    CC src/flisp/builtins.o
    CC src/flisp/string.o
    CC src/flisp/equalhash.o
    CC src/flisp/table.o
    CC src/flisp/iostream.o
    CC src/flisp/julia_extensions.o
    LINK src/flisp/libflisp.a
    CC src/flisp/flmain.o
    LINK src/flisp/flisp
    FLISP src/julia_flisp.boot
    FLISP src/julia_flisp.boot.inc
    CC src/jloptions.o
    CC src/runtime_ccall.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/runtime_ccall.cpp:10:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/rtutils.o
    CC src/jltypes.o
    CC src/gf.o
    CC src/typemap.o
    CC src/smallintset.o
    CC src/ast.o
    CC src/builtins.o
    CC src/module.o
    CC src/interpreter.o
    CC src/symbol.o
    CC src/dlload.o
    CC src/sys.o
    CC src/init.o
    CC src/task.o
    CC src/array.o
    CC src/dump.o
    CC src/staticdata.o
    CC src/toplevel.o
    CC src/jl_uv.o
    CC src/datatype.o
    CC src/simplevector.o
    CC src/runtime_intrinsics.o
    CC src/precompile.o
    CC src/threading.o
    CC src/partr.o
    CC src/stackwalk.o
    CC src/gc.o
    CC src/gc-debug.o
    CC src/gc-pages.o
    CC src/gc-stacks.o
    CC src/gc-alloc-profiler.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/gc-alloc-profiler.cpp:3:
In file included from ./gc-alloc-profiler.h:6:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/method.o
    CC src/jlapi.o
    CC src/signal-handling.o
/Users/sebastianament/Documents/SEA/julia/src/signal-handling.c:117:15: warning: unused function 'jl_safe_read_mem' [-Wunused-function]
static size_t jl_safe_read_mem(const volatile char *ptr, char *out, size_t len)
              ^
1 warning generated.
    CC src/safepoint.o
    CC src/timing.o
    CC src/subtype.o
    CC src/crc32c.o
'++crc' is not a recognized feature for this target (ignoring feature)
'++crc' is not a recognized feature for this target (ignoring feature)
    CC src/APInt-C.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/APInt-C.cpp:10:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/processor.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/processor.cpp:10:
In file included from ./processor.h:5:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
In file included from /Users/sebastianament/Documents/SEA/julia/src/processor.cpp:847:
./processor_arm.cpp:1815:40: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
    asm volatile("mrs %0, fpcr" : "=r"(fpcr));
                                       ^
./processor_arm.cpp:1815:23: note: use constraint modifier "w"
    asm volatile("mrs %0, fpcr" : "=r"(fpcr));
                      ^~
                      %w0
./processor_arm.cpp:1821:40: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
    asm volatile("msr fpcr, %0" :: "r"(fpcr));
                                       ^
./processor_arm.cpp:1821:29: note: use constraint modifier "w"
    asm volatile("msr fpcr, %0" :: "r"(fpcr));
                            ^~
                            %w0
4 warnings generated.
    CC src/ircode.o
    CC src/opaque_closure.o
    CC src/codegen-stubs.o
    CC src/coverage.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/coverage.cpp:13:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    LINK usr/lib/libjulia-internal.1.8.dylib
    LINK usr/lib/libjulia-internal.1.dylib
    LINK usr/lib/libjulia-internal.dylib
    CC src/codegen.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/codegen.cpp:169:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-ptls.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-ptls.cpp:26:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/jitlayers.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/jitlayers.cpp:30:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
/Users/sebastianament/Documents/SEA/julia/src/jitlayers.cpp:1016:4: warning: #warning is a language extension [-Wpedantic]
#  warning "JIT debugging (GDB integration) not available on LLVM < 14.0 (for JITLink)"
   ^
/Users/sebastianament/Documents/SEA/julia/src/jitlayers.cpp:1016:4: warning: "JIT debugging (GDB integration) not available on LLVM < 14.0 (for JITLink)" [-W#warnings]
4 warnings generated.
    CC src/aotcompile.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/aotcompile.cpp:60:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/debuginfo.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/debuginfo.cpp:25:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/disasm.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/disasm.cpp:111:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-simdloop.o
    CC src/llvm-muladd.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-muladd.cpp:22:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-final-gc-lowering.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-final-gc-lowering.cpp:14:
In file included from ./codegen_shared.h:9:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-pass-helpers.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-pass-helpers.cpp:15:
In file included from ./codegen_shared.h:9:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-late-gc-lowering.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-late-gc-lowering.cpp:31:
In file included from ./codegen_shared.h:9:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-lower-handlers.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-lower-handlers.cpp:22:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-gc-invariant-verifier.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-gc-invariant-verifier.cpp:28:
In file included from ./codegen_shared.h:9:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-propagate-addrspaces.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-propagate-addrspaces.cpp:25:
In file included from ./codegen_shared.h:9:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-multiversioning.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-multiversioning.cpp:28:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-alloc-opt.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-alloc-opt.cpp:29:
In file included from ./codegen_shared.h:9:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-alloc-helpers.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-alloc-helpers.cpp:5:
In file included from ./codegen_shared.h:9:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/cgmemmgr.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/cgmemmgr.cpp:7:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-remove-addrspaces.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-remove-addrspaces.cpp:15:
In file included from ./codegen_shared.h:9:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-remove-ni.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-remove-ni.cpp:10:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-julia-licm.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-julia-licm.cpp:14:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    CC src/llvm-demote-float16.o
    CC src/llvm-cpufeatures.o
In file included from /Users/sebastianament/Documents/SEA/julia/src/llvm-cpufeatures.cpp:26:
./julia.h:397:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
./julia.h:406:9: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
        struct {
        ^
2 warnings generated.
    LINK usr/lib/libjulia-codegen.1.8.dylib
    LINK usr/lib/libjulia-codegen.1.dylib
    LINK usr/lib/libjulia-codegen.dylib
make[1]: *** No rule to make target `/Users/sebastianament/Documents/SEA/julia/base/namedtuple.jl', needed by `/Users/sebastianament/Documents/SEA/julia/usr/lib/julia/corecompiler.ji'.  Stop.
make: *** [julia-sysimg-ji] Error 2

The last one that worked for me was “Version 1.8.0-DEV.1463 (2022-02-08)” which I was able to retrieve from my time machine and have been using since.

1 Like

https://github.com/JuliaLang/julia/issues/44107
You’ll have to build commit 76fa18281db20bde90d0534a2b08b092f165df8c until the issue is resolved

2 Likes

That worked! Strangely though, only after I removed and cloned Julia one more time. Note sure what was left over.

Thank you for your help!

Running make cleanall usually helps, or git clean -fxd, as also suggested by the building instructions

A fix by @giordano was just merged into master. Julia should now build without trouble on the M1.

1 Like