I have followed Ph3nom's instructions in this post to a "T". So far, I can't get past this error, while attempting to build the DC-Chain:
<...>
It wasn't mentioned in Ph3nom's post, but that's what I'm running into now. I definitely need help because every time I've tried to build this thing for years, I usually give up and have someone else build things for me because it just seems like a headache and a half. No ill will intended, of course, but god damn. . .-Wmissing-prototypes -Wshadow -Werror -g -O2 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c -o opncls.lo ../../binutils-2.23.2/bfd/opncls.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.23.2/bfd -I. -I../../binutils-2.23.2/bfd -I../../binutils-2.23.2/bfd/../include -DHAVE_bfd_elf32_sh_vec -DHAVE_bfd_elf32_shl_vec -DHAVE_shcoff_vec -DHAVE_shlcoff_vec -DHAVE_shcoff_small_vec -DHAVE_shlcoff_small_vec -DHAVE_bfd_elf32_sh64_vec -DHAVE_bfd_elf32_sh64l_vec -DHAVE_bfd_elf64_sh64_vec -DHAVE_bfd_elf64_sh64l_vec -DHAVE_bfd_elf64_little_generic_vec -DHAVE_bfd_elf64_big_generic_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\"/opt/toolchains/dc/sh-elf/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT opncls.lo -MD -MP -MF .deps/opncls.Tpo -c ../../binutils-2.23.2/bfd/opncls.c -o opncls.o
In file included from ../../binutils-2.23.2/bfd/opncls.c:26:0:
../../binutils-2.23.2/bfd/opncls.c: In function ‘bfd_fopen’:
./bfd.h:529:65: error: right-hand operand of comma expression has no effect [-Werror=unused-value]
#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
^
../../binutils-2.23.2/bfd/opncls.c:261:5: note: in expansion of macro ‘bfd_set_cacheable’
bfd_set_cacheable (nbfd, TRUE);
^
cc1: all warnings being treated as errors
Makefile:1575: recipe for target 'opncls.lo' failed
make[5]: *** [opncls.lo] Error 1
make[5]: Leaving directory '/usr/local/dc/kos/utils/dc-chain/build-binutils-sh-elf-2.23.2/bfd'
Makefile:1617: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/usr/local/dc/kos/utils/dc-chain/build-binutils-sh-elf-2.23.2/bfd'
Makefile:1108: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/usr/local/dc/kos/utils/dc-chain/build-binutils-sh-elf-2.23.2/bfd'
Makefile:2509: recipe for target 'all-bfd' failed
make[2]: *** [all-bfd] Error 2
make[2]: Leaving directory '/usr/local/dc/kos/utils/dc-chain/build-binutils-sh-elf-2.23.2'
Makefile:841: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/local/dc/kos/utils/dc-chain/build-binutils-sh-elf-2.23.2'
Makefile:137: recipe for target 'build-sh4-binutils' failed
make: *** [build-sh4-binutils] Error 1
Corbyn@Coraline /usr/local/dc/kos/utils/dc-chain
I'll just keep posting in this thread until I get the entire toolchain built, and then use this to make a guide of my own to compliment Ph3nom's.