-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"*** [cgemm_cr.obj] Error 1" in building on Windows 10 #1617
Comments
This is problem #1503, fixed by #1584 - recent Windows (and recent mingw) have added a system variable named "CR" that clashes with the -DCR used in the Makefile for compiling cgemm_cr.obj |
Thanks for the immediate response but still problems. (1) You wrote:
The new Makefile not working for me. TOPDIR = . TOPDIR = ../.. And simple change for these lines not solves the problems (seems nothing building process starts). (2) And you wrote:
OpenBLAS.x86_64-w64-mingw32.tar.gz (0.3.0 release, Julia compatibility) downloaded and tested. That is, blas or lapack libraries not included in binary release. Regards, |
Could be you overwrote the wrong Makefile ? The one from #1584 should start with TOPDIR set to ../.. and belongs in the driver/level3 folder. The one starting with TOPDIR set to "." (that is "current folder") is the toplevel Makefile (the one in /e/Alibraries/xianyi-OpenBLAS-939452e in your case) and should not change. |
Actually not sure where the |
(1) (2) On the other hand, for the combination(libopenblas64_.dll.a, My console output is: (snip header output) Best regards, |
@andreasnoack @staticfloat any idea why your mingw-w64 binary would not link for him on Win10 ? |
When building for ILP64, we set |
Ah, thanks, that would explain it. Guess I should mention this on the OpenBLAS wiki page. |
Dear OpenBLAS developer, thank you for providing very excellent library.
I encounteerd a bug in building OpenBLAS-v0.3 on Windows10 pro 64bit.
My PC is Windows 10 Pro 64bit version 1803.
Am using gcc and gfortran of mingw-w64 labelled x86_64-8.1.0-release-posix-seh-rt_v6-rev0:
E:>gcc --version
gcc (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
together with the make program of msys. My PATH order is mingw-w64 is first and msys ast.
My encountered output is the followings:
E:\Alibraries\xianyi-OpenBLAS-939452e>make -j 4
ln: creating symbolic link
libopenblas.a' to
libopenblas_haswellp-r0.3.0.dev.a': No such file or directoryMakefile:134: recipe for target
libs' failed make: [libs] Error 1 (ignored) make[1]: Entering directory
/e/Alibraries/xianyi-OpenBLAS-939452e/interface'gcc -O2 -DMS_ABI -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DMAX_PARALLEL_NUMBER=1 -DASMNAME=saxpy -DASMFNAME=saxpy_ -DNAME=saxpy_ -DCNAME=saxpy -DCHAR_NAME="saxpy_" -DCHAR_CNAME="saxpy" -DNO_AFFINITY -I.. -I. -UDOUBLE -UCOMPLEX -c axpy.c -o saxpy.obj
(many lines with no error snipped)
gcc -O2 -DMS_ABI -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DMAX_PARALLEL_NUMBER=1 -DASMNAME=cgemm_tr -DASMFNAME=cgemm_tr_ -DNAME=cgemm_tr_ -DCNAME=cgemm_tr -DCHAR_NAME="cgemm_tr_" -DCHAR_CNAME="cgemm_tr" -DNO_AFFINITY -I../.. -UDOUBLE -DCOMPLEX -c -UDOUBLE -DCOMPLEX -DTR gemm.c -o cgemm_tr.obj
gcc -O2 -DMS_ABI -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DMAX_PARALLEL_NUMBER=1 -DASMNAME=cgemm_cr -DASMFNAME=cgemm_cr_ -DNAME=cgemm_cr_ -DCNAME=cgemm_cr -DCHAR_NAME="cgemm_cr_" -DCHAR_CNAME="cgemm_cr" -DNO_AFFINITY -I../.. -UDOUBLE -DCOMPLEX -c -UDOUBLE -DCOMPLEX -DCR gemm.c -o cgemm_cr.obj
: error: expected identifier or '(' before numeric constant
gcc -O2 -DMS_ABI -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DMAX_PARALLEL_NUMBER=1 -DASMNAME=cgemm_rn -DASMFNAME=cgemm_rn_ -DNAME=cgemm_rn_ -DCNAME=cgemm_rn -DCHAR_NAME="cgemm_rn_" -DCHAR_CNAME="cgemm_rn" -DNO_AFFINITY -I../.. -UDOUBLE -DCOMPLEX -c -UDOUBLE -DCOMPLEX -DRN gemm.c -o cgemm_rn.obj
gcc -O2 -DMS_ABI -DMAX_STACK_ALLOC=2048 -Wall -m64 -DF_INTERFACE_GFORT -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DMAX_PARALLEL_NUMBER=1 -DASMNAME=cgemm_rt -DASMFNAME=cgemm_rt_ -DNAME=cgemm_rt_ -DCNAME=cgemm_rt -DCHAR_NAME="cgemm_rt_" -DCHAR_CNAME="cgemm_rt" -DNO_AFFINITY -I../.. -UDOUBLE -DCOMPLEX -c -UDOUBLE -DCOMPLEX -DRT gemm.c -o cgemm_rt.obj
Makefile:365: recipe for target
cgemm_cr.obj' failed make[1]: *** [cgemm_cr.obj] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory
/e/Alibraries/xianyi-OpenBLAS-939452e/driver/level3'Makefile:134: recipe for target `libs' failed
make: *** [libs] Error 1
Best regards,
Shigeru Hemmi
The text was updated successfully, but these errors were encountered: