https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577
--- Comment #133 from Peter Bisroev <peter.bisroev at groundlabs dot com> --- (In reply to dave.anglin from comment #132) > This has been reported before on net. Maybe you should try using flex > library. > It provides the above symbols in its library.. Building binutils with flex library resolved this issue even when building with aCC and ar and ranlib seem to work OK now. > You could try rebuilding binutils with your gcc-4.7.4 build and see how it > works out. > Run the testsuite. I actually did this with aCC and gcc-4.7.4 that was just built and ran the testsuite. With both aCC and gcc-4.7.4 the exact same tests failed. Namely: The tests are from are binutils-2.32. - gas.log FAIL: .file file names FAIL: .file file names ordering FAIL: .equ redefinitions (ELF) FAIL: .set with expression FAIL: good .bss / .struct data allocation directives FAIL: gas/elf/missing-build-notes FAIL: ia64 xdata (ilp32) FAIL: ia64 unwind descriptors - binutils.log (they look like gas related failures) FAIL: assembler generated build notes FAIL: --localize-hidden test 1 FAIL: readelf -S bintest Are any of these tests critical and would you want me to look at them in more detail? > To me, the g++ test results are reasonable. So, I would suggest you try > building gcc-8 or trunk with gcc-4.7.4. Got it, thanks. Will test on gcc-8.3.0. Thanks!