Bug#679809: crashes compiling shogun

Soeren Sonnenburg sonne at debian.org
Sun Jul 1 17:23:15 UTC 2012


Package: clang
Version: 3.1-8
Severity: serious

it crashes in various ways resulting in libm not being detected:


+ cd shogun-lua_modular
+ ./configure --disable-cpudetection --prefix=/usr --enable-glpk --enable-readline --disable-svm-light --enable-hdf5 --enable-json --enable-xml --enable-snappy --enable-lzo --enable-gzip --enable-bzip2 --enable-lzma --cc=clang --cxx=clang++ --interfaces=lua_modular
Running configure for SHOGUN version 1.1.0
Detected Operating System: Linux
Detected Host Architecture: ppc
Checking for C Compiler ... clang 4.2.1
Checking for C Compiler flags ... -fPIC -g -Wall -O2
Checking for C++ Compiler ... clang 4.2.1
Checking for C++ Compiler flags ... -fPIC -g -Wall -O2
Checking for makedepend ... gcc -MM
Checking for Python ... 2.7.3
Checking for pkg-config ... 0.26
Checking for GNU Make ... GNU Make 3.81
Checking for Doxygen ... 1.8.1.1
Checking for CPU type ... POWER5+ (gs)
./configure: line 2462: test: : integer expression expected
./configure: line 2462: test: : integer expression expected
./configure: line 2470: test: : integer expression expected
./configure: line 2470: test: : integer expression expected
./configure: line 2478: test: : integer expression expected
./configure: line 2478: test: : integer expression expected
./configure: line 2485: test: : integer expression expected
Checking for GCC & CPU optimization abilities ... none
0  libLLVM-3.1.so.1 0x0fa58d6c
1  libLLVM-3.1.so.1 0x0fa594b0
2                   0x00100364 __kernel_sigtramp32 + 0
3  clang            0x10c377d4
4  clang            0x10b51c6c clang::Lexer::LexTokenInternal(clang::Token&) + 944
5  clang            0x104265c8
6  clang            0x10b53750 clang::Lexer::LexTokenInternal(clang::Token&) + 7828
7  clang            0x104265c8
8  clang            0x10b53504 clang::Lexer::LexTokenInternal(clang::Token&) + 7240
9  clang            0x104265c8
10 clang            0x10420eb0 clang::Parser::ExpectAndConsume(clang::tok::TokenKind, unsigned int, char const*, clang::tok::TokenKind) + 932
11 clang            0x1042f600 clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 2460
12 clang            0x1043364c clang::Parser::ParseSimpleDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&, unsigned int, clang::SourceLocation&, clang::ParsedAttributes&, bool, clang::Parser::ForRangeInit*) + 468
13 clang            0x10433848 clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&, unsigned int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 220
14 clang            0x10423ae4 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 1152
15 clang            0x10424328 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 260
16 clang            0x1041aef4 clang::ParseAST(clang::Sema&, bool, bool) + 316
17 clang            0x101c94fc clang::ASTFrontendAction::ExecuteAction() + 248
18 clang            0x102e3440 clang::CodeGenAction::ExecuteAction() + 48
19 clang            0x101c9edc clang::FrontendAction::Execute() + 200
20 clang            0x101aef88 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 336
21 clang            0x1019726c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1044
22 clang            0x101908ec cc1_main(char const**, char const**, char const*, void*) + 4884
23 clang            0x1018da84 main + 1796
24 libc.so.6        0x0e96b80c
25 libc.so.6        0x0e96b9d0
Stack dump:
0.	Program arguments: /usr/bin/clang -cc1 -triple powerpc-unknown-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name configure-23193-18560.c -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-linker-version 2.22 -momit-leaf-frame-pointer -resource-dir /usr/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.1/include -internal-isystem /usr/include/clang/3.1/include/ -internal-externc-isystem  -internal-externc-isystem /usr/include/powerpc-linux-gnu -internal-externc-isystem /usr/include/powerpc-linux-gnu -internal-externc-isystem /usr/include -fno-dwarf-directory-asm -fdebug-compilation-dir /build/buildd-shogun_1.1.0-5-powerpc-ndvQqH/shogun-1.1.0/shogun-lua_modular -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-signed-char -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -o /tmp/configure-23193-18560-iWBQhe.s -x c ./configure-23193-18560.c 
1.	<unknown> parser at unknown location
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
clang: error: unable to execute command: Illegal instruction
clang: note: diagnostic msg: Error generating preprocessed source(s).
./configure: line 2831: ././configure-1314-18560.o: No such file or directory
Checking for Word Size ... 127 bit
Checking for Math support (-lm) ... no

Error: could not find math library (libm)

Check configure.log if you do not understand why it failed.
The last 20 lines of configure.log are shown below

19 clang            0x101c9edc clang::FrontendAction::Execute() + 200
20 clang            0x101aef88 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 336
21 clang            0x1019726c clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1044
22 clang            0x101908ec cc1_main(char const**, char const**, char const*, void*) + 4884
23 clang            0x1018da84 main + 1796
24 libc.so.6        0x0e96b80c
25 libc.so.6        0x0e96b9d0
Stack dump:
0.	Program arguments: /usr/bin/clang -cc1 -triple powerpc-unknown-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name configure-23193-18560.c -pic-level 2 -mdisable-fp-elim -mconstructor-aliases -target-linker-version 2.22 -momit-leaf-frame-pointer -g -resource-dir /usr/bin/../lib/clang/3.1 -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.1/include -internal-isystem /usr/include/clang/3.1/include/ -internal-externc-isystem  -internal-externc-isystem /usr/include/powerpc-linux-gnu -internal-externc-isystem /usr/include/powerpc-linux-gnu -internal-externc-isystem /usr/include -O2 -Wall -fno-dwarf-directory-asm -fdebug-compilation-dir /build/buildd-shogun_1.1.0-5-powerpc-ndvQqH/shogun-1.1.0/shogun-lua_modular -ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-signed-char -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -o /tmp/configure-23193-18560-Zmijdc.s -x c ./configure-23193-18560.c 
1.	<unknown> parser at unknown location
clang: error: unable to execute command: Illegal instruction
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information.
clang: error: unable to execute command: Illegal instruction
clang: note: diagnostic msg: Error generating preprocessed source(s).
no object file created


see 

https://buildd.debian.org/status/fetch.php?pkg=shogun&arch=powerpc&ver=1.1.0-5&stamp=1341099156

for the full log

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5.0-rc3-sonne+ (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clang depends on:
ii  libc6                2.13-34
ii  libclang-common-dev  3.1-8
ii  libffi5              3.0.10-3
ii  libgcc1              1:4.7.1-2
ii  libllvm3.1           3.1-1
ii  libstdc++6           4.7.1-2
ii  libstdc++6-4.6-dev   4.6.3-8

Versions of packages clang recommends:
ii  llvm-3.1-dev  3.1-1
ii  python        2.7.3~rc2-1

clang suggests no packages.

-- no debconf information





More information about the Pkg-llvm-team mailing list