[LLVMbugs] [Bug 10716] New: Configuring without "--build" creates a host tblgen that is used during the build

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 21 11:11:57 PDT 2011


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

           Summary: Configuring without "--build" creates a host tblgen
                    that is used during the build
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: autoconf
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: vanboxem.ruben at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7106)
 --> (http://llvm.org/bugs/attachment.cgi?id=7106)
config.log without --build argument

OS: Fedora 15
GCC: 4.6

When I configure with:

/home/ruben/mingw-w64/toolchain/src/LLVM/configure --host=x86_64-w64-mingw32
--build=x86_64-redhat-linux --target=x86_64-w64-mingw32
--with-sysroot=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64
--prefix=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64-clang
--enable-optimized --disable-assertions --disable-pthreads CFLAGS= LDFLAGS=

Everything is fine, if I configure with:

/home/ruben/mingw-w64/toolchain/src/LLVM/configure --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32
--with-sysroot=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64
--prefix=/home/ruben/mingw-w64/toolchain/mingw64mingw64/mingw64-clang
--enable-optimized --disable-assertions --disable-pthreads CFLAGS= LDFLAGS=

tblgen is built for the host, and used as if it were native:

llvm[2]: Linking Release executable tblgen (without symbols)
llvm[2]: ======= Finished Linking Release Executable tblgen (without symbols)
make[2]: Leaving directory
`/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/utils/TableGen'
make[1]: Leaving directory
`/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/utils'
make[1]: Entering directory
`/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/lib/VMCore'
llvm[1]: Building Intrinsics.gen.tmp from Intrinsics.td
err:module:import_dll Library libgcc_s_sjlj-1.dll (which is needed by
L"Z:\\home\\ruben\\mingw-w64\\toolchain\\mingw64mingw64\\llvm-clang\\Release\\bin\\tblgen.exe")
not found
err:module:import_dll Library libstdc++-6.dll (which is needed by
L"Z:\\home\\ruben\\mingw-w64\\toolchain\\mingw64mingw64\\llvm-clang\\Release\\bin\\tblgen.exe")
not found
err:module:LdrInitializeThunk Main exe initialization for
L"Z:\\home\\ruben\\mingw-w64\\toolchain\\mingw64mingw64\\llvm-clang\\Release\\bin\\tblgen.exe"
failed, status c0000135
make[1]: ***
[/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/lib/VMCore/Release/Intrinsics.gen.tmp]
Error 53
make[1]: Leaving directory
`/home/ruben/mingw-w64/toolchain/mingw64mingw64/llvm-clang/lib/VMCore'
make: *** [all] Error 1

This is mostly my Linux binfmt stuff trying to run a Win32 app through WINE,
which is not what should happen. tblgen should be either only built for the
detected BUILD platform, or built for both BUILD and HOST platforms, so it can
be used during the build and after install. Attached is a config.log that
produces the wrong platform tblgen.

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