-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors about bfd_section_vma, bfd_section_size, and bfd_section_flags #60
Comments
Please try to install required Linux packages: |
same issue here I installed packages bit it didn't worked for me. kamran@ubuntu:~/kaam/CppServer/build$ sudo apt-get install -y binutils-dev uuid-dev libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
binutils-dev is already the newest version (2.30-21ubuntu1~18.04.5).
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.9).
uuid-dev is already the newest version (2.31.1-0.4ubuntu3.7). Here is error /home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp:165:50: error: macro "bfd_section_vma" requires 2 arguments, but only 1 given
bfd_vma vma = bfd_section_vma(section);
^
/home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp:169:61: error: macro "bfd_section_size" requires 2 arguments, but only 1 given
bfd_size_type secsize = bfd_section_size(section);
^
/home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp: In constructor ‘CppCommon::StackTrace::StackTrace(int)’:
/home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp:162:18: error: ‘bfd_section_flags’ was not declared in this scope
if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
^~~~~~~~~~~~~~~~~
[ 28%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/latch.cpp.o
/home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp:162:18: note: suggested alternative: ‘bfd_set_section_flags’
if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
^~~~~~~~~~~~~~~~~
bfd_set_section_flags
/home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp:165:27: error: ‘bfd_section_vma’ was not declared in this scope
bfd_vma vma = bfd_section_vma(section);
^~~~~~~~~~~~~~~
/home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp:165:27: note: suggested alternative: ‘bfd_scan_vma’
bfd_vma vma = bfd_section_vma(section);
^~~~~~~~~~~~~~~
bfd_scan_vma
/home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp:169:37: error: ‘bfd_section_size’ was not declared in this scope
bfd_size_type secsize = bfd_section_size(section);
^~~~~~~~~~~~~~~~
/home/kamran/kaam/CppServer/modules/CppCommon/source/system/stack_trace.cpp:169:37: note: suggested alternative: ‘bfd_set_gp_size’
bfd_size_type secsize = bfd_section_size(section);
^~~~~~~~~~~~~~~~
bfd_set_gp_size
[ 29%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/threads/mutex.cpp.o
modules/CppCommon/CMakeFiles/cppcommon.dir/build.make:710: recipe for target 'modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace.cpp.o' failed
there are 2 paramters for #define bfd_section_vma(bfd, ptr) ((ptr)->vma) there are also some other errors as well as written above |
Hi @KamranArain. I had the same issue on ubuntu 18.04. This seems to be an issue with binutils-dev version 2.30 which you installed. This issue was resolved in bombela/backward-cpp#165. However on ubuntu 18.04 the latest version of binutils-dev is 2.30. I resolved this by upgrading to ubuntu 20.04 and installing binutils-dev version 2.34. |
When executing
unix.sh
on Ubuntu 20, I get the following errors:All of these seem to be coming from CppCommon.
The text was updated successfully, but these errors were encountered: