View Issue Details

IDProjectCategoryView StatusLast Update
0001500bareos-coreGeneralpublic2022-12-19 13:35
Reportermdc Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status newResolutionopen 
Platformx86_64OSWindowsOS VersionWin10
Product Version21.1.6 
Summary0001500: Build on Windows using the MSVC fails, because of invalid compiler flags
DescriptionThe cmake config part runs fine, but the compile part fails because of invalid compiler options.
At the summary page of the cmake run, the invalid compiler flags are show:
C Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe 19.34.31937.0
C++ Compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.34.31933/bin/Hostx64/x64/cl.exe 19.34.31937.0
C Compiler flags: /DWIN32 /D_WINDOWS /W3 -Werror -Wall
C++ Compiler flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc -Werror -Wall -m64 -mwin32 -mthreads
Linker flags: /machine:x64 /machine:x64 /machine:x64 /machine:x64

The build it self fails with:
[ 1%] Building CXX object core/src/lib/CMakeFiles/version-obj.dir/version.cc.obj
cl : Befehlszeile error D8021 : Ungültiges numerisches Argument /Werror.
NMAKE : fatal error U1077: ""C:\Program Files\CMake\bin\cmake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\nmake.exe"": Rückgabe-Code "0x2"
Stop.
NMAKE : fatal error U1077: ""C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX64\x64\nmake.exe"": Rückgabe-Code "0x2"
Stop.


Steps To ReproduceCall:
cmake -B bauen -DENABLE_PYTHON=OFF -DENABLE_JANSSON=OFF -DENABLE_BCONSOLE=OFF -Dclient-only=ON -DCMAKE_PREFIX_PATH="c:\zlib" -DOPENSSL_ROOT_DIR="c:\openssl"
cmake --build bauen
Additional InformationUsing Visual Studio Community 2022.

As I understand the Microsoft compiler don't know the "gcc Wxxx" options.
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-19.2: impact
bareos-19.2: action
bareos-18.2: impact
bareos-18.2: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2022-12-19 13:35 mdc New Issue