[LLVMbugs] [Bug 666] NEW: mysql-5.0.15 does not build with llvm 1.6 (does with gcc)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Nov 16 23:47:01 PST 2005


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=666

           Summary: mysql-5.0.15 does not build with llvm 1.6 (does with
                    gcc)
           Product: tools
           Version: 1.6
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kremenek at cs.stanford.edu


MySQL 5.0 fails to build on Debian Linux (unstable/testing).

linux kernel: 2.6.12-1-686-smp 

./configure line:

CC=llvm-gcc CXX=llvm-g++ LDFLAGS="-Wl,-native" ./configure 

(same problem with "-Wl,-native" removed)

Configure works just fine.  Problem occurs during build:

...
if llvm-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include    -O3
-DDBUG_OFF    -MT str2int.o -MD -MP -MF ".deps/str2int.Tpo" -c -o str2int.o
str2int.c; \
then mv -f ".deps/str2int.Tpo" ".deps/str2int.Po"; else rm -f
".deps/str2int.Tpo"; exit 1; fi
In file included from ../include/my_sys.h:32,
                 from str2int.c:44:
../include/my_pthread.h:245:45: thread.h: No such file or directory
make[2]: *** [str2int.o] Error 1
make[2]: Leaving directory
`/home/local/kremenek/llvm/test/builds/mysql-5.0.15/strings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/local/kremenek/llvm/test/builds/mysql-5.0.15'
make: *** [all] Error 2


The file "my_pthread.h" uses a bunch of preprocessor logic to select what thread
header file to include (OS/system dependent).  The file "thread.h" does not
exist, but it doesn't look like it should be included in the first place.

I'm not exactly certain what the issue is.  Looks like a configuration logic error?

Compilation works just fine when we use gcc:

%> gcc --version

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr
--disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 (Debian 4.0.2-2)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list