[LLVMbugs] [Bug 1899] New: Assertion `!Subtarget->isTargetDarwin()' failed on x86_64 target

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Jan 4 19:46:43 PST 2008


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

           Summary: Assertion `!Subtarget->isTargetDarwin()' failed on
                    x86_64 target
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: laguest at archangeli.co.uk
                CC: llvmbugs at cs.uiuc.edu


Configured on the following Ubuntu Feisty machine:

$ uname -a
Linux rogue 2.6.20-16-generic #2 SMP Sun Sep 23 18:31:23 UTC 2007 x86_64
GNU/Linux
$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-checking=release
x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)

Configured and installed LLVM (debug and release) fine. Configured llvm-gcc-4.2
with the following:

../../llvm-gcc-4.2/configure   --prefix=/home/laguest/opt/gnat-llvm
--enable-llvm=/home/laguest/src/others/compilers/llvm-svn/x86_64/build-llvm
--enable-checking --enable-threads=posix --disable-bootstrap --disable-shared
--disable-multilib --target=x86_64-pc-linux --host=x86_64-pc-linux
--enable-languages=c,ada,c++

and then when making get this:

        SHLIB_INSTALL='$(mkinstalldirs)
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@; /usr/bin/install -c -m 644
@multilib_dir@/@shlib_base_name at .so.1
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so.1; rm -f
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so; ln -s
@shlib_base_name at .so.1
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name at .so' \
        SHLIB_EXT='.so' \
        SHLIB_MULTILIB='' \
        SHLIB_MKMAP='../../../llvm-gcc-4.2/gcc/mkmap-symver.awk' \
        SHLIB_MKMAP_OPTS='' \
        SHLIB_MAPFILES='../../../llvm-gcc-4.2/gcc/libgcc-std.ver
../../../llvm-gcc-4.2/gcc/config/i386/libgcc-x86_64-glibc.ver' \
        SHLIB_NM_FLAGS='-pg' \
        MULTILIB_OSDIRNAMES='../lib64 ../lib' \
        ASM_HIDDEN_OP='' \
       
GCC_FOR_TARGET='/home/laguest/src/others/compilers/llvm-svn/x86_64/build-llvm-gcc-4.2/./gcc/xgcc
-B/home/laguest/src/others/compilers/llvm-svn/x86_64/build-llvm-gcc-4.2/./gcc/
-B/home/laguest/opt/gnat-llvm/x86_64-pc-linux/bin/
-B/home/laguest/opt/gnat-llvm/x86_64-pc-linux/lib/ -isystem
/home/laguest/opt/gnat-llvm/x86_64-pc-linux/include -isystem
/home/laguest/opt/gnat-llvm/x86_64-pc-linux/sys-include' \
        mkinstalldirs='/bin/sh ../../../llvm-gcc-4.2/gcc/../mkinstalldirs' \
          /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
TARGET_CPU_DEFAULT="" \
        HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
        /bin/sh ../../../llvm-gcc-4.2/gcc/mkconfig.sh tconfig.h
/home/laguest/src/others/compilers/llvm-svn/x86_64/build-llvm-gcc-4.2/./gcc/xgcc
-B/home/laguest/src/others/compilers/llvm-svn/x86_64/build-llvm-gcc-4.2/./gcc/
-B/home/laguest/opt/gnat-llvm/x86_64-pc-linux/bin/
-B/home/laguest/opt/gnat-llvm/x86_64-pc-linux/lib/ -isystem
/home/laguest/opt/gnat-llvm/x86_64-pc-linux/include -isystem
/home/laguest/opt/gnat-llvm/x86_64-pc-linux/sys-include -O2 -O2 -g -O2 
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I. -I../../../llvm-gcc-4.2/gcc
-I../../../llvm-gcc-4.2/gcc/. -I../../../llvm-gcc-4.2/gcc/../include
-I../../../llvm-gcc-4.2/gcc/../libcpp/include 
-I../../../llvm-gcc-4.2/gcc/../libdecnumber -I../libdecnumber
-I/home/laguest/src/others/compilers/llvm-svn/llvm/include
-I/home/laguest/src/others/compilers/llvm-svn/x86_64/build-llvm/include  -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-toplevel-reorder  -fno-omit-frame-pointer
-fno-asynchronous-unwind-tables \
          -c ../../../llvm-gcc-4.2/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
cc1:
/home/laguest/src/others/compilers/llvm-svn/llvm/lib/Target/X86/X86AsmPrinter.cpp:266:
virtual bool llvm::X86SharedAsmPrinter::doFinalization(llvm::Module&):
Assertion `!Subtarget->isTargetDarwin()' failed.
../../../llvm-gcc-4.2/gcc/crtstuff.c:378: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory
`/home/laguest/src/others/compilers/llvm-svn/x86_64/build-llvm-gcc-4.2/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory
`/home/laguest/src/others/compilers/llvm-svn/x86_64/build-llvm-gcc-4.2'
make: *** [all] Error 2

Thanks,
Luke.


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