Compile of arc-cros-gralloc failing

36 views
Skip to first unread message

Sean

unread,
Dec 27, 2016, 2:42:28 PM12/27/16
to Chromium OS dev
Complete build log is attached.  This looks important:

../drv.c:47:23: error: type of 'backend_vgem' does not match original declaration [-Werror]
 extern struct backend backend_vgem;
                       ^
../vgem.c:60:16: note: previously declared here
 struct backend backend_vgem =
                ^
../drv.c:46:23: error: type of 'backend_udl' does not match original declaration [-Werror]
 extern struct backend backend_udl;
                       ^
../udl.c:26:16: note: previously declared here
 struct backend backend_udl =
                ^
../drv.c:39:23: error: type of 'backend_nouveau' does not match original declaration [-Werror]
 extern struct backend backend_nouveau;
                       ^
../nouveau.c:22:16: note: previously declared here
 struct backend backend_nouveau =
                ^
../drv.c:29:23: error: type of 'backend_gma500' does not match original declaration [-Werror]
 extern struct backend backend_gma500;
                       ^
../gma500.c:23:16: note: previously declared here
 struct backend backend_gma500 =
                ^
../drv.c:24:23: error: type of 'backend_cirrus' does not match original declaration [-Werror]
 extern struct backend backend_cirrus;
                       ^
../cirrus.c:29:16: note: previously declared here
 struct backend backend_cirrus =
                ^
../drv.c:31:23: error: type of 'backend_i915' does not match original declaration [-Werror]
 extern struct backend backend_i915;
                       ^
../i915.c:258:16: note: previously declared here
 struct backend backend_i915 =
                ^
../drv.c:25:23: error: type of 'backend_evdi' does not match original declaration [-Werror]
 extern struct backend backend_evdi;
                       ^
../evdi.c:26:16: note: previously declared here
 struct backend backend_evdi =
                ^
../drv.c:48:23: error: type of 'backend_virtio_gpu' does not match original declaration [-Werror]
 extern struct backend backend_virtio_gpu;
                       ^
../virtio_gpu.c:26:16: note: previously declared here
 struct backend backend_virtio_gpu =
                ^
lto1: all warnings being treated as errors

Building for celes

emerge --info '=media-libs/arc-cros-gralloc-0.0.1-r20::chromiumos'

Portage 2.2.12-r9 (python 2.7.10-final-0, !/usr/local/portage/chromiumos/profiles/default/linux/amd64/10.0/sdk, gcc-4.9.2, glibc-2.19-r14, 3.13.0-105-generic x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.13.0-105-generic-x86_64-Intel-R-_Xeon-R-_CPU_E5-2690_v3_@_2.60GHz-with-glibc2.2.5
KiB Mem:    65869512 total,   9750288 free
KiB Swap:   67010556 total,  67007708 free
Timestamp of tree: Unknown
ld GNU ld (binutils-2.25.51-r63-082ed0f10cf59b53381cefda2f90247e2a81015b_cos_gg) 2.25.51.20141117
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p42-r2
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.10::chromiumos, 3.3.5-r1
dev-util/ccache:          3.2.4
dev-util/cmake:           3.5.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2::chromiumos
sys-apps/sandbox:         2.11-r2
sys-devel/autoconf:       2.69
sys-devel/automake:       1.10.3-r1, 1.11.6-r1, 1.13.4, 1.14.1
sys-devel/binutils:       2.25.51-r63::chromiumos
sys-devel/gcc:            4.9.2-r145::chromiumos
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.6
sys-devel/make:           4.2.1
sys-kernel/linux-headers: 4.0-r6::chromiumos (virtual/os-headers)
sys-libs/glibc:           2.19-r14::chromiumos
Repositories: portage-stable crossdev chromiumos eclass-overlay chromeos
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @CHROMEOS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc/hosts /etc/locale.gen /etc/localtime /etc/make.conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/lib/portage/distfiles"
EMERGE_DEFAULT_OPTS="--oneshot"
FCFLAGS=""
FEATURES="allow-missing-manifests assume-digests binpkg-logs buildpkg clean-logs config-protect-if-modified distlocks fixlafiles news parallel-fetch parallel-install protect-owned sandbox sfperms unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
INSTALL_MASK="   /usr/lib*/*.la   /etc/init.d /etc/conf.d   /etc/logrotate.d "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -Wl,-O2 -Wl,--as-needed"
MAKEOPTS="-j48"
PKGDIR="/var/lib/portage/pkgs"
PORTAGE_BUNZIP2_COMMAND="pbunzip2 --ignore-trailing-garbage=1"
PORTAGE_BZIP2_COMMAND="pbzip2"
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"
PORTDIR="/usr/local/portage/stable"
PORTDIR_OVERLAY="/usr/local/portage/crossdev /usr/local/portage/chromiumos /usr/local/portage/eclass-overlay /mnt/host/source/src/private-overlays/chromeos-overlay"
USE="acl amd64 bzip2 cros_host crypt cxx dri expat fortran hardened iconv internal ipv6 mmx mmxext modules mudflap multilib ncurses nls nptl nptlonly openmp pic pie python readline sse sse2 ssl sysfs transparent_hugepage unicode vaapi xattr 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" 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="mmx mmxext sse sse2" 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" 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 mips mips64 mips64el mipsel x86_64" QEMU_USER_TARGETS="aarch64 arm i386 mips mips64 mips64el mipsel x86_64" RUBY_TARGETS="ruby19 ruby18" TTY_CONSOLE="tty2" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware 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:  CPPFLAGS, CTARGET, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-libs/arc-cros-gralloc-0.0.1-r20 would be build with the following:
USE="cros_host (multilib) -android-container-nyc -profiling" ABI_X86="64" VIDEO_CARDS="intel -exynos -marvell -mediatek -rockchip -tegra"

>>> Attempting to run pkg_info() for 'media-libs/arc-cros-gralloc-0.0.1-r20'
CROS_WORKON_SRCDIR=("/mnt/host/source/src/third_party/../platform/minigbm")
CROS_WORKON_PROJECT=("chromiumos/platform/minigbm")


emerge -pqv '=media-libs/arc-cros-gralloc-0.0.1-r20::chromiumos'
[ebuild  N    ] media-libs/arc-cros-gralloc-0.0.1-r20  USE="cros_host -android-container-nyc -profiling" VIDEO_CARDS="intel -exynos -marvell -mediatek -rockchip -tegra" 

Sonny Rao

unread,
Dec 27, 2016, 3:00:27 PM12/27/16
to Sean, Chromium OS dev
I was hitting that last week -- I just gave up and re-did setup_board
and it somehow fixed it.
> --
> --
> Chromium OS Developers mailing list: chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium OS dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chromium-os-d...@chromium.org.

Greg Kerr

unread,
Dec 27, 2016, 4:05:57 PM12/27/16
to Sonny Rao, Sean, Chromium OS dev
Sonny,

I had the same experienced. I forced a new setup_board and it resolved
the issue.

Regards,

Greg

Sean Kau

unread,
Dec 27, 2016, 4:39:20 PM12/27/16
to Greg Kerr, Sonny Rao, Chromium OS dev
Thanks.  Looks like:
./setup_board --board=<board> --force

does the trick.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages