Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556812 - www-client/chromium-45.0.2454.15-r1 ImportError: No module named build
Summary: www-client/chromium-45.0.2454.15-r1 ImportError: No module named build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-06 08:13 UTC by Helmut Jarausch
Modified: 2015-09-09 07:09 UTC (History)
5 users (show)

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


Attachments
build log xz-compressed (chromium-45.0.2454.15-r1.build.xz,80.75 KB, application/x-xz)
2015-08-06 08:13 UTC, Helmut Jarausch
Details
generate_about_tracing_contents.patch (patch,535 bytes, patch)
2015-09-08 13:21 UTC, Paweł Hajdan, Jr. (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2015-08-06 08:13:06 UTC
Created attachment 408372 [details]
build log xz-compressed

chromium-45.0.2454.15-r1, as well as chromium-46*, fails to build because of this
line

cd ../../third_party/trace-viewer/tracing; 
python build/generate_about_tracing_contents --outdir ../../../out/Release/gen/content/browser/tracing

On my machine  python = python3 and therefore this fails with at line 50
    except tvcm.module.DepsException, ex:
                                    ^
SyntaxError: invalid syntax


emerge --info '=www-client/chromium-45.0.2454.15-r1'
Portage 2.2.20 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop, gcc-5.2.0, glibc-2.21-r1, 4.2.0-rc5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.2.0-rc5-x86_64-AMD_Phenom-tm-_II_X4_940_Processor-with-gentoo-2.2
KiB Mem:     7906224 total,   3342384 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Thu, 06 Aug 2015 06:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.0) 2.25.1
ccache version 3.2.2 [disabled]
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/ccache:          3.2.2::gentoo
dev-util/cmake:           3.3.0::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.2.0::gentoo, 6.0.0_alpha20150726::local
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.informatik.RWTH-Aachen.de/gentoo-portage
    priority: -1000

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

java
    location: /usr/local/portage/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

lisp
    location: /usr/local/portage/layman/lisp
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/proj/lisp.git
    masters: gentoo
    priority: 50

qt
    location: /usr/local/portage/layman/qt
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

science
    location: /usr/local/portage/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

sunrise
    location: /usr/local/portage/layman/sunrise
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/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="-mtune=native -O2 -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.iso88591"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 3dnowprefetch X a52 aac acl acpi alsa amd64 avahi berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fortran fuse gdbm gfortran gif gimp glamor gpm gtk gtk3 iconv ipv6 jpeg lapack lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds python qt qt3support qt4 qt5 readline sdl session smp spell sqlite sqlite3 sse sse2 sse3 sse4a ssl startup-notification svg systemd tcl tcpd threads tiff tk truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xulrunner 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow mmx 3dnowext mmxext popcnt sse sse2 sse3 sse4a" 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 ublox ubx" GRUB_PLATFORMS="pc multiboot" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Mike Gilbert gentoo-dev 2015-08-06 15:15:33 UTC
I run python3.4 as my main python interpreter, and do not encounter this.

The ebuild uses python-any-r1.eclass to select python2.7 during the build process.

I suspect there is something funky on your machine.
Comment 2 Mike Gilbert gentoo-dev 2015-08-06 20:09:36 UTC
> On my machine  python = python3 and therefore this fails with at line 50
>     except tvcm.module.DepsException, ex:
>                                     ^
> SyntaxError: invalid syntax

This error does not appear anywhere in your build log. I assume you got it by trying to recreate the error manually.

While I appreciate that you were trying to help, it did wast around 30 minutes of my time trying to figure out why the ebuild would use python3.

The real error from your build log is below.

FAILED: cd ../../third_party/trace-viewer/tracing; python build/generate_about_tracing_contents --outdir ../../../out/Release/gen/content/browser/tracing
Traceback (most recent call last):
  File "build/generate_about_tracing_contents", line 12, in <module>
    from tracing.build import generate_about_tracing_contents
ImportError: No module named build
ninja: build stopped: subcommand failed.
Comment 3 Helmut Jarausch 2015-08-07 13:39:41 UTC
(In reply to Mike Gilbert from comment #2)

> While I appreciate that you were trying to help, it did wast around 30
> minutes of my time trying to figure out why the ebuild would use python3.

Sorry for that.

> 
> The real error from your build log is below.
> 
> FAILED: cd ../../third_party/trace-viewer/tracing; python
> build/generate_about_tracing_contents --outdir
> ../../../out/Release/gen/content/browser/tracing
> Traceback (most recent call last):
>   File "build/generate_about_tracing_contents", line 12, in <module>
>     from tracing.build import generate_about_tracing_contents
> ImportError: No module named build
> ninja: build stopped: subcommand failed.

Is this an upstreams bug or something broken on my machine?

Thanks,
Helmut
Comment 4 Mike Gilbert gentoo-dev 2015-08-07 14:53:51 UTC
(In reply to Helmut Jarausch from comment #3)
> Is this an upstreams bug or something broken on my machine?

I have not figured out the cause of the problem yet.
Comment 5 Douglas J Hunley 2015-08-25 15:35:52 UTC
FWIW, I'm seeing the same issue on my ~amd64 machine. If it's something funky in Helmut's install, it's funky in mine too.

[34/18098] x86_64-pc-linux-gnu-gcc -MMD -MF obj/third_party/boringssl/src/crypto/bio/boringssl.fd.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DENABLE_TOPCHROME_MD=1 -DUSE_UDEV -DDONT_EMBED_BUILD_METADATA -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1 -DENABLE_PRINT_PREVIEW=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_SUPERVISED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DSAFE_BROWSING_SERVICE -DBORINGSSL_IMPLEMENTATION -DBORINGSSL_NO_STATIC_INITIALIZER -DUSE_LIBPCI=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../third_party/boringssl/src/include -I../../third_party/boringssl/src/crypto -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-typedefs -Wno-format -Wno-unused-result -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -O2 -pipe -march=native -fdiagnostics-color=auto -fstack-protector-strong  -c ../../third_party/boringssl/src/crypto/bio/fd.c -o obj/third_party/boringssl/src/crypto/bio/boringssl.fd.o
FAILED: cd ../../third_party/trace-viewer/tracing; python build/generate_about_tracing_contents --outdir ../../../out/Release/gen/content/browser/tracing
Traceback (most recent call last):
  File "build/generate_about_tracing_contents", line 12, in <module>
    from tracing.build import generate_about_tracing_contents
ImportError: No module named build
ninja: build stopped: subcommand failed.
 * ERROR: www-client/chromium-45.0.2454.46::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 5064:  Called die
 * The specific snippet of code:
 *       eninja -C out/Release ${ninja_targets} || die;
 * 
 * If you need support, post the output of `emerge --info '=www-client/chromium-45.0.2454.46::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/chromium-45.0.2454.46::gentoo'`.
 * 
 * MemTotal:       16440552 kB
 * SwapTotal:       4194300 kB
 * 
 * The complete build log is located at '/var/tmp/portage/www-client/chromium-45.0.2454.46/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/chromium-45.0.2454.46/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/chromium-45.0.2454.46/work/chromium-45.0.2454.46'
 * S: '/var/tmp/portage/www-client/chromium-45.0.2454.46/work/chromium-45.0.2454.46'

>>> Failed to emerge www-client/chromium-45.0.2454.46
Comment 6 Guillaume ZITTA 2015-09-04 21:01:57 UTC
found!

it's a conflict between local "tracing" module (third_party/trace-viewer/tracing) and a "tracing" module from dev-python/tracing.

the second one is before the local one in the path.
Comment 7 serg 2015-09-05 06:17:17 UTC
(In reply to Guillaume ZITTA from comment #6)
> found!
> 
> it's a conflict between local "tracing" module
> (third_party/trace-viewer/tracing) and a "tracing" module from
> dev-python/tracing.
> 
> the second one is before the local one in the path.

yes, it's working
Comment 8 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2015-09-08 13:21:29 UTC
Created attachment 411334 [details, diff]
generate_about_tracing_contents.patch

I reproduced this locally - dev-python/tracing indeed triggers the issue. The real culprit is in the chromium code of course. This patch fixes it for me.

FWIW just trying to build "generate_about_tracing" target should be sufficient.

chromium-46.x doesn't seem affected (tested locally).