Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485642 - dev-util/source-highlight fails to compile on sparc
Summary: dev-util/source-highlight fails to compile on sparc
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 459448
  Show dependency tree
 
Reported: 2013-09-22 09:38 UTC by Agostino Sarubbo
Modified: 2019-11-29 10:02 UTC (History)
1 user (show)

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


Attachments
source-highlight-3.1.7-r2:20130922-085132.log (source-highlight-3.1.7-r2:20130922-085132.log,80.05 KB, text/plain)
2013-09-22 09:38 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-09-22 09:38:53 UTC
This is an auto-filled bug because I'm unable to compile or install this package. Please edit the summary after you see the real problem.


Portage 2.1.11.52 (default/linux/sparc/13.0, gcc-4.5.4, glibc-2.15-r3, 2.6.39.4 sparc64)                                                                                            
=================================================================                                                                                                                   
System uname: Linux-2.6.39.4-sparc64-sun4v-with-gentoo-2.1                                                                                                                          
KiB Mem:    16597880 total,    523488 free                                                                                                                                          
KiB Swap:          0 total,         0 free                                                                                                                                          
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/cmake:           2.8.9                                                                                                                                                     
dev-util/pkgconfig:       0.28                                                                                                                                                      
sys-apps/baselayout:      2.1-r1                                                                                                                                                    
sys-apps/openrc:          0.11.8                                                                                                                                                    
sys-apps/sandbox:         2.5                                                                                                                                                       
sys-devel/autoconf:       2.13, 2.69                                                                                                                                                
sys-devel/automake:       1.11.6, 1.12.6                                                                                                                                            
sys-devel/binutils:       2.22-r1                                                                                                                                                   
sys-devel/gcc:            4.5.4                                                                                                                                                     
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: gentoo                                                                                                                                                                
ACCEPT_KEYWORDS="sparc"                                                                                                                                                             
ACCEPT_LICENSE="*"                                                                                                                                                                  
CBUILD="sparc-unknown-linux-gnu"                                                                                                                                                    
CFLAGS="-O2 -mcpu=ultrasparc -pipe"                                                                                                                                                 
CHOST="sparc-unknown-linux-gnu"                                                                                                                                                     
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
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.3/ext-active/ 
/etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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="-O2 -mcpu=ultrasparc -pipe"
DISTDIR="/usr/portage/distfiles/"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going y -1"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox 
sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
MAKEOPTS="-j24"
PKGDIR="/usr/portage/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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl berkdb bzip2 cli cracklib crypt cxx dri fortran gcc64 gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre readline session sparc ssl tcpd 
unicode zlib" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 
OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 
USERLAND="GNU"
USE_PYTHON="2.7 3.2"
Comment 1 Agostino Sarubbo gentoo-dev 2013-09-22 09:38:59 UTC
Created attachment 359222 [details]
source-highlight-3.1.7-r2:20130922-085132.log

build log
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2013-09-22 11:23:04 UTC
Thanks for the report, but I need at least a stacktrace (enable core-dumps and then use that?) and/or access to a sparc to be have a chance on fixing this.
Comment 3 Agostino Sarubbo gentoo-dev 2013-12-24 16:16:23 UTC
Feel free to drop the keyword for sparc.
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2014-08-05 11:27:02 UTC
If you need access to sparc hardware let me know
Comment 5 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2015-01-03 11:48:51 UTC
strange, can't reproduce it now. So i mark it stable.
Comment 6 Rolf Eike Beer archtester 2017-11-09 22:45:05 UTC
I get these errors:

== Boost 1.62 ==

libtool: link: sparc-unknown-linux-gnu-g++ -O2 -mcpu=niagara2 -pipe -Wl,-O1 -Wl,--as-needed -o .libs/source-highlight-settings source-highlight-settings.o  -L/usr/lib ../gl/.libs/libgnu.a ../lib/srchilite/.libs/libsource-highlight.so
../lib/srchilite/.libs/libsource-highlight.so: undefined reference to `boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > > const&)'
../lib/srchilite/.libs/libsource-highlight.so: undefined reference to `boost::re_detail_106200::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)'
/usr/lib/libboost_regex.so.1.62.0: undefined reference to `__atomic_fetch_add_4'

== Boost 1.63 ==

/bin/sh ../libtool --tag=CXX   --mode=link sparc-unknown-linux-gnu-g++  -O2 -mcpu=niagara2 -pipe -L/usr/lib -Wl,-O1 -Wl,--as-needed -o source-highlight-settings source-highlight-settings.o ../gl/libgnu.la ../lib/srchilite/libsource-highlight.la
libtool: link: sparc-unknown-linux-gnu-g++ -O2 -mcpu=niagara2 -pipe -Wl,-O1 -Wl,--as-needed -o .libs/source-highlight-settings source-highlight-settings.o  -L/usr/lib ../gl/.libs/libgnu.a ../lib/srchilite/.libs/libsource-highlight.so
/usr/lib/libboost_regex.so.1.63.0: undefined reference to `__atomic_fetch_sub_4'
/usr/lib/libboost_regex.so.1.63.0: undefined reference to `__atomic_fetch_add_4'


Portage 2.3.8 (python 2.7.14-final-0, default/linux/sparc/13.0, gcc-5.4.0, glibc-2.25-r8, 4.13.8 sparc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.13.8-sparc64-sun4v-with-gentoo-2.3
KiB Mem:    33133648 total,  14933832 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 09 Nov 2017 01:15:01 +0000
Head commit of repository gentoo: bd6487aedf4e57052dff25a25e04b297fd79fad0
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14::gentoo, 3.4.5::gentoo, 3.5.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.32.1::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.12.6-r1::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.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::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r8::gentoo
Repositories:

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

ACCEPT_KEYWORDS="sparc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=niagara2 -pipe"
CHOST="sparc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control /var/spool/torque"
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.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -mcpu=niagara2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS=""
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=""
GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j20"
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="acl berkdb big-endian bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 modules ncurses nls nptl openmp pam pcre readline session sparc ssl tcpd unicode xattr zlib" 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" 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="libinput keyboard mouse" KERNEL="linux" 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" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga r128 radeon sunbw2 suncg14 suncg3 suncg6 sunffb sunleo tdfx dummy v4l" 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
Comment 7 Rolf Eike Beer archtester 2017-11-25 20:00:15 UTC
Also happens after I rebuilt everything with gcc 6.4.0.
Comment 8 Rolf Eike Beer archtester 2017-11-25 21:31:57 UTC
As one might guess building with LDFLAGS=-latomic cures this.
Comment 9 Tiziano Müller (RETIRED) gentoo-dev 2019-04-13 14:12:06 UTC
Can you please try with a recent boost and source-highlight-3.1.8?

The following lines suggest that the problem is actually a missing "-latomic" in boost when linking the boost_regex, rather than in source-highlight:

/usr/lib/libboost_regex.so.1.63.0: undefined reference to `__atomic_fetch_sub_4'
/usr/lib/libboost_regex.so.1.63.0: undefined reference to `__atomic_fetch_add_4'
Comment 10 Rolf Eike Beer archtester 2019-04-14 09:57:23 UTC
This is probably bug 646234 then.
Comment 11 Tiziano Müller (RETIRED) gentoo-dev 2019-04-14 11:56:25 UTC
@Rolf: pretty much. Can you test with 3.1.8 such that we can re-add the sparc keyword?
Comment 12 Rolf Eike Beer archtester 2019-04-17 18:12:27 UTC
My bug is unrelated to the original report and was the mentioned boost build issue.