Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 171159

Summary: dev-libs/g-wrap-1.3.4-r1 fails to build on ppc
Product: Gentoo Linux Reporter: Alexey Zilber <AlexeyZilber>
Component: [OLD] LibraryAssignee: Scheme Project <scheme>
Status: RESOLVED FIXED    
Severity: normal CC: ladanyi
Priority: High    
Version: 2006.1   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build Log

Description Alexey Zilber 2007-03-16 13:31:14 UTC
emerging gnu-cash fails because of g-wrap build failure:

mkdir .libs
powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -Wall -Werror -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe -MT g-wrap-wct.lo -MD -MP -MF .deps/g-wrap-wct.Tpo -c g-wrap-wct.c  -fPIC -DPIC -o .libs/g-wrap-wct.lo
rm -f .libs/g-wrap-glib.lo
powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -Wall -Werror -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe -MT g-wrap-glib.lo -MD -MP -MF .deps/g-wrap-glib.Tpo -c g-wrap-glib.c  -fPIC -DPIC -o .libs/g-wrap-glib.lo
In file included from /usr/include/glib-1.2/glib.h:66,
                 from ./g-wrap-glib.h:24,
                 from g-wrap-glib.c:20:
/usr/lib/glib/include/glibconfig.h:39:8: error: extra tokens at end of #endif directive
make[2]: *** [g-wrap-glib.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -Wall -Werror -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe -MT g-wrap-wct.lo -MD -MP -MF .deps/g-wrap-wct.Tpo -c g-wrap-wct.c -o g-wrap-wct.o >/dev/null 2>&1
mv -f .libs/g-wrap-wct.lo g-wrap-wct.lo
make[2]: Leaving directory `/var/tmp/portage/dev-libs/g-wrap-1.3.4-r1/work/g-wrap-1.3.4/g-wrap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/g-wrap-1.3.4-r1/work/g-wrap-1.3.4'
make: *** [all] Error 2

!!! ERROR: dev-libs/g-wrap-1.3.4-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3233:   Called src_compile
  g-wrap-1.3.4-r1.ebuild, line 31:   Called die

!!! emake failed
!!! 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/g-wrap-1.3.4-r1/temp/build.log'.

Reproducible: Always

Steps to Reproduce:
1.emerge app-office/gnucash
2.
3.
Comment 1 Alexey Zilber 2007-03-16 13:32:55 UTC
Created attachment 113475 [details]
Build Log
Comment 2 Alexey Zilber 2007-03-16 13:34:00 UTC
Portage 2.1.2.2 (default-linux/ppc/ppc32/2006.1/G3, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 ppc)
=================================================================
System uname: 2.6.19-gentoo-r5 ppc 740/750
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 15 Mar 2007 02:30:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=G3 -mtune=G3 -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://tdsutils.tds.net/pub/gentoo-portage/"
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://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 arts berkdb bitmap-fonts bonobo bzip2 cdr cli cracklib crypt cups dri dvd eds emboss encode esd firefox fortran gdbm geoip gif gnome gnutls gpm gstreamer gtk gtkhtml iconv ipv6 isdnlog jpeg kde ldap libg++ libwww mad midi mikmod mozilla mp3 mpeg mpi ncurses nls nptl nptlonly ogg opengl pam pcre pdf perl png ppc pppd python qt3 qt4 quicktime readline reflection ruby sasl sdl session skey snmp soap sockets spell spl ssl szip tcpd truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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 mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="ati chips dummy fbdev glint imstt mga nv s3 s3virge savage sisusb tdfx trident v4l voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Marijn Schouten (RETIRED) gentoo-dev 2007-03-16 15:37:37 UTC
Could you please try g-wrap-1.9.6-r3 ?
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2007-03-16 15:53:36 UTC
also if you have eix, can you run (on one line):

for prog in guile slib;
do eix -ec $prog; eix -e $prog | head -n 3 | tail -n 2; done

Comment 5 Alexey Zilber 2007-03-16 18:12:00 UTC
g-wrap-1.9.6-r3 is masked for my platform, shall I install anyway?
I installed eix and here's the output:

router ~ # for prog in guile slib; do eix -ec $prog; eix -e $prog | head -n 3 | tail -n 2; done
[I] dev-scheme/guile (1.6.7(12)@03/15/07): Scheme interpreter
     Available versions:  (12)  1.6.7 ~1.6.8 ~1.8.1-r3
     Installed versions:  1.6.7(12)(13:37:49 03/15/07)
[I] dev-scheme/slib (3.1.1@03/15/07): library providing functions for Scheme implementations
     Available versions:  !2.4.2 2.4.3 2.4.6 3.1.1 ~3.1.1-r1 ~3.1.4-r2
     Installed versions:  3.1.1(13:54:28 03/15/07)
Comment 6 Alexey Zilber 2007-03-16 18:14:30 UTC
FYI, here's the same eix info for g-wrap:
for prog in g-wrap; do eix -ec $prog; eix -e $prog | head -n 3 | tail -n 2; done
[N] dev-libs/g-wrap (1.3.4-r1): A tool for exporting C libraries into Scheme
     Available versions:  1.3.4-r1 !1.9.6-r3 [M]!1.9.7-r3
     Homepage:            http://www.nongnu.org/g-wrap/
Comment 7 Marijn Schouten (RETIRED) gentoo-dev 2007-03-16 18:26:24 UTC
(In reply to comment #5)
> g-wrap-1.9.6-r3 is masked for my platform, shall I install anyway?

please do. You can unmask it with the hack (even though amd64 is not your arch.):
echo "=dev-libs/g-wrap-1.9.6-r3 ~amd64" >> /etc/portage/package.unmask

You may report succes in bug 162010.
Comment 8 Alexey Zilber 2007-03-16 19:15:53 UTC
That command needed to go into /etc/portage/package.keywords not unmask (atom error that way, it's masked via keywords).
It was a success, I've reported to the other bug as requested.

Quick question.  How do I emerge gnu-cash with this new package?  It keeps wanting to downgrade g-wrap.

Comment 9 Marijn Schouten (RETIRED) gentoo-dev 2007-03-16 19:22:56 UTC
(In reply to comment #8)
> That command needed to go into /etc/portage/package.keywords not unmask (atom
> error that way, it's masked via keywords).
sorry about that :)

> It was a success, I've reported to the other bug as requested.
thanks
 
> Quick question.  How do I emerge gnu-cash with this new package?  It keeps
> wanting to downgrade g-wrap.

Yeah, because of the missing keywording on g-wrap it was ``fixed'' by depending explicitly on a lower version which _was_ keyworded. You can do the same unmask trick for one of the newer gnucash ebuilds and report to aforementioned bug.
Comment 10 Marijn Schouten (RETIRED) gentoo-dev 2007-07-09 14:13:09 UTC
this version removed -> fixed