[uClibc 0003164]: m68k build fails with the default ARCH_CFLAGS setting, gcc 4.3, and binutils 2.18

bugs at busybox.net bugs at busybox.net
Sun Apr 27 08:25:11 UTC 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=3164 
====================================================================== 
Reported By:                kendallc
Assigned To:                uClibc
====================================================================== 
Project:                    uClibc
Issue ID:                   3164
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             04-27-2008 01:25 PDT
Last Modified:              04-27-2008 01:25 PDT
====================================================================== 
Summary:                    m68k build fails with the default ARCH_CFLAGS
setting, gcc 4.3, and binutils 2.18
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.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-27-08 01:25  kendallc       New Issue                                    
04-27-08 01:25  kendallc       Status                   new => assigned     
04-27-08 01:25  kendallc       Assigned To               => uClibc          
======================================================================




More information about the uClibc-cvs mailing list