Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mesa-17.3.9 build failure [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
gtbX
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 126

PostPosted: Fri May 11, 2018 3:38 pm    Post subject: mesa-17.3.9 build failure [solved] Reply with quote

Anyone else having problems building recent mesa on sparc?

I'm getting this build error:

Code:
# emerge -v1 mesa
...
libtool: link: sparc-unknown-linux-gnu-ranlib glsl/.libs/libstandalone.a
libtool: link: rm -fr glsl/.libs/libstandalone.lax glsl/.libs/libstandalone.lax
libtool: link: ( cd "glsl/.libs" && rm -f "libstandalone.la" && ln -s "../libstandalone.la" "libstandalone.la" )
/bin/sh ../../libtool  --tag=CXX   --mode=link sparc-unknown-linux-gnu-g++ -fvisibility=hidden -Werror=vla -mcpu=ultrasparc -O2 -pipe -Wall -fno-math-errno -fno-trapping-math   -Wl,-O1 -Wl,--as-needed -o glsl_compiler glsl/main.o glsl/libstandalone.la
libtool: link: sparc-unknown-linux-gnu-g++ -fvisibility=hidden -Werror=vla -mcpu=ultrasparc -O2 -pipe -Wall -fno-math-errno -fno-trapping-math -Wl,-O1 -Wl,--as-needed -o glsl_compiler glsl/main.o  glsl/.libs/libstandalone.a -lz -lpthread -pthread
glsl/.libs/libstandalone.a(libmesautil_la-disk_cache.o): In function `cache_put':
disk_cache.c:(.text+0xab4): undefined reference to `__atomic_fetch_add_8'
disk_cache.c:(.text+0xdcc): undefined reference to `__atomic_fetch_add_8'
glsl/.libs/libstandalone.a(libmesautil_la-disk_cache.o): In function `disk_cache_remove':
disk_cache.c:(.text+0x1374): undefined reference to `__atomic_fetch_add_8'
collect2: error: ld returned 1 exit status


I've tried with gcc 6.4.0 and 7.3.0 with the same result. Am I just missing something?

Code:
# emerge --info
Portage 2.3.24 (python 2.7.14-final-0, default/linux/sparc/13.0/desktop, gcc-6.4.0, glibc-2.25-r11, 4.9.49-gentoo-r1 sparc64)
=================================================================
System uname: Linux-4.9.49-gentoo-r1-sparc64-sun4u-with-gentoo-2.4.1
KiB Mem:      507464 total,     13656 free
KiB Swap:    1048568 total,   1023912 free
Timestamp of repository gentoo: Fri, 04 May 2018 20:45:01 +0000
Head commit of repository gentoo: b973b43800f3114ed819fc32e3024bc7bbe0c0ed
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
distcc 3.2rc1 sparc-unknown-linux-gnu [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.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.34.11::gentoo
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.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mcpu=ultrasparc -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distcc 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=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/sparc"
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="7z X a52 aac aalib acl alsa apache2 apng avahi background berkdb big-endian branding bzip2 cairo caps cdda cdparanoia cdr cdrom cjk cli consolekit crypt cups curl cxx dbus dri dts dvd dvdr emboss encode escreen exif expat fam flac fontconfig fortran fpx fuse gcrypt gd gdbm gif glamor glib gmp gnutls gpm graphviz gstreamer gtk gzip hddtemp hfs howl-compat iconv icu idn imagemagick imlib ipv6 jbig jpeg jpeg2k lcms libnotify mad mdnsresponder-compat mng modules motif mp3 mp4 mpeg mpeg2 mplayer ncurses nls nptl ogg openal opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline rle scanner screen sdl sndfile soup sparc speex spell ssl startup-notification svg tcpd tex theora threads tiff truetype udev udisks unicode upower usb v4l vim-syntax vorbis wma wmf wxwidgets x264 xattr xcb xgetdefault xinerama xml xpm xrandr xv xvid zeroconf zlib" APACHE2_MODULES="alias authn_core authz_core authz_host autoindex cache deflate dir env expires file_cache filter headers ident include info log_config logio mime mime_magic negotiation rewrite socache_shmcb speling ssl status unixd userdir vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="en en_US en_GB" 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-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev mach64" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Last edited by gtbX on Sat May 12, 2018 12:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31267
Location: here

PostPosted: Fri May 11, 2018 3:59 pm    Post subject: Reply with quote

Based in this bug (not related to mesa), try adding -latomic to LDFLAGS with package.env
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gtbX
Tux's lil' helper
Tux's lil' helper


Joined: 11 Oct 2003
Posts: 126

PostPosted: Sat May 12, 2018 12:57 pm    Post subject: Reply with quote

That worked! Thanks!

Should I report this as a bug?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 31267
Location: here

PostPosted: Sat May 12, 2018 5:45 pm    Post subject: Reply with quote

gtbX wrote:
Should I report this as a bug?

I think yes
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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