Bug#947886: clang (mipsel): LLVM error: out of memory
Bernd Zeimetz
bzed at debian.org
Wed Jan 1 18:05:15 GMT 2020
Package: clang
Version: 1:8.0-48.3
Severity: normal
Hi,
clang runs into an out of memory error while compiling ceph on mipsel:
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-mipsel-linux-gnu'
make -f src/tools/ceph-dencoder/CMakeFiles/ceph-dencoder.dir/build.make src/tools/ceph-dencoder/CMakeFiles/ceph-dencoder.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-mipsel-linux-gnu'
[ 93%] Building CXX object src/tools/ceph-dencoder/CMakeFiles/ceph-dencoder.dir/ceph_dencoder.cc.o
cd /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/src/tools/ceph-dencoder && /usr/bin/clang++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D__linux__ -I/<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/src/include -I/<<PKGBUILDDIR>>/src -I/usr/include/nss -I/usr/include/nspr -I/<<PKGBUILDDIR>>/src/dmclock/src -I/<<PKGBUILDDIR>>/src/dmclock/support/src -isystem /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/include -isystem /<<PKGBUILDDIR>>/src/xxHash -isystem /<<PKGBUILDDIR>>/src/rapidjson/include -isystem /<<PKGBUILDDIR>>/src/rocksdb/include -isystem /<<PKGBUILDDIR>>/src/rgw/../rapidjson/include -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing -fsigned-char -Wno-unknown-pragmas -Wno-unused-function -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-unknown-pragmas -Wno-ignored-qualifiers -Wno-inconsistent-missing-override -Wno-mismatched-tags -Wno-unused-private-field -Wno-address-of-packed-member -fdiagnostics-color=auto -fPIE -DHAVE_CONFIG_H -D__CEPH__ -D_REENTRANT -D_THREAD_SAFE -D__STDC_FORMAT_MACROS -std=c++17 -o CMakeFiles/ceph-dencoder.dir/ceph_dencoder.cc.o -c /<<PKGBUILDDIR>>/src/tools/ceph-dencoder/ceph_dencoder.cc
In file included from /<<PKGBUILDDIR>>/src/tools/ceph-dencoder/ceph_dencoder.cc:36:
In file included from /<<PKGBUILDDIR>>/src/tools/ceph-dencoder/types.h:270:
In file included from /<<PKGBUILDDIR>>/src/mds/events/EExport.h:21:
In file included from /<<PKGBUILDDIR>>/src/mds/events/../MDSRank.h:33:
/<<PKGBUILDDIR>>/src/mds/MDCache.h:1267:40: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
int dump_cache() { return dump_cache(NULL, NULL); }
^~~~
/usr/include/clang/8.0.1/include/stddef.h:100:18: note: expanded from macro 'NULL'
# define NULL __null
^~~~~~
LLVM ERROR: out of memory
Stack dump:
0. Program arguments: /usr/lib/llvm-8/bin/clang -cc1 -triple mipsel-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name ceph_dencoder.cc -mrelocation-model pic -pic-level 1 -pic-is-pie -mthread-model posix -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu mips32r2 -target-feature -noabicalls -target-feature +fpxx -target-feature +nooddspreg -target-abi o32 -mfloat-abi hard -dwarf-column-info -debug-info-kind=limited -dwarf-version=4 -debugger-tuning=gdb -momit-leaf-frame-pointer -coverage-notes-file /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/src/tools/ceph-dencoder/CMakeFiles/ceph-dencoder.dir/ceph_dencoder.cc.gcno -resource-dir /usr/lib/llvm-8/lib/clang/8.0.1 -isystem /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/include -isystem /<<PKGBUILDDIR>>/src/xxHash -isystem /<<PKGBUILDDIR>>/src/rapidjson/include -isystem /<<PKGBUILDDIR>>/src/rocksdb/include -isystem /<<PKGBUILDDIR>>/src/rgw/../rapidjson/include -D _FILE_OFFSET_BITS=64 -D _GNU_SOURCE -D __linux__ -I /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/src/include -I /<<PKGBUILDDIR>>/src -I /usr/include/nss -I /usr/include/nspr -I /<<PKGBUILDDIR>>/src/dmclock/src -I /<<PKGBUILDDIR>>/src/dmclock/support/src -D _FORTIFY_SOURCE=2 -D _FORTIFY_SOURCE=2 -D HAVE_CONFIG_H -D __CEPH__ -D _REENTRANT -D _THREAD_SAFE -D __STDC_FORMAT_MACROS -internal-isystem /usr/bin/../lib/gcc/mipsel-linux-gnu/9/../../../../include/c++/9 -internal-isystem /usr/bin/../lib/gcc/mipsel-linux-gnu/9/../../../../include/mipsel-linux-gnu/c++/9 -internal-isystem /usr/bin/../lib/gcc/mipsel-linux-gnu/9/../../../../include/mipsel-linux-gnu/c++/9 -internal-isystem /usr/bin/../lib/gcc/mipsel-linux-gnu/9/../../../../include/c++/9/backward -internal-isystem /usr/include/clang/8.0.1/include/ -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-8/lib/clang/8.0.1/include -internal-externc-isystem /usr/include/mipsel-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -O2 -Wformat -Werror=format-security -Wdate-time -Wall -Wtype-limits -Wignored-qualifiers -Winit-self -Wpointer-arith -Werror=format-security -Wno-unknown-pragmas -Wno-unused-function -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register -Wformat -Werror=format-security -Wdate-time -Wnon-virtual-dtor -Wno-unknown-pragmas -Wno-ignored-qualifiers -Wno-inconsistent-missing-override -Wno-mismatched-tags -Wno-unused-private-field -Wno-address-of-packed-member -std=c++17 -fdeprecated-macro -fdebug-compilation-dir /<<PKGBUILDDIR>>/obj-mipsel-linux-gnu/src/tools/ceph-dencoder -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -ftemplate-depth 1024 -ferror-limit 19 -fmessage-length 0 -stack-protector 2 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o CMakeFiles/ceph-dencoder.dir/ceph_dencoder.cc.o -x c++ /<<PKGBUILDDIR>>/src/tools/ceph-dencoder/ceph_dencoder.cc -faddrsig
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module '/<<PKGBUILDDIR>>/src/tools/ceph-dencoder/ceph_dencoder.cc'.
4. Running pass 'Mips Assembly Printer' on function '@main'
/usr/lib/mipsel-linux-gnu/libLLVM-8.so.1(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x50)[0x743ddda8]
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 8.0.1-4 (tags/RELEASE_801/final)
Target: mipsel-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
clang: note: diagnostic msg: PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/ceph_dencoder-3cfc5b.cpp
clang: note: diagnostic msg: /tmp/ceph_dencoder-3cfc5b.sh
clang: note: diagnostic msg:
If you are interested to debug this further, I can get the preprocessed
sources for a proper bug report. This will take some times as mipsel is
not really fast, so first I'd like to know if it makes sense to spend
the time on this...
Thanks,
Bernd
--
Bernd Zeimetz Debian GNU/Linux Developer
http://bzed.de http://www.debian.org
GPG Fingerprint: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F
More information about the Pkg-llvm-team
mailing list