Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Build error in muldc3.c on Red Hat 5.8 #18658

Open Quuxplusone opened 10 years ago

Quuxplusone commented 10 years ago
Bugzilla Link PR18659
Status NEW
Importance P normal
Reported by Enrico Zschemisch (ezschemi@gmail.com)
Reported on 2014-01-29 14:35:15 -0800
Last modified on 2014-02-03 12:21:49 -0800
Version trunk
Hardware PC Linux
CC hfinkel@anl.gov, llvm-bugs@lists.llvm.org, stoklund@2pi.dk
Fixed by commit(s)
Attachments muldc3.tar.bz2 (12723 bytes, application/x-bzip)
Blocks
Blocked by
See also
Created attachment 11972
Files to be attached by command line output

Trying to build LLVM 3.4, clang 3.4 and compiler-rt 3.4 on a Red Hat 5.8 AMD64
system. Python 2.5 was installed manually with default build options.

stdout from build:

0.      Program arguments: /tmp/enrico/llvm-build/Release+Asserts/bin/clang -
cc1 -triple i386-unknown-linux-gnu -emit-obj -disable-free -main-file-name
muldc3.c -mrelocation-model pic -pic-level 2 -fmath-errno -masm-verbose -
mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.17.50.0.6 -
momit-leaf-frame-pointer -coverage-file /tmp/enrico/llvm-
build/tools/clang/runtime/compiler-rt/clang_linux/full-
i386/i386/SubDir.lib/muldc3.o -resource-dir /tmp/enrico/llvm-
build/Release+Asserts/bin/../lib/clang/3.4 -isysroot /tmp/enrico/llvm-
3.4/projects/compiler-rt/SDKs/linux -internal-isystem /tmp/enrico/llvm-
3.4/projects/compiler-rt/SDKs/linux/usr/local/include -internal-isystem
/tmp/enrico/llvm-build/Release+Asserts/bin/../lib/clang/3.4/include -internal-
externc-isystem /tmp/enrico/llvm-3.4/projects/compiler-rt/SDKs/linux/include -
internal-externc-isystem /tmp/enrico/llvm-3.4/projects/compiler-
rt/SDKs/linux/usr/include -O3 -Wall -Werror -fdebug-compilation-dir
/tmp/enrico/llvm-3.4/projects/compiler-rt-3.4 -ferror-limit 19 -fmessage-length
145 -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-
diagnostics -vectorize-loops -vectorize-slp -o /tmp/enrico/llvm-
build/tools/clang/runtime/compiler-rt/clang_linux/full-
i386/i386/SubDir.lib/muldc3.o -x c /tmp/enrico/llvm-3.4/projects/compiler-
rt/lib/muldc3.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module '/tmp/enrico/llvm-
3.4/projects/compiler-rt/lib/muldc3.c'.
4.      Running pass 'Greedy Register Allocator' on function '@__muldc3'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.4 (tags/RELEASE_34/final)
Target: i386-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/muldc3-b51173.c
clang: note: diagnostic msg: /tmp/muldc3-b51173.sh
clang: note: diagnostic msg:

********************
make[5]: *** [/tmp/enrico/llvm-build/tools/clang/runtime/compiler-
rt/clang_linux/full-i386/i386/SubDir.lib/muldc3.o] Error 254
make[5]: Leaving directory `/tmp/enrico/llvm-3.4/projects/compiler-rt-3.4'
make[4]: *** [BuildRuntimeLibraries] Error 2
rm /tmp/enrico/llvm-build/Release+Asserts/lib/clang/3.4/lib/linux/.dir
make[4]: Leaving directory `/tmp/enrico/llvm-build/tools/clang/runtime/compiler-
rt'
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory `/tmp/enrico/llvm-build/tools/clang/runtime'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/tmp/enrico/llvm-build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/tmp/enrico/llvm-build/tools'
make: *** [all] Error 1
Quuxplusone commented 10 years ago

Attached muldc3.tar.bz2 (12723 bytes, application/x-bzip): Files to be attached by command line output

Quuxplusone commented 10 years ago
Are you using one of the bad GCC versions?
http://llvm.org/docs/GettingStarted.html#broken-versions-of-gcc-and-other-tools
Quuxplusone commented 10 years ago
Red Hat 5.8 has:
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-52)

which is pretty close to the one in the list:
GCC 4.1.2 20071124 (Red Hat 4.1.2-42): Suffers from the same symptoms as the
previous one. It appears to work with ENABLE_OPTIMIZED=0 (the default).

Let me try the suggest workaround and report back.
Quuxplusone commented 10 years ago

Tried it and even with the workaround I get another build error: undefined references to clang::comments:CommandTraits::registerCommentOptions() and others.