Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618928 - dev-libs/libclc ./ptx-nvidiacl/lib/synchronization/barrier.cl:5:5: error: use of unknown builtin '__builtin_ptx_bar_sync' [-Wimplicit-function-declaration]
Summary: dev-libs/libclc ./ptx-nvidiacl/lib/synchronization/barrier.cl:5:5: error: use...
Status: RESOLVED DUPLICATE of bug 612258
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-19 16:06 UTC by f4prv
Modified: 2017-09-08 12:44 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,2.76 KB, text/x-log)
2017-05-19 16:33 UTC, f4prv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description f4prv 2017-05-19 16:06:22 UTC
Hello I have this error compiling 
 dev-libs/libclc-0.2.0_pre20160209::gentoo failed (compile phase):
 *   emake failed

LLVM-CC nvptx--nvidiacl/lib/synchronization/barrier.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 -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -c -o nvptx--nvidiacl/lib/synchronization/barrier.cl.bc ./ptx-nvidiacl/lib/synchronization/barrier.cl
./ptx-nvidiacl/lib/synchronization/barrier.cl:5:5: error: use of unknown builtin
      '__builtin_ptx_bar_sync' [-Wimplicit-function-declaration]
    __builtin_ptx_bar_sync(0);

------------------------------------------------------------------------------

emerge --info '=dev-libs/libclc-0.2.0_pre20160209::gentoo'
Portage 2.3.5 (python 3.4.5-final-0, !../../usr/local/portage/dantrell-gnome/profiles/default/amd64/3.18/extended, gcc-5.4.0, glibc-2.23-r3, 4.4.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Celeron-R-_CPU_N2840_@_2.16GHz-with-gentoo-2.3
KiB Mem:     3927904 total,    361240 free
KiB Swap:    1452028 total,   1451636 free
Timestamp of repository gentoo: Wed, 17 May 2017 15:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24.2::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

dantrell-gnome-3-18
    location: /usr/local/portage/dantrell-gnome-3-18
    sync-type: git
    sync-uri: https://github.com/dantrell/gentoo-overlay-dantrell-gnome-3-18.git
    masters: gentoo
    priority: 100

dantrell-gnome
    location: /usr/local/portage/dantrell-gnome
    sync-type: git
    sync-uri: https://github.com/dantrell/gentoo-overlay-dantrell-gnome.git
    masters: gentoo
    priority: 150

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-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="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ rsync://trumpetti.atm.tut.fi/gentoo/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
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 aalib acl acpi alsa amd64 apache2 berkdb bidi branding bzip2 cairo cdda cddb cdr cgid cli colord consolekit cracklib crypt cups cxx dbus dhclient dhcpd directfb dri dts dvb dvd dvdr eds efiemu encode eudev evo exif experimental faad fam flac fontconfig fortran gd gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle iconv ieee1394 introspection ipv6 jack jpeg lcms ldap libass libav libav-aac libcaca libnotify libsamplerate libsecret lirc mad matroska mmx mng modplug modules mp3 mp4 mpeg mtp multilib musepack nautilus ncurses nls nptl nss ogg opengl openmp pam pango pcre pdf png policykit portaudio ppds ppp pulseaudio readline samba sdl seccomp session sndfile speex spell sse sse2 ssl startup-notification svg symlink system-wine taglib tcpd test theora tiff tracker truetype udev udisks unicode upower usb v4l vcd vdpau vnc vorbis wext wifi wxwidgets x264 x265 xa xattr 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" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Well, any idea?
Comment 1 Brian Evans (RETIRED) gentoo-dev 2017-05-19 16:16:26 UTC
Please attach the full build.log
Comment 2 Brian Evans (RETIRED) gentoo-dev 2017-05-19 16:20:21 UTC

*** This bug has been marked as a duplicate of bug 614476 ***
Comment 3 f4prv 2017-05-19 16:33:31 UTC
Created attachment 473202 [details]
build.log

[32;01m * [39;49;00mPackage:    dev-libs/libclc-0.2.0_pre20160209
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: x11@gentoo.org llvm@gentoo.org
[32;01m * [39;49;00mUSE:        abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
[32;01m * [39;49;00mFEATURES:   preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking libclc-0.2.0_pre20160209.tar.xz to /var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/work
>>> Preparing source in /var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/work/libclc-0.2.0_pre20160209 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/work/libclc-0.2.0_pre20160209 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/work/libclc-0.2.0_pre20160209 ...
make -j1 VERBOSE=1 
LLVM-AS generic--/lib/subnormal_disable.bc
/usr/bin/llvm-as -o generic--/lib/subnormal_disable.bc generic/lib/subnormal_disable.ll
LLVM-AS generic--/lib/subnormal_use_default.bc
/usr/bin/llvm-as -o generic--/lib/subnormal_use_default.bc generic/lib/subnormal_use_default.ll
LLVM-CC nvptx--nvidiacl/lib/synchronization/barrier.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 -fno-builtin -Dcl_clang_storage_class_specifiers -Dcl_khr_fp64 -Dcles_khr_int64 -D__CLC_INTERNAL -emit-llvm -c -o nvptx--nvidiacl/lib/synchronization/barrier.cl.bc ./ptx-nvidiacl/lib/synchronization/barrier.cl
[1m./ptx-nvidiacl/lib/synchronization/barrier.cl:5:5: [0m[0;1;31merror: [0m[1muse of unknown builtin
      '__builtin_ptx_bar_sync' [-Wimplicit-function-declaration][0m
    __builtin_ptx_bar_sync(0);
[0;1;32m    ^
[0m1 error generated.
make: *** [Makefile:30: nvptx--nvidiacl/lib/synchronization/barrier.cl.bc] Error 1
 [31;01m*[0m ERROR: dev-libs/libclc-0.2.0_pre20160209::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-libs/libclc-0.2.0_pre20160209::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-libs/libclc-0.2.0_pre20160209::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/work/libclc-0.2.0_pre20160209'
 [31;01m*[0m S: '/var/tmp/portage/dev-libs/libclc-0.2.0_pre20160209/work/libclc-0.2.0_pre20160209'
Comment 4 f4prv 2017-05-19 16:54:58 UTC
clang-3.9.1 is installed.

*  sys-devel/clang-runtime
      Latest version available: 3.9.1
      Latest version installed: 3.9.1
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2017-09-08 12:44:15 UTC

*** This bug has been marked as a duplicate of bug 612258 ***