BLD: Quadpack undefined references
See original GitHub issueRecently the SciPy builds on my machine are failing with the following excerpt from the build logs. Can anyone recognize what the problem might be?
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Rev5, Built by MSYS2 project)
customize Gnu95FCompiler
Using built-in specs.
COLLECT_GCC=C:\MSYS64\MINGW64\BIN\gfortran.exe
COLLECT_LTO_WRAPPER=C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-10.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++ --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --disable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev5, Built by MSYS2 project' --with-bugurl=https://github.com/msys2/MINGW-packages/issues --with-gnu-as --with-gnu-ld --with-boot-ldflags='-pipe -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high -Wl,--disable-dynamicbase -static-libstdc++ -static-libgcc' 'LDFLAGS_FOR_TARGET=-pipe -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high' --enable-linker-plugin-flags='LDFLAGS=-static-libstdc++\ -static-libgcc\ -pipe\ -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high\ -Wl,--stack,12582912'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Rev5, Built by MSYS2 project)
customize Gnu95FCompiler using build_ext
creating C:\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\Users
creating C:\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\Users\Ilhan Polat
creating C:\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\Users\Ilhan Polat\AppData
creating C:\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\Users\Ilhan Polat\AppData\Local
creating C:\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\Users\Ilhan Polat\AppData\Local\Temp
creating C:\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /TcC:\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\main.c /FoC:\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\Users\Ilhan Polat\AppData\Local\Temp\tmpvgzmabk2\main.obj /std:c++14
building 'scipy.integrate._quadpack' extension
compiling C sources
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_CBLAS -Iscipy\_lib\src -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\lib\site-packages\numpy-1.20.0.dev0+0ffaaf8-py3.8-win-amd64.egg\numpy\core\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\include -IC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcscipy\integrate\_quadpackmodule.c /Fobuild\temp.win-amd64-3.8\Release\scipy\integrate\_quadpackmodule.obj
could not find library 'quadpack' in directories ['C:\\Users\\Ilhan Polat\\Documents\\GitHub\\scipy\\build\\openblas_lapack_info']
could not find library 'mach' in directories ['C:\\Users\\Ilhan Polat\\Documents\\GitHub\\scipy\\build\\openblas_lapack_info']
could not find library 'openblas_lapack_info' in directories ['C:\\Users\\Ilhan Polat\\Documents\\GitHub\\scipy\\build\\openblas_lapack_info']
C:\MSYS64\MINGW64\BIN\gfortran.exe -Wall -g -Wall -g -shared C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqag.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqage.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagi.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagie.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagp.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagpe.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqags.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagse.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawc.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawce.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawf.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawfe.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawo.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawoe.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqaws.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawse.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqc25c.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqc25f.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqc25s.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqcheb.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqelg.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk15.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk15i.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk15w.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk21.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk31.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk41.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk51.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk61.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqmomo.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqng.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqpsrt.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqwgtc.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqwgtf.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqwgts.o -LC:\MSYS64\MINGW64\lib\gcc\x86_64-w64-mingw32\10.2.0 -LC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\libs -LC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\PCbuild\amd64 -Lbuild\temp.win-amd64-3.8 -o build\temp.win-amd64-3.8\Release\.libs\libdqag.T3CPIRTLEPXPRKUBZLVDGS5RZTH7OCMR.gfortran-win_amd64.dll build\temp.win-amd64-3.8\Release\.libs\libopenblas.FJXZQPGWRDWIDQ6KPUZFVGW5HIDWRFYD.gfortran-win_amd64.dll -Wl,--allow-multiple-definition -Wl,--output-def,build\temp.win-amd64-3.8\Release\libdqag.T3CPIRTLEPXPRKUBZLVDGS5RZTH7OCMR.gfortran-win_amd64.def -Wl,--export-all-symbols -Wl,--enable-auto-import -static -mlong-double-64
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqag.o: in function `dqag_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqag.f:180: undefined reference to `xerror_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqage.o: in function `dqage_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqage.f:189: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqage.f:190: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagi.o: in function `dqagi_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagi.f:189: undefined reference to `xerror_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagie.o: in function `dqagie_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagie.f:218: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagie.f:267: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagie.f:268: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagp.o: in function `dqagp_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagp.f:223: undefined reference to `xerror_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagpe.o: in function `dqagpe_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagpe.f:259: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagpe.f:376: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagpe.f:377: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqags.o: in function `dqags_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqags.f:186: undefined reference to `xerror_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagse.o: in function `dqagse_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagse.f:217: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagse.f:237: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqagse.f:238: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawc.o: in function `dqawc_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawc.f:176: undefined reference to `xerror_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawce.o: in function `dqawce_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawce.f:179: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawce.f:180: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawf.o: in function `dqawf_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawf.f:229: undefined reference to `xerror_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawfe.o: in function `dqawfe_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawfe.f:278: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawo.o: in function `dqawo_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawo.f:223: undefined reference to `xerror_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawoe.o: in function `dqawoe_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawoe.f:272: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawoe.f:317: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawoe.f:318: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqaws.o: in function `dqaws_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqaws.f:198: undefined reference to `xerror_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawse.o: in function `dqawse_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawse.f:202: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqawse.f:203: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqc25f.o: in function `dqc25f_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqc25f.f:155: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqelg.o: in function `dqelg_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqelg.f:82: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqelg.f:83: undefined reference to `d1mach_'
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk15.o:C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqk15.f:123: more undefined references to `d1mach_' follow
C:/MSYS64/MINGW64/BIN/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqng.o: in function `dqng_':
C:\Users\Ilhan Polat\Documents\GitHub\scipy/scipy/integrate/quadpack/dqng.f:372: undefined reference to `xerror_'
collect2.exe: error: ld returned 1 exit status
error: Command "C:\MSYS64\MINGW64\BIN\gfortran.exe -Wall -g -Wall -g -shared C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqag.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqage.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagi.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagie.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagp.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagpe.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqags.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqagse.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawc.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawce.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawf.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawfe.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawo.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawoe.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqaws.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqawse.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqc25c.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqc25f.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqc25s.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqcheb.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqelg.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk15.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk15i.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk15w.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk21.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk31.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk41.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk51.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqk61.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqmomo.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqng.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqpsrt.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqwgtc.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqwgtf.o C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\scipy\integrate\quadpack\dqwgts.o -LC:\MSYS64\MINGW64\lib\gcc\x86_64-w64-mingw32\10.2.0 -LC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\libs -LC:\Users\Ilhan Polat\AppData\Local\Programs\Python\Python38\PCbuild\amd64 -Lbuild\temp.win-amd64-3.8 -o build\temp.win-amd64-3.8\Release\.libs\libdqag.T3CPIRTLEPXPRKUBZLVDGS5RZTH7OCMR.gfortran-win_amd64.dll build\temp.win-amd64-3.8\Release\.libs\libopenblas.FJXZQPGWRDWIDQ6KPUZFVGW5HIDWRFYD.gfortran-win_amd64.dll -Wl,--allow-multiple-definition -Wl,--output-def,build\temp.win-amd64-3.8\Release\libdqag.T3CPIRTLEPXPRKUBZLVDGS5RZTH7OCMR.gfortran-win_amd64.def -Wl,--export-all-symbols -Wl,--enable-auto-import -static -mlong-double-64" failed with exit status 1
########### EXT COMPILER OPTIMIZATION ###########
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : none
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
CCompilerOpt._cache_write[800] : write cache to path -> C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\Release\ccompiler_opt_cache_ext.py
########### CLIB COMPILER OPTIMIZATION ###########
CPU baseline :
Requested : 'min'
Enabled : SSE SSE2 SSE3
Flags : none
Extra checks: none
CPU dispatch :
Requested : 'max -xop -fma4'
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL
Generated : none
CCompilerOpt._cache_write[800] : write cache to path -> C:\Users\Ilhan Polat\Documents\GitHub\scipy\build\temp.win-amd64-3.8\ccompiler_opt_cache_clib.py
Python 3.8.0, NumPy 1.20.0.dev0+0ffaaf8, SciPy current master. Windows 10 Build 1904.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
SciPy 1.6.1 Release Notes — SciPy v1.8.0 Manual
Issues closed for 1.6.1#. #13072: BLD: Quadpack undefined references. #13241: Not enough values to unpack when passing tuple to `blocksize`…
Read more >How to suppress undefined references in exercise answers ...
The problem is that any references defined in an answer are reported as undefined even when the only reference to them is also...
Read more >https://ftp.funet.fi/pub/linux/mirrors/opensuse/fa...
... to version 1.6.1: * Issues closed + #13072: BLD: Quadpack undefined references + #13241: Not enough values to unpack when passing tuple...
Read more >Untitled
Skecher go run ride 2, Undefined reference class, Angajari pitesti asistent medical, Zabielanie zupy pieczarkowej, Carboidrati assorbimento lento, ...
Read more >Mailman 3 - SciPy-User - python.org
... .1\scipy-1.3.1/scipy/integrate/quadpack/dqc25f.f:235: undefined reference ... gh-14160: BLD: Add missing gcd/lcm definitions to npy_math.h - gh-14161: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I think I found it: the list of libraries is being operated on while it’s being iterated over. Specifically,
removeis called on alistobject while it is being iterated over causing only the first library in our examples to be considered.The offending line is here, I’ll make a PR for numpy with a fix
Okay, so my current thinking is that the
could not find library [blah] in [blah]warnings are not significant. A look at the actual linker command shows that the quadpack object files have been found. What the actual error is that all themachlibrary objects are missing and so these symbols are undefined. I think the task is to figure out how to include themachlibrary objects in the linker command:Indeed, when the
machsources are compiled together with thequadpackFortran sources, those symbol lookup errors disappear and new LAPACK symbol lookup errors appear:Another interesting tidbit: if
quadpackandmachare left as library dependencies of the_quadpackextension, then flipping the order ofquadpackandmachleads to only themachobject files being used (quadpackobject files nowhere to be found) and the following linker error:So it appears to me there are 2 possibilities: 1) only the first library’s object files are gathered by the linker and the rest are ignored, or 2) object file wrappers are failing be created for the Fortran libraries and wonkiness ensues. I am not yet familiar enough with numpy.distutils to say with confidence what really is happening here and it might instructive to see what happens with functioning builds using an older numpy version