Skip to content

0.3.34 is back to collect2: fatal error: posix_spawnp: Argument list too long error #5943

Closed

Description

@barracuda156

Unfortunately, we are back to #5332

Ninja:

:notice:configure --->  Configuring OpenBLAS
:debug:configure gcc_compilers.tcl not found in ports tree, using built-in selections
:debug:configure Preferred compilers: macports-gcc-16 macports-gcc-14 macports-gcc-13 macports-gcc-12 macports-gcc-11 macports-gcc-10 macports-gcc-9 macports-gcc-8 macports-gcc-7 macports-gcc-6 macports-gcc-5
:debug:configure Using compiler 'MacPorts GCC 16'
:debug:configure elevating privileges for configure ccache: euid changed to 0, egid changed to 0.
:debug:configure dropping privileges: euid changed to 503, egid changed to 501.
:warn:configure ccache_dir /opt/local/var/macports/build/.ccache could not be initialized; disabling ccache: couldn't execute "ccache": no such file or directory
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:debug:configure CPPFLAGS="-I/opt/local/include" inserted into CFLAGS="-O3 -DNDEBUG -I/opt/local/include" CXXFLAGS="-Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0"
:info:configure         (using ccache)
:debug:configure Executing proc-pre-org.macports.configure-configure-1
:debug:configure Executing proc-pre-org.macports.configure-configure-2
:debug:configure Active variants check for source-type install considers depends_fetch depends_extract depends_lib depends_build depends_run: libgcc cmake ninja coreutils cctools ld64 gcc16
:debug:configure Executing proc-pre-org.macports.configure-configure-3
:debug:configure compilers.enforce_c list: 
:debug:configure compilers.enforce_fortran list: 
:debug:configure compilers.enforce_some_fortran list: 
:debug:configure Executing proc-pre-org.macports.configure-configure-4
:debug:configure muniversal-1.1 PG overloaded the choose_supported_archs procedure!
:debug:configure Executing org.macports.configure (OpenBLAS)
:debug:configure Environment: 
:debug:configure ARCHPREFERENCE='ppc'
:debug:configure CC='/opt/local/bin/gcc-mp-16'
:debug:configure CC_FOR_BUILD='/opt/local/bin/gcc-mp-16'
:debug:configure CC_PRINT_OPTIONS='YES'
:debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/OpenBLAS-f7d53372/work/.CC_PRINT_OPTIONS'
:debug:configure CFLAGS='-pipe -O3 -DNDEBUG -I/opt/local/include -arch ppc'
:debug:configure CFLAGS_FOR_BUILD='-O3 -DNDEBUG -I/opt/local/include -arch ppc'
:debug:configure CPATH='/opt/local/include'
:debug:configure CPP_FOR_BUILD='/opt/local/bin/cpp-mp-16'
:debug:configure CXX='/opt/local/bin/g++-mp-16'
:debug:configure CXXCPP_FOR_BUILD='/opt/local/bin/cpp-mp-16'
:debug:configure CXXFLAGS='-pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc'
:debug:configure CXXFLAGS_FOR_BUILD='-Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc'
:debug:configure CXX_FOR_BUILD='/opt/local/bin/g++-mp-16'
:debug:configure DEVELOPER_DIR='/Developer'
:debug:configure F77='/opt/local/bin/gfortran-mp-16'
:debug:configure F90='/opt/local/bin/gfortran-mp-16'
:debug:configure F90FLAGS='-pipe -Os -m32'
:debug:configure FC='/opt/local/bin/gfortran-mp-16'
:debug:configure FCFLAGS='-pipe -Os -m32'
:debug:configure FFLAGS='-pipe -Os -m32'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
:debug:configure LDFLAGS_FOR_BUILD='-L/opt/local/lib -Wl,-headerpad_max_install_names -m32'
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:configure OBJC='/opt/local/bin/gcc-mp-16'
:debug:configure OBJCFLAGS='-pipe -Os -I/opt/local/include -arch ppc'
:debug:configure OBJCXX='/opt/local/bin/g++-mp-16'
:debug:configure OBJCXXFLAGS='-pipe -Os -DNDEBUG -I/opt/local/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc'
:debug:configure SOURCE_DATE_EPOCH='1784873781'
:info:configure Executing:  cd "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build" && /opt/local/bin/cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF -Wno-dev -DCOMMON_PROF=-pg -DNUM_THREADS=4 -DTARGET=PPC970 -DNO_AVX=ON -DNO_AVX2=ON -DNO_AVX512=ON -DCMAKE_AR=/opt/local/bin/ar -DCMAKE_NM=/opt/local/bin/nm -DCMAKE_OBJDUMP=/opt/local/bin/objdump -DCMAKE_RANLIB=/opt/local/bin/ranlib -DCMAKE_STRIP=/opt/local/bin/strip -DCMAKE_LINKER=/opt/local/bin/ld -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/OpenBLAS-f7d53372/work/OpenBLAS-0.3.34 
:debug:configure system:  cd "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build" && /opt/local/bin/cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=ninja -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF -Wno-dev -DCOMMON_PROF=-pg -DNUM_THREADS=4 -DTARGET=PPC970 -DNO_AVX=ON -DNO_AVX2=ON -DNO_AVX512=ON -DCMAKE_AR=/opt/local/bin/ar -DCMAKE_NM=/opt/local/bin/nm -DCMAKE_OBJDUMP=/opt/local/bin/objdump -DCMAKE_RANLIB=/opt/local/bin/ranlib -DCMAKE_STRIP=/opt/local/bin/strip -DCMAKE_LINKER=/opt/local/bin/ld -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/OpenBLAS-f7d53372/work/OpenBLAS-0.3.34 
:info:configure -- The C compiler identification is GNU 16.1.0
:info:configure -- The ASM compiler identification is GNU
:info:configure -- Found assembler: /opt/local/bin/gcc-mp-16
:info:configure -- Checking whether C compiler has -isysroot
:info:configure -- Checking whether C compiler has -isysroot - yes
:info:configure -- Checking whether C compiler supports OSX deployment target flag
:info:configure -- Checking whether C compiler supports OSX deployment target flag - yes
:info:configure -- Detecting C compiler ABI info
:info:configure -- Detecting C compiler ABI info - done
:info:configure -- Check for working C compiler: /opt/local/bin/gcc-mp-16 - skipped
:info:configure -- Detecting C compile features
:info:configure -- Detecting C compile features - done
:info:configure CMake Warning at CMakeLists.txt:123 (message):
:info:configure   CMake support is experimental.  It does not yet support all build options
:info:configure   and may not produce the same Makefiles that OpenBLAS ships with.
:info:configure -- Looking for stdatomic.h
:info:configure -- Looking for stdatomic.h - found
:info:configure -- Compiling a 32-bit binary.
:info:configure -- -- -- -- -- -- -- -- -- -- -- -- -- --
:info:configure -- Targeting the PPC970 architecture.
:info:configure -- GEMM multithread threshold set to 4.
:info:configure -- Disabling Advanced Vector Extensions (AVX).
:info:configure -- Disabling Advanced Vector Extensions 2 (AVX2).
:info:configure -- Disabling Advanced Vector Extensions 512 (AVX512).
:info:configure -- Multi-threading enabled with 4 threads.
:info:configure -- Looking for a Fortran compiler
:info:configure -- Looking for a Fortran compiler - /opt/local/bin/gfortran-mp-16
:info:configure -- The Fortran compiler identification is GNU 16.1.0
:info:configure -- Checking whether Fortran compiler has -isysroot
:info:configure -- Checking whether Fortran compiler has -isysroot - yes
:info:configure -- Checking whether Fortran compiler supports OSX deployment target flag
:info:configure -- Checking whether Fortran compiler supports OSX deployment target flag - yes
:info:configure -- Detecting Fortran compiler ABI info
:info:configure -- Detecting Fortran compiler ABI info - done
:info:configure -- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-16 - skipped
:info:configure -- Running getarch
:info:configure -- GETARCH results:
:info:configure CORE=PPC970
:info:configure LIBCORE=ppc970
:info:configure NUM_CORES=2
:info:configure __BYTE_ORDER__=__ORDER_BIG_ENDIAN__
:info:configure MAKEFLAGS += -j 2
:info:configure -- Compiling a 32-bit binary.
:info:configure -- Building Single Precision
:info:configure -- Building Double Precision
:info:configure -- Building Complex Precision
:info:configure -- Building Double Complex Precision
:info:configure -- /opt/local/var/macports/build/OpenBLAS-f7d53372/work/build/interface/CMakeFiles/scopy.c
. . .
:info:configure -- /opt/local/var/macports/build/OpenBLAS-f7d53372/work/build/lapack/CMakeFiles/ztrti2_LU.c
:info:configure -- fortran lapack
:info:configure -- Building deprecated routines
:info:configure -- Building Single Precision
:info:configure -- Building Double Precision
:info:configure -- Building Single Precision Complex
:info:configure -- Building Double Precision Complex
:info:configure -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
:info:configure -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
:info:configure -- Found Threads: TRUE
:info:configure -- Generating openblas_config.h in include/openblas
:info:configure -- Generating f77blas.h in include/openblas
:info:configure -- Generating cblas.h in include/openblas
:info:configure -- Copying LAPACKE header files to include/openblas
:info:configure -- Configuring done (17.5s)
:info:configure -- Generating done (10.7s)
:info:configure CMake Warning:
:info:configure   Manually-specified variables were not used by the project:
:info:configure     CMAKE_COLOR_MAKEFILE
:info:configure     CMAKE_CXX_COMPILER
:info:configure     CMAKE_OBJCXX_COMPILER
:info:configure     CMAKE_OBJC_COMPILER
:info:configure     CMAKE_POLICY_DEFAULT_CMP0025
:info:configure     CMAKE_POLICY_DEFAULT_CMP0060
:info:configure -- Build files have been written to: /opt/local/var/macports/build/OpenBLAS-f7d53372/work/build
:debug:configure Executing proc-post-org.macports.configure-configure-0
:debug:configure configure.ccache restored to yes
:debug:configure Executing proc-post-org.macports.configure-configure-1
:debug:configure Executing portconfigure::configure_finish
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at 2026-07-24T06:21:19.693+0000 (Fri Jul 24 14:21:19 CST 2026)
:notice:build --->  Building OpenBLAS
:debug:build Executing org.macports.build (OpenBLAS)
:debug:build Environment: 
:debug:build ARCHPREFERENCE='ppc'
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/OpenBLAS-f7d53372/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build DEVELOPER_DIR='/Developer'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:build SOURCE_DATE_EPOCH='1784873781'
:info:build Executing:  cd "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build" && ninja -j2 all -v 
:debug:build system:  cd "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build" && ninja -j2 all -v 
. . .
:info:build [10180/11687] /opt/local/bin/cmake -E cmake_ninja_dyndep --tdi=test/CMakeFiles/zblat3.dir/FortranDependInfo.json --lang=Fortran --dd=test/CMakeFiles/zblat3.dir/Fortran.dd @test/CMakeFiles/zblat3.dir/Fortran.dd.rsp
:info:build [10181/11687] /opt/local/bin/cmake -E cmake_ninja_dyndep --tdi=lapack-netlib/TESTING/LIN/CMakeFiles/xlintsts.dir/FortranDependInfo.json --lang=Fortran --dd=lapack-netlib/TESTING/LIN/CMakeFiles/xlintsts.dir/Fortran.dd @lapack-netlib/TESTING/LIN/CMakeFiles/xlintsts.dir/Fortran.dd.rsp
:info:build [10182/11687] /opt/local/bin/cmake -E cmake_ninja_dyndep --tdi=lapack-netlib/TESTING/LIN/CMakeFiles/xlintstrfs.dir/FortranDependInfo.json --lang=Fortran --dd=lapack-netlib/TESTING/LIN/CMakeFiles/xlintstrfs.dir/Fortran.dd @lapack-netlib/TESTING/LIN/CMakeFiles/xlintstrfs.dir/Fortran.dd.rsp
:info:build [10183/11687] : && /opt/local/bin/gfortran-mp-16 -pipe -Os -m32  -fPIC -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc   -current_version 0.3.0 -o lib/libopenblas.0.3.dylib -install_name @rpath/libopenblas.0.dylib @CMakeFiles/openblas_shared.rsp && :
:info:build FAILED: [code=1] lib/libopenblas.0.3.dylib 
:info:build : && /opt/local/bin/gfortran-mp-16 -pipe -Os -m32  -fPIC -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc   -current_version 0.3.0 -o lib/libopenblas.0.3.dylib -install_name @rpath/libopenblas.0.dylib @CMakeFiles/openblas_shared.rsp && :
:info:build collect2: fatal error: posix_spawnp: Argument list too long
:info:build compilation terminated.
:info:build [10184/11687] /opt/local/bin/cmake -E cmake_ninja_dyndep --tdi=lapack-netlib/TESTING/LIN/CMakeFiles/xlintstd.dir/FortranDependInfo.json --lang=Fortran --dd=lapack-netlib/TESTING/LIN/CMakeFiles/xlintstd.dir/Fortran.dd @lapack-netlib/TESTING/LIN/CMakeFiles/xlintstd.dir/Fortran.dd.rsp
:info:build ninja: build stopped: subcommand failed.
:info:build Command failed:  cd "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build" && ninja -j2 all -v 
:info:build Exit code: 1

Without Ninja:

:notice:configure --->  Configuring OpenBLAS
:debug:configure gcc_compilers.tcl not found in ports tree, using built-in selections
:debug:configure Preferred compilers: macports-gcc-16 macports-gcc-14 macports-gcc-13 macports-gcc-12 macports-gcc-11 macports-gcc-10 macports-gcc-9 macports-gcc-8 macports-gcc-7 macports-gcc-6 macports-gcc-5
:debug:configure Using compiler 'MacPorts GCC 16'
:debug:configure elevating privileges for configure ccache: euid changed to 0, egid changed to 0.
:debug:configure dropping privileges: euid changed to 503, egid changed to 501.
:debug:configure Executing proc-pre-org.macports.configure-configure-0
:debug:configure CPPFLAGS="-I/opt/local/include" inserted into CFLAGS="-O3 -DNDEBUG -I/opt/local/include" CXXFLAGS="-Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0"
:info:configure         (using ccache)
:debug:configure Executing proc-pre-org.macports.configure-configure-1
:debug:configure Executing proc-pre-org.macports.configure-configure-2
:debug:configure Active variants check for source-type install considers depends_fetch depends_extract depends_lib depends_build depends_run: libgcc cmake coreutils cctools ld64 gcc16
:debug:configure Executing proc-pre-org.macports.configure-configure-3
:debug:configure compilers.enforce_c list: 
:debug:configure compilers.enforce_fortran list: 
:debug:configure compilers.enforce_some_fortran list: 
:debug:configure Executing proc-pre-org.macports.configure-configure-4
:debug:configure muniversal-1.1 PG overloaded the choose_supported_archs procedure!
:debug:configure Executing org.macports.configure (OpenBLAS)
:debug:configure Environment: 
:debug:configure ARCHPREFERENCE='ppc'
:debug:configure CC='/opt/local/bin/gcc-mp-16'
:debug:configure CC_FOR_BUILD='/opt/local/bin/gcc-mp-16'
:debug:configure CC_PRINT_OPTIONS='YES'
:debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/OpenBLAS-f7d53372/work/.CC_PRINT_OPTIONS'
:debug:configure CFLAGS='-pipe -O3 -DNDEBUG -I/opt/local/include -arch ppc'
:debug:configure CFLAGS_FOR_BUILD='-O3 -DNDEBUG -I/opt/local/include -arch ppc'
:debug:configure CPATH='/opt/local/include'
:debug:configure CPP_FOR_BUILD='/opt/local/bin/cpp-mp-16'
:debug:configure CXX='/opt/local/bin/g++-mp-16'
:debug:configure CXXCPP_FOR_BUILD='/opt/local/bin/cpp-mp-16'
:debug:configure CXXFLAGS='-pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc'
:debug:configure CXXFLAGS_FOR_BUILD='-Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc'
:debug:configure CXX_FOR_BUILD='/opt/local/bin/g++-mp-16'
:debug:configure DEVELOPER_DIR='/Developer'
:debug:configure F77='/opt/local/bin/gfortran-mp-16'
:debug:configure F90='/opt/local/bin/gfortran-mp-16'
:debug:configure F90FLAGS='-pipe -Os -m32'
:debug:configure FC='/opt/local/bin/gfortran-mp-16'
:debug:configure FCFLAGS='-pipe -Os -m32'
:debug:configure FFLAGS='-pipe -Os -m32'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc'
:debug:configure LDFLAGS_FOR_BUILD='-L/opt/local/lib -Wl,-headerpad_max_install_names -m32'
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:configure OBJC='/opt/local/bin/gcc-mp-16'
:debug:configure OBJCFLAGS='-pipe -Os -I/opt/local/include -arch ppc'
:debug:configure OBJCXX='/opt/local/bin/g++-mp-16'
:debug:configure OBJCXXFLAGS='-pipe -Os -DNDEBUG -I/opt/local/include -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc'
:debug:configure SOURCE_DATE_EPOCH='1784877076'
:info:configure Executing:  cd "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_CXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_Fortran_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJCXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_ISPC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF -Wno-dev -DCOMMON_PROF=-pg -DNUM_THREADS=4 -DTARGET=PPC970 -DNO_AVX=ON -DNO_AVX2=ON -DNO_AVX512=ON -DCMAKE_AR=/opt/local/bin/ar -DCMAKE_LINKER=/opt/local/bin/ld -DCMAKE_NM=/opt/local/bin/nm -DCMAKE_OBJDUMP=/opt/local/bin/objdump -DCMAKE_RANLIB=/opt/local/bin/ranlib -DCMAKE_STRIP=/opt/local/bin/strip -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/OpenBLAS-f7d53372/work/OpenBLAS-0.3.34 
:debug:configure system:  cd "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_CXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_Fortran_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_OBJCXX_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_ISPC_COMPILER_LAUNCHER=/opt/local/bin/ccache -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF -Wno-dev -DCOMMON_PROF=-pg -DNUM_THREADS=4 -DTARGET=PPC970 -DNO_AVX=ON -DNO_AVX2=ON -DNO_AVX512=ON -DCMAKE_AR=/opt/local/bin/ar -DCMAKE_LINKER=/opt/local/bin/ld -DCMAKE_NM=/opt/local/bin/nm -DCMAKE_OBJDUMP=/opt/local/bin/objdump -DCMAKE_RANLIB=/opt/local/bin/ranlib -DCMAKE_STRIP=/opt/local/bin/strip -DBUILD_SHARED_LIBS=ON -DCMAKE_OSX_ARCHITECTURES="ppc" -DCMAKE_OSX_DEPLOYMENT_TARGET="10.6" -DCMAKE_OSX_SYSROOT="/" /opt/local/var/macports/build/OpenBLAS-f7d53372/work/OpenBLAS-0.3.34 
:info:configure -- The C compiler identification is GNU 16.1.0
:info:configure -- The ASM compiler identification is GNU
:info:configure -- Found assembler: /opt/local/bin/gcc-mp-16
:info:configure -- Checking whether C compiler has -isysroot
:info:configure -- Checking whether C compiler has -isysroot - yes
:info:configure -- Checking whether C compiler supports OSX deployment target flag
:info:configure -- Checking whether C compiler supports OSX deployment target flag - yes
:info:configure -- Detecting C compiler ABI info
:info:configure -- Detecting C compiler ABI info - done
:info:configure -- Check for working C compiler: /opt/local/bin/gcc-mp-16 - skipped
:info:configure -- Detecting C compile features
:info:configure -- Detecting C compile features - done
:info:configure CMake Warning at CMakeLists.txt:123 (message):
:info:configure   CMake support is experimental.  It does not yet support all build options
:info:configure   and may not produce the same Makefiles that OpenBLAS ships with.
:info:configure -- Looking for stdatomic.h
:info:configure -- Looking for stdatomic.h - found
:info:configure -- Compiling a 32-bit binary.
:info:configure -- -- -- -- -- -- -- -- -- -- -- -- -- --
:info:configure -- Targeting the PPC970 architecture.
:info:configure -- GEMM multithread threshold set to 4.
:info:configure -- Disabling Advanced Vector Extensions (AVX).
:info:configure -- Disabling Advanced Vector Extensions 2 (AVX2).
:info:configure -- Disabling Advanced Vector Extensions 512 (AVX512).
:info:configure -- Multi-threading enabled with 4 threads.
:info:configure -- Looking for a Fortran compiler
:info:configure -- Looking for a Fortran compiler - /opt/local/bin/gfortran-mp-16
:info:configure -- The Fortran compiler identification is GNU 16.1.0
:info:configure -- Checking whether Fortran compiler has -isysroot
:info:configure -- Checking whether Fortran compiler has -isysroot - yes
:info:configure -- Checking whether Fortran compiler supports OSX deployment target flag
:info:configure -- Checking whether Fortran compiler supports OSX deployment target flag - yes
:info:configure -- Detecting Fortran compiler ABI info
:info:configure -- Detecting Fortran compiler ABI info - done
:info:configure -- Check for working Fortran compiler: /opt/local/bin/gfortran-mp-16 - skipped
:info:configure -- Running getarch
:info:configure -- GETARCH results:
:info:configure CORE=PPC970
:info:configure LIBCORE=ppc970
:info:configure NUM_CORES=2
:info:configure __BYTE_ORDER__=__ORDER_BIG_ENDIAN__
:info:configure MAKEFLAGS += -j 2
:info:configure -- Compiling a 32-bit binary.
:info:configure -- Building Single Precision
:info:configure -- Building Double Precision
:info:configure -- Building Complex Precision
:info:configure -- Building Double Complex Precision
. . .
:info:build [ 82%] Building C object CMakeFiles/LAPACKE.dir/lapack-netlib/LAPACKE/utils/lapacke_ztz_trans.c.o
:info:build /opt/local/bin/ccache /opt/local/bin/gcc-mp-16  -I/opt/local/var/macports/build/OpenBLAS-f7d53372/work/OpenBLAS-0.3.34/lapack-netlib/LAPACKE/include -pipe -O3 -DNDEBUG -I/opt/local/include -arch ppc  -DHAVE_C11 -Wall -m32 -mtune=970 -maltivec -fno-fast-math -force_cpusubtype_ALL -fPIC -DGEMM_GEMV_FORWARD -DSBGEMM_GEMV_FORWARD -DNO_AVX -DNO_AVX2 -DNO_AVX512 -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DMAX_PARALLEL_NUMBER=1 -DMAX_STACK_ALLOC=2048 -DNO_AFFINITY -DVERSION="\"0.3.34\"" -DBUILD_SINGLE -DBUILD_DOUBLE -DBUILD_COMPLEX -DBUILD_COMPLEX16 -arch ppc -mmacosx-version-min=10.6  -DHAVE_LAPACK_CONFIG_H -MD -MT CMakeFiles/LAPACKE.dir/lapack-netlib/LAPACKE/utils/lapacke_ztz_trans.c.o -MF CMakeFiles/LAPACKE.dir/lapack-netlib/LAPACKE/utils/lapacke_ztz_trans.c.o.d -o CMakeFiles/LAPACKE.dir/lapack-netlib/LAPACKE/utils/lapacke_ztz_trans.c.o -c /opt/local/var/macports/build/OpenBLAS-f7d53372/work/OpenBLAS-0.3.34/lapack-netlib/LAPACKE/utils/lapacke_ztz_trans.c
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build'
:info:build [ 82%] Built target LAPACKE
:info:build /usr/bin/make  -f CMakeFiles/openblas_shared.dir/build.make CMakeFiles/openblas_shared.dir/depend
:info:build make[2]: Entering directory `/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build'
:info:build cd /opt/local/var/macports/build/OpenBLAS-f7d53372/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/OpenBLAS-f7d53372/work/OpenBLAS-0.3.34 /opt/local/var/macports/build/OpenBLAS-f7d53372/work/OpenBLAS-0.3.34 /opt/local/var/macports/build/OpenBLAS-f7d53372/work/build /opt/local/var/macports/build/OpenBLAS-f7d53372/work/build /opt/local/var/macports/build/OpenBLAS-f7d53372/work/build/CMakeFiles/openblas_shared.dir/DependInfo.cmake "--color="
:info:build Dependee "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build/CMakeFiles/openblas_shared.dir/DependInfo.cmake" is newer than depender "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build/CMakeFiles/openblas_shared.dir/depend.internal".
:info:build Dependee "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build/CMakeFiles/openblas_shared.dir/depend.internal".
:info:build Scanning dependencies of target openblas_shared
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build'
:info:build /usr/bin/make  -f CMakeFiles/openblas_shared.dir/build.make CMakeFiles/openblas_shared.dir/build
:info:build make[2]: Entering directory `/opt/local/var/macports/build/OpenBLAS-f7d53372/work/build'
:info:build [ 82%] Linking Fortran shared library lib/libopenblas.dylib
:info:build /opt/local/bin/cmake -E cmake_link_script CMakeFiles/openblas_shared.dir/link.txt --verbose=ON
:info:build collect2: fatal error: posix_spawnp: Argument list too long
:info:build compilation terminated.
:info:build /opt/local/bin/gfortran-mp-16 -pipe -Os -m32  -fPIC -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -current_version 0.3.0 -o lib/libopenblas.0.3.dylib -install_name @rpath/libopenblas.0.dylib @CMakeFiles/openblas_shared.dir/objects1.rsp @CMakeFiles/openblas_shared.dir/objects2.rsp @CMakeFiles/openblas_shared.dir/objects3.rsp @CMakeFiles/openblas_shared.dir/objects4.rsp @CMakeFiles/openblas_shared.dir/linkLibs.rsp
:info:build make[2]: *** [lib/libopenblas.0.3.dylib] Error 1

Activity

  1. martin-frbg commented on Jul 24, 2026

    @martin-frbg
    Collaborator

    Hmm. I now see that there actually was a recent change to that ARG_MAX workaround after all - #5776 which promised to "properly" fix response file generation to address problems they saw in #5775

  2. barracuda156 commented on Jul 24, 2026

    @barracuda156
    ContributorAuthor

    Well, it certainly did not fix the issue properly, but if the change was Ninja-only, it does not explain non-Ninja build failure now.

  3. martin-frbg commented on Jul 24, 2026

    @martin-frbg
    Collaborator

    Thought you could perhaps try if reverting that commit fixes the issue on your platform ?

  4. barracuda156 commented on Jul 24, 2026

    @barracuda156
    ContributorAuthor

    @martin-frbg Looks like it does. I just edited CMakeLists, resumed build, and it installed. I will try clean build in a few min, anyway I need to build G4 kernels versions.

  5. barracuda156 commented on Jul 24, 2026

    @barracuda156
    ContributorAuthor

    @martin-frbg Confirmed with clean build, reverting ca4d867 fixes it (without Ninja).

  6. chris-se commented on Aug 5, 2026

    @chris-se

    As the one who wrote the commit that caused this regression: my guess is that the xargs -n 1024 part in the workaround is too large a number of arguments for those old systems.

    I would suggest changing the xargs -n 1024 to something like xargs -n 200 (to have at most 256 arguments including the ones always passed to ar). Does that fix the issue?

  7. martin-frbg commented on Aug 6, 2026

    @martin-frbg
    Collaborator

    Curious if that were the case, as 1024 was already used in the version before your commit

  8. chris-se commented on Aug 6, 2026

    @chris-se

    I took another look at the log in #5332 and what appears to be the problem is the following:

    :info:build : && /opt/local/bin/gfortran-mp-16 -pipe -Os -m32  -fPIC -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc   -current_version 0.3.0 -o lib/libopenblas.0.3.dylib -install_name @rpath/libopenblas.0.dylib @CMakeFiles/openblas_shared.rsp && :
    :info:build collect2: fatal error: posix_spawnp: Argument list too long
    

    So it's not actuallly make or ninja generating a command line that's too long, because a response file is actually generate (@CMakeFiles/openblas_shared.rsp), but the problem is that the version of gfortran reads the response file, and invokes collect2 for linking, but just attempts to pass all arguments to collect2 directly (without passing a new response file to collect2).

    This therefore appears to be an issue with how gfortran invokes the linker, and doesn't have anything to do with the build system itself. The more interesting question is: why/how did this ever work previously?

    (For me on newer macOS versions everything works because I don't compile the Fortran code, and use just Apple's XCode, where apparently the response files passed to the linker command do work as expected.)

    The only easy way I see out of this is to rework the build system to some degree:

    • When building a dynamic library always pre-build a (temporary) static library containing all of the object files for the dynamic library (but also always built with e.g. -fPIC). For building static libraries we have the workaround where ar can update the static library archives to add more files in chunks, so the xargs -n trick can be used to properly create a static library from all object files that are to be linked into the dynamic library.
    • Then use -force_load / -Wl,--whole-archive / /WHOLEARCHIVE: (depending on the toolchain) to include the entire static library contents in the dynamic library.

    This way the linker command for the dynamic library (which is the one causing the problems here) will receive only a short list of arguments (typically less than a dozen), so that shouldn't ever be a problem, while the ar repeated update loop via xargs trick ensures that all source files are added.

    I can't test on a PPC Mac (I don't have one), but I can test on regular Windows, Linux and macOS; Windows/Linux on x86_64, and macOS on arm64. If you think this has some merit I can offer to take a look at this this weekend to try to implement this idea in a sane manner and provide a new pull request.

  9. martin-frbg commented on Aug 6, 2026

    @martin-frbg
    Collaborator

    Given that it works with the previous (if perhaps imperfect) version of the ARG_MAX workaround, I'm more inclined to make your addition arm64-only and resurrect the old code for ppc and x86.

  10. barracuda156 commented on Aug 6, 2026

    @barracuda156
    ContributorAuthor

    I can test something when needed, but it is desirable to minimize ppc rebuilds, it just takes quite a lot of machine time.

  11. chris-se commented on Aug 6, 2026

    @chris-se

    Looking at the previous code again: with Makefiles (but not with Ninja, which was my issue) this unconditionally enabled a (possibly temporary) static library on macOS instead of relying on the response file logic. So it basically already did what I suggested right now.

    I don't have time today or tomorrow for this, but I'll take a look during the weekend and provide a pull request for this.

  12. JULWAL1 commented on Aug 22, 2026

    @JULWAL1

    Hi.

    I got the same build error - at 82% during the linking stage - when trying to upgrade a previously installed version from: OpenBLAS @0.3.33_1+gcc15+lapack to: OpenBLAS @0.3.34_0+gcc15+lapack via MacPorts on both macOS Sierra and Catalina.

    I have posted a "manual" / workaround solution (including some basic diagnostic info about the dylib file) on the MacPorts website (see https://trac.macports.org/ticket/74336), that seems to work on both 'legacy' versions of macOS. It might be of use to you - the OpenBLAS developers - or not...

    Is there a quick test that I can run to make sure the upgraded package contents - mainly header files and a dylib file - were correctly installed and built?

    Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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