Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Configuring without "--build" creates a host tblgen that is used during the build #9407

Open Quuxplusone opened 13 years ago

Quuxplusone commented 13 years ago
Bugzilla Link PR10716
Status NEW
Importance P normal
Reported by vanboxem.ruben@gmail.com
Reported on 2011-08-21 13:11:57 -0700
Last modified on 2011-08-22 05:19:41 -0700
Version trunk
Hardware PC Linux
CC geek4civic@gmail.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments config.log (382463 bytes, text/x-log)
Blocks
Blocked by
See also
Created attachment 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.
Quuxplusone commented 13 years ago

Attached config.log (382463 bytes, text/x-log): config.log without --build argument