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

Failure to compile netlib with MSVC #802

Closed
mathstuf opened this issue Jun 25, 2020 · 4 comments
Closed

Failure to compile netlib with MSVC #802

mathstuf opened this issue Jun 25, 2020 · 4 comments

Comments

@mathstuf
Copy link
Contributor

This is code embedded into ITK, but these failures show up:

FAILED: Modules/ThirdParty/VNL/src/vxl/v3p/netlib/CMakeFiles/itkv3p_netlib.dir/blas/cdotc.c.obj 
sccache C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1426~1.288\bin\Hostx64\x64\cl.exe  /nologo -D /MP  -DV3P_NETLIB_SRC -DVXL_WARN_DEPRECATED -DVXL_WARN_DEPRECATED_ONCE -D_CRT_FAR_MAPPINGS_NO_DEPRECATE -D_CRT_IS_WCTYPE_NO_DEPRECATE -D_CRT_MANAGED_FP_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE_GLOBALS -D_CRT_SETERRORMODE_BEEP_SLEEP_NO_DEPRECATE -D_CRT_TIME_FUNCTIONS_NO_DEPRECATE -D_CRT_VCCLRIT_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -IC:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib -IC:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\vcl -IC:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\core -IModules\ThirdParty\VNL\src\vxl\v3p\netlib -IModules\ThirdParty\VNL\src\vxl\vcl -IModules\ThirdParty\VNL\src\vxl\core /DWIN32 /D_WINDOWS   /W0  /MD /O2 /Ob2 /DNDEBUG   /FS /showIncludes /FoModules\ThirdParty\VNL\src\vxl\v3p\netlib\CMakeFiles\itkv3p_netlib.dir\blas\cdotc.c.obj /FdModules\ThirdParty\VNL\src\vxl\v3p\netlib\CMakeFiles\itkv3p_netlib.dir\itkv3p_netlib.pdb /FS -c C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c
C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c(19): error C2061: syntax error: identifier 'cdotc_'
C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c(19): error C2059: syntax error: ';'
C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c(19): error C2143: syntax error: missing ')' before '*'
C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c(19): error C2143: syntax error: missing '{' before '*'
C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c(19): error C2143: syntax error: missing ';' before '*'
C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c(20): error C2143: syntax error: missing ';' before '*'
C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c(20): error C2059: syntax error: ')'
C:\GLR\builds\cmb\cmb-ci\build\superbuild\itk\src\Modules\ThirdParty\VNL\src\vxl\v3p\netlib\blas\cdotc.c(21): error C2054: expected '(' to follow 'incy'

It looks like some preprocessor expansion failure. I'll be looking into it locally, but wanted to file an issue in case anyone else has insights before I go down the wrong rabbit holes :) .

The relevant code is here: https://github.com/InsightSoftwareConsortium/ITK/tree/master/Modules/ThirdParty/VNL/src/vxl/v3p/netlib/blas

@froydnj
Copy link
Contributor

froydnj commented Jun 25, 2020

Is this fixed by #801 ?

@mathstuf
Copy link
Contributor Author

Ha, nice timing :) . I'll have to get a Windows build to test it out…looking into that.

@Dushistov
Copy link
Contributor

May be this is the reason why there are no prebuild for release for windows for version 2.2.13,
but for 2.2.12 and bellow there are pre-build version for windows.

@froydnj
Copy link
Contributor

froydnj commented Jul 1, 2020

Fixed by #801.

May be this is the reason why there are no prebuild for release for windows for version 2.2.13,
but for 2.2.12 and bellow there are pre-build version for windows.

No, this is not the reason for that.

@froydnj froydnj closed this as completed Jul 1, 2020
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

3 participants