Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339462 - x11-misc/xosview-1.8.3-r1 on alpha: build failed due to missing asm/irq.h
Summary: x11-misc/xosview-1.8.3-r1 on alpha: build failed due to missing asm/irq.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: High normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-02 12:50 UTC by Kazuyoshi Furutaka
Modified: 2011-08-16 06:30 UTC (History)
2 users (show)

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


Attachments
patch to intmeter.cc (xosview-intmeter.cc-remove-alpha-irq.h.patch,413 bytes, patch)
2010-10-02 12:51 UTC, Kazuyoshi Furutaka
Details | Diff
patch to xosview-1.8.3-r1.ebuild (xosview-1.8.3-r1.ebuild.diff,377 bytes, patch)
2010-10-02 12:52 UTC, Kazuyoshi Furutaka
Details | Diff
a screenshot of xosview running on alpha (xosview-alpha.png,11.26 KB, image/png)
2010-10-02 12:53 UTC, Kazuyoshi Furutaka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kazuyoshi Furutaka 2010-10-02 12:50:00 UTC
As the subject says, the build of x11-misc/xosview-1.8.3-r1 failed due to missing asm/irq.h on alpha, which is #include'd in intmeter.cc if __alpha__ is defined. 

alpha-unknown-linux-gnu-g++ -mieee -pipe -O2 -mcpu=ev56 -mlarge-data -Wl,--no-relax -mieee -pipe -O2 -mcpu=ev56 -mlarge-data -Wl,--no-relax -Wall -O4 -I. -DXOSVIEW_VERSION=\"1.8.3\" -I/var/tmp/portage/x11-misc/xosview-1.8.3-r1/work/xosview-1.8.3 -I/var/tmp/portage/x11-misc/xosview-1.8.3-r1/work/xosview-1.8.3/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DHAVE_XPM=1 -DGNULIBC=1 -DUSESYSCALLS=1 -DHAVE_USLEEP=1  -mieee -pipe -O2 -mcpu=ev56 -mlarge-data -Wl,--no-relax -Wall -O4 -I. -DXOSVIEW_VERSION=\"1.8.3\" -I/var/tmp/portage/x11-misc/xosview-1.8.3-r1/work/xosview-1.8.3 -I/var/tmp/portage/x11-misc/xosview-1.8.3-r1/work/xosview-1.8.3/linux -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_BOOL=1 -DLONG_LONG=long\ long -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_IOSTREAM=1 -DHAVE_FSTREAM=1 -DHAVE_XPM=1 -DGNULIBC=1 -DUSESYSCALLS=1 -DHAVE_USLEEP=1  -I..  -c intmeter.cc -o intmeter.o
intmeter.cc:16:21: error: asm/irq.h: No such file or directory
make[1]: *** [intmeter.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-misc/xosview-1.8.3-r1/work/xosview-1.8.3/linux'
make: *** [meterlib] Error 2
emake failed
 * ERROR: x11-misc/xosview-1.8.3-r1 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2347:  Called _eapi0_src_compile
 *     ebuild.sh, line  626:  Called _eapi2_src_compile
 *     ebuild.sh, line  660:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =x11-misc/xosview-1.8.3-r1',
 * the complete build log and the output of 'emerge -pqv =x11-misc/xosview-1.8.3-r1'.
 * The complete build log is located at '/var/tmp/portage/x11-misc/xosview-1.8.3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-misc/xosview-1.8.3-r1/temp/environment'.
 * S: '/var/tmp/portage/x11-misc/xosview-1.8.3-r1/work/xosview-1.8.3'

It builds and works without the inclusion of the header file; the patches to the ebuild and intmeter.cc will be attached later.
Comment 1 Kazuyoshi Furutaka 2010-10-02 12:51:23 UTC
Created attachment 249302 [details, diff]
patch to intmeter.cc
Comment 2 Kazuyoshi Furutaka 2010-10-02 12:52:15 UTC
Created attachment 249304 [details, diff]
patch to xosview-1.8.3-r1.ebuild
Comment 3 Kazuyoshi Furutaka 2010-10-02 12:53:16 UTC
Created attachment 249308 [details]
a screenshot of xosview running on alpha
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2011-08-16 06:30:43 UTC
Pushed your fix as:

>  16 Aug 2011; Sergei Trofimovich <slyfox@gentoo.org> xosview-1.8.3-r1.ebuild,
>  +files/xosview-1.8.3-alpha-build-fix.patch:
>  Fixed build on alpha (bug #339462). Report and fix by Kazuyoshi Furutaka.

Thank you!