I'm trying the new Gnucash that requires qof 0.7.2 on two systems. On one system, everything worked without problems, on the other system, I get the following build problem: /bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -g -O2 -march=pentium4 -pipe -g2 -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=pentium4 -pipe -g2 -Wall -o sql_parse_test sql_parse_test.o ./libqofsql.la -lglib-2.0 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -march=pentium4 -pipe -g2 -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=pentium4 -pipe -g2 -Wall -MT sql_tree.lo -MD -MP -MF .deps/sql_tree.Tpo -c sql_tree.c -fPIC -DPIC -o .libs/sql_tree.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -march=pentium4 -pipe -g2 -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=pentium4 -pipe -g2 -Wall -MT sql_tree.lo -MD -MP -MF .deps/sql_tree.Tpo -c sql_tree.c -o sql_tree.o >/dev/null 2>&1 /bin/sh ../../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc -g -O2 -march=pentium4 -pipe -g2 -Wall -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -march=pentium4 -pipe -g2 -Wall -o libqofsql.la -rpath /usr/lib -version-info 1:1:0 parser.lo lexer.lo sql_parser.lo mem.lo sql_display.lo sql_tree.lo libtool: link: cannot find the library `./libqofsql.la' or unhandled argument `./libqofsql.la' make[3]: *** [sql_parse_test] Fehler 1 make[3]: *** Warte auf noch nicht beendete Prozesse... i686-pc-linux-gnu-gcc -shared .libs/parser.o .libs/lexer.o .libs/sql_parser.o .libs/mem.o .libs/sql_display.o .libs/sql_tree.o -march=pentium4 -march=pentium4 -Wl,-soname -Wl,libqofsql.so.1 -o .libs/libqofsql.so.1.0.1 (cd .libs && rm -f libqofsql.so.1 && ln -s libqofsql.so.1.0.1 libqofsql.so.1) (cd .libs && rm -f libqofsql.so && ln -s libqofsql.so.1.0.1 libqofsql.so) i686-pc-linux-gnu-ar cru .libs/libqofsql.a parser.o lexer.o sql_parser.o mem.o sql_display.o sql_tree.o i686-pc-linux-gnu-ranlib .libs/libqofsql.a creating libqofsql.la (cd .libs && rm -f libqofsql.la && ln -s ../libqofsql.la libqofsql.la) make[3]: Leaving directory `/var/tmp/portage/dev-libs/qof-0.7.2/work/qof-0.7.2/lib/libsql' make[2]: *** [all-recursive] Fehler 1 make[2]: Leaving directory `/var/tmp/portage/dev-libs/qof-0.7.2/work/qof-0.7.2/lib' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory `/var/tmp/portage/dev-libs/qof-0.7.2/work/qof-0.7.2' make: *** [all] Fehler 2 Reproducible: Always Steps to Reproduce: qof configuration summary: =========================== CFLAGS : -Werror -Wdeclaration-after-statement -Wno-pointer-sign LDFLAGS : QOF_CFLAGS : -I/usr/include/qof QOF_LIBS : -lqof -lqofsql DWI_LIBS : 1st backend : libxml2 == 2.6.28 2nd backend : libgda : prefix : /usr data dir : /usr/share XML dir : /usr/share/xml/qof/qsf include dir : /usr/include lib dir : /usr/lib Portage 2.1.3.16 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.19-gentoo-r5 i686) ================================================================= System uname: 2.6.19-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.73GHz Timestamp of tree: Sat, 03 Nov 2007 03:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de " LC_ALL="de_DE.UTF-8" LINGUAS="de en en_US en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://zathras.home.volker-wegert.de/gentoo-portage" USE="X a52 aac aalib acl acpi alsa arts avi berkdb bitmap-fonts cairo cdr cli cracklib crypt cups dbus divx4linux doc dri dv dvd dvdr dvdread eds emboss encode esd evo fam firebird firefox fortran gdbm gif gpm gstreamer gtk hal iconv imap ipv6 isdnlog jpeg kerberos ldap mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcmcia pcre pdf perl png pppd python qt qt3 qt3support qt4 quicktime readline reflection sasl scanner sdl session spell spl sse sse2 sse3 ssl subtitles svg tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xinerama xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="i128 i740 i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
This: CFLAGS : -Werror -Wdeclaration-after-statement -Wno-pointer-sign is probably something that shouldn't be in a released tarball. Also please fill bug reports with build.log in english.
Volker, please try again. I added a patch that removed all warning CFLAGS from configure.
(In reply to comment #2) > Volker, please try again. I added a patch that removed all warning CFLAGS from > configure. > the patch fails for me, with this output when i run emerge -u qof: * Failed Patch: qof-0.7.2-remove_spurious_CFLAGS.patch ! * ( /usr/portage/dev-libs/qof/files/qof-0.7.2-remove_spurious_CFLAGS.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/dev-libs/qof-0.7.2/temp/qof-0.7.2-remove_spurious_CFLAGS.patch-28559.out * * ERROR: dev-libs/qof-0.7.2 failed. * Call stack: * ebuild.sh, line 1696: Called dyn_unpack * ebuild.sh, line 812: Called qa_call 'src_unpack' * ebuild.sh, line 44: Called src_unpack * qof-0.7.2.ebuild, line 22: Called epatch '/usr/portage/dev-libs/qof/files/qof-0.7.2-remove_spurious_CFLAGS.patch' * eutils.eclass, line 304: Called die * The specific snippet of code: * die "Failed Patch: ${patchname}!" * The die message: * Failed Patch: qof-0.7.2-remove_spurious_CFLAGS.patch! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-libs/qof-0.7.2/temp/build.log'. * and the details from: /var/tmp/portage/dev-libs/qof-0.7.2/temp/qof-0.7.2-remove_spurious_CFLAGS.patch-28559.out PATCH COMMAND: patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-libs/qof/files/qo f-0.7.2-remove_spurious_CFLAGS.patch ================================================== can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- /tmp/configure 2007-11-04 11:44:13.000000000 +0100 |+++ configure 2007-11-04 11:51:58.000000000 +0100 -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored ================================================== (same error repeats with patch command parameter updated to -p1, -p2, -p3, and -p4) if you want to see emerge --info from the machine i tried this on, here it is: emerge --info Portage 2.1.3.18 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.6.1-r0, 2.6.22-gentoo-r6 x86_64) ================================================================= System uname: 2.6.22-gentoo-r6 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Timestamp of tree: Mon, 05 Nov 2007 07:00:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.1.2-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache digest distcc distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.osuosl.org/ http://gentoo.arcticnetwork.ca/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/" LC_ALL="en_US.utf8" LINGUAS="en" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages/x86_64-pc-linux-gnu-4.2.0" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/vmware /usr/portage/local/layman/mozilla /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/xeffects /usr/local/overlays/portage /usr/local/overlays/digital-trauma.de" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d a52 acl acpi aim alsa amd64 apache2 apm arts bash-completion berkdb bitmap-fonts bzip2 cairo cdr cjk ck-server cli cracklib crypt cups curl curlwrappers dba dbm dbus dga dri dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal evo exif fam ffmpeg firefox flac fortran freetype gd gdbm geoip gif glitz gnome gnustep gphoto2 gpm gstreamer gtk hal iconv icq idn imagemagick imap isdnlog jabber java javascript jikes jpeg jpeg2k kde kdeenablefinal kdexdeltas kerberos lcms ldap lm_sensors mad mailwrapper mbox midi mikmod mime mmap mmx mng motif mp3 mpeg msn mudflap ncurses neXt nls nptl nptlonly nsplugin nvidia objc offensive ofx ogg opengl openmp oscar oss pam pcre pdf perl php plotutils png postgres ppds pppd prelude python qt3 qt3support qt4 quicktime readline reflection ruby samba scanner sdl server session slp snmp spell spl sse sse2 ssl svg szip tcltk tcpd tetex tidy tiff tk truetype truetype-fonts type1-fonts unicode v4l vcd vhosts vorbis wmf xface xine xml xml2 xmlrpc xorg xosd xv xvid yahoo zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard evdev joystick mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
(In reply to comment #3) > the patch fails for me, with this output when i run emerge -u qof: Sorry, me being an idiot. Should be fixed now, if not, please get the baseball bat.
Negative, this patch did not fix the problem. However, for no apparent reason, I decided to remove -j2 from the MAKEOPTS, and suddenly, it started compiling. Strange and stranger...
(In reply to comment #5) > Negative, this patch did not fix the problem. However, for no apparent reason, > I decided to remove -j2 from the MAKEOPTS, and suddenly, it started compiling. > Strange and stranger... Could you please modify the ebuild in a way, that all emake is followed by a -j1 (or set MAKEOPTS to -j1), to be sure. I had no problems and no reports, but please check.
(In reply to comment #6) > (In reply to comment #5) > > Negative, this patch did not fix the problem. However, for no apparent reason, > > I decided to remove -j2 from the MAKEOPTS, and suddenly, it started compiling. > > Strange and stranger... > > Could you please modify the ebuild in a way, that all emake is followed by a > -j1 (or set MAKEOPTS to -j1), to be sure. I had no problems and no reports, > but please check. > Ahem - I think either one of us misunderstood the other one. :-) With MAKEOPTS="-j2", I was unable to compile qof. Then I changed MAKEOPTS to "-j1" globally in make.conf, and the error went away. Why do you want me to meddle with the internals of an ebuild?
(In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > Negative, this patch did not fix the problem. However, for no apparent reason, > > > I decided to remove -j2 from the MAKEOPTS, and suddenly, it started compiling. > > > Strange and stranger... > > Could you please modify the ebuild in a way, that all emake is followed by a > > -j1 (or set MAKEOPTS to -j1), to be sure. I had no problems and no reports, > > but please check. > Ahem - I think either one of us misunderstood the other one. :-) > With MAKEOPTS="-j2", I was unable to compile qof. Then I changed MAKEOPTS to > "-j1" globally in make.conf, and the error went away. Why do you want me to > meddle with the internals of an ebuild? Because adding -j1 to emake calls is the way to ensure that -j1 is set for MAKEOPTS...modifying global variables from make.conf is not the way to achieve that. Anyway, I modified the ebuild, please try again.