You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried a release build with ./scripts/build.ps1 -Tls openssl -Config Release on Ubuntu18.04. It report an error and exit:
[ 96%] Building CXX object src/core/unittest/CMakeFiles/msquiccoretest.dir/SettingsTest.cpp.o
cd /home/ceni-a1/msquic/build/linux/x64_openssl/src/core/unittest && /usr/bin/c++ -DCXPLAT_NUMA_AWARE -DCX_PLATFORM_LINUX -DHAS_SENDMMSG -DHAS_SYSCONF -DHAS__SC_PHYS_PAGES -DQUIC_CLOG -DQUIC_ENABLE_CA_CERTIFICATE_FILE_TESTS -DQUIC_SHARED_EPHEMERAL_WORKAROUND -DQUIC_TELEMETRY_ASSERTS=1 -DQUIC_TEST_OPENSSL_FLAGS=1 -DVER_BUILD_ID=0 -DVER_GIT_HASH=ba022a38314145c2e9678eb0f206304f9272a137 -DVER_SUFFIX=-private -D_GNU_SOURCE -I/home/ceni-a1/msquic/src/core -I/home/ceni-a1/msquic/src/bin/../inc -I/home/ceni-a1/msquic/src/inc -I/home/ceni-a1/msquic/src/generated/common -I/home/ceni-a1/msquic/src/generated/linux -I/home/ceni-a1/msquic/build/linux/x64_openssl/_deps/opensslquic-build/openssl/include -isystem /home/ceni-a1/msquic/submodules/googletest/googletest/include -isystem /home/ceni-a1/msquic/submodules/googletest/googletest -O3 -fno-omit-frame-pointer -DNDEBUG -ggdb3 -fms-extensions -fPIC -pthread -Werror -Wall -Wextra -Wformat=2 -Wno-type-limits -Wno-unknown-pragmas -Wno-multichar -Wno-missing-field-initializers -std=gnu++1z -MD -MT src/core/unittest/CMakeFiles/msquiccoretest.dir/SettingsTest.cpp.o -MF CMakeFiles/msquiccoretest.dir/SettingsTest.cpp.o.d -o CMakeFiles/msquiccoretest.dir/SettingsTest.cpp.o -c /home/ceni-a1/msquic/src/core/unittest/SettingsTest.cpp
/home/ceni-a1/msquic/src/core/unittest/SettingsTest.cpp: In member function ‘virtual void SettingsTest_GlobalRawDataPathProcsSetAfterDataPathInit_Test::TestBody()’:
/home/ceni-a1/msquic/src/core/unittest/SettingsTest.cpp:632:28: error: array subscript is above array bounds [-Werror=array-bounds]
Config->ProcessorList[1] = 1;
~~~~~~~~~~~~~~~~~~~~~~~^
/home/ceni-a1/msquic/src/core/unittest/SettingsTest.cpp: In member function ‘virtual void SettingsTest_GlobalExecutionConfigSetAndGet_Test::TestBody()’:
/home/ceni-a1/msquic/src/core/unittest/SettingsTest.cpp:565:28: error: array subscript is above array bounds [-Werror=array-bounds]
Config->ProcessorList[1] = 1;
~~~~~~~~~~~~~~~~~~~~~~~^
cc1plus: all warnings being treated as errors
src/core/unittest/CMakeFiles/msquiccoretest.dir/build.make:159: recipe for target 'src/core/unittest/CMakeFiles/msquiccoretest.dir/SettingsTest.cpp.o' failed
make[2]: *** [src/core/unittest/CMakeFiles/msquiccoretest.dir/SettingsTest.cpp.o] Error 1
make[2]: Leaving directory '/home/ceni-a1/msquic/build/linux/x64_openssl'
CMakeFiles/Makefile2:1184: recipe for target 'src/core/unittest/CMakeFiles/msquiccoretest.dir/all' failed
make[1]: *** [src/core/unittest/CMakeFiles/msquiccoretest.dir/all] Error 2
make[1]: Leaving directory '/home/ceni-a1/msquic/build/linux/x64_openssl'
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Write-Error: /home/ceni-a1/msquic/scripts/build.ps1:525
Line |
525 | CMake-Execute $Arguments
| ~~~~~~~~~~~~~~~~~~~~~~~~
| [03/04/2024 12:06:24] CMake exited with status code 2
Building with openssl and openssl3 both run into this problem.
Btw, I cloned the googletest manually to submodules. Don't know if that's going to make a difference.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried a release build with
./scripts/build.ps1 -Tls openssl -Config Release
on Ubuntu18.04. It report an error and exit:Building with openssl and openssl3 both run into this problem.
Btw, I cloned the googletest manually to submodules. Don't know if that's going to make a difference.
Beta Was this translation helpful? Give feedback.
All reactions