Re: bfd.h fails to compile on FreeBSD: error: unknown type name 'ENUM_BITFIELD'
On Tue, Feb 28, 2023 at 09:07:17AM -0800, Yuri wrote: > On 2/28/23 01:39, Alan Modra wrote: > > include/ansidecl.h is in the binutils sources. > > Ok, I see that include/ansidecl.h is not installed by binutils. It is installed for me. With default configure and current mainline: $ make install DESTDIR=/tmp/alan ... /usr/bin/mkdir -p '/tmp/alan/usr/local/include' /usr/bin/install -c -m 644 bfd.h /home/alan/src/binutils-gdb/bfd/../include/ansidecl.h /home/alan/src/binutils-gdb/bfd/../include/symcat.h /home/alan/src/binutils-gdb/bfd/../include/diagnostics.h /home/alan/src/binutils-gdb/bfd/../include/bfdlink.h /home/alan/src/binutils-gdb/bfd/../include/plugin-api.h '/tmp/alan/usr/local/include' -- Alan Modra Australia Development Lab, IBM
Re: bfd.h fails to compile on FreeBSD: error: unknown type name 'ENUM_BITFIELD'
On 2/28/23 01:39, Alan Modra wrote: include/ansidecl.h is in the binutils sources. Ok, I see that include/ansidecl.h is not installed by binutils. But bfd.h needs to include it. When libbfd is used as a standalone library bfd.h needs to be self-sufficient. Yuri
Re: bfd.h fails to compile on FreeBSD: error: unknown type name 'ENUM_BITFIELD'
On Tue, Feb 28, 2023 at 01:23:25AM -0800, Yuri wrote: > On 2/28/23 01:14, Nick Clifton wrote: > > Hi Yuri, > > > > > Where is ENUM_BITFIELD expected to come from? > > > > /usr/include/anisdecl.h > > > There's no such file on FreeBSD. include/ansidecl.h is in the binutils sources. -- Alan Modra Australia Development Lab, IBM
Re: bfd.h fails to compile on FreeBSD: error: unknown type name 'ENUM_BITFIELD'
On 2/28/23 01:14, Nick Clifton wrote: Hi Yuri, Where is ENUM_BITFIELD expected to come from? /usr/include/anisdecl.h There's no such file on FreeBSD. Yuri
Re: bfd.h fails to compile on FreeBSD: error: unknown type name 'ENUM_BITFIELD'
Hi Yuri, Where is ENUM_BITFIELD expected to come from? /usr/include/anisdecl.h Cheers Nick
bfd.h fails to compile on FreeBSD: error: unknown type name 'ENUM_BITFIELD'
Where is ENUM_BITFIELD expected to come from? Errors: || [ 50%] Building CXX object src/CMakeFiles/elf2llvm.dir/main.cpp.o || In file included from /home/yuri/binary-to-llvm/src/main.cpp:2: /usr/local/include/bfd.h|2039 col 3| error: unknown type name 'ENUM_BITFIELD' || ENUM_BITFIELD (complain_overflow) complain_on_overflow:2; || ^ /usr/local/include/bfd.h|2039 col 36| error: expected ';' at end of declaration list || ENUM_BITFIELD (complain_overflow) complain_on_overflow:2; || ^ binutils-2.40 clang-14 FreeBSD 13.1 Yuri