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

error when trying to compile with DreamSDK #11

Closed
megaboy1024 opened this issue Jan 19, 2021 · 2 comments
Closed

error when trying to compile with DreamSDK #11

megaboy1024 opened this issue Jan 19, 2021 · 2 comments

Comments

@megaboy1024
Copy link

Hi there, I want to build this version of dc-tool to test it out, I'm using DreamSDK running on Windows 10 PC, but when I'm trying to follow up the building instruction I got this compiling error:
$ make
make -C host-src
make[1]: Entering directory /home/luay_/dcload-ip/host-src' make -C tool make[2]: Entering directory /home/luay_/dcload-ip/host-src/tool'
gcc -O2 -I/usr/local/include -D_WIN32 -DDCLOAD_VERSION="2.0.0" -DDREAMCAST_IP="0.0.0.0" -DHAVE_GETOPT -DSAVE_MY_FANS=0 -DDREAMCAST_BBA_RX_FIFO_DELAY_COUNT=10 -DDREAMCAST_BBA_RX_FIFO_DELAY_TIME=1800 -DDREAMCAST_LAN_RX_FIFO_DELAY_COUNT=1 -DDREAMCAST_LAN_RX_FIFO_DELAY_TIME=1250 -DWITH_BFD -I/opt/toolchains/dc/sh-elf/include -o dc-tool.o -c dc-tool.c
dc-tool.c: In function 'upload':
dc-tool.c:998:56: error: macro "bfd_section_size" requires 2 arguments, but only 1 given
sectsize = bfd_section_size(section);
^
dc-tool.c:998:32: error: 'bfd_section_size' undeclared (first use in this function)
sectsize = bfd_section_size(section);
^~~~~~~~~~~~~~~~
dc-tool.c:998:32: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [dc-tool.o] Error 1
make[2]: Leaving directory /home/luay_/dcload-ip/host-src/tool' make[1]: *** [tool] Error 2 make[1]: Leaving directory /home/luay_/dcload-ip/host-src'
make: *** [host-src] Error 2

Can you please tell me how to solve it? or if you can provide the build BIN or CDI file to test it out directly.
Thank you

@sizious
Copy link
Owner

sizious commented Jan 21, 2021

Hello,
Thanks for your interest!
Binutils 2.34 included some breaking changes in the BFD library and the functions have changed. I think that you will need to correct the bfd_section_size() call with the older version. More details is available here.

@megaboy1024
Copy link
Author

Thank you very much, it's working perfectly with DHCP enabled :)

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

2 participants