Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBLAS failed to build. #3000

Open
ls-devs opened this issue Jul 2, 2023 · 1 comment
Open

OpenBLAS failed to build. #3000

ls-devs opened this issue Jul 2, 2023 · 1 comment

Comments

@ls-devs
Copy link

ls-devs commented Jul 2, 2023

[build]       openblas                i686-w64-mingw32.static

Failed to build package openblas for target i686-w64-mingw32.static!
------------------------------------------------------------
make[3]: *** [Makefile:307: cblat1] Error 1
make[3]: Leaving directory '/home/ls-devs/Utils/mxe/tmp-openblas-i686-w64-mingw32.static/OpenBLAS-0.3.20/test'
make[2]: *** [Makefile:146: tests] Error 2
make[2]: Leaving directory '/home/ls-devs/Utils/mxe/tmp-openblas-i686-w64-mingw32.static/OpenBLAS-0.3.20'
make[1]: *** [Makefile:901: build-only-openblas_i686-w64-mingw32.static] Error 2
make[1]: Leaving directory '/home/ls-devs/Utils/mxe'
real	4m3.000s
user	7m3.863s
sys	2m44.854s
------------------------------------------------------------
[log]      /home/ls-devs/Utils/mxe/log/openblas_i686-w64-mingw32.static

make: *** [Makefile:889: /home/ls-devs/Utils/mxe/usr/i686-w64-mingw32.static/installed/openblas] Error 1
/home/ls-devs/Utils/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lgfortran -lquadmath: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:278: sblat1] Error 1
make[3]: *** Waiting for unfinished jobs....
/home/ls-devs/Utils/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lgfortran -lquadmath: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:289: dblat1] Error 1
/home/ls-devs/Utils/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lgfortran -lquadmath: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:318: zblat1] Error 1
/home/ls-devs/Utils/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lgfortran -lquadmath: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:307: cblat1] Error 1
make[3]: Leaving directory '/home/ls-devs/Utils/mxe/tmp-openblas-i686-w64-mingw32.static/OpenBLAS-0.3.20/test'
make[2]: *** [Makefile:146: tests] Error 2
make[2]: Leaving directory '/home/ls-devs/Utils/mxe/tmp-openblas-i686-w64-mingw32.static/OpenBLAS-0.3.20'
make[1]: *** [Makefile:901: build-only-openblas_i686-w64-mingw32.static] Error 2
make[1]: Leaving directory '/home/ls-devs/Utils/mxe'

real	4m3.000s
user	7m3.863s
sys	2m44.854s

https://gist.github.com/ls-devs/fb2e1a878c9c0b08c4dfb381e514542d

@darealshinji
Copy link
Contributor

I cannot confirm this with the current version of MXE.

The log shows this error:

/home/ls-devs/Utils/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lgfortran -lquadmath: No such file or directory

It looks like there is a strange escape between -lgfortran and -lquadmath:

i686-w64-mingw32.static-gfortran [...]  -lgfortran\ -lquadmath -lmingwthrd -lmoldname -lmingwex -lssp_nonshared -lssp -lmsvcrt -lpthread -lmingwthrd -lmoldname -lmingwex -lssp_nonshared -lssp -lmsvcrt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants