Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665548 - www-client/chromium-70.0.3521.2: SyntaxError: Unexpected token function (polymerCssBuild)
Summary: www-client/chromium-70.0.3521.2: SyntaxError: Unexpected token function (poly...
Status: RESOLVED FIXED
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: 2018-09-09 07:44 UTC by Miroslav Šulc
Modified: 2018-09-16 16:58 UTC (History)
0 users

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


Attachments
build log (build.log.bz2,495.46 KB, application/x-bzip)
2018-09-09 07:44 UTC, Miroslav Šulc
Details
environment (environment.bz2,42.47 KB, application/x-bzip)
2018-09-09 07:45 UTC, Miroslav Šulc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2018-09-09 07:44:55 UTC
Created attachment 546336 [details]
build log

here is the excerpt where the compilation fails:

[265/15835] python ../../chrome/browser/resources/optimize_webui.py --host bookmarks --input ../../chrome/browser/resources/md_bookmarks --out_folder gen/chrome/browser/resources/md_bookmarks --depfile gen/chrome/browser/resources/md_bookmarks/build.d --html_in_files bookmarks.html --html_out_files vulcanized.html --html_out_files_polymer2 vulcanized.p2.html --js_out_files crisper.js
FAILED: gen/chrome/browser/resources/md_bookmarks/vulcanized.html gen/chrome/browser/resources/md_bookmarks/vulcanized.p2.html gen/chrome/browser/resources/md_bookmarks/crisper.js 
python ../../chrome/browser/resources/optimize_webui.py --host bookmarks --input ../../chrome/browser/resources/md_bookmarks --out_folder gen/chrome/browser/resources/md_bookmarks --depfile gen/chrome/browser/resources/md_bookmarks/build.d --html_in_files bookmarks.html --html_out_files vulcanized.html --html_out_files_polymer2 vulcanized.p2.html --js_out_files crisper.js
Traceback (most recent call last):
  File "../../chrome/browser/resources/optimize_webui.py", line 266, in <module>
    main(sys.argv[1:])
  File "../../chrome/browser/resources/optimize_webui.py", line 249, in main
    manifest_out_path = _optimize(args.input, args)
  File "../../chrome/browser/resources/optimize_webui.py", line 206, in _optimize
    _polymer_css_build(out_path, crisper_html_out_paths, args.html_out_files, 1)
  File "../../chrome/browser/resources/optimize_webui.py", line 225, in _polymer_css_build
    html_in_paths + ['-o'] + html_out_paths)
  File "../../third_party/node/node.py", line 27, in RunNode
    raise RuntimeError('%s failed: %s' % (cmd, stderr))
RuntimeError: ../../third_party/node/linux/node-linux-x64/bin/node ../../third_party/node/node_modules/polymer-css-build/bin/polymer-css-build --polymer-version 1 --no-inline-includes -f /var/tmp/portage/www-client/chromium-70.0.3521.2/work/chromium-70.0.3521.2/out/Release/gen/chrome/browser/resources/md_bookmarks/bundled/vulcanized.html -o /var/tmp/portage/www-client/chromium-70.0.3521.2/work/chromium-70.0.3521.2/out/Release/gen/chrome/browser/resources/md_bookmarks/vulcanized.html failed: /var/tmp/portage/www-client/chromium-70.0.3521.2/work/chromium-70.0.3521.2/third_party/node/node_modules/polymer-css-build/index.js:297
async function polymerCssBuild(paths, options = {}) {
      ^^^^^^^^

SyntaxError: Unexpected token function
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/var/tmp/portage/www-client/chromium-70.0.3521.2/work/chromium-70.0.3521.2/third_party/node/node_modules/polymer-css-build/bin/polymer-css-build:11:31)

ninja: build stopped: subcommand failed.


# emerge --info '=www-client/chromium-70.0.3521.2::gentoo'
Portage 2.3.49 (python 2.7.15-final-0, hardened/linux/amd64, gcc-8.2.0, glibc-2.27-r6, 4.18.4-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.6
KiB Mem:    24563844 total,   2398092 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sun, 09 Sep 2018 07:30:01 +0000
Head commit of repository gentoo: f3855f930fa9a63eb5f28c7cb3b40211506d0a6a
sh bash 4.4_p23
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.4.3 [disabled]
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.4.8-r1::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo
dev-util/ccache:          3.4.3::gentoo
dev-util/cmake:           3.12.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.15.1-r1::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.29::gentoo, 2.29.1::gentoo, 2.31.1::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo, 8.2.0-r2::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-vcs-ignore: true
    sync-rsync-verify-max-age: 24

fordfrog
    location: /usr/src/fordfrog.git
    masters: gentoo
    priority: 0

local
    location: /usr/local/portage
    masters: gentoo

audio-overlay
    location: /var/lib/layman/audio-overlay
    masters: gentoo
    priority: 50

cg
    location: /var/lib/layman/cg
    masters: gentoo
    priority: 50

proaudio
    location: /var/lib/layman/proaudio
    masters: gentoo
    priority: 50

qt
    location: /var/lib/layman/qt
    masters: gentoo
    priority: 50

stuff
    location: /var/lib/layman/stuff
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict 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://distfiles.gentoo.org"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs cs_CZ en en_US en_UK"
MAKEOPTS="-j9"
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 acl alsa amd64 berkdb bzip2 cdda cli crypt cups cxx d3d9 dbus dri dssi dvb dvd exif ffmpeg flac gdbm gegl gif gphoto2 gsm gtk gtk3 hardened http2 iconv icu id3tag ipv6 jack jack-dbus jacksession jpeg ladspa lcms libass libnotify libproxy libtirpc lilypond lv2 mad modplug modules mp3 mpeg mtp multilib musepack ncurses networkmanager nls nptl ocr ogg opengl openmp opus pam pcre pdf pie png pulseaudio raw readline samba scanner seccomp soundio speex spell ssl ssp startup-notification svg taglib theora tiff timidity tk tray truetype unicode urandom usb vaapi vdpau vorbis vpx vst wavpack webp x264 x265 xattr xinerama xtpax xv xvid zlib" ABI_X86="32 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="alias auth_basic authn_core authn_file authz_core authz_host authz_user deflate dir expires filter headers http2 include info log_config mime mime_magic negotiation proxy proxy_ajp rewrite setenvif socache_shmcb status unixd vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 synaptics wacom" KERNEL="linux" L10N="cs cs-CZ en en-US en-UK" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="*" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby21 ruby22 ruby23 ruby24" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nouveau" 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_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


# emerge -pqv '=www-client/chromium-70.0.3521.2::gentoo'
[ebuild     U ] www-client/chromium-70.0.3521.2 [69.0.3497.42] USE="cups hangouts (pic) proprietary-codecs pulseaudio suid -component-build -custom-cflags -gnome-keyring -jumbo-build -kerberos (-neon) (-selinux) (-system-ffmpeg) (-system-icu) (-system-libvpx) (-tcmalloc) -widevine" L10N="cs -am -ar -bg -bn -ca -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -vi -zh-CN -zh-TW"
Comment 1 Miroslav Šulc gentoo-dev 2018-09-09 07:45:30 UTC
Created attachment 546340 [details]
environment
Comment 2 Mike Gilbert gentoo-dev 2018-09-10 19:21:06 UTC
What version of net-libs/nodejs do you have installed?
Comment 3 Miroslav Šulc gentoo-dev 2018-09-11 07:55:04 UTC
(In reply to Mike Gilbert from comment #2)
> What version of net-libs/nodejs do you have installed?

# equery list nodejs
 * Searching for nodejs ...
[IP-] [  ] net-libs/nodejs-6.14.4:0
Comment 4 Mike Gilbert gentoo-dev 2018-09-11 14:47:12 UTC
Can you reproduce the failure with a newer version of nodejs? Like 8.11.x?
Comment 5 Larry the Git Cow gentoo-dev 2018-09-16 16:58:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be3866a6a43a962a330fee98c9ac9dc483acf8c8

commit be3866a6a43a962a330fee98c9ac9dc483acf8c8
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2018-09-16 16:53:55 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2018-09-16 16:58:21 +0000

    www-client/chromium: depend on >=net-libs/nodejs-7.6.0
    
    Needed for async function support.
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function
    
    Closes: https://bugs.gentoo.org/665548
    Package-Manager: Portage-2.3.49_p2, Repoman-2.3.10_p48
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 www-client/chromium/chromium-70.0.3538.16.ebuild | 2 +-
 www-client/chromium/chromium-70.0.3538.9.ebuild  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)