emerge --info '=dev-embedded/avrdude-5.11.1' Portage 2.2.0_alpha174 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.2, glibc-2.17, 3.9.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i5_CPU_760_@_2.80GHz-with-gentoo-2.2 KiB Mem: 4051760 total, 938980 free KiB Swap: 4000180 total, 4000180 free Timestamp of tree: Tue, 14 May 2013 18:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.4, 3.2.4 dev-util/ccache: 3.1.9-r1::science dev-util/cmake: 2.8.10.2-r2 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8::pentoo 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.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.9 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo local science pentoo betagarden ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /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/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" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="" 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="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/local /var/lib/layman/science /var/lib/layman/pentoo /var/lib/layman/betagarden" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative device-mapper djvu dri dts dv dvb dvd dvdr dvi emacs emboss encode exif fam ffmpeg firefox flac fortran gdbm gif gimp gphoto2 gpm gstreamer gtk gtk3 iconv ipv6 jpeg kde kipi lcms ldap libnotify lirc mad mmx mng modules mp3 mp4 mpeg mtp mudflap multilib ncurses nls nptl nsplugin ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pvr qt3support qt4 readline samba sdl semantic-desktop session spell sse sse2 ssh ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb v4l vim vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="emu10k1" 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 author" CAMERAS="canon ptp2 spca50x" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en_CA" LIRC_DEVICES="hauppauge hauppauge_dvb" 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="fglrx" 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, USE_PYTHON ================================================================= Package Settings ================================================================= dev-embedded/avrdude-5.11.1 was built with the following: USE="(consolekit) doc ftdi (multilib) ncurses (policykit) readline" ABI_X86="64" >>> Compiling source in /var/tmp/portage/dev-embedded/avrdude-5.11.1/work/avrdude-5.11.1 ... make -j5 lexer.c config_gram.c config_gram.h /bin/sh ./ylwrap lexer.l lex.yy.c lexer.c -- flex /bin/sh ./ylwrap config_gram.y y.tab.c config_gram.c y.tab.h config_gram.h y.output config_gram.output -- bison -y -d updating config_gram.h make -j5 make all-recursive make[1]: Entering directory `/var/tmp/portage/dev-embedded/avrdude-5.11.1/work/avrdude-5.11.1' make[2]: Entering directory `/var/tmp/portage/dev-embedded/avrdude-5.11.1/work/avrdude-5.11.1' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/etc\" -Wall -Wno-pointer-sign -march=native -O2 -pipe -c -o libavrdude_a-config_gram.o `test -f 'config_gram.c' || echo './'`config_gram.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/etc\" -Wall -Wno-pointer-sign -march=native -O2 -pipe -c -o libavrdude_a-lexer.o `test -f 'lexer.c' || echo './'`lexer.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/etc\" -Wall -Wno-pointer-sign -march=native -O2 -pipe -c -o libavrdude_a-arduino.o `test -f 'arduino.c' || echo './'`arduino.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/etc\" -Wall -Wno-pointer-sign -march=native -O2 -pipe -c -o libavrdude_a-avr.o `test -f 'avr.c' || echo './'`avr.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/etc\" -Wall -Wno-pointer-sign -march=native -O2 -pipe -c -o libavrdude_a-avr910.o `test -f 'avr910.c' || echo './'`avr910.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/etc\" -Wall -Wno-pointer-sign -march=native -O2 -pipe -c -o libavrdude_a-avrftdi.o `test -f 'avrftdi.c' || echo './'`avrftdi.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/etc\" -Wall -Wno-pointer-sign -march=native -O2 -pipe -c -o libavrdude_a-avrpart.o `test -f 'avrpart.c' || echo './'`avrpart.c avrftdi.c:44:18: fatal error: ftdi.h: No such file or directory compilation terminated. make[2]: *** [libavrdude_a-avrftdi.o] Error 1 make[2]: *** Waiting for unfinished jobs.... lexer.c:2556:17: warning: ‘yyunput’ defined but not used [-Wunused-function] make[2]: Leaving directory `/var/tmp/portage/dev-embedded/avrdude-5.11.1/work/avrdude-5.11.1' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-embedded/avrdude-5.11.1/work/avrdude-5.11.1' make: *** [all] Error 2 with libftdi-1.0 installed I get the above error message as with libftdi-2.0 it builds perfectely
Please attach the entire build log to this bug report.
Created attachment 348478 [details] build log
Created attachment 348480 [details] emerge -pqv '=dev-embedded/avrdude-5.11.1'
with libftdi-1.0 there's no libftdi.pc (ther's libftdil.pc and libftdippl.pc), I guess that's why it is not finding ftdi.h. if I add `pkgconfig libftdi --cflags` or simply '-I /usr/include/libftdi' x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DCONFIG_DIR=\"/etc\" `pkg-config libftdi1 --cflags` -Wall -Wno-pointer-sign -march=native -O2 -pipe -c -o libavrdude_a-avrftdi.o `test -f 'avrftdi.c' || echo './'`avrftdi.c avrftdi.c: In function ‘avrftdi_open’: avrftdi.c:449:32: error: dereferencing pointer to incomplete type avrftdi.c:450:30: error: dereferencing pointer to incomplete type avrftdi.c:456:16: warning: assignment from incompatible pointer type [enabled by default] avrftdi.c:457:29: error: dereferencing pointer to incomplete type avrftdi.c:461:29: error: dereferencing pointer to incomplete type avrftdi.c:463:16: warning: assignment from incompatible pointer type [enabled by default] avrftdi.c:514:2: warning: passing argument 2 of ‘ftdi_usb_open_dev’ from incompatible pointer type [enabled by default] In file included from avrftdi.c:44:0: /usr/include/libftdi1/ftdi.h:454:9: note: expected ‘struct libusb_device *’ but argument is of type ‘struct usb_device *’ with 0.20 it just builds as it should may be avdrdude should depend on <=libftdi-0.20
There seems to be a 6.0 rc: http://download.savannah.gnu.org/releases/avrdude/avrdude-6.0rc1.tar.gz It might work well with libftdi 1.0
I can confirm I am hitting this bug as well with avrdude-5.11.1 and libftdi-1.0: avrftdi.c:44:18: fatal error: ftdi.h: No such file or directory ftdi.h is located in /usr/include/libftdi1, rather than /usr/include, so I guess it is not located by default.
I also hit this bug, but installing http://download.savannah.gnu.org/releases/avrdude/avrdude-6.0.1.tar.gz with ftdi-1.0 with the avrdude-5.11.1 ebuild (unchanged) works fine, no errors.
seems fixed with avrdude-6.1