zserio
zserio copied to clipboard
C++ runtime tests fail for C++11 using MinGW 7.5.0
Zserio version and language Zserio: 2.13 Language: C++11, MinGW 7.5.0, Debug
Describe the bug If C++11 is used for MinGW 7.5.0, Debug, the C++ runtime tests fail with the following error:
[ 13%] Building CXX object language/array_types/CMakeFiles/array_types_zs.dir/gen/array_types/arrays_mapping/ArraysMapping.cpp.obj
c:/programdata/chocolatey/lib/mingw/tools/install/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.5.0/../../../../x86_64-w64-mingw32/bin/as.exe: CMakeFiles/array_types_zs.dir/gen/array_types/arrays_mapping/ArraysMapping.cpp.obj: section .debug_frame$_ZNK6zserio6detail10HolderBaseISt17reference_wrapperIKSt6vectorIiNS_3pmr31PropagatingPolymorphicAllocatorIiEEEENS5_IhEEE6isTypeEPKi: string table overflow at offset 10000136
C:\Users\RUNNER~1\AppData\Local\Temp\cceeF0oy.s: Assembler messages:
C:\Users\RUNNER~1\AppData\Local\Temp\cceeF0oy.s: Fatal error: can't close CMakeFiles/array_types_zs.dir/gen/array_types/arrays_mapping/ArraysMapping.cpp.obj: file too big
How to reproduce Steps to reproduce the behavior:
- Install MinGW 7.5.0
- Set envinroment variable
CMAKE_EXTRA_ARGS
to "-DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=11" - Set envinroment variable
ZSERIO_EXTRA_ARGS
to "-withTypeInfoCode -withReflectionCode -withCodeComments -setCppAllocator polymorphic -withValidationCode -withRangeCheckCode" - Run scripts/build.sh cpp_rt-windows64-mingw -i language/array_types
Expected behavior No failure, everything should work as usually.
Additional context Only debug configuration fails. Please, don't forget to update GitHub actions as well!