Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556786 - dev-lang/rust-1.1.0 build fails
Summary: dev-lang/rust-1.1.0 build fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Jauhien Piatlicki (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-05 21:53 UTC by Burak Sezer
Modified: 2015-09-10 21:12 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=dev-lang/rust-1.1.0::gentoo' (info,4.69 KB, text/plain)
2015-08-05 21:53 UTC, Burak Sezer
Details
build.log for dev-lang/rust-1.1.0 (build.log,383.25 KB, text/plain)
2015-08-05 21:57 UTC, Burak Sezer
Details
build log for -system-llvm (build.log,522.05 KB, text/x-log)
2015-08-05 22:12 UTC, Burak Sezer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Burak Sezer 2015-08-05 21:53:23 UTC
Created attachment 408362 [details]
emerge --info '=dev-lang/rust-1.1.0::gentoo'

Hello,

I'm trying to compile dev-lang/rust-1.1.0 on my ~amd64 box but I keep getting the following error:

make[1]: Leaving directory '/var/tmp/portage/dev-lang/rust-1.1.0/work/rustc-1.1.0/i686-unknown-linux-gnu/rt/jemalloc'
100 14.7M  100 14.7M    0     0  1141k      0  0:00:13  0:00:13 --:--:-- 1601k
determined most recent snapshot: rust-stage0-2015-04-27-857ef6e-linux-i386-0bc8cffdce611fb71fd7d3d8e7cdbfaf748a4f16.tar.bz2
got download with ok hash
opening snapshot dl/rust-stage0-2015-04-27-857ef6e-linux-i386-0bc8cffdce611fb71fd7d3d8e7cdbfaf748a4f16.tar.bz2
extracting rust-stage0/bin/rustc
if [ -e "i686-unknown-linux-gnu/stage0/bin/rustc" ]; then touch "i686-unknown-linux-gnu/stage0/bin/rustc"; else echo "ERROR: snapshot i686-unknown-linux-gnu/stage0/bin/rustc not found"; exit 1; fi
 * ERROR: dev-lang/rust-1.1.0::gentoo failed (compile phase):
 *   emake failed

I send emerge --info output for that package and detailed build log as attachment. I can provide any viable information to reproduce and fix the issue.
Comment 1 Burak Sezer 2015-08-05 21:57:29 UTC
Created attachment 408364 [details]
build.log for dev-lang/rust-1.1.0
Comment 2 Burak Sezer 2015-08-05 22:07:44 UTC
I just tried to install the package without "system-llvm" flag but it keeps failing. The new error like the following:

/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVMMCDisassembler
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /var/tmp/portage/dev-lang/rust-1.1.0/work/rustc-1.1.0/i686-unknown-linux-gnu/llvm/Release/lib/libLLVMX86Info.a when searching for -lLLVMX86Info
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libLLVMX86Info.a when searching for -lLLVMX86Info
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libLLVMX86Info.a when searching for -lLLVMX86Info
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVMX86Info
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /var/tmp/portage/dev-lang/rust-1.1.0/work/rustc-1.1.0/i686-unknown-linux-gnu/llvm/Release/lib/libLLVMX86AsmPrinter.a when searching for -lLLVMX86AsmPrinter
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libLLVMX86AsmPrinter.a when searching for -lLLVMX86AsmPrinter
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libLLVMX86AsmPrinter.a when searching for -lLLVMX86AsmPrinter
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVMX86AsmPrinter
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /var/tmp/portage/dev-lang/rust-1.1.0/work/rustc-1.1.0/i686-unknown-linux-gnu/llvm/Release/lib/libLLVMMC.a when searching for -lLLVMMC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libLLVMMC.a when searching for -lLLVMMC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libLLVMMC.a when searching for -lLLVMMC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVMMC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /var/tmp/portage/dev-lang/rust-1.1.0/work/rustc-1.1.0/i686-unknown-linux-gnu/llvm/Release/lib/libLLVMX86Utils.a when searching for -lLLVMX86Utils
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libLLVMX86Utils.a when searching for -lLLVMX86Utils
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libLLVMX86Utils.a when searching for -lLLVMX86Utils
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVMX86Utils
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /var/tmp/portage/dev-lang/rust-1.1.0/work/rustc-1.1.0/i686-unknown-linux-gnu/llvm/Release/lib/libLLVMCore.a when searching for -lLLVMCore
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libLLVMCore.a when searching for -lLLVMCore
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libLLVMCore.a when searching for -lLLVMCore
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVMCore
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /var/tmp/portage/dev-lang/rust-1.1.0/work/rustc-1.1.0/i686-unknown-linux-gnu/llvm/Release/lib/libLLVMSupport.a when searching for -lLLVMSupport
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../libLLVMSupport.a when searching for -lLLVMSupport
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libLLVMSupport.a when searching for -lLLVMSupport
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lLLVMSupport
collect2: error: ld returned 1 exit status

error: aborting due to previous error
/var/tmp/portage/dev-lang/rust-1.1.0/work/rustc-1.1.0/mk/target.mk:162: recipe for target 'i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/stamp.rustc_llvm' failed
make: *** [i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/stamp.rustc_llvm] Error 101
make: *** Waiting for unfinished jobs....
info: now are following matches for liblog-*.so libraries:
i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-gentoo-stable.so
info: now are following matches for liblog-*.rlib libraries:
i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/liblog-gentoo-stable.rlib
info: now are following matches for libfmt_macros-*.so libraries:
i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/libfmt_macros-gentoo-stable.so
info: now are following matches for libfmt_macros-*.rlib libraries:
i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/libfmt_macros-gentoo-stable.rlib
info: now are following matches for libgetopts-*.so libraries:
i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/libgetopts-gentoo-stable.so
info: now are following matches for libgetopts-*.rlib libraries:
i686-unknown-linux-gnu/stage0/lib/rustlib/i686-unknown-linux-gnu/lib/libgetopts-gentoo-stable.rlib
 * ERROR: dev-lang/rust-1.1.0::gentoo failed (compile phase):
 *   emake failed

I send a detailed build log as attachment for this case.
Comment 3 Burak Sezer 2015-08-05 22:12:31 UTC
Created attachment 408366 [details]
build log for -system-llvm
Comment 4 Jauhien Piatlicki (RETIRED) gentoo-dev 2015-08-06 21:28:32 UTC
@Burak Sezer: as a temporary solution, please, use dev-lang/rust-bin.

I asked other people to investigate this bug, I'll look at it in the next week.
Comment 5 Jauhien Piatlicki (RETIRED) gentoo-dev 2015-08-18 12:11:00 UTC
You have something wrong with arch, so rust and llvm try to build for x86. That's strange. Please, try to reproduce this with rust-1.2. It can be something related to multilib settings.
Comment 6 Burak Sezer 2015-08-18 12:18:13 UTC
Hello,

Thank you. I will try to reproduce the issue with rust 1.2 as soon as possible. Probably this weekend.
Comment 7 Burak Sezer 2015-09-10 21:11:36 UTC
Hey guys,

It seems to work fine right now. Don't worry.