[MacPorts] #70326: gcc13, gcc14 build failures on arm64

MacPorts noreply at macports.org
Thu Jul 4 11:59:31 UTC 2024


#70326: gcc13, gcc14 build failures on arm64
---------------------------+--------------------
 Reporter:  barracuda156   |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.9.3
 Keywords:  arm64, sonoma  |       Port:
---------------------------+--------------------
 As of now, building from source of new gccs still fail for me:
 {{{
 :info:build checking for unistd.h... 1 warning generated.
 :info:build if [ x"" != x ]; then \
 :info:build       /usr/bin/clang -arch arm64 -c -DHAVE_CONFIG_H -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/work/gcc-14.1.0/libiberty/../include
 -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local
 -pedantic  -D_GNU_SOURCE  -fno-common
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/work/gcc-14.1.0/libiberty/fibheap.c
 -o noasan/fibheap.o; \
 :info:build     else true; fi
 :info:build /usr/bin/clang -arch arm64 -c -DHAVE_CONFIG_H -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/work/gcc-14.1.0/libiberty/../include
 -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local
 -pedantic  -D_GNU_SOURCE
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/work/gcc-14.1.0/libiberty/fibheap.c
 -o fibheap.o
 :info:build yes
 :info:build checking minix/config.h usability... warning: unknown warning
 option '-Wshadow=local' [-Wunknown-warning-option]
 :info:build yes
 :info:build checking for CFLocaleCopyPreferredLanguages... 1 warning
 generated.
 :info:build if [ x"-fno-common" != x ]; then \
 :info:build       /usr/bin/clang -arch arm64 -c -DHAVE_CONFIG_H -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/work/gcc-14.1.0/libiberty/../include
 -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -Wshadow=local
 -pedantic  -D_GNU_SOURCE  -fno-common
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/work/gcc-14.1.0/libiberty/filedescriptor.c
 -o pic/filedescriptor.o; \
 :info:build     else true; fi
 :info:build no
 :info:build checking minix/config.h presence... warning: unknown warning
 option '-Wshadow=local' [-Wunknown-warning-option]
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/work/gcc-14.1.0/libiberty/filedescriptor.c:45:10:
 error: call to undeclared function 'dup2'; ISO C99 and later do not
 support implicit function declarations [-Wimplicit-function-declaration]
 :info:build   return dup2 (fd, fd) < 0;
 :info:build          ^
 :info:build 1 warning and 1 error generated.
 :info:build make[3]: *** [filedescriptor.o] Error 1
 :info:build make[3]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc14/libgcc14/work/build
 /build-arm64-apple-darwin23/libiberty'
 :info:build make[2]: *** [all-build-libiberty] Error 2
 :info:build make[2]: *** Waiting for unfinished jobs....
 }}}

 I did try deactivating everything, removing all custom port files and
 installing from scratch.

-- 
Ticket URL: <https://trac.macports.org/ticket/70326>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list