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

Bug 692608

Summary: app-emulation/bochs-2.6.9 fails to build: slirp/cksum.cc:83:12: error: 'uintptr_t' was not declared in this scope
Product: Gentoo Linux Reporter: Vaclav Radomersky <vradomersky>
Component: Current packagesAssignee: Luca Barbato <lu_zero>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info '=app-emulation/bochs-2.6.9::gentoo' AND build.log
emerge -pqv '=app-emulation/bochs-2.6.9::gentoo'

Description Vaclav Radomersky 2019-08-20 13:03:03 UTC
Created attachment 587610 [details]
emerge --info '=app-emulation/bochs-2.6.9::gentoo' AND build.log

When I issue "emerge app-emulation/bochs" then it will end up with compile error:


slirp/cksum.cc:83:12: error: 'uintptr_t' was not declared in this scope
  if ((1 & (uintptr_t)w) && (mlen > 0)) {
            ^~~~~~~~~
slirp/cksum.cc:83:12: note: suggested alternative: 'intptr_t'
  if ((1 & (uintptr_t)w) && (mlen > 0)) {
            ^~~~~~~~~
            intptr_t
slirp/cksum.cc:83:22: error: expected ')' before 'w'
  if ((1 & (uintptr_t)w) && (mlen > 0)) {
      ~               ^
                      )
slirp/cksum.cc:90:3: error: expected ')' before 'while'
  }
   ^
   )
slirp/cksum.cc:95:2:
  while ((mlen -= 32) >= 0) {
  ~~~~~
slirp/cksum.cc:83:5: note: to match this '('
  if ((1 & (uintptr_t)w) && (mlen > 0)) {
     ^
make[1]: *** [Makefile:116: slirp/cksum.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
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
 * ERROR: app-emulation/bochs-2.6.9::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/bochs-2.6.9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/bochs-2.6.9::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/bochs-2.6.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/bochs-2.6.9/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/bochs-2.6.9/work/bochs-2.6.9'
 * S: '/var/tmp/portage/app-emulation/bochs-2.6.9/work/bochs-2.6.9'

>>> Failed to emerge app-emulation/bochs-2.6.9, Log file:

>>>  '/var/tmp/portage/app-emulation/bochs-2.6.9/temp/build.log'
Comment 1 Vaclav Radomersky 2019-08-20 14:53:51 UTC
Created attachment 587630 [details]
emerge -pqv '=app-emulation/bochs-2.6.9::gentoo'
Comment 2 Vaclav Radomersky 2019-08-31 18:17:41 UTC
Actual svn version of Bochs works when one builds it by hand: .configure ; make install. The two first steps (.configure ; make) as normal user, make install as root.
Comment 3 Vaclav Radomersky 2019-08-31 19:45:21 UTC
When I compile manualy latest svn Bochs, which works, I use these parameters:

./configure \
	      --enable-smp \
              --enable-debugger \
              --enable-x86-debugger \
	      --enable-x86-64 \
	      --enable-pci \
	      --enable-debugger-gui \
	      --enable-logging \
	      --enable-fpu \
              --enable-3dnow \
              --enable-sb16=dummy \
	      --enable-cdrom \
              --enable-x86-debugger \
	      --enable-iodebug \
	      --with-x