Summary: | app-emulation/bochs-2.6.9: cksum.cc:83:12: error: uintptr_t was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Anton Kochkov <anton.kochkov> |
Component: | Current packages | Assignee: | Luca Barbato <lu_zero> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | 0xe2.0x9a.0x9b, andreas.thalhammer, jstein, kayodepw |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/10787 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
full build log
emerge --info output Updated bochs ebuild with patch for slirpinc build error |
Created attachment 517382 [details]
emerge --info output
I found the solution here: https://sourceforge.net/p/bochs/bugs/1392/#a6e9 Created attachment 574404 [details] Updated bochs ebuild with patch for slirpinc build error Yes, the patch from sourceforge worked for me. My machine is amd64 with gcc-8.3.0-r1. My personal solution was to copy app-emulation/bochs from /usr/portage to /usr/local/portage (or where ever your portage an local portage overlay is) and add directory files with the patch from sourceforge: mkdir -p /usr/local/portage/app-emulation/bochs/files cp /usr/portage/app-emulation/bochs/* /usr/local/portage/app-emulation/bochs/ wget -O /usr/local/portage/app-emulation/bochs/files/slirpinc.patch https://sourceforge.net/p/bochs/bugs/_discuss/thread/5c779668/a6e9/attachment/slirpinc.patch Replace /usr/local/portage/app-emulation/bochs/bochs-2.6.9.ebuild with the attachment, or alternatively, apply this patch to the ebuild: --- /usr/portage/app-emulation/bochs/bochs-2.6.9.ebuild 2018-04-27 03:38:58.000000000 +0200 +++ /usr/local/portage/app-emulation/bochs/bochs-2.6.9.ebuild 2019-04-27 11:30:57.396628141 +0200 @@ -3,6 +3,8 @@ EAPI=6 +inherit eutils + DESCRIPTION="LGPL-ed pc emulator" HOMEPAGE="http://bochs.sourceforge.net/" SRC_URI="mirror://sourceforge/bochs/${P}.tar.gz" @@ -39,6 +41,7 @@ default sed -i "s:^docdir.*:docdir = ${EPREFIX}/usr/share/doc/${PF}:" \ Makefile.in || die + epatch "${FILESDIR}"/slirpinc.patch } src_configure() { Maintainers - ping? Please review the pull request/patch. *** This bug has been marked as a duplicate of bug 638476 *** |
Created attachment 517380 [details] full build log x86_64-pc-linux-gnu-g++ -c -I.. -I../.. -I./.. -I./../.. -I../../instrument/stubs -I./../../instrument/stubs -O2 -march=corei7-avx -pipe -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -pthread slirp/dnssearch.cc -fPIC -DPIC -o slirp/.libs/dnssearch.o [01m[Kslirp/cksum.cc:[m[K In function '[01m[Kint cksum(mbuf*, int)[m[K': [01m[Kslirp/cksum.cc:83:12:[m[K [01;31m[Kerror: [m[K'[01m[Kuintptr_t[m[K' was not declared in this scope if ((1 & ([01;31m[Kuintptr_t[m[K)w) && (mlen > 0)) { [01;31m[K^~~~~~~~~[m[K [01m[Kslirp/cksum.cc:83:22:[m[K [01;31m[Kerror: [m[Kexpected '[01m[K)[m[K' before '[01m[Kw[m[K' if ((1 & (uintptr_t)[01;31m[Kw[m[K) && (mlen > 0)) { [01;31m[K^[m[K [01m[Kslirp/cksum.cc:144:1:[m[K [01;31m[Kerror: [m[Kexpected '[01m[K)[m[K' at end of input [01;31m[K}[m[K [01;31m[K^[m[K [01m[Kslirp/cksum.cc:144:1:[m[K [01;31m[Kerror: [m[Kexpected statement at end of input [01m[Kslirp/cksum.cc:144:1:[m[K [01;31m[Kerror: [m[Kexpected '[01m[K}[m[K' at end of input [01m[Kslirp/cksum.cc:70:10:[m[K [01;31m[Kerror: [m[Klabel '[01m[Kcont[m[K' used but not defined goto [01;31m[Kcont[m[K; [01;31m[K^~~~[m[K make[1]: *** [Makefile:116: slirp/cksum.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... x86_64-pc-linux-gnu-g++ -c -I.. -I../.. -I./.. -I./../.. -I../../instrument/stubs -I./../../instrument/stubs -O2 -march=corei7-avx -pipe -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -pthread slirp/if.cc -fPIC -DPIC -o slirp/.libs/if.o make[1]: Leaving directory '/var/tmp/portage/app-emulation/bochs-2.6.9/work/bochs-2.6.9/iodev/network' make: *** [Makefile:238: bochs_plugins] Error 2 [31;01m*[0m ERROR: app-emulation/bochs-2.6.9::gentoo failed (compile phase): [31;01m*[0m emake failed [31;01m*[0m