|
Description |
The default ARCH_CFLAGS setting in extra/Configs/Config.m68k is "-Wa,--bitwise-or". The build fails because gcc outputs an assembly comment with "|", but "-Wa,--bitwise-or" tells binutils not to treat "|" as a comment.
For a long time, GCC for m68k has defined ASM_COMMENT_START as "|". Before binutils 2.17, the meaning of the flag was "Permit `|' to be used in expressions." I think that setting the flag didn't hurt anything because "|" was treated as a comment even if the flag was set. In binutls 2.17, the flag changed to mean "do not treat `|' as a comment character". Now, the flag breaks compilation because gcc outputs "|" to start a comment, and the assembler doesn't accept it.
It's easy enough for users to change the config, but it's pretty difficult to figure out why uClibc doesn't build by default. I don't think "-Wa,--bitwise-or" has much benefit, and now it breaks the build, so I think it might be good to remove "-Wa,--bitwise-or" as the default setting. |