[LLVMbugs] [Bug 12256] New: clang cannot compile Mesa's src/mapi/mapi/entry.c on i586 [x86_64 works]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 12 13:40:33 PDT 2012


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

             Bug #: 12256
           Summary: clang cannot compile Mesa's src/mapi/mapi/entry.c on
                    i586 [x86_64 works]
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: johannesobermayr at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8198
  --> http://llvm.org/bugs/attachment.cgi?id=8198
entry-WMMnSg.i

gmake[2]: Entering directory
`/home/abuild/rpmbuild/BUILD/Mesa/src/mapi/shared-glapi'
clang -c -I../../../include -I../../../src/mapi -DMAPI_MODE_GLAPI
-DMAPI_ABI_HEADER=\"shared-glapi/glapi_mapi_tmp.h\" -fomit-frame-pointer
-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -g -Wall -std=c99
-Werror=implicit-function-declaration -Werror=missing-prototypes
-fno-strict-aliasing  -g -fomit-frame-pointer -fmessage-length=0 -O2 -Wall
-D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM
-DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DDEBUG
-DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_XCB
-DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_XEXTPROTO_71
-D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0301 -fvisibility=hidden
../../../src/mapi/mapi/entry.c -o entry.o
In file included from ../../../src/mapi/mapi/entry.c:47:
../../../src/mapi/mapi/entry_x86_tsd.h:63:19: warning: tentative array
definition assumed to have one element
static const char x86_entry_start[];
                  ^
../../../src/mapi/mapi/entry_x86_tsd.h:64:19: warning: tentative array
definition assumed to have one element
static const char x86_entry_end[];
                  ^
clang-3.1: /home/abuild/rpmbuild/BUILD/llvm/lib/MC/MCELFStreamer.cpp:163:
virtual void {anonymous}::MCELFStreamer::EmitLabel(llvm::MCSymbol*): Assertion
`Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.
Stack dump:
0.      Program arguments: /usr/bin/clang-3.1 -cc1 -triple i386-pc-linux-gnu
-emit-obj -disable-free -disable-llvm-verifier -main-file-name entry.c
-pic-level 2 -relaxed-aliasing -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu pentium4 -momit-leaf-frame-pointer -g
-coverage-file entry.o -resource-dir /usr/bin/../lib/clang/3.1 -D
MAPI_MODE_GLAPI -D MAPI_ABI_HEADER="shared-glapi/glapi_mapi_tmp.h" -D
_FORTIFY_SOURCE=2 -D _FORTIFY_SOURCE=2 -D USE_X86_ASM -D USE_MMX_ASM -D
USE_3DNOW_ASM -D USE_SSE_ASM -D _GNU_SOURCE -D PTHREADS -D DEBUG -D
TEXTURE_FLOAT_ENABLED -D HAVE_POSIX_MEMALIGN -D IN_DRI_DRIVER -D USE_XCB -D
GLX_INDIRECT_RENDERING -D GLX_DIRECT_RENDERING -D USE_EXTERNAL_DXTN_LIB=1 -D
IN_DRI_DRIVER -D HAVE_ALIAS -D HAVE_MINCORE -D HAVE_LIBUDEV -D
HAVE_XEXTPROTO_71 -D __STDC_CONSTANT_MACROS -D HAVE_LLVM=0x0301 -I
../../../include -I ../../../src/mapi -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem /usr/local/include
-internal-isystem /usr/bin/../lib/clang/3.1/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include -O2 -Wall -Wall
-Werror=implicit-function-declaration -Werror=missing-prototypes -Wall -std=c99
-fdebug-compilation-dir /home/abuild/rpmbuild/BUILD/Mesa/src/mapi/shared-glapi
-ferror-limit 19 -fmessage-length 0 -fvisibility hidden -stack-protector 1
-mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o entry.o -x
c ../../../src/mapi/mapi/entry.c 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'../../../src/mapi/mapi/entry.c'.
clang-3: error: unable to execute command: Aborted
clang-3: error: clang frontend command failed due to signal (use -v to see
invocation)
clang-3: note: diagnostic msg: Please submit a bug report to  and include
command line arguments and all diagnostic information.
clang-3: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang-3: note: diagnostic msg: /tmp/entry-WMMnSg.i
clang-3: note: diagnostic msg: /tmp/entry-WMMnSg.sh
gmake[2]: *** [entry.o] Error 254
gmake[2]: Leaving directory
`/home/abuild/rpmbuild/BUILD/Mesa/src/mapi/shared-glapi'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/Mesa/src'
make: *** [default] Error 1

-- 
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