Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[SOLVED] clang 9.0.1 fails to compile

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
holm74
n00b
n00b
Posts: 25
Joined: Wed Nov 21, 2007 9:03 am

[SOLVED] clang 9.0.1 fails to compile

  • Quote

Post by holm74 » Tue Jun 16, 2020 6:16 pm

Hi there,

for about 6 weeks I try to compile clang 9.0.1, but if fails. If fails since I switched from python3.6 to python3.7 (globally):

emerge -av sys-devel/clang-9.0.1 gives me

Code: Select all

sys-devel/clang-9.0.1:9::gentoo  USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -doc -test" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_7* -python3_6* (-python3_8) (-python2_7%)
After compiling everything it ends with

Working in BUILD_DIR: "/var/tmp/portage/sys-devel/clang-9.0.1/work/x/y/clang-abi_x86_32.x86"
[0/1] Install the project...
. . . a lot of files for "Installing"

Installing: /var/tmp/portage/sys-devel/clang-9.0.1/image/usr/lib/llvm/9/bin/hmaptool
mv: der Aufruf von stat für '/var/tmp/portage/sys-devel/clang-9.0.1/image/usr/lib/llvm/9/lib/clang' is not possible: File or Directory not found (translated ...)
* ERROR: sys-devel/clang-9.0.1::gentoo failed (install phase):

emerge --info '=sys-devel/clang-9.0.1::gentoo' gives me

Code: Select all

Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.3.0, glibc-2.30-r8, 5.4.28-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.4.28-gentoo-x86_64-Intel-R-_Core-TM-_i7-5930K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    65782248 total,  27158192 free
KiB Swap:   41943036 total,  41939708 free
Timestamp of repository gentoo: Mon, 15 Jun 2020 14:15:01 +0000
Head commit of repository gentoo: ca9eac3f3e8f3e2776005b195cdd0aca44cb114d
Head commit of repository sakaki-tools: 8240ad387fe20d4c6e64372bd336a80c6319b6a2

sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            8.4.0::gentoo, 9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

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

aegypius
    location: /var/lib/layman/aegypius
    masters: gentoo
    priority: 50

sakaki-tools
    location: /usr/local/portage/sakaki-tools
    sync-type: git
    sync-uri: https://github.com/sakaki-/sakaki-tools.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/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=core-avx2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=13 --load-average=12"
ENV_UNSET="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="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j13 -l12"
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 Xaw3d a52 aac aalib acl acpi activefilter activities aes alsa amd64 apache2 apm artswrappersuid asf avx avx2 bash-completion berkdb bluetooth branding browserplugin bzip2 bzlib cairo cdda cddb cdr cgi cgid cli crypt css ctype cuda dbus declarative dga dhcp directfb dri dts dv dvd dvdr dvdread emacs emboss encode exif fame fbcon ffmpeg flac fma3 fortran fpx freetype ftp gd gdbm ggi gif gimpprint gnutls gphoto2 gpm gtk hal i8x0 iconv icu idea ieee1394 imagemagick intel ipv6 irmc jack java javascript jpeg jpeg2k kde kdeenablefinal kipi kwallet lcms ldap leim libcaca libclamav libglvnd libnotify libsamplerate libtirpc lm_sensors logrotate lzo mad math mbox mjpeg mmx mmxext mng mozsvg mp3 mp4 mpeg mppe-mppc multilib musepack musicbrainz mysql nas ncurses network nls nptl nptlonly ogg opengl openmp pam pango pcmcia pcre pdf phonon php plasma pmu png pnp policykit popcnt ppds pvm python_single_target3_6 qml qt3support qt5 radius rdesktop readline real rtc sdl seccomp semantic-desktop session shared slp sndfile speex spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg syslog systemd tcpd tetex theora threads tidy tiff timidity truetype truetype-fonts type1-fonts udev udisks unicode upower usb vcd vorbis widgets win32codecs wmf wxwidgets wxwindows x264 xattr xcb xml xml2 xorg xprint xv xvid xvmc yv12 zlib" ABI_X86="64 32" 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="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NGINX_MODULES_HTTP="access addition auth_basic autoindex browser charset empty_gif fastcgi geo grpc gzip limit_conn limit_req map memcached mirror proxy referer rewrite scgi split_clients ssi upstream_hash upstream_ip_hash upstream_keepalive upstream_least_conn upstream_zone userid uwsgi auth_pam dav fancyindex geoip" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, INSTALL_MASK, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-devel/clang-9.0.1::gentoo was built with the following:
USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -doc -test" ABI_X86="32 (64) (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -RISCV -Sparc -SystemZ -WebAssembly -XCore" PYTHON_SINGLE_TARGET="python3_6 -python2_7 -python3_7"
FEATURES="ebuild-locks ipc-sandbox config-protect-if-modified pid-sandbox protect-owned unmerge-orphans distlocks usersandbox strict userfetch xattr preserve-libs parallel-fetch binpkg-dostrip unknown-features-warn sandbox assume-digests network-sandbox unmerge-logs binpkg-docompress multilib-strict merge-sync binpkg-logs userpriv usersync sfperms news fixlafiles"

BTW: going into /var/tmp/portage/sys-devel/clang-9.0.1/image/usr/lib/llvm/9 I will find only the following folders:

bin
lib32
libexec
share




Any idea what is going wrong?


Thanks for any ideas, solutions, etc. in advance,

Holm

Code tags added by NeddySeagoon
Last edited by holm74 on Wed Jun 17, 2020 5:38 pm, edited 1 time in total.
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

  • Quote

Post by mike155 » Tue Jun 16, 2020 9:55 pm

Please surround any output you show in your posts with

Code: Select all

...[/code ] tags. It will be much easier to read!  :) 

A wild guess: a couple of months ago, we had to migrate from 17.0 profiles to 17.1. Did you follow all steps in the [url=https://www.gentoo.org/support/news-items/2019-06-05-amd64-17-1-profiles-are-now-stable.html]news item[/url]? Did you encounter any problems? Or did you just switch the profile using "eselect profile"?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Jun 16, 2020 10:30 pm

holm74,

Code: Select all

ABI_X86="64 32" 
Do you really need everything built for 32 bit and 64 bit?
ABI_X86="32" should be added sparing on a per packages basis.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
holm74
n00b
n00b
Posts: 25
Joined: Wed Nov 21, 2007 9:03 am

  • Quote

Post by holm74 » Wed Jun 17, 2020 5:40 pm

Hi there,

thanks, it is working.


@mike155 : sorry that I forgot to put everything into

Code: Select all

. Next time I will be better. I am pretty sure that I followed everything when I switched from profile 17.0 to 17.1 But as you wrote: it is a while ago, I can not proof it anymore. That was not the problem

@NeddySeagoon: thanks to your sharp eyes: my make.conf contained an old abi_x86_32 use flag. I don't need it anymore globally. I could emerge without any problems.


So problem is fixed. Damn that I did not see it for weeks. 

Thanks to everybody,


Have a nice day and stay healthy,

Holm
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic