[LLVMbugs] [Bug 1644] New: llvm-gcc-4.0 Mac OS X build failure... maybe my assember is too old?

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Sep 7 13:16:54 PDT 2007


http://llvm.org/bugs/show_bug.cgi?id=1644

           Summary: llvm-gcc-4.0 Mac OS X build failure... maybe my assember
                    is too old?
           Product: new-bugs
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: tim at tenkan.org
                CC: llvmbugs at cs.uiuc.edu, tim at tenkan.org


Created an attachment (id=1105)
 --> (http://llvm.org/bugs/attachment.cgi?id=1105)
patch to restore buildability on mac os x 10.4.10

When attempting to build llvm-gcc-4.0 from
http://llvm.org/svn/llvm-project/llvm-gcc-4.0/trunk, revision 41769, I saw the
following failure:

/Users/tim/code/c/llvm-gcc/gcc/xgcc -B/Users/tim/code/c/llvm-gcc/gcc/
-B/Users/tim/code/c/llvm-gcc/dst/i686-apple-darwin8/bin/
-B/Users/tim/code/c/llvm-gcc/dst/i686-apple-darwin8/lib/ -isystem
/Users/tim/code/c/llvm-gcc/dst/i686-apple-darwin8/include -isystem
/Users/tim/code/c/llvm-gcc/dst/i686-apple-darwin8/sys-include -O2  -DIN_GCC   
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -fPIC -pipe -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I../../llvm-gcc-4.0/gcc
-I../../llvm-gcc-4.0/gcc/. -I../../llvm-gcc-4.0/gcc/../include -I./../intl
-I../../llvm-gcc-4.0/gcc/../libcpp/include   -DL_gcov -c
../../llvm-gcc-4.0/gcc/libgcov.c -o libgcc/./_gcov.o
In file included from ../../llvm-gcc-4.0/gcc/gcov-io.h:239,
                 from ../../llvm-gcc-4.0/gcc/libgcov.c:51:
./auto-host.h:23:1: warning: "DEFAULT_USE_CXA_ATEXIT" redefined
In file included from ./tm.h:7,
                 from ../../llvm-gcc-4.0/gcc/libgcov.c:39:
../../llvm-gcc-4.0/gcc/defaults.h:712:1: warning: this is the location of the
previous definition
{standard input}:2892:Rest of line ignored. 1st junk character valued 44 (,).
make[2]: *** [libgcc/./_gcov.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2

I haven't investigated the warning, but the error on line 2892 turns out to be
an assembler directive that my assembler, (apple's gas version 1.38 that came
with OS/X 10.4.10), doesn't support:

.comm ___gcov_var,4128,5

The .comm directive picks an alignment on its own, and doesn't support passing
one, as described here:
http://developer.apple.com/documentation/DeveloperTools/Reference/Assembler/ASMDirectives/chapter_5_section_4.html#//apple_ref/doc/uid/TP30000823-TPXREF155

Maybe the new assembler in Leopard supports it?  The change to GCC looks like
it happened in late July.

I've attached a patch that works for me.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list