尽管已安装g ++-multilib和gcc-multilib,程序仍找不到未安装的bits / libc-header-start.h

时间:2019-02-15 19:09:25

标签: c++ ubuntu g++ clang root-framework

我正在VirtualBox中设置一个64位Ubuntu实例来运行c ++项目。我得到的代码要求使用root,它使用cling / clang并引用文件:bits / libc-header-start.h

我已经下载了g ++-multilib和gcc-multilib,它们都可以“正确地”安装(没有错误),但是当我查看/ usr / include / bits /文件夹时,仍然找不到引用的头文件。我也尝试安装libc6-dev和libc6-i386。我或多或少地不知道从这里去哪里。我在网上尝试了所有建议。

编译代码时,出现错误:

Warning in cling::IncrementalParser::CheckABICompatibility():
  Possible C++ standard library mismatch, compiled with __GLIBCXX__ '20180720'
  Extraction of runtime standard library version was: '20181206'
In file included from input_line_3:2:
In file included from /usr/include/c++/7/string:40:
In file included from /usr/include/c++/7/bits/char_traits.h:40:
In file included from /usr/include/c++/7/bits/postypes.h:40:
In file included from /usr/include/c++/7/cwchar:44:
/home/maxm/root/etc/cling/lib/clang/5.0.0/include/wchar.h:27:10: fatal error: 'bits/libc-header-start.h' file not found
#include <bits/libc-header-start.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x0000150ba4f5107a in __GI___waitpid (pid=5651, stat_loc=stat_loc
entry=0x7fff10e364d0, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
#1  0x0000150ba4ec9fbb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2  0x0000150ba55b1e83 in TUnixSystem::StackTrace() () from /home/maxm/root/lib/libCore.so.6.16
#3  0x0000150ba55b4874 in TUnixSystem::DispatchSignals(ESignals) () from /home/maxm/root/lib/libCore.so.6.16
#4  <signal handler called>
#5  0x0000150ba5c99b4f in ROOT::TMetaUtils::TNormalizedCtxtImpl::keepTypedef(cling::LookupHelper const&, char const*, bool) () from /home/maxm/root/lib/libCling.so.6.16
#6  0x0000150ba5c99d73 in ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) () from /home/maxm/root/lib/libCling.so.6.16
#7  0x0000150ba5c9a132 in ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) () from /home/maxm/root/lib/libCling.so.6.16
#8  0x0000150ba5d3e448 in TCling::TCling(char const*, char const*, char const* const*) () from /home/maxm/root/lib/libCling.so.6.16
#9  0x0000150ba5d3fd54 in CreateInterpreter () from /home/maxm/root/lib/libCling.so.6.16
#10 0x0000150ba53dcf9c in TROOT::InitInterpreter() () from /home/maxm/root/lib/libCore.so.6.16
#11 0x0000150ba53dd56f in ROOT::Internal::GetROOT2() () from /home/maxm/root/lib/libCore.so.6.16
#12 0x0000150ba5da5749 in TCling__GetInterpreter () from /home/maxm/root/lib/libCling.so.6.16
#13 0x0000150ba5d12d3f in RootClingMain(int, char**, bool, bool) () from /home/maxm/root/lib/libCling.so.6.16
#14 0x0000150ba5d1d140 in ROOT_rootcling_Driver () from /home/maxm/root/lib/libCling.so.6.16
#15 0x000055c086907c34 in main ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#5  0x0000150ba5c99b4f in ROOT::TMetaUtils::TNormalizedCtxtImpl::keepTypedef(cling::LookupHelper const&, char const*, bool) () from /home/maxm/root/lib/libCling.so.6.16
#6  0x0000150ba5c99d73 in ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) () from /home/maxm/root/lib/libCling.so.6.16
#7  0x0000150ba5c9a132 in ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) () from /home/maxm/root/lib/libCling.so.6.16
#8  0x0000150ba5d3e448 in TCling::TCling(char const*, char const*, char const* const*) () from /home/maxm/root/lib/libCling.so.6.16
#9  0x0000150ba5d3fd54 in CreateInterpreter () from /home/maxm/root/lib/libCling.so.6.16
#10 0x0000150ba53dcf9c in TROOT::InitInterpreter() () from /home/maxm/root/lib/libCore.so.6.16
#11 0x0000150ba53dd56f in ROOT::Internal::GetROOT2() () from /home/maxm/root/lib/libCore.so.6.16
#12 0x0000150ba5da5749 in TCling__GetInterpreter () from /home/maxm/root/lib/libCling.so.6.16
#13 0x0000150ba5d12d3f in RootClingMain(int, char**, bool, bool) () from /home/maxm/root/lib/libCling.so.6.16
#14 0x0000150ba5d1d140 in ROOT_rootcling_Driver () from /home/maxm/root/lib/libCling.so.6.16
#15 0x000055c086907c34 in main ()
===========================================================


make[3]: *** [EvioTool_Dict.cxx] Error 139
make[2]: *** [CMakeFiles/EvioTool.dir/all] Error 2
make[1]: *** [CMakeFiles/EvioTool.dir/rule] Error 2
make: *** [EvioTool] Error 2

预期输出是程序/ make实际编译的结果。我想指出的是,人们已经可以运行并工作了,但是由于某种原因,我的结果却变成了null。任何输入都会有所帮助。

0 个答案:

没有答案