gentoo / gentoo-rust

[MIRROR] Rust packages
https://gitweb.gentoo.org/repo/proj/rust.git
80 stars 52 forks source link

rust-0.8.ebuild : LibraryDependencies.inc file not found #3

Closed eliovir closed 11 years ago

eliovir commented 11 years ago

Hi,

Few days ago, I successfully installed rust (version 0.7) from the rust overlay. But I can not install the last version. emerge fails with:

...
llvm[3]: Compiling WinCOFFStreamer.cpp for Release+Asserts build
llvm[3]: Building Release+Asserts Archive Library libLLVMMC.a
make[3] : on quitte le répertoire « /var/tmp/portage/dev-lang/rust-0.8/work/rust-0.8/x86_64-unknown-linux-gnu/llvm/lib/MC »
make[2] : on quitte le répertoire « /var/tmp/portage/dev-lang/rust-0.8/work/rust-0.8/x86_64-unknown-linux-gnu/llvm/lib »
make[2] : on entre dans le répertoire « /var/tmp/portage/dev-lang/rust-0.8/work/rust-0.8/x86_64-unknown-linux-gnu/llvm/tools/llvm-config »
llvm[2]: Constructing LLVMBuild project information.
Usage: llvm-build [options]

llvm-build: error: invalid native target: 'x86_64' (not in project)
llvm[2]: Building llvm-config BuildVariables.inc file.
llvm[2]: Compiling llvm-config.cpp for Release+Asserts build
/var/tmp/portage/dev-lang/rust-0.8/work/rust-0.8/src/llvm/tools/llvm-config/llvm-config.cpp:45:35: erreur fatale: LibraryDependencies.inc : Aucun fichier ou dossier de ce type
compilation terminée.
/bin/rm: impossible de supprimer « /var/tmp/portage/dev-lang/rust-0.8/work/rust-0.8/x86_64-unknown-linux-gnu/llvm/tools/llvm-config/Release+Asserts/llvm-config.d.tmp »: Aucun fichier ou dossier de ce type

I tried manually (./configure; make) and got the same result.

Then, I tried another method:

I've got the same problem.

After that, I succeeded emerge rust-0.7 (without an installed llvm), and it works.

emerge --info :

Portage 2.2.1 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo x86_64)
=================================================================
System uname: Linux-3.7.10-gentoo-x86_64-AMD_Processor_model_-with-gentoo-2.2
KiB Mem:     3931220 total,   1304552 free
KiB Swap:    3903756 total,   3903756 free
Timestamp of tree: Wed, 18 Sep 2013 18:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo xwing enlightenment rust
Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://gentoo.imj.fr/pub/gentoo/ http://gentoo.mirror.sdv.fr/ ftp://mir1.ovh.net/gentoo-distfiles/"
LANG="fr_FR@euro"
LC_ALL="fr_FR@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/xwing /usr/portage/local/layman/enlightenment /usr/portage/local/layman/rust"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal hddtemp iconv ipv6 jingle jpeg lcms libnotify lm_sensors mad mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds python_abis_2.7 qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd thread threads tiff truetype udev udisks unicode upower usb vim-syntax virtualbox vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="auth_basic autoindex authz_host deflate dir filter log_config mime rewrite setenvif" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" ENLIGHTENMENT_MODULES="backlight clock comp conf-applications conf-dialogs conf-display conf-edgebindings conf-interaction conf-intl conf-keybindings conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers cpufreq dropshadow everything fileman fileman-opinfo gadman ibar ibox illume2 mixer msgbus notification pager quickaccess shot start syscon systray tasks temperature tiling winlist wizard xkbswitch" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr eo en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="radeon r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

NB: I've seen some configure options, which can enhance the ebuild:

    --disable-docs                   don't build documentation (if we do not have pandoc)
    --enable-ccache                  invoke gcc/clang via ccache to reuse object files between builds
    --llvm-root=[<none>]             set LLVM root (maybe to use installed llvm)

Other idea, using portage and distfiles to download the stage (dl/rust-stage0-2013-06-23-f827561-linux-x86_64-caea3402663334d0a3967c21f58a860c060d5474.tar.bz2 for rust-0.7). But this is written in snapshots.txt for each platform.

cnd commented 11 years ago

so since

I tried manually (./configure; make) and got the same result.

we should provide this bug to https://github.com/mozilla/rust/issues?state=open

Please open it there and link with this bug. I will try look more into it tomorrow.

cnd commented 11 years ago

By the way your config is pretty outdated. Do you use stable Gentoo? It could be GCC 4.6.3 issue but it's just random guess, we need to contact Mozilla team about it.

eliovir commented 11 years ago

I've updated to GCC 4.7.3-r1. I've got the same problem.

So, this issue is closed.