Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clang & Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
fragment
n00b
n00b


Joined: 08 Mar 2013
Posts: 26

PostPosted: Tue Mar 26, 2013 12:27 pm    Post subject: Clang & Gentoo Reply with quote

Clang 3.3 shows awesome results: http://www.phoronix.com/scan.php?page=news_item&px=MTMzNjE

Perhaps, soon will come time to migrate to Clang.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8706
Location: ~Brussels - Belgique

PostPosted: Tue Mar 26, 2013 12:33 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=408963 ;)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Mar 26, 2013 12:52 pm    Post subject: Reply with quote

XavierMiller wrote:
https://bugs.gentoo.org/show_bug.cgi?id=408963 ;)


*subscribed*

thanks for the link :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Wed Apr 10, 2013 8:19 pm    Post subject: Reply with quote

Anyone using clang as their default compiler that wants to share their not-building list?

Code:
# Use GCC
# System
dev-libs/openssl gcc
dev-libs/elfutils gcc
sys-devel/binutils gcc
sys-fs/e2fsprogs gcc
sys-libs/glibc gcc
sys-apps/busybox gcc

# World
sci-libs/fftw gcc
app-cdr/cdrtools gcc
app-text/recode gcc
media-libs/id3lib gcc
dev-scheme/guile gcc
app-admin/gam-server gcc
sys-fs/mtools gcc
dev-lang/spidermonkey gcc
app-shells/zsh gcc
media-sound/ncmpcpp gcc
sys-boot/syslinux gcc
app-accessibility/at-spi2-atk gcc
app-crypt/gnupg gcc
media-gfx/gimp gcc
media-plugins/gimp-gmic gcc
kde-base/libkdcraw gcc
net-libs/glib-networking gcc


I was quite surprised how much built. I did do a clang rebuild a while ago half way
through 4.7+lto testing but managed to get some illegal hardware instructions for
a couple programs. I found some info from BSD mailing list about some issues with
clang and -march=native on a core2 machine and decided to go with -march=core2
-mtune=core2 -O3 -pipe and everything is running good, no illegal instructions this
time.

I look forward to clang 3.3 release :)
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1553
Location: Adelaide/Australia

PostPosted: Mon Apr 29, 2013 11:01 am    Post subject: Reply with quote

I performed a clean install of Gentoo x86_64 in a VirtualBox VM and then changed to using Clang.
This is a bare-bones system, with no X, nothing other than emacs, eix, layman and the minimum necessary to establish a functional system.

I rebuild world (emerge --emptytree --keep-going world) and the following programs fail to compile, unless I specifically compile them with gcc.
Code:
=app-crypt/gnupg-2.0.19         gcc
=dev-lang/spidermonkey-1.8.5-r4 gcc
=dev-libs/elfutils-0.149        gcc
=dev-libs/klibc-1.5.20          gcc
=dev-libs/libgcrypt-1.5.0-r2    gcc
=dev-libs/openssl-1.0.1c        gcc
=sys-apps/tcp-wrappers-7.6-r8   gcc
=sys-boot/grub-0.97-r12         gcc
=sys-devel/binutils-2.22-r1     gcc
=sys-fs/e2fsprogs-1.42.7        gcc
=sys-libs/gpm-1.20.6            gcc

Oh,
Code:
# eix --installed clang
[I] sys-devel/clang
     Available versions:  (~)2.8-r3 (~)2.9-r1 (~)3.0-r4 (~)3.1-r5 (~)3.2 **9999 {{debug kernel_FreeBSD multitarget python python_targets_pypy1_9 python_targets_pypy2_0 python_targets_python2_6 python_\
targets_python2_7 +static-analyzer (+)system-cxx-headers test}}
     Installed versions:  3.2(01:19:03 04/28/13)(python python_targets_python2_7 static-analyzer -debug -kernel_FreeBSD -multitarget -python_targets_pypy1_9 -python_targets_pypy2_0 -python_targets_pyt\
hon2_6 -test)
     Homepage:            http://clang.llvm.org/
     Description:         C language family frontend for LLVM

root@gentoo-vm emerge
# eix --installed llvm
[I] sys-devel/llvm
     Available versions:  2.8-r2 2.9-r2 3.0-r2 3.1-r2 (~)3.2 **9999 {{debug doc gold +libffi llvm-gcc multitarget ocaml test udis86 video_cards_radeon vim-syntax}}
     Installed versions:  3.2(00:09:28 04/28/13)(libffi -debug -doc -gold -multitarget -ocaml -test -udis86 -vim-syntax)
     Homepage:            http://llvm.org/
     Description:         Low Level Virtual Machine

For those who are interested, my /etc/portage/make.conf (sorted with comments removed)
Code:
APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"
AUTOCLEAN="yes"
CC="/usr/bin/clang"
CFLAGS="-O2 -mtune=native -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/udev/rules.d /usr/share/config /var/lib/sabnzbd/config"
CXX="/usr/bin/clang++"
CXXFLAGS="${CFLAGS}"
DISTDIR=${PORTDIR}/distfiles
FEATURES="sandbox userpriv usersandbox parallel-fetch collision-protect -parse-eapi-ebuild-head" #" ccache" # gpg"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo ftp://mirror.pacific.net.au/linux/Gentoo http://mymirror.asiaosc.org/gentoo/ http://www.zentek-international.com/mirrors/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INPUT_DEVICES="keyboard mouse evdev"
LINGUAS="en"
MAKEOPTS="-j4"
NOCOLOR="true"
PHP_TARGETS="php5-3"
PKGDIR=${PORTDIR}/packages
PORTAGE_ELOG_CLASSES="warn error info log qa"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_GPG_DIR=/etc/portage/gpg
PORTAGE_TMPDIR=/tmp # /portage/tmp # /var/tmp
PORTDIR=/portage/gentoo # /usr/portage
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} ${PORTDIR}"
PORTDIR_OVERLAY=/portage/local
PORT_LOGDIR=/var/log/emerge
SYNC="rsync://mirror.internode.on.net/gentoo-portage"
USE="bindist mmx sse sse2 sse3 -gtk -kde -X -qt4 emacs"
VIDEO_CARDS="nvidia vesa fbdev"
source /portage/local/layman/make.conf
Package USE flags
Code:
virtual/emacs                           -xvmc
app-editors/emacs                       -X -gif -gpm -jpeg -png -svg -tiff -xpm
sys-libs/zlib                           minizip
app-portage/layman                      git bazaar mercurial subversion
My world file
Code:
app-admin/syslog-ng
app-portage/eix
app-portage/layman
net-misc/dhcpcd
sys-apps/pciutils
sys-apps/v86d
sys-boot/grub
sys-devel/clang
sys-devel/llvm
sys-fs/xfsprogs
sys-kernel/genkernel
sys-kernel/gentoo-sources
sys-process/vixie-cron
virtual/emacs
and finally, my emerge --info
Code:
# emerge --info
Portage 2.1.11.62 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.7.10-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.7.10-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.2
KiB Mem:     2792044 total,   1782120 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of tree: Sat, 27 Apr 2013 13:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r3, 3.2.3-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.10.3, 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: java-overlay sunrise gamerlay zugaina enlightenment x-local gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=native -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/udev/rules.d /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/sabnzbd/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mtune=native -march=native -pipe"
DISTDIR="/portage/gentoo/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo ftp://mirror.pacific.net.au/linux/Gentoo http://mymirror.asiaosc.org/gentoo/ http://www.zentek-international.com/mirrors/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/portage/gentoo/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/portage/gentoo"
PORTDIR_OVERLAY="/portage/local/layman/java-overlay /portage/local/layman/sunrise /portage/local/layman/gamerlay /portage/local/layman/zugaina /portage/local/layman/enlightenment /portage/local /portage/gentoo"
SYNC="rsync://mirror.internode.on.net/gentoo-portage"
USE="a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emacs emboss encode exif fam firefox flac fortran gdbm gif gpm iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support readline sdl session spell sse sse2 sse3 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
...Lyall
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Sun May 05, 2013 11:08 am    Post subject: Reply with quote

Thanks for all that, lyallp :D

It seems as though llvm/clang 3.3 shall be released rather soon, and will only need small patch to the kernel (rather then both) - so now the kernel guys shall be able to get on it without having to patch the compiler.

In other news, it seems at least one of my build failures was not clang after all, seems to have been the texinfo-5.1 breakage. I think I shall wait for 3.3 to make it in to the tree before doing another full system and world rebuild before reporting bugs to the clang tracker, seems pointless at this time.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1553
Location: Adelaide/Australia

PostPosted: Sun May 05, 2013 11:44 am    Post subject: Reply with quote

I did not compile the kernel.

I only compiled with clang for 'emerge world' via the make.conf settings.

I was under the impression that the kernel did not build with clang and thus, did not even try.
_________________
...Lyall
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sun May 05, 2013 8:51 pm    Post subject: Reply with quote

I am trying this thing with chromium. It's been compiling for more than five hours now, which is what it used to take to gcc to build chromium. So far, in this concrete case, I am not seeing the improvement in speed here. Maybe chromium is the exception :P

Code:

# genlop -t chromium; genlop -c
 * www-client/chromium

     Thu Apr 11 08:52:23 2013 >>> www-client/chromium-26.0.1410.43
       merge time: 5 hours, 18 minutes and 28 seconds.

     Fri Apr 19 03:11:56 2013 >>> www-client/chromium-27.0.1453.47
       merge time: 5 hours, 56 minutes and 51 seconds.

     Mon Apr 29 06:44:32 2013 >>> www-client/chromium-27.0.1453.56
       merge time: 5 hours, 21 minutes and 57 seconds.


 Currently merging 1 out of 1

 * www-client/chromium-27.0.1453.73

       current merge time: 5 hours, 49 minutes and 29 seconds.
       ETA: any time now.


As you see, it's taking already longer than it used to with gcc...
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Mon May 06, 2013 5:22 pm    Post subject: Reply with quote

lyallp wrote:
I was under the impression that the kernel did not build with clang and thus, did not even try.

You can but you need to patch the compiler and kernel, I hear (and logic tells me it's correct) that the kernel guys never bothered officially because the compiler needed patching too, so now they should be okay to accept patches.

i92guboj wrote:
Maybe chromium is the exception :P

Yes :D, there was some gyp stuff which I think only got fixed a few versions ago, it still uses gcc to build at least the webkit portion for some reason afiak. It was also one of two applications to give me the illegal hardware instruction nonsense.

As for the speed, not sure with chromium since it is so complex, there are a lot of benchmarks out there and I've done a few timed emerges for things and noticed shorter times, iirc one of the 'bigger applications' I timed was of kopete, with which gcc -O2 was ~10 seconds slower then clang -O3. A game I build daily goes down from 1m 47s with gcc -O3 to 57s with llvm/clang -O3.

Keep in mind I only did a couple of tests some time ago and at the time I was using a PGO build of gcc 4.7.2 - unfortunately I brought this system back from no-multilib to multilib and lost that gcc, couldn't be bothered spending a load of time on it again.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon May 06, 2013 5:52 pm    Post subject: Reply with quote

If you're interested in build times then you might want to run «binutils-config --linker ld.gold» if you haven't already. It should be a bit faster and significantly less RAM-hungry than the default.
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Mon May 06, 2013 5:57 pm    Post subject: Reply with quote

Way ahead of you ;)
Out of my whole system only viewnior failed with gold, a quick bug report and it was fixed in no time. Fairly impressive imo. Good blog post from flameeyes on it for anyone interested: http://blog.flameeyes.eu/2010/11/it-s-not-all-gold-that-shines-why-underlinking-is-a-bad-thing


Edit, didn't want to bump: [LLVMdev] [3.3 Release] Release Candidate 1 Sources Available :P
Back to top
View user's profile Send private message
olek
Apprentice
Apprentice


Joined: 22 Oct 2011
Posts: 173

PostPosted: Fri Sep 13, 2013 9:15 pm    Post subject: Reply with quote

I wrote a little something and I'm going to update it regularly:
https://cosmofox.net/gen2/migration-to-clang

greetings
_________________
https://plaintext.blog
Back to top
View user's profile Send private message
swirling_vortex
n00b
n00b


Joined: 12 Jun 2007
Posts: 24

PostPosted: Sat Sep 14, 2013 7:10 pm    Post subject: Reply with quote

There's also a project with Debian that is also attempting to rebuild their repository with clang: http://clang.debian.net/

If you get any errors, it might also be worth looking and see if it failed over there.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2280
Location: Adendorf, Germany

PostPosted: Tue Sep 17, 2013 12:31 pm    Post subject: Re: Clang & Gentoo Reply with quote

fragment wrote:
Clang 3.3 shows awesome results: http://www.phoronix.com/scan.php?page=news_item&px=MTMzNjE

Perhaps, soon will come time to migrate to Clang.
I doubt it. According to http://www.phoronix.com/scan.php?page=article&item=llvm_clang33_3way clang is still (sometimes far, very far) behind gcc.

Clang often performs better than gcc when it comes to compile time, but that is completely irrelevant. The most time you'd *use* your software and not compile it, wouldn't you? ;)
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
olek
Apprentice
Apprentice


Joined: 22 Oct 2011
Posts: 173

PostPosted: Tue Sep 17, 2013 12:58 pm    Post subject: Reply with quote

Quote:
Overall, LLVM/Clang 3.3 appears to be largely competitive with GCC 4.8.0 except in select cases like the missing OpenMP support.


Isn't OpenMP already planned for 3.4?
_________________
https://plaintext.blog
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Tue Sep 17, 2013 1:23 pm    Post subject: Reply with quote

olek wrote:
Isn't OpenMP already planned for 3.4?

I think so, also:
http://clang-omp.github.io/
Back to top
View user's profile Send private message
olek
Apprentice
Apprentice


Joined: 22 Oct 2011
Posts: 173

PostPosted: Tue Sep 17, 2013 1:51 pm    Post subject: Reply with quote

Just found http://openmp.org/wp/2013/09/clang/

Besides that, I don't know about many things using openmp, at least as long as one sticks with day-to-day desktop applications.

Luckily, with portage we can use different compilers for each atom.
_________________
https://plaintext.blog
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Tue Sep 17, 2013 3:41 pm    Post subject: Reply with quote

olek wrote:
Just found http://openmp.org/wp/2013/09/clang/

Besides that, I don't know about many things using openmp, at least as long as one sticks with day-to-day desktop applications.

Luckily, with portage we can use different compilers for each atom.


I don't know many either, I think only ~5 packages need/can use openmp on my system and the only user facing one is imagemagick.
It would be nice if it made it in to clang 3.4 though.

Also in clang 3.4: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?r1=186501&r2=187350
Seems my march=native illegal hardware instructions were a genuine bug, I apply the patch locally and on two test packages that broke before are now working fine!
Tonight I rebuild @system & @world and this time things should not turn to shit by the morning when I awake :lol:
Back to top
View user's profile Send private message
olek
Apprentice
Apprentice


Joined: 22 Oct 2011
Posts: 173

PostPosted: Tue Sep 17, 2013 7:25 pm    Post subject: Reply with quote

Good luck! A full rebuild is something I still have to try. Probably beginning next month.
_________________
https://plaintext.blog
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2280
Location: Adendorf, Germany

PostPosted: Wed Sep 18, 2013 9:48 am    Post subject: Reply with quote

olek wrote:
Besides that, I don't know about many things using openmp, at least as long as one sticks with day-to-day desktop applications
Currently 62 packages. The most important would be media-gfx/blender, while a bunch of sci-chemistry and sci-mathematics tools make use of it, too.
Well.. At least it's in their USE flags...
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Fri Oct 11, 2013 7:02 pm    Post subject: Reply with quote

So I did the rebuild and all went fairly well on my test machine, here are the failures on my main machine:

Code:

# LLVM/CLANG BUILD FAILURES
=dev-libs/elfutils-0.156                    noclang.conf
=sys-devel/binutils-2.23.2                  noclang.conf
=dev-libs/openssl-1.0.1e-r1                 noclang.conf
=sys-libs/glibc-2.18                        noclang.conf
=sys-apps/busybox-1.21.1                    noclang.conf

=media-libs/libpostproc-0.8.0.20121125      noclang.conf
=sci-libs/fftw-3.3.3-r3                     noclang.conf
=dev-libs/openssl-1.0.1e-r1                 noclang.conf
=media-libs/id3lib-3.8.3-r8                 noclang.conf
=dev-scheme/guile-1.8.8-r1                  noclang.conf
=app-text/recode-3.6_p20                    noclang.conf
=app-cdr/cdrtools-3.01_alpha17              noclang.conf
=media-sound/ncmpcpp-0.5.10                 noclang.conf
=sys-boot/grub-2.00_p5107-r1                noclang.conf
=x11-libs/cairo-1.12.16                     noclang.conf
=app-crypt/gnupg-2.0.22                     noclang.conf
=media-gfx/gimp-2.8.6                       noclang.conf
=media-plugins/gimp-gmic-1.5.7.1            noclang.conf


# LLVM/CLANG RUNTIME FAILURES
media-libs/mesa                             noclang.conf


Damn formatting is screwed but whatever.
Interesting one is mesa runtime, it may be related to Bug 486472 - media-libs/mesa : does not respect CXX - I didn't notice it until reviewing logs & seeing that both firefox and thunderbird make libGL.so segfault. Everything else is running as per usual 8).


Last edited by GFCCAE6xF on Sat Oct 12, 2013 7:44 am; edited 1 time in total
Back to top
View user's profile Send private message
srs5694
Guru
Guru


Joined: 08 Mar 2004
Posts: 434
Location: Woonsocket, RI

PostPosted: Fri Oct 11, 2013 10:47 pm    Post subject: Reply with quote

rorgoroth wrote:
Damn formatting is screwed but whatever.


Use code formatting rather than quote formatting; that is, replace "[ quote="/etc/portage/package.env" ]" with "[ code ]" (closing up the spaces), and similarly at the end.
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Sat Oct 12, 2013 7:45 am    Post subject: Reply with quote

srs5694 wrote:
Use code formatting rather than quote formatting; that is, replace "[ quote="/etc/portage/package.env" ]" with "[ code ]" (closing up the spaces), and similarly at the end.


/me facefalms

Ha, of course, I was trying to be too fancy with my posting :oops:
Back to top
View user's profile Send private message
olek
Apprentice
Apprentice


Joined: 22 Oct 2011
Posts: 173

PostPosted: Sat Oct 12, 2013 1:11 pm    Post subject: Reply with quote

I can confirm build failures for:
Code:

=app-crypt/gnupg-2.0.21
=app-crypt/gnupg-2.0.21-r1
=app-crypt/gnupg-2.0.21-r2
=app-crypt/gnupg-2.0.22::gentoo
=mail-client/thunderbird-17.0.9
=media-gfx/darktable-1.2.3
=media-gfx/gimp-2.8.6
=media-gfx/inkscape-0.48.4-r1
=media-sound/mumble-1.2.4
=net-p2p/bitcoind-0.8.5
=net-print/cups-1.6.3-r2
=net-print/cups-1.6.4
=sys-devel/binutils-2.23.2
=x11-libs/cairo-1.12.14-r3
=x11-libs/cairo-1.12.14-r4
=x11-libs/cairo-1.12.16


Logs are here: https://cosmofox.net/DL/Gen2/Clang/failed

I also had seen those libGL.so segfaults in logs, but this is some time ago and as I didn't get crashes, it was not a priority to investigate. So I'm running clang-compiled mesa (with firefox and thunderbird) right now. Will watch out for segfaults.

rorgoroth, are you running x11-drivers/xf86-video-ati by any chance? It's causing runtime-failures for me, not able to launch an xserver with it.
_________________
https://plaintext.blog
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Sat Oct 12, 2013 1:48 pm    Post subject: Reply with quote

Ah, well I am glad it's not just me with the failures! I didn't get any crashes either and only came across the errors by chance, firefox or thunderbird never failed and I noticed no visual or performance issues, but on a game I have installed locally will exit with signal unless mesa is build by gcc/g++.

Unfortunately I'm not, I'm currently running nouveau. It may be worth reporting a bug about such a thing though.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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