quickstep-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harshad Deshmukh <hars...@cs.wisc.edu>
Subject Re: clang + ubuntu + BUILD_TYPE=RelWithDebugInfo
Date Mon, 05 Sep 2016 16:08:16 GMT
Hi Marc,

On a CloudLab machine with Ubuntu 16, I did not face any issue with the 
RelWithDebInfo build type. That machine has a lot more memory though, 
compared to your laptop.

One possibility: If you are running a multi-threaded make, the 
compilation requires more memory which triggers the behavior that you 
saw. In which case, can you try a single threaded build?


On 09/05/2016 09:21 AM, Marc Spehlmann wrote:
> Hey guys, has anyone experienced problems building on linux (Ubuntu 16) in
> RelWithDebugInfo?
>
> I have no trouble building in debug mode with clang-3.8, clang-3.7, and gcc
> 5.4 but the compiler hangs up and eats all the memory on my laptop (8gb)
> then dies (bottom of message) when in Rel. This happens when building our
> templatized Comparitors.
>
> Any hints?
> Marc
>
>
> CLANG:
> [754/1010] Building CXX object types/operations/comparisons/
> CMakeFiles/quickstep_types_operations_comparisons_EqualComparison.dir/
> EqualComparison.cpp.o
> FAILED: types/operations/comparisons/CMakeFiles/quickstep_types_
> operations_comparisons_EqualComparison.dir/EqualComparison.cpp.o
> /usr/bin/clang++-3.7   -DQUICKSTEP_ENABLE_PROFILER
> -DQUICKSTEP_ENABLE_VECTOR_COPY_ELISION_SELECTION
> -DQUICKSTEP_ENABLE_VECTOR_PREDICATE_SHORT_CIRCUIT
> -D_ISOC11_SOURCE -I../ -I. -isystem ../third_party/protobuf/src -isystem
> ../third_party/googletest/googletest/include -I../third_party/benchmark/include
> -Ithird_party/gflags/include -I../third_party/glog/src -Ithird_party
> -I../third_party/re2 -I../third_party/tmb/include
> -I../third_party/protobuf_cmake/../protobuf/src
> -std=c++14 -Wall -pedantic -Werror -Wno-extended-offsetof -march=native
> -Wno-return-type-c-linkage -O2 -g -DNDEBUG -MMD -MT
> types/operations/comparisons/CMakeFiles/quickstep_types_
> operations_comparisons_EqualComparison.dir/EqualComparison.cpp.o -MF
> types/operations/comparisons/CMakeFiles/quickstep_types_
> operations_comparisons_EqualComparison.dir/EqualComparison.cpp.o.d -o
> types/operations/comparisons/CMakeFiles/quickstep_types_
> operations_comparisons_EqualComparison.dir/EqualComparison.cpp.o -c
> ../types/operations/comparisons/EqualComparison.cpp
> terminate called after throwing an instance of 'std::bad_alloc'
>    what():  std::bad_alloc
> 0  libLLVM-3.7.so.1 0x00007fa13bf4d050
> llvm::sys::PrintStackTrace(llvm::raw_ostream&)
> + 64
> 1  libLLVM-3.7.so.1 0x00007fa13bf4c5d1
> 2  libpthread.so.0  0x00007fa13a84f3d0
> 3  libc.so.6        0x00007fa139f12418 gsignal + 56
> 4  libc.so.6        0x00007fa139f1401a abort + 362
> 5  libstdc++.so.6   0x00007fa13a54b84d __gnu_cxx::__verbose_terminate_handler()
> + 365
> 6  libstdc++.so.6   0x00007fa13a5496b6
> 7  libstdc++.so.6   0x00007fa13a549701
> 8  libstdc++.so.6   0x00007fa13a549919
> 9  libstdc++.so.6   0x00007fa13a549ebc
> 10 libLLVM-3.7.so.1 0x00007fa13affaf88
> 11 libLLVM-3.7.so.1 0x00007fa13affb25a llvm::DILocation*
> llvm::MDNode::storeImpl<llvm::DILocation, llvm::DenseSet<llvm::DILocation*,
> llvm::MDNodeInfo<llvm::DILocation> > >(llvm::DILocation*,
> llvm::Metadata::StorageType, llvm::DenseSet<llvm::DILocation*,
> llvm::MDNodeInfo<llvm::DILocation> >&) + 218
> 12 libLLVM-3.7.so.1 0x00007fa13affb39b
> llvm::DILocation::getImpl(llvm::LLVMContext&,
> unsigned int, unsigned int, llvm::Metadata*, llvm::Metadata*,
> llvm::Metadata::StorageType, bool) + 283
> 13 libLLVM-3.7.so.1 0x00007fa13b004a26 llvm::DebugLoc::get(unsigned int,
> unsigned int, llvm::MDNode const*, llvm::MDNode const*) + 38
> 14 libLLVM-3.7.so.1 0x00007fa13b42ec3d
> 15 libLLVM-3.7.so.1 0x00007fa13b43662d llvm::InlineFunction(llvm::CallSite,
> llvm::InlineFunctionInfo&, bool) + 2685
> 16 libLLVM-3.7.so.1 0x00007fa13b20da98
> llvm::Inliner::runOnSCC(llvm::CallGraphSCC&)
> + 3192
> 17 libLLVM-3.7.so.1 0x00007fa13b5deb7f
> 18 libLLVM-3.7.so.1 0x00007fa13b0b8d14
> llvm::legacy::PassManagerImpl::run(llvm::Module&)
> + 772
> 19 clang            0x0000000000854c8a
> clang::EmitBackendOutput(clang::DiagnosticsEngine&,
> clang::CodeGenOptions const&, clang::TargetOptions const&,
> clang::LangOptions const&, llvm::StringRef, llvm::Module*,
> clang::BackendAction, llvm::raw_pwrite_stream*) + 3098
> 20 clang            0x000000000083f5fe
> 21 clang            0x0000000000a1a0e2 clang::ParseAST(clang::Sema&, bool,
> bool) + 802
> 22 clang            0x00000000006a322e clang::FrontendAction::Execute() +
> 510
> 23 clang            0x000000000067a2d9 clang::CompilerInstance::
> ExecuteAction(clang::FrontendAction&) + 313
> 24 clang            0x0000000000661ce3
> clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
> + 1987
> 25 clang            0x000000000065c768 cc1_main(llvm::ArrayRef<char
> const*>, char const*, void*) + 2232
> 26 clang            0x00000000006591de main + 1006
> 27 libc.so.6        0x00007fa139efd830 __libc_start_main + 240
> 28 clang            0x000000000065b7d9 _start + 41
> Stack dump:
> 0. Program arguments: /usr/lib/llvm-3.7/bin/clang -cc1 -triple
> x86_64-pc-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
> -main-file-name EqualComparison.cpp -mrelocation-model static
> -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases
> -munwind-tables -fuse-init-array -target-cpu broadwell -target-feature
> -sse4a -target-feature -avx512bw -target-feature +cx16 -target-feature -tbm
> -target-feature +adx -target-feature -fma4 -target-feature -avx512vl
> -target-feature +prfchw -target-feature +bmi2 -target-feature -avx512pf
> -target-feature +fsgsbase -target-feature +avx -target-feature -avx512cd
> -target-feature -rtm -target-feature +popcnt -target-feature +fma
> -target-feature +bmi -target-feature +aes -target-feature +rdrnd
> -target-feature +sse4.1 -target-feature +sse4.2 -target-feature +avx2
> -target-feature -avx512er -target-feature +sse -target-feature +lzcnt
> -target-feature +pclmul -target-feature -avx512f -target-feature +f16c
> -target-feature +ssse3 -target-feature +mmx -target-feature +cmov
> -target-feature -xop -target-feature +rdseed -target-feature +movbe
> -target-feature -hle -target-feature -sha -target-feature +sse2
> -target-feature +sse3 -target-feature -avx512dq -target-linker-version 2.26
> -momit-leaf-frame-pointer -g -dwarf-column-info -coverage-file
> /home/marc/workspace/incubator-quickstep/build/types/operations/comparisons/
> CMakeFiles/quickstep_types_operations_comparisons_EqualComparison.dir/EqualComparison.cpp.o
> -resource-dir /usr/lib/llvm-3.7/bin/../lib/clang/3.7.1 -dependency-file
> types/operations/comparisons/CMakeFiles/quickstep_types_
> operations_comparisons_EqualComparison.dir/EqualComparison.cpp.o.d -MT
> types/operations/comparisons/CMakeFiles/quickstep_types_
> operations_comparisons_EqualComparison.dir/EqualComparison.cpp.o -isystem
> ../third_party/protobuf/src -isystem
> ../third_party/googletest/googletest/include
> -D QUICKSTEP_ENABLE_PROFILER -D QUICKSTEP_ENABLE_VECTOR_COPY_ELISION_SELECTION
> -D QUICKSTEP_ENABLE_VECTOR_PREDICATE_SHORT_CIRCUIT -D _ISOC11_SOURCE -D
> NDEBUG -I ../ -I . -I ../third_party/benchmark/include -I
> third_party/gflags/include -I ../third_party/glog/src -I third_party -I
> ../third_party/re2 -I ../third_party/tmb/include -I
> ../third_party/protobuf_cmake/../protobuf/src -internal-isystem
> /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0
> -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../
> include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem
> /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../
> include/x86_64-linux-gnu/c++/5.4.0 -internal-isystem
> /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/backward
> -internal-isystem /usr/local/include -internal-isystem
> /usr/lib/llvm-3.7/bin/../lib/clang/3.7.1/include -internal-externc-isystem
> /usr/include/x86_64-linux-gnu -internal-externc-isystem /include
> -internal-externc-isystem /usr/include -O2 -Wall -Werror
> -Wno-extended-offsetof -Wno-return-type-c-linkage -pedantic -std=c++14
> -fdeprecated-macro -fdebug-compilation-dir
> /home/marc/workspace/incubator-quickstep/build
> -ferror-limit 19 -fmessage-length 0 -mstackrealign -fobjc-runtime=gcc
> -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops
> -vectorize-slp -o types/operations/comparisons/CMakeFiles/quickstep_types_
> operations_comparisons_EqualComparison.dir/EqualComparison.cpp.o -x c++
> ../types/operations/comparisons/EqualComparison.cpp
> 1. <eof> parser at end of file
> 2. Per-module optimization passes
> 3. Running pass 'CallGraph Pass Manager' on module '../types/operations/
> comparisons/EqualComparison.cpp'.
> clang: error: unable to execute command: Aborted (core dumped)
> clang: error: clang frontend command failed due to signal (use -v to see
> invocation)
> Ubuntu clang version 3.7.1-2ubuntu2 (tags/RELEASE_371/final) (based on LLVM
> 3.7.1)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> clang: note: diagnostic msg: PLEASE submit a bug report to
> http://bugs.debian.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/EqualComparison-bb72e1.cpp
> clang: note: diagnostic msg: /tmp/EqualComparison-bb72e1.sh
> clang: note: diagnostic msg:
>

-- 
Thanks,
Harshad


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message