Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Added +opencl, now Libclc build fails
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
Dr Croubie
Apprentice
Apprentice


Joined: 21 Nov 2006
Posts: 159

PostPosted: Sun Feb 01, 2015 1:37 am    Post subject: Added +opencl, now Libclc build fails Reply with quote

All I've done since my last rebuild is to add USE="+opencl", and the associated forced "sys-devel/llvm clang", to see if I can take a bit more advantage of that shiny 2GB Radeon R7 250X sitting near my feet.

I can't figure out why this build is failing, there's nothing really in the log file that I can see (besides a buttload of warnings) that are giving any clues.
There are no real results searching here nor DDG, noone else seems to have had this problem before.
Anyone see anything jumping out at them? (Besides the 'hardened', could that be it? It wouldn't be the first time hardened has bitten me on the butt).

I can't figure out how to attach the build log as a file without just copying the whole damn thing, so here are the top and tail of /var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/temp/build.log.gz:
Code:
 * Package:    dev-libs/libclc-0.0.1_pre20131010
 * Repository: gentoo
 * Maintainer: x11@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking libclc-0.0.1_pre20131010.tar.xz to /var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/work
>>> Preparing source in /var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/work/libclc-0.0.1_pre20131010 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/work/libclc-0.0.1_pre20131010 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/work/libclc-0.0.1_pre20131010 ...
make -j10 VERBOSE=1
LLVM-CC nvptx--nvidiacl/lib/workitem/get_group_id.cl.bc
LLVM-CC nvptx--nvidiacl/lib/synchronization/barrier.cl.bc
LLVM-CC nvptx--nvidiacl/lib/workitem/get_local_id.cl.bc
/usr/bin/clang -MMD -MF nvptx--nvidiacl/lib/synchronization/barrier.cl.bc.d -target nvptx--nvidiacl -I`dirname ./ptx-nvidiacl/lib/synchronization/barrier.cl` -I./generic/include -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -D__CLC_INTERNAL -emit-llvm -c -o nvptx--nvidiacl/lib/synchronization/barrier.cl.bc ./ptx-nvidiacl/lib/synchronization/barrier.cl
(etc)
In file included from  function./generic/include/clc/math/gentype.inc 'nextafter':5 [-Wincompatible-library-redeclaration]:
./generic/include/clc/math/binary_decl.inc
:1:39: warning: incompatible redeclaration of library function 'nextafter' [-Wincompatible-library-redeclaration]
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b);
                                      ^
./generic/include/clc/math/nextafter.h:2:24: note: expanded from macro '__CLC_FUNCTION'_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION(__CLC_GENTYPE a, __CLC_GENTYPE b);

                                      ^
./generic/include/clc/math/nextafter.h:2:24#define __CLC_FUNCTION nextafter
:                        ^
note: expanded from./generic/include/clc/math/binary_decl.inc macro :1'__CLC_FUNCTION':39
: note: 'nextafter' is #define __CLC_FUNCTION nextaftera
builtin                        ^
with type 'double (double, double)'
./generic/include/clc/math/binary_decl.inc./generic/include/clc/math/nextafter.h:1:2:39:24: : note: note: 'nextafter'expanded is from a macro builtin '__CLC_FUNCTION' with
 type 'double (double, double)'
./generic/include/clc/math/nextafter.h:2:24#define __CLC_FUNCTION nextafter
:                        ^
note: expanded from macro '__CLC_FUNCTION'
#define __CLC_FUNCTION nextafter
                       ^
In file included from ./generic/lib/integer/mul_hi.cl:1:
In file included from ./generic/include/clc/clc.h:65:
In file included from ./generic/include/clc/integer/abs.h:2:
In file included from ./generic/include/clc/integer/gentype.inc:10:
./generic/include/clc/integer/abs.inc:1:41: warning: incompatible redeclaration of library function 'abs' [-Wincompatible-library-redeclaration]
_CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE abs(__CLC_GENTYPE x);
                                        ^
./generic/include/clc/integer/abs.inc:1:41: note: 'abs' is a builtin with type 'int (int)'
In file included from ./generic/lib/integer/rotate.cl:1:
In file included from ./generic/include/clc/clc.h:65:
In file included from ./generic/include/clc/integer/abs.h:2:
In file included from ./generic/include/clc/integer/gentype.inc:10:
./generic/include/clc/integer/abs.incIn file included from :1:41: ./generic/lib/integer/sub_sat.cl:1warning: :
In file included from ./generic/include/clc/clc.h:incompatible65:
 redeclarationIn file included from ./generic/include/clc/integer/abs.h of:2 library:
In file included from  function./generic/include/clc/integer/gentype.inc: 'abs'10:
 ./generic/include/clc/integer/abs.inc[-Wincompatible-library-redeclaration]:1
:41: warning: incompatible redeclaration of library function 'abs' _CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE abs(__CLC_GENTYPE x);[-Wincompatible-library-redeclaration]

                                        ^
./generic/include/clc/integer/abs.inc:1:41: note: 'abs'_CLC_OVERLOAD _CLC_DECL __CLC_U_GENTYPE abs(__CLC_GENTYPE x); is
a                                         ^
builtin with type 'int (int)'./generic/include/clc/integer/abs.inc
:1:41: note: 'abs' is a builtin with type 'int (int)'
3 warnings generated.
3 warnings generated.
3 warnings generated.
 * ERROR: dev-libs/libclc-0.0.1_pre20131010::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libclc-0.0.1_pre20131010::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libclc-0.0.1_pre20131010::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/work/libclc-0.0.1_pre20131010'
 * S: '/var/tmp/portage/dev-libs/libclc-0.0.1_pre20131010/work/libclc-0.0.1_pre20131010'


make.conf:
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.

CFLAGS="-march=amdfam10 -O2 -pipe"
CXXFLAGS="${CFLAGS}"

# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.

CHOST="x86_64-pc-linux-gnu"

# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

MAKEOPTS="-j10"

USE="-3dfx 3dnow 3dnowext X
-a52 -aac -accessibility acl acpi -afs -aim alsa -altivec -ao -apm -aqua -atm
bash-completion -berkdb -bindist -bluetooth -branding bzip2
cairo -cdb cdda cddb cdr -cgi cjk -clamav -coreaudio -cracklib css -cups curl -custom-cflags -cvs cxx
dbus -debug -dga -directfb -djvu -doc dri -dts -dv -dvb dvd dvdr
-emacs -encode -evo -examples exif
-fbcon ffmpeg fftw flac fontconfig fortran -freetds -frontbase ftp
gcj gd gdbm -geoip -ggi gif gimp -git -glut gmp -gnome -gnome-keyring -gnutls -gphoto2 gpm -gps -gsl -gsm -gstreamer gtk gzip
-handbook hardened hddtemp -hdf5
-ibm -icq icu idn -ieee1394 -imagemagick -imlib -infiniband introspection -ios -ipod ipv6
-jabber -jack java java6 javascript -jbig -jingle -jit -joystick jpeg -jpeg2k
kde -kerberos -kontact
-ladspa -lame -lapack latex lcms -ldap -libass -libffi -lirc lm_sensors -lua lzma lzo
mad -matrox -mikmod mime -minimal mmap -mms mmx -mng mozilla mp3 mp4 mpeg mplayer -msn -mssql -mtp -multilib -mysql -mysqli
-nas ncurses -netboot -nis nls nsplugin
odbc -offensive ogg openal -openexr opengl openmp -osc -oscar -oss
-pch -pcmcia pcntl pcre -pda pdf perl php pie plasma png -policykit -portaudio posix -pulseaudio python
qt4 qt5 -quicktime
-raw -rdesktop -readline -rss ruby
-samba -sasl -scanner -sdl -seamonkey -semantic-desktop -smartcard smp -snmp sockets sound source -spell sqlite -sqlite3 sse sse2 sse3 ssl -suid svg -sybase -symlink sysvipc szip
tcl -theora threads tiff -timidity -tk truetype
udev -udisks unicode upower usb
-v4l vcd -vdpau vim-syntax vnc vorbis
-wayland -webkit -wifi -wmf
x264 xcb -xemacs -xine -xinerama xml -xmp -xmpp -xosd -xscreensaver -xv -xvid
-yahoo
-zeroconf zlib
bzip2 drm drmkms egl evdev exceptions gallium gbm glamor -gles -gles1 -gles2 gtk3 -kdepim kms libkms -nopie -nossp opencl openvg pax_kernel qt3support sse4 sse4a ssp vlc -wallpapers zip
hvm kvm qemu spice vhost-net vhosts xen"

FEATURES="candy -ccache compress-build-logs news parallel-fetch userfetch"

LINGUAS="en_GB en"

INPUT_DEVICES="evdev"

VIDEO_CARDS="radeonsi radeon"

USE_PYTHON='2.7'
PYTHON_SINGLE_TARGET="python2_7"
PYTHON_TARGETS="python2_7 python3_4"

ACCEPT_LICENSE="Oracle-BCLA-JavaSE PUEL AdobeFlash-11.x cadsoft"

SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"

GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo"

# Set PORTDIR for backward compatibility with various tools:
#   gentoo-bashcomp - bug #478444
#   euse - bug #474574
#   euses and ufed - bug #478318
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"

CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a"


emerge --info '=dev-libs/libclc-0.0.1_pre20131010::gentoo':
Code:
Portage 2.2.14 (python 3.4.1-final-0, hardened/linux/amd64/no-multilib, gcc-4.8.3, glibc-2.19-r1, 3.17.7-hardened-r1-XEN-KVM x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.17.7-hardened-r1-XEN-KVM-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.2
KiB Mem:    20516116 total,  19245044 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 31 Jan 2015 12:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.9-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.4
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo cross-avr
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE PUEL AdobeFlash-11.x cadsoft"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/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=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync 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://ftp.swin.edu.au/gentoo"
LANG="en_AU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
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/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 bash-completion bzip2 cairo cdda cddb cdr cjk cli crypt css curl cxx dbus dri drm drmkms dvd dvdr egl evdev exceptions exif ffmpeg fftw flac fontconfig fortran ftp gallium gbm gcj gd gdbm gif gimp glamor gmp gpm gtk gtk3 gzip hardened hddtemp hvm iconv icu idn introspection ipv6 java java6 javascript jpeg justify kde kms kvm latex lcms libkms lm_sensors lzma lzo mad mime mmap mmx modules mozilla mp3 mp4 mpeg mplayer ncurses nls nptl nsplugin odbc ogg openal opencl opengl openmp openvg pam pax_kernel pcntl pcre pdf perl php pie plasma png posix python qemu qt3support qt4 ruby session smp sockets sound source spice sqlite sse sse2 sse3 sse4 sse4a ssl ssp svg sysvipc szip tcl tcpd threads tiff truetype udev unicode upower urandom usb vcd vhost-net vhosts vim-syntax vlc vnc vorbis x264 xattr xcb xen xml xtpax zip 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="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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" 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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeonsi radeon" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


And the packages that won't rebuild as a result:
Code:
emerge -uDNva --keep-going --with-bdeps=y world system

These are the packages that would be merged, in order:

Calculating dependencies                ... done!
[ebuild  N     ] dev-libs/libclc-0.0.1_pre20131010  0 KiB
[ebuild   R    ] media-libs/mesa-10.2.8  USE="dri3 egl gallium gbm llvm nptl opencl* openvg pax_kernel r600-llvm-compiler* udev -bindist -classic -debug -gles1 -gles2 -openmax -osmesa -pic (-selinux) -vdpau -wayland -xa -xvmc" VIDEO_CARDS="radeon radeonsi (-freedreno) -i915 -i965 -ilo -intel -nouveau -r100 -r200 -r300 -r600 -vmware" 0 KiB
[ebuild  N     ] virtual/opencl-0-r4  VIDEO_CARDS="-fglrx (-nvidia)" 0 KiB
[ebuild   R    ] media-libs/x264-0.0.20140308:0/142  USE="interlaced opencl* threads -10bit -pic -static-libs (-sse%*)" CPU_FLAGS_X86="sse%*" 0 KiB

Total: 4 packages (2 new, 2 reinstalls), Size of downloads: 0 KiB
Back to top
View user's profile Send private message
Slippery Jim
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 264

PostPosted: Mon Feb 02, 2015 6:47 am    Post subject: Reply with quote

I had the same problem today when I added +opencl to mesa. I'm running non-hardened. I unmasked dev-libs/libclc in /etc/portage/package.keywords, and version 0.0.1_pre20141027 compiled without warnings.
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