jwt27 / build-gcc

Shell scripts to build various gcc cross-compilers (primarily djgpp)
https://jw.h4ck.me/debian/
GNU General Public License v3.0
44 stars 9 forks source link

build-ia16 unrecognized option - --32-segelf #24

Closed dajoho closed 2 years ago

dajoho commented 2 years ago

Hi. I am trying to run ./build-ia16.sh gcc but it starts chuntering and then fails with this error message:

/usr/local/cross/lib/gcc/ia16-elf/6.3.0/../../../../ia16-elf/bin/as: unrecognized option '--32-segelf'

If I run /usr/local/cross/lib/gcc/ia16-elf/6.3.0/../../../../ia16-elf/bin/as --help, it describes that --32-segelf is supported, but it fails with the same error message if I run the binary with the --32-segelf parameter.

I'm stumped. The problem occurs on Debian 11 and the latest Manjaro.

Any ideas?

jwt27 commented 2 years ago

Hi, thanks for the report. Looks like binutils needs to be built with --enable-x86-hpa-segelf to enable that option. I'll sync the configure flags with those used in tkchia/build-ia16, that should fix it.