Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759349 - sys-devel/clang-11.0.0: '/var/tmp/portage/sys-devel/clang-11.0.0/image/usr/lib/llvm/11/lib/clang': No such file or directory
Summary: sys-devel/clang-11.0.0: '/var/tmp/portage/sys-devel/clang-11.0.0/image/usr/li...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-10 14:19 UTC by Freddie Witherden
Modified: 2020-12-22 12:36 UTC (History)
4 users (show)

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


Attachments
Build log (build.log.xz,89.73 KB, application/x-xz)
2020-12-10 14:20 UTC, Freddie Witherden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Freddie Witherden 2020-12-10 14:19:32 UTC
When attempting to recompile Clang on a ~AMD64 system with new USE flags for Python 3.8 as:

[ebuild   R    ] sys-devel/clang-10.0.1:10::gentoo  USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -default-lld -doc -test" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 (-ARC) -ARM (-AVR) -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_8* -python3_6 -python3_7* -python3_9" 0 KiB

I get an error during the install phase saying:

-- Installing: /var/tmp/portage/sys-devel/clang-11.0.0/image/usr/lib/llvm/11/lib32/libclang.so
mv: cannot stat '/var/tmp/portage/sys-devel/clang-11.0.0/image/usr/lib/llvm/11/lib/clang': No such file or directory

Build log is attached.

Reproducible: Always




# emerge --info
Portage 3.0.12 (python 3.8.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32-r5, 5.7.8-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.7.8-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i7-6770HQ_CPU_@_2.60GHz-with-glibc2.2.5
KiB Mem:    32776744 total,  14088128 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 10 Dec 2020 14:00:02 +0000
Head commit of repository gentoo: 742c96f8422f8b3fa833a83efce4af2eed7cf2f1
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.19.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo, 2.35.1-r1::gentoo
sys-devel/gcc:            10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r5::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts: 
sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-w -fallow-argument-mismatch"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli color-management crypt cups dbus declarative djvu dri dri3 dts dvd dvdr elogind emboss encode exif fftw flac fortran gdbm gif glamor glib gtk3 gui iconv icu ipv6 java jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc logrotate mad mng mp3 mp4 mpeg mpi multilib ncurses networkmanager nls nptl nvme ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 raw readline s3tc sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd thunderbolt tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan widgets wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1 sse4_2 avx avx2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="wacom libinput keyboard mouse" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Freddie Witherden 2020-12-10 14:20:08 UTC
Created attachment 677572 [details]
Build log
Comment 2 Joshua Clayton 2020-12-15 14:17:54 UTC
Getting the same install fail.
Also after switching over to python38. 
I (perhaps foolishly) tried emerge -C clang before a second attempt. It still fails. 

The directory:
"/var/tmp/portage/sys-devel/clang-11.0.0/image/usr/lib/llvm/11/lib32/clang" does exist, but
 "/var/tmp/portage/sys-devel/clang-11.0.0/image/usr/lib/llvm/11/lib/clang"  does not.
Comment 3 Joshua Clayton 2020-12-18 14:09:26 UTC
From what I understand in the line that fails:
mv "${ED}"/usr/lib/llvm/${SLOT}/$(get_libdir)/clang "${ED}"/usr/include/clangrt || die
$(get_libdir) should return "lib32" but for some reason it does not.
This failure is in the gentoo ebuild toolkit, not in the clang build system.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-12-18 14:24:24 UTC
This looks like incomplete 17.1 migration and/or local hackery.  If you don't hack libdir locally, try rebuilding everything installing CMake files (emerge -1v /usr/share/cmake), or your whole system (emerge -1e @world).
Comment 5 Joshua Clayton 2020-12-20 14:50:33 UTC
emerge -1v /usr/share/cmake didn't work.
Same failure.
Now starting a full emerge  -e @world
Comment 6 Joshua Clayton 2020-12-22 12:09:49 UTC
Well, emerge -e world made it about half way.
But llvm 11 was rebuilt.
I can't say for sure it that what what did it, but its very pausible, cosidering the clang build is deoendent directly on llvm.
After that clang 11 build succeeds for me.