Bug#1023444: llvm-toolchain-14: FTBFS with swig 4.1: interfaces.swig:5: Error: Macro '__STDC_LIMIT_MACROS' redefined

Andreas Beckmann anbe at debian.org
Fri Nov 4 09:45:45 GMT 2022


Source: llvm-toolchain-14
Version: 1:14.0.6-7
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)

Hi,

llvm-toolchain-14 FTBFS on i386 on the buildds, but I can reproduce that
locally on amd64 now, too.
Comparing the build logs shows swig 4.0.2-2 being used on the successful
amd64 buildd build and 4.1.0-0.1 on the failing i386 one.
(Please check the other llvm versions, too.)

https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-14&arch=i386&ver=1%3A14.0.6-7&stamp=1667248227&raw=0

...
[2858/7462] cd /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/bindings/python && /usr/bin/swig4.0 -c++ -features autodoc -I/<<PKGBUILDDIR>>/lldb/include -I/<<PKGBUILDDIR>>/lldb/bindings -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/<<PKGBUILDDIR>>/lldb/bindings/python -c++ -shadow -python -py3 -threads -outdir /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/bindings/python -o /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/bindings/python/LLDBWrapPython.cpp /<<PKGBUILDDIR>>/lldb/bindings/python/python.swig
FAILED: tools/lldb/bindings/python/LLDBWrapPython.cpp tools/lldb/bindings/python/lldb.py /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/bindings/python/LLDBWrapPython.cpp /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/bindings/python/lldb.py
cd /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/bindings/python && /usr/bin/swig4.0 -c++ -features autodoc -I/<<PKGBUILDDIR>>/lldb/include -I/<<PKGBUILDDIR>>/lldb/bindings -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -I/<<PKGBUILDDIR>>/lldb/bindings/python -c++ -shadow -python -py3 -threads -outdir /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/bindings/python -o /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/bindings/python/LLDBWrapPython.cpp /<<PKGBUILDDIR>>/lldb/bindings/python/python.swig
Deprecated command line option: -py3. Ignored, this option is no longer supported.
/<<PKGBUILDDIR>>/lldb/bindings/interfaces.swig:5: Error: Macro '__STDC_LIMIT_MACROS' redefined,
:1: Error: previous definition of '__STDC_LIMIT_MACROS'.
[2859/7462] /<<PKGBUILDDIR>>/build-llvm/./bin/clang++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/clang/utils/TableGen -I/<<PKGBUILDDIR>>/clang/utils/TableGen -I/<<PKGBUILDDIR>>/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/include -I/<<PKGBUILDDIR>>/llvm/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/<<PKGBUILDDIR>>/= -no-canonical-prefixes -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -std=c++14 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/RISCVVEmitter.cpp.o -c /<<PKGBUILDDIR>>/clang/utils/TableGen/RISCVVEmitter.cpp
[2860/7462] /<<PKGBUILDDIR>>/build-llvm/./bin/clang++ -DHAVE_ROUND -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/utils/TableGen -I/<<PKGBUILDDIR>>/lldb/utils/TableGen -I/<<PKGBUILDDIR>>/lldb/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/include -I/<<PKGBUILDDIR>>/llvm/include -I/usr/include/python3.10 -I/<<PKGBUILDDIR>>/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/lldb/../clang/include -I/usr/include/libxml2 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/<<PKGBUILDDIR>>/= -no-canonical-prefixes -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O3 -DNDEBUG  -fno-exceptions -std=c++14 -MD -MT tools/lldb/utils/TableGen/CMakeFiles/lldb-tblgen.dir/LLDBOptionDefEmitter.cpp.o -MF tools/lldb/utils/TableGen/CMakeFiles/lldb-tblgen.dir/LLDBOptionDefEmitter.cpp.o.d -o tools/lldb/utils/TableGen/CMakeFiles/lldb-tblgen.dir/LLDBOptionDefEmitter.cpp.o -c /<<PKGBUILDDIR>>/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
[2861/7462] /<<PKGBUILDDIR>>/build-llvm/./bin/clang++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/clang/utils/TableGen -I/<<PKGBUILDDIR>>/clang/utils/TableGen -I/<<PKGBUILDDIR>>/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/include -I/<<PKGBUILDDIR>>/llvm/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/<<PKGBUILDDIR>>/= -no-canonical-prefixes -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -std=c++14 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/SveEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/SveEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/SveEmitter.cpp.o -c /<<PKGBUILDDIR>>/clang/utils/TableGen/SveEmitter.cpp
[2862/7462] /<<PKGBUILDDIR>>/build-llvm/./bin/clang++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/clang/utils/TableGen -I/<<PKGBUILDDIR>>/clang/utils/TableGen -I/<<PKGBUILDDIR>>/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/include -I/<<PKGBUILDDIR>>/llvm/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/<<PKGBUILDDIR>>/= -no-canonical-prefixes -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -std=c++14 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/MveEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/MveEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/MveEmitter.cpp.o -c /<<PKGBUILDDIR>>/clang/utils/TableGen/MveEmitter.cpp
[2863/7462] /<<PKGBUILDDIR>>/build-llvm/./bin/clang++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/clang/utils/TableGen -I/<<PKGBUILDDIR>>/clang/utils/TableGen -I/<<PKGBUILDDIR>>/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/tools/clang/include -I/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins/include -I/<<PKGBUILDDIR>>/llvm/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/<<PKGBUILDDIR>>/= -no-canonical-prefixes -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -fno-exceptions -std=c++14 -MD -MT tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/NeonEmitter.cpp.o -MF tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/NeonEmitter.cpp.o.d -o tools/clang/utils/TableGen/CMakeFiles/clang-tblgen.dir/NeonEmitter.cpp.o -c /<<PKGBUILDDIR>>/clang/utils/TableGen/NeonEmitter.cpp
ninja: build stopped: subcommand failed.
FAILED: tools/clang/stage2-stamps/stage2-build /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-stamps/stage2-build
cd /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-bins && /usr/bin/cmake --build . && /usr/bin/cmake -E touch /<<PKGBUILDDIR>>/build-llvm/tools/clang/stage2-stamps/stage2-build
ninja: build stopped: subcommand failed.
...

Andreas



More information about the Pkg-llvm-team mailing list