Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] my llvm environnement is screwed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sat Oct 20, 2018 2:28 am    Post subject: [solved] my llvm environnement is screwed Reply with quote

Errors:

DEPRECATION: build_always is deprecated. Combine build_by_default and build_always_stale instead.

and

src/gallium/targets/opencl/meson.build:36:0: ERROR: C++ library 'clangCodeGen' not found

Build log:
https://paste.pound-python.org/show/o4CT6iKajX7sZJHW1Bwq/

Is this worth filing a bug, or is my box faulty and needs fixing ?

emerge --info:
https://paste.pound-python.org/show/TkGYw7kr9w9lmFg6V8Ic/


Last edited by Elleni on Thu Nov 08, 2018 7:23 pm; edited 5 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30909
Location: here

PostPosted: Sat Oct 20, 2018 6:26 am    Post subject: Reply with quote

https://bugs.freedesktop.org/show_bug.cgi?id=107116
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sat Oct 27, 2018 1:53 pm    Post subject: Reply with quote

thank you fedeliallalinea :)
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sat Oct 27, 2018 3:41 pm    Post subject: Reply with quote

I had put solved to soon. I have meson-0.47.1 installed, but it still fails with the above error. I also did reinstall the mentioned meson version, but same error while emerging mesa-18.2.3. I then tried with meson-0.48.0-r2 and meson-0.48.1 without success.

Last edited by Elleni on Sat Oct 27, 2018 4:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30909
Location: here

PostPosted: Sat Oct 27, 2018 4:04 pm    Post subject: Reply with quote

Try to look this bug
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sat Oct 27, 2018 8:14 pm    Post subject: Reply with quote

I looked at it. Tried to re-emerge llvm and clang, but emerge mesa still fails.

qlist clang | grep clangCodeGen
Code:

/usr/lib/llvm/6/lib32/libclangCodeGen.so.6
/usr/lib/llvm/6/lib32/libclangCodeGen.so
/usr/lib/llvm/6/lib32/libclangCodeGen.so.6.0.1
/usr/lib/llvm/6/lib64/libclangCodeGen.so.6
/usr/lib/llvm/6/lib64/libclangCodeGen.so
/usr/lib/llvm/6/lib64/libclangCodeGen.so.6.0.1
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Wed Oct 31, 2018 5:40 pm    Post subject: Reply with quote

anyone an idea, what I could do to be able to stay up to date? Should I file a bug for this?
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Sun Nov 04, 2018 5:46 pm    Post subject: Reply with quote

Help please. Any information needed, I could provide to find a solution here? mesa-18.2.4 does not build eather.
Build Log:
https://paste.pound-python.org/show/LjsTZKJP0agphyFtCYCM/

Edit to add that I have a chroot environement to build gentoo packages for a friends old box and there it builds successfully. So apart from doing an emerge -e @world I dont have any other suitable idea howto solve this issue. Thus I would be happy to get some help here.
Back to top
View user's profile Send private message
Marlo
Veteran
Veteran


Joined: 26 Jul 2003
Posts: 1591

PostPosted: Sun Nov 04, 2018 9:34 pm    Post subject: Reply with quote

Elleni wrote:
I looked at it. Tried to re-emerge llvm and clang, but emerge mesa still fails.

qlist clang | grep clangCodeGen



qlist clang | grep clangCodeGen
Code:

/usr/lib/llvm/7/lib64/libclangCodeGen.so.7
/usr/lib/llvm/7/lib64/libclangCodeGen.so



I'm not an expert, but on my machine it works with version
llvm-7.0.0-r1 and gold.

Code:

Calculating dependencies... done!
[ebuild   R   ~] sys-devel/llvm-common-7.0.0::gentoo  0 KiB
[ebuild   R    ] media-libs/mesa-18.2.4::gentoo  USE="classic dri3 egl gallium gbm gles2 llvm lm_sensors opencl osmesa vaapi vdpau vulkan wayland xa -d3d9 -debug -gles1 -pax_kernel -pic (-selinux) -test -unwind -valgrind -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="radeonsi (-freedreno) -i915 -i965 (-imx) -intel -nouveau -r100 -r200 -r300 -r600 -radeon (-vc4) -virgl (-vivante) -vmware" 0 KiB
[ebuild   R   ~] sys-devel/llvm-7.0.0-r1:7::gentoo  USE="gold libffi ncurses xml -debug -doc -exegesis -libedit -test -xar" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" 0 KiB
[ebuild   R   ~] sys-devel/llvmgold-7::gentoo  0 KiB

Code:

alculating dependencies... done!
[ebuild   R   ~] sys-devel/clang-runtime-7.0.0:7.0.0::gentoo  USE="compiler-rt openmp sanitize -crt -libcxx" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R   ~] sys-devel/clang-7.0.0:7::gentoo  USE="static-analyzer xml -debug -default-compiler-rt -default-libcxx -doc -test (-z3)" ABI_X86="(64) -32 (-x32)" LLVM_TARGETS="AMDGPU BPF NVPTX (X86) -AArch64 -ARM -Hexagon -Lanai -MSP430 -Mips -PowerPC -Sparc -SystemZ -XCore" PYTHON_TARGETS="python2_7" 0 KiB
[ebuild   R   ~] sys-devel/clang-common-7.0.0::gentoo  0 KiB

_________________
------------------------------------------------------------------
http://radio.garden/
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Mon Nov 05, 2018 8:57 pm    Post subject: Reply with quote

Eventhough I also have installed llvm-7.0.0-r1, qlist clang | grep clangCodeGen shows:
Code:
/usr/lib/llvm/6/lib32/libclangCodeGen.so.6
/usr/lib/llvm/6/lib32/libclangCodeGen.so
/usr/lib/llvm/6/lib32/libclangCodeGen.so.6.0.1
/usr/lib/llvm/6/lib64/libclangCodeGen.so.6
/usr/lib/llvm/6/lib64/libclangCodeGen.so
/usr/lib/llvm/6/lib64/libclangCodeGen.so.6.0.1


May this in the end be a hint, why my box is not able to compile actual mesa versions?

Maybe an insane package.accept_keywords:
https://paste.pound-python.org/show/KLny9IIjHxYkag15jY8h/

and/or package.use:
https://paste.pound-python.org/show/L68wbIRcWXkjGRWdjlcG/

?

emerge --info
Code:

Portage 2.3.51 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.27-r6, 4.19.0-gentoo x86_64)
=================================================================
System uname: Linux-4.19.0-gentoo-x86_64-AMD_Ryzen_5_1600_Six-Core_Processor-with-gentoo-2.4.1
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Mon, 05 Nov 2018 21:00:01 +0000
Head commit of repository gentoo: 306de9f5f1c0742a26dd1a6ddf97328df90bc67b
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.29::dantrell-gnome
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

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

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

dantrell-gnome-3-30
    location: /var/lib/layman/dantrell-gnome-3-30
    masters: gentoo
    priority: 100

test
    location: /usr/local/portage
    masters: gentoo
    priority: 100

dantrell-gnome
    location: /var/lib/layman/dantrell-gnome
    masters: gentoo
    priority: 150

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=znver1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-O2 -march=znver1"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_CH.UTF-8"
LC_ALL="de_CH.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de de_DE el en fr fr_FR it tr"
MAKEOPTS="-j13"
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 aes alsa amd64 avx avx2 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups cxx d3d9 dbus declarative dri dri3 dts dvd dvdr eds egl elogind emboss encode evo exif fam ffmpeg flac fma3 fortran frei0r gdbm gif glamor gnome gnome-keyring gnome-online-accounts gnutls gpm gtk gtk3 gtkstyle iconv icu introspection ios ipv6 jpeg kde kipi kwallet lcms ldap libinput libnotify libsecret libtirpc llvm lm_sensors mad mmx mmxext mng mp3 mp4 mpeg mtp multilib nautilus ncurses nls nptl ocr ogg openal opencl opengl openmax openmp osmesa pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline realtime s3tc scanner sdl seccomp semantic-desktop spell spice sse sse2 sse3 sse4_1 sse4_2 sse4a ssh ssl ssse3 staging startup-notification svg tcpd theora tiff tracker truetype udev udisks unicode upower usb vaapi vdpau vhost-net vkd3d vorbis vpx vulkan wayland webrtc-aec widgets wxwidgets x264 xa xattr xcb xcomposite xml xv xvid xvmc zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext smp sse sse2 sse3 sse4_1 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de el en fr it tr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi virgl" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Mon Nov 05, 2018 10:38 pm    Post subject: Reply with quote

thunderbird fails too, so aparently my llvm is screwed somehow. I did not install llvm myself, but aparently its needed as dependency and I am ok with that, but did never touch it, so I am unable to correctly confgure it eather. :oops:

Code:
checking for llvm-config... /usr/lib/llvm/7/bin/llvm-config
 0:05.27 ERROR: The file /usr/lib64/llvm/7/bin/clang returned by `llvm-config --bindir` does not exist.
 0:05.27 clang is required to build Stylo.  Please install the necessary packages,
 0:05.27 run `mach bootstrap`, or add --disable-stylo to your mozconfig.
 0:05.27
 0:05.29 *** Fix above errors and then restart with\
 0:05.29                "/usr/bin/gmake -f client.mk build"
 0:05.30 gmake: *** [client.mk:149: configure] Error 1
 * ERROR: mail-client/thunderbird-60.3.0::gentoo failed (configure phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 124:  Called src_configure
 *   environment, line 5125:  Called die
 * The specific snippet of code:
 *       SHELL="${SHELL:-${EPREFIX}/bin/bash}" MOZ_NOSPAM=1 ./mach configure || die
 *
 * If you need support, post the output of `emerge --info '=mail-client/thunderbird-60.3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-client/thunderbird-60.3.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/mail-client/thunderbird-60.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-client/thunderbird-60.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-client/thunderbird-60.3.0/work/thunderbird-60.3.0'
 * S: '/var/tmp/portage/mail-client/thunderbird-60.3.0/work/thunderbird-60.3.0'
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Tue Nov 06, 2018 3:03 am    Post subject: Reply with quote

What is the output of ls -l /usr/?
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Tue Nov 06, 2018 5:38 am    Post subject: Reply with quote

Hi Hu,

thanks for looking into this. It is:
Code:

insgesamt 588
drwxr-xr-x   2 root root 126976  6. Nov 06:34 bin
drwxr-xr-x   3 root root   4096 27. Okt 17:24 etc
drwxr-xr-x 547 root root  65536  6. Nov 06:30 include
lrwxrwxrwx   1 root root      5 29. Mai 2014  lib -> lib64
drwxr-xr-x  74 root root  98304  6. Nov 06:30 lib32
drwxr-xr-x 331 root root 229376  6. Nov 06:30 lib64
drwxr-xr-x  29 root root  12288  6. Nov 05:35 libexec
drwxr-xr-x   8 root root   4096 26. Okt 2017  local
drwxr-xr-x 173 root root   4096  5. Nov 22:03 portage
drwxr-xr-x   3 root root  12288  6. Nov 06:29 sbin
drwxr-xr-x 518 root root  20480  5. Nov 23:04 share
drwxr-xr-x  58 root root   4096  6. Nov 04:00 src
lrwxrwxrwx   1 root root      8 29. Mai 2014  tmp -> /var/tmp
drwxr-xr-x   6 root root   4096 29. Mai 2014  x86_64-pc-linux-gnu


Right now I am doing an emerge -eav world --keep-going
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 501

PostPosted: Tue Nov 06, 2018 5:41 pm    Post subject: Re: my llvm environnement is screwed Reply with quote

Elleni wrote:
src/gallium/targets/opencl/meson.build:36:0: ERROR: C++ library 'clangCodeGen' not found

This is what happens with mesa when you have llvm without a matching clang.
You have keyworded llvm ~amd64 to get llvm:7, have you done the same for sys-devel/clang:7 to go with it, it's not in the package.keywords you posted?
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Wed Nov 07, 2018 8:28 pm    Post subject: Reply with quote

Ralphred, thank you so much! That was it. After adding clang to package.accept_keywords emerge asked for some other packages to add, namely

Code:
# required by sys-devel/clang-runtime-7.0.0::gentoo[openmp]
# required by sys-devel/clang-7.0.0::gentoo
# required by sys-libs/compiler-rt-7.0.0::gentoo[clang]
=sys-libs/libomp-7.0.0 ~amd64
# required by sys-devel/clang-runtime-7.0.0::gentoo[compiler-rt]
# required by sys-devel/clang-7.0.0::gentoo
# required by sys-libs/compiler-rt-sanitizers-7.0.0::gentoo[clang]
=sys-libs/compiler-rt-7.0.0 ~amd64
# required by sys-devel/clang-7.0.0::gentoo
# required by sys-libs/compiler-rt-7.0.0::gentoo[clang]
=sys-devel/clang-runtime-7.0.0 ~amd64
# required by sys-devel/clang-runtime-7.0.0::gentoo[compiler-rt,sanitize]
# required by sys-devel/clang-7.0.0::gentoo
# required by sys-libs/compiler-rt-7.0.0::gentoo[clang]
=sys-libs/compiler-rt-sanitizers-7.0.0 ~amd64


And after that I was able to compile mesa-18.2.4 :D

Now I would like to go back to stable llvm and clang if not needed in unstable versions by any of my installed packages. How could I achieve this? I tried to remove ~amd64 from llvm, clang and above packages and issue an emerge world -uDNav but that would not downgrade clang. What would be the correct emerge command to achieve this? Do I have to unmerge llvm and clang followed by an emerge --depclean to get rid of their dependencies and then try to emerge world after that?
Back to top
View user's profile Send private message
Ralphred
Guru
Guru


Joined: 31 Dec 2013
Posts: 501

PostPosted: Thu Nov 08, 2018 5:09 am    Post subject: Reply with quote

You have to unmerge the slot so
Code:
emerge --unmerge -a llvm:7

Rinse and repeat for the other slotted packages around clang. It's a bit involved but I am glad they are slotted, I use :8 sometimes for testing vulkan stuff.
I'm not that up on how llvm et al works, dunno if mesa will have a fit if you don't recompile it after dropping the :7 slot.
Back to top
View user's profile Send private message
Elleni
Veteran
Veteran


Joined: 23 May 2006
Posts: 1270

PostPosted: Thu Nov 08, 2018 7:23 pm    Post subject: Reply with quote

I realized that for new mesa I need llvm7 anyways and as I do game from time to time and thus also have vulkan activated I decided to let llvm and clang on unstable branch. So once again thank you very much for finding my error in accept_keywords file. I put this topic on solved :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum