Skip to content
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

build error #79

Open
Herinbul opened this issue Nov 27, 2022 · 2 comments
Open

build error #79

Herinbul opened this issue Nov 27, 2022 · 2 comments

Comments

@Herinbul
Copy link

error: macro "bfd_section_vma" requires 2 arguments, but only 1 given
bfd_vma vma = bfd_section_vma(section);
^
/home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:174:61: error: macro "bfd_section_size" requires 2 arguments, but only 1 given
bfd_size_type secsize = bfd_section_size(section);
^
/home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp: In constructor ‘CppCommon::StackTrace::StackTrace(int)’:
/home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:167:18: error: ‘bfd_section_flags’ was not declared in this scope
if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
^~~~~~~~~~~~~~~~~
/home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:167:18: note: suggested alternative: ‘bfd_set_section_flags’
if ((bfd_section_flags(section) & SEC_ALLOC) == 0)
^~~~~~~~~~~~~~~~~
bfd_set_section_flags
/home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:170:27: error: ‘bfd_section_vma’ was not declared in this scope
bfd_vma vma = bfd_section_vma(section);
^~~~~~~~~~~~~~~
/home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:170:27: note: suggested alternative: ‘bfd_scan_vma’
bfd_vma vma = bfd_section_vma(section);
^~~~~~~~~~~~~~~
bfd_scan_vma
/home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:174:37: error: ‘bfd_section_size’ was not declared in this scope
bfd_size_type secsize = bfd_section_size(section);
^~~~~~~~~~~~~~~~
/home/work/CppServer/modules/CppCommon/source/system/stack_trace.cpp:174:37: note: suggested alternative: ‘bfd_set_gp_size’
bfd_size_type secsize = bfd_section_size(section);
^~~~~~~~~~~~~~~~
bfd_set_gp_size
[ 33%] Building CXX object modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace_manager.cpp.o
modules/CppCommon/CMakeFiles/cppcommon.dir/build.make:453: recipe for target 'modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace.cpp.o' failed
make[2]: *** [modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:1971: recipe for target 'modules/CppCommon/CMakeFiles/cppcommon.dir/all' failed
make[1]: *** [modules/CppCommon/CMakeFiles/cppcommon.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2

@sumitsarkar1
Copy link

@Herinbul have you solved it ?

@wang21825227
Copy link

@Herinbul Have you solved it? I have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants