[LLVMbugs] [Bug 11532] New: Assertion `Symbol->isUndefined() && "Cannot define a symbol twice!"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 10 08:13:21 PST 2011


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

             Bug #: 11532
           Summary: Assertion `Symbol->isUndefined() && "Cannot define a
                    symbol twice!"' failed
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sedat.dilek at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 7705
  --> http://llvm.org/bugs/attachment.cgi?id=7705
bugreport llvm-clang from dileks

Hi,

I have compiled llvm/clang v3.0 (final) on my i386 Debian/sid system by myself
(Just FYI: I am using multiarch [1]).

The issue I am reporting was seen when compiling mesa from master GIT branch:

commit b1a8b7b0196c73bcfe488cbfc9e9fcd1d7ce7d9b
"Revert "st/mesa: only resolve is number of samples is > 1""

I have attached the build-logs, my build-scripts, the preprocessed-sources,
etc. (as desired by baldrick on IRC).

BTW, I was pointed on IRC to llvm-bug #9301 and tried with a refreshed version
of pr9301.patch which did not help here.

Regards,
- Sedat (dileks on IRC) -

[1] http://wiki.debian.org/Multiarch/
[2] http://llvm.org/bugs/show_bug.cgi?id=9301

P.S.: From my initial build.log:

...
make[2]: Entering directory `/home/sd/src/mesa/mesa/src/mapi/shared-glapi'
clang -c -I../../../include -I../../../src/mapi -DMAPI_MODE_GLAPI
-DMAPI_ABI_HEADER=\"shared-glapi/glapi_mapi_tmp.h\" -g -O2 -Wall
-Wmissing-prototypes -std=c99 -fno-strict-aliasing -fno-builtin-memcmp -g 
-fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE
-DPTHREADS -DDEBUG -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS
-fvisibility=hidden ../../../src/mapi/mapi/entry.c -o entry.o
clang: warning: argument unused during compilation: '-fno-builtin-memcmp'
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: /home/sd/src/llvm/llvm/lib/MC/MCELFStreamer.cpp:42: virtual void
llvm::MCELFStreamer::EmitLabel(llvm::MCSymbol*): Assertion
`Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.
0  clang     0x09641708
1  clang     0x09641c54
2            0x4001d400 __kernel_sigreturn + 0
3            0x4001d424 __kernel_vsyscall + 16
4  libc.so.6 0x401b4911 gsignal + 81
5  libc.so.6 0x401b7d42 abort + 386
6  libc.so.6 0x401adb28 __assert_fail + 248
7  clang     0x095bd00e
Stack dump:
0.      Program arguments: /opt/llvm/bin/clang -cc1 -triple i386-pc-linux-gnu
-emit-obj -disable-free -main-file-name entry.c -pic-level 2 -mdisable-fp-elim
-relaxed-aliasing -masm-verbose -mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.22 -momit-leaf-frame-pointer -g -coverage-file entry.o
-resource-dir /opt/llvm/bin/../lib/clang/3.0 -D MAPI_MODE_GLAPI -D
MAPI_ABI_HEADER="shared-glapi/glapi_mapi_tmp.h" -D USE_X86_ASM -D USE_MMX_ASM
-D USE_3DNOW_ASM -D USE_SSE_ASM -D _GNU_SOURCE -D PTHREADS -D DEBUG -D
HAVE_POSIX_MEMALIGN -D GLX_INDIRECT_RENDERING -D GLX_DIRECT_RENDERING -D
USE_EXTERNAL_DXTN_LIB=1 -D IN_DRI_DRIVER -D HAVE_ALIAS -I ../../../include -I
../../../src/mapi -fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem /usr/local/include -internal-isystem
/opt/llvm/bin/../lib/clang/3.0/include -internal-externc-isystem
/usr/include/i386-linux-gnu -internal-externc-isystem /usr/include -O2 -Wall
-Wmissing-prototypes -std=c99 -ferror-limit 19 -fmessage-length 0 -fvisibility
hidden -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fdiagnostics-show-option -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: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/entry-Y0sBsk.i
make[2]: *** [entry.o] Error 254
make[2]: Leaving directory `/home/sd/src/mesa/mesa/src/mapi/shared-glapi'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/sd/src/mesa/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