Skip to content

"bfd_section_vma" requires 2 arguments, but only 1 given #105

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

Open
Issachhhh opened this issue Dec 5, 2024 · 0 comments
Open

"bfd_section_vma" requires 2 arguments, but only 1 given #105

Issachhhh opened this issue Dec 5, 2024 · 0 comments

Comments

@Issachhhh
Copy link

Issachhhh commented Dec 5, 2024

/FastBinaryEncoding/modules/CppCommon/source/system/stack_trace.cpp:170:50: error: macro "bfd_section_vma" requires 2 arguments, but only 1 given
bfd_vma vma = bfd_section_vma(section);
^
/FastBinaryEncoding/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);
^
/FastBinaryEncoding/modules/CppCommon/source/system/stack_trace.cpp: In constructor 'CppCommon::StackTrace::StackTrace(int)':
/FastBinaryEncoding/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)
^~~~~~~~~~~~~~~~~
/FastBinaryEncoding/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
/FastBinaryEncoding/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);
^~~~~~~~~~~~~~~
/FastBinaryEncoding/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);
^~~~~~~~~~~~~~~~
make[2]: *** [modules/CppCommon/CMakeFiles/cppcommon.dir/source/system/stack_trace.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [modules/CppCommon/CMakeFiles/cppcommon.dir/all] Error 2
make: *** [all] Error 2

Hello! When I try to compile FastBinaryEncoding, I meet this error. It seems that I installed a wrong version of binutils. Plz, help me.

OS : CentOS Linux release 7.5.1804
gcc version : gcc (GCC) 8.3.0
binutils version : binutils.x86_64 2.27-44.base.el7_9.1

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

1 participant