Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622530 - sys-apps/flashrom-0.9.9: bitbang_spi.c:67:11: error: 'SPI_CONTROLLER_BITBANG' undeclared here (not in a function)
Summary: sys-apps/flashrom-0.9.9: bitbang_spi.c:67:11: error: 'SPI_CONTROLLER_BITBANG'...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Peter Stuge
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-23 15:25 UTC by Conrad Kostecki
Modified: 2019-04-13 19:23 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,17.44 KB, text/plain)
2017-06-23 15:27 UTC, Conrad Kostecki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Conrad Kostecki gentoo-dev 2017-06-23 15:25:49 UTC
armv7a-hardfloat-linux-gnueabi-gcc -MMD -march=armv8-a+crc -mcpu=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mtune=cortex-a53 -O3 -masm-syntax-unified -mfloat-abi=hard -mfp16-format=ieee -mneon-for-64bits -mstructure-size-boundary=8 -mthumb -mtls-dialect=gnu2 -pipe -fomit-frame-pointer   -D'CONFIG_DEFAULT_PROGRAMMER=PROGRAMMER_INVALID' -D'CONFIG_DEFAULT_PROGRAMMER_ARGS="''"' -D'CONFIG_INTERNAL=1' -D'CONFIG_BITBANG_SPI=1' -D'NEED_PCI=1'  -D'NEED_RAW_ACCESS=1' -D'HAVE_UTSNAME=1' -D'FLASHROM_VERSION="0.9.9-r1955"' -o physmap.o -c physmap.c
bitbang_spi.c:67:11: error: 'SPI_CONTROLLER_BITBANG' undeclared here (not in a function)
  .type  = SPI_CONTROLLER_BITBANG,
           ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:1027: bitbang_spi.o] Fehler 1
make: *** Es wird auf noch nicht beendete Prozesse gewartet....
 * ERROR: sys-apps/flashrom-0.9.9::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=sys-apps/flashrom-0.9.9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/flashrom-0.9.9::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-apps/flashrom-0.9.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/flashrom-0.9.9/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-apps/flashrom-0.9.9/work/flashrom-0.9.9'
 * S: '/var/tmp/portage/sys-apps/flashrom-0.9.9/work/flashrom-0.9.9'
Comment 1 Conrad Kostecki gentoo-dev 2017-06-23 15:26:11 UTC
Portage 2.3.6 (python 3.6.1-final-0, default/linux/arm/13.0/armv7a, gcc-6.3.0, glibc-2.24-r3, 4.12.0-raspberrypi-v7+ armv7l)
=================================================================
System uname: Linux-4.12.0-raspberrypi-v7+-armv7l-ARMv7_Processor_rev_4_-v7l-with-gentoo-2.4.1
KiB Swap:    2097148 total,   2095356 free
Timestamp of repository gentoo: Fri, 23 Jun 2017 14:45:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
distcc 3.2rc1 armv7a-hardfloat-linux-gnueabi [disabled]
ccache version 3.3.4 [enabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1::gentoo
sys-apps/openrc:          0.27.2::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --exclude-from=/etc/portage/rsync_excludes

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

ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-march=armv8-a+crc -mcpu=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mtune=cortex-a53 -O3 -masm-syntax-unified -mfloat-abi=hard -mfp16-format=ieee -mneon-for-64bits -mstructure-size-boundary=8 -mthumb -mtls-dialect=gnu2 -pipe -fomit-frame-pointer"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/boot/cmdline.txt /boot/config.txt /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=armv8-a+crc -mcpu=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mtune=cortex-a53 -O3 -masm-syntax-unified -mfloat-abi=hard -mfp16-format=ieee -mneon-for-64bits -mstructure-size-boundary=8 -mthumb -mtls-dialect=gnu2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="ftp://ftp.halifax.rwth-aachen.de/gentoo/"
INSTALL_MASK="/etc/xinetd.d/* /usr/lib/systemd/system/*"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-z,now"
MAKEOPTS="-j5 -l4"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="pbunzip2"
PORTAGE_BZIP2_COMMAND="pbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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 acl alsa arm armv5te armv6 armv6t2 berkdb bluetooth bzip2 cairo caps cddb cjk cracklib crypt cups curl cvs cxx dbus dga djvu encode fbcon ffmpeg flite fontconfig gd gif git gmp gnutls gpm graphviz gsm iconv icu idn imlib introspection ipv6 javascript jbig jit joystick jpeg jpeg2k lcms libcaca libsamplerate lzma lzo maildir mbox mikmod modplug mp3 ncurses neon nls nntp nptl offensive ogg openal opengl openmp oss pam pcre pdf perl png policykit postproc postscript pulseaudio python raw readline samba sdl slang sndfile sound speex spell sqlite ssl subversion suid svg symlink tcpd theora threads tiff truetype udev unicode usb v4l vim-syntax vorbis wavpack webp wmf x264 xattr xcb xface xft xml xmp xpm xvid zeroconf zlib zsh-completion" CPU_FLAGS_ARM="neon edsp thumb thumb2 v4 v5 v6 v7 vfp" CURL_SSL="openssl" ELIBC="glibc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de de_DE" LINGUAS="de de_DE" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_6" USERLAND="GNU" VIDEO_CARDS="fbdev vc4"
USE_PYTHON="2.7 3.6"
Unset:  CC, CPPFLAGS, CTARGET, CXX
Comment 2 Conrad Kostecki gentoo-dev 2017-06-23 15:27:17 UTC
Created attachment 477664 [details]
build.log
Comment 3 Conrad Kostecki gentoo-dev 2017-06-23 15:29:15 UTC
[ebuild  N     ] sys-apps/flashrom-0.9.9::gentoo  USE="internal (-atahpt) -atapromise -atavia -buspirate_spi -ch341a_spi -dediprog -drkaiser -dummy -ft2232_spi -gfxnvidia -internal_dmi -it8212 -linux_spi -mstarddc_spi (-nic3com) -nicintel -nicintel_eeprom -nicintel_spi (-nicnatsemi) (-nicrealtek) -ogp_spi -pickit2_spi -pony_spi (-rayer_spi) (-satamv) -satasii -serprog -static -tools -usbblaster_spi -wiki" 0 KiB
Comment 4 Kalin KOZHUHAROV 2018-12-17 03:55:43 UTC
I have been doing some maintenance around flashrom and I believe that this has been fixed already in flashrom-1.0, can you please test (for your arch)?

My changes have not been submitted/merged yet, but I think this was resolved before that (in 1.0). My work is currently on pkalin overlay https://github.com/thinrope/pkalin and hopefully soon to see light in portage.
Comment 5 Conrad Kostecki gentoo-dev 2018-12-17 10:24:49 UTC
Yes, your version seems to fix this, thanks!
Comment 6 Conrad Kostecki gentoo-dev 2019-04-13 19:23:08 UTC
Closing, as it compiles fine with current version in portage.