Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466914 - www-client/chromium-27.0.1453.56 - regex_set_matcher.cc: undefined reference to `re2::FilteredRE2::AllMatches
Summary: www-client/chromium-27.0.1453.56 - regex_set_matcher.cc: undefined reference ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-23 18:25 UTC by Martin Mokrejš
Modified: 2013-04-24 22:08 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2013-04-23 18:25:34 UTC
Hi,
  it looks like a -lre2 related issue.

  flock out/Release/linker.lock x86_64-pc-linux-gnu-g++ -Wl,-z,now -Wl,-z,relro -pthread -Wl,-z,noexecstack -fPIC -pie -Lout/Release -Wl,--export-dynamic -pthread -Wl,--export-dynamic -pthread -lpthread -ldl -lm -L/usr/lib64 -licui18n -licuuc -licudata -lpthread -ldl -lm -pthread -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections -Wl,-O1 -Wl,--as-needed -o out/Release/chrome -Wl,--start-group ..................... -Wl,--end-group -lX11 -lXcursor -lXrandr -lXrender -lXss -lXext -lrt -ldl -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lXtst -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfreetype -lfontconfig -lXi -levent -lplds4 -lplc4 -lnspr4 -lsmime3 -lnss3 -lnssutil3 -lz -licui18n -licuuc -licudata -lresolv -ldbus-1 -lprotobuf -lpthread -lXcomposite -lasound -lXdamage -lXfixes -lopus -lpng16 -ljpeg -lavcodec -lavformat -lavutil -lre2 -lwebp -lxml2 -lxslt -lm -lv8 -lharfbuzz -lcups -lssl -lcrypto -lcrypt -lgcrypt -lgpg-error -lbz2 -lminizip -lexpat -ljsoncpp -lvpx -lspeex -lusb-1.0 -lspeechd -lpci -ludev -lFLAC
out/Release/obj.target/chrome/../common/extensions/common/matcher/regex_set_matcher.o: In function `extensions::RegexSetMatcher::Match(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::set<int, std::less<int>, std::allocator<int> >*) const':
regex_set_matcher.cc:(.text._ZNK10extensions15RegexSetMatcher5MatchERKSsPSt3setIiSt4lessIiESaIiEE+0x1b9): undefined reference to `re2::FilteredRE2::AllMatches(re2::StringPiece const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> >*) const'
collect2: ld returned 1 exit status
make: *** [out/Release/chrome] Error 1
 * ERROR: www-client/chromium-27.0.1453.56 failed (compile phase):


A ful builg.log (60MB) is at http://195.113.57.32/~mmokrejs/tmp/chromium-27.0.1453.56_build.log
Comment 1 Martin Mokrejš 2013-04-23 18:37:54 UTC
# emerge --info '=www-client/chromium-27.0.1453.56'
Portage 2.1.11.62 (default/linux/amd64/13.0, gcc-4.5.4, glibc-2.17, 3.8.8-default x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.8.8-default-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16329240 total,   2816236 free
KiB Swap:    4998972 total,   4998972 free
Timestamp of tree: Fri, 19 Apr 2013 20:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.5.4-r5, 2.6.8-r1, 2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.2.4-r1, 4.3.6-r1, 4.5.4, 4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo gentoo-haskell science x-portage x-layman
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx -maes -mpclmul -mpopcnt -march=corei7-avx"
CHOST="x86_64-pc-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/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/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 -pipe -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx -maes -mpclmul -mpopcnt -march=corei7-avx"
DISTDIR="/mnt/1TB/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
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="/mnt/1TB/usr/portage"
PORTDIR="/mnt/1TB/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/haskell /home/mmokrejs/proj/sci /usr/local/portage /var/lib/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 amr apache apache2 berkdb bluetooth bzip2 cairo cgi cli cracklib crypt cryptlib cups cxx dbus device-mapper dhcp dri emboss encode fax ffmpeg flac fontconfig fortran gd gdbm gimp gpm gtk gudev hal hpijs hwdb iconv id3tag innodb java jce jpeg jpg keymap ladspa laptop lcms libnotify lm_sensors mad mmx modules mpi mpich2 multilib mysql ncurses nfs nls nptl nptlonly nsplugin ntfsprogs ocr ogg opengl openmp openssl pam parport pcre pdf perl php png ppds pppd python readline resolvconf scanner server session sndfile sqlite sse sse2 sse3 ssl suexec svg syslog tcpd threads tiff tk truetype udev unicode usb vim-syntax wavpack x11 xml xorg 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="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" 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 cs cz" 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="vesa vmware fbdev intel i915" 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


# emerge -s re2
Searching...    
[ Results for search key : re2 ]
[ Applications found : 3 ]

*  dev-libs/re2
      Latest version available: 9999
      Latest version installed: 9999
      Size of files: 0 kB
      Homepage:      http://code.google.com/p/re2/
      Description:   An efficient, principled regular expression library
      License:       BSD

[cut]

# equery files dev-libs/re2
 * Searching for re2 in dev-libs ...
 * Contents of dev-libs/re2-9999:
/usr
/usr/include
/usr/include/re2
/usr/include/re2/filtered_re2.h
/usr/include/re2/re2.h
/usr/include/re2/set.h
/usr/include/re2/stringpiece.h
/usr/include/re2/variadic_function.h
/usr/lib
/usr/lib/libre2.a
/usr/lib/libre2.so -> libre2.so.0.0.0
/usr/lib/libre2.so.0 -> libre2.so.0.0.0
/usr/lib/libre2.so.0.0.0
/usr/share
/usr/share/doc
/usr/share/doc/re2-9999
/usr/share/doc/re2-9999/README.bz2
#

So maybe a conflict between an included copy of libre2 in chromium with the one installed in system paths? Renaming the system-wide libs files results in 
x86_64-pc-linux-gnu/bin/ld: cannot find -lre2
so it seems the system-wide version does not have the expected API like the copy supposedly buried somewhere inside chromium tarball. Or I am completely wrong. ;)
Comment 2 Martin Mokrejš 2013-04-23 19:06:16 UTC
I think I am right, See this that system re2 is forced in build.log:

>>> Configuring source in /mnt/1TB/usr/portage/portage/www-client/chromium-27.0.1453.56/work/chromium-27.0.1453.56 ...
build/gyp_chromium --depth=. -Ddisable_sse2=1 -Dlinux_use_tcmalloc=0 -Ddisable_glibc=1 -Ddisable_pnacl=1 -Ddisable_newlib_untar=1 -Dflapper_version_h_file=/mnt/1TB/usr/portage/portage/www-client/chromium-27.0.1453.56/temp/flapper_version.h -Duse_system_bzip2=1 -Duse_system_flac=1 -Duse_system_harfbuzz=1 -Duse_system_icu=1 -Duse_system_jsoncpp=1 -Duse_system_libevent=1 -Duse_system_libjpeg=1 -Duse_system_libpng=1 -Duse_system_libusb=1 -Duse_system_libvpx=1 -Duse_system_libwebp=1 -Duse_system_libxml=1 -Duse_system_minizip=1 -Duse_system_nspr=1 -Duse_system_opus=1 -Duse_system_protobuf=1 -Duse_system_re2=1 -Duse_system_speex=1 -Duse_system_v8=1 -Duse_system_xdg_utils=1 -Duse_system_zlib=1 -Duse_system_ffmpeg=1 -Duse_system_mesa=1 -Duse_system_yasm=1 -Dmedia_use_libvpx=0 -Duse_cups=1 -Duse_gconf=0 -Duse_gnome_keyring=0 -Dlinux_link_gnome_keyring=0 -Dlinux_use_libgps=0 -Dlinux_link_libgps=0 -Duse_kerberos=0 -Duse_pulseaudio=0 -Dselinux=0 -Dlinux_link_gsettings=1 -Dlinux_link_libpci=1 -Dlinux_link_libspeechd=1 -Dusb_ids_path=/usr/share/misc/usb.ids -Dlinux_sandbox_path=/usr/lib64/chromium-browser/chrome_sandbox -Dlinux_sandbox_chrome_path=/usr/lib64/chromium-browser/chrome -Dlinux_use_gold_binary=0 -Dlinux_use_gold_flags=0 -Dproprietary_codecs=1 -Dgoogle_api_key=AIzaSyDEAOvatFo0eTgsV_ZlEzx0ObmepsMzfAc -Dgoogle_default_client_id=329227923882.apps.googleusercontent.com -Dgoogle_default_client_secret=vgKG0NNv7GoDpbtoFNLxCUXu -Dtarget_arch=x64 -Dwerror=


I don't see IUSE=re2 so it seems I will have to uninstall my system-wide re2 at least temporarily until I compile chromium. :(
Comment 3 Martin Mokrejš 2013-04-23 23:32:49 UTC
I unmerged dev-libs/re2-9999 but www-client/chromium-27.0.1453.56 required it to be be installed again, although current svn/cvs/git checkout was made. However, the linking failed in the very same step again. So, it looks I can't do more for you here and maybe there is no a built-in copy of re2 inside chromium sources at all.
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-04-24 17:37:30 UTC
(In reply to comment #1)
> *  dev-libs/re2
>       Latest version available: 9999
>       Latest version installed: 9999
>       Size of files: 0 kB
>       Homepage:      http://code.google.com/p/re2/
>       Description:   An efficient, principled regular expression library
>       License:       BSD

It's not in portage, and it's broken.

Please use the version from portage - feel free to reopen if it still fails.
Comment 5 Martin Mokrejš 2013-04-24 22:08:24 UTC
(In reply to comment #4)
> (In reply to comment #1)
> > *  dev-libs/re2
> >       Latest version available: 9999
> >       Latest version installed: 9999

> 
> Please use the version from portage - feel free to reopen if it still fails.

Damn, dev-libs/re2-0_p20130115-r1 works.