Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

gnu/stubs-32.h does not exist

Have an x86-64 problem? Post here.
Locked
Advanced search
7 posts • Page 1 of 1
Author
Message
rojanu
Guru
Guru
User avatar
Posts: 361
Joined: Mon Feb 02, 2004 5:56 pm
Location: London

gnu/stubs-32.h does not exist

  • Quote

Post by rojanu » Tue Jun 12, 2007 8:37 am

Hi everyone!

I am trying to emerge virtual box and I get

Code: Select all

 file included from /usr/include/features.h:346,
                 from /usr/include/stdint.h:26,
                 from /var/tmp/portage/app-emulation/virtualbox-1.4.0/work/VirtualBox-OSE-1.4.0/include/iprt/stdint.h:41,
                 from /var/tmp/portage/app-emulation/virtualbox-1.4.0/work/VirtualBox-OSE-1.4.0/include/iprt/types.h:25,
                 from /var/tmp/portage/app-emulation/virtualbox-1.4.0/work/VirtualBox-OSE-1.4.0/src/VBox/Runtime/misc/sanity.h:25,
                 from /var/tmp/portage/app-emulation/virtualbox-1.4.0/work/VirtualBox-OSE-1.4.0/src/VBox/Runtime/misc/sanity-cpp.cpp:24:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

Code: Select all

# emerge --info
Portage 2.1.2.9 (default-linux/amd64/2007.0/no-multilib, gcc-4.1.2, glibc-2.5-r3, 2.6.21-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.21-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 11 Jun 2007 08:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  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.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -msse2"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/init.d /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/rc.d /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/wget"
CXXFLAGS=" -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer sandbox sfperms strict with-bdeps"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB@euro"
LC_ALL="en_GB@euro"
LINGUAS="en_GB ku tr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/package.excludes"
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/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aalib acl acpi alsa amd64 apache2 automount berkdb bitmap-fonts cdr cjk cli cracklib crypt cups dbus directfb doc dri dv dvd dvdr dvdread fam fbdev ffmpeg firefox flash fortran ftp gdbm gphoto2 gpm hal howl iconv imap isdnlog java javascript junit kde ldap libg++ lm_sensors logrotate midi mmx mono mozsvg mp3 mpi msn mudflap mysql nas ncurses network nfs nls nptl nptlonly nsplugin oav odbc openmp openssl pam pcre pdf perl php pic ppds pppd python qt qt4 quicktime quotas readline reflection rtc samba sasl scanner session slp sox spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb vcd videos wmf xine xml xorg xscreensaver xvid zip zlib" ALSA_CARDS="intel8x0" 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 vmmouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB ku tr" USERLAND="GNU" VIDEO_CARDS="vga sis vmware"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Any ideas?
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Tue Jun 12, 2007 10:30 am

I imagine your /usr/include/gnu/stubs.h looks like this:

Code: Select all

/* This file selects the right generated file of `__stub_FUNCTION' macros
   based on the architecture being compiled for.  */

#include <bits/wordsize.h>

#if __WORDSIZE == 32
# include <gnu/stubs-32.h>
#elif __WORDSIZE == 64
# include <gnu/stubs-64.h>
#else
# error "unexpected value for __WORDSIZE macro"
#endif
Given the no-multilib profile, there shouldn't be a stubs-32.h header. The question is why has that conditional triggered on 32, not 64.
Thomas S. Howard
Top
rojanu
Guru
Guru
User avatar
Posts: 361
Joined: Mon Feb 02, 2004 5:56 pm
Location: London

  • Quote

Post by rojanu » Tue Jun 12, 2007 11:03 am

Exactly it looks like that and same thing happens when emerging syslinux as well
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler,
Linux User: #416714
Top
didymos
Advocate
Advocate
User avatar
Posts: 4798
Joined: Mon Oct 10, 2005 2:09 am
Location: California

  • Quote

Post by didymos » Tue Jun 12, 2007 12:58 pm

I'm not up on virtualbox, but from a peek at the ebuild, it looks it might require some 32-bit specific code. That's just a guess though. If it's right, it could mean you'd need a multilib machine, but I'm far from certain that that's the case.
Thomas S. Howard
Top
Enverex
Guru
Guru
Posts: 501
Joined: Wed Jul 02, 2003 12:25 pm
Location: Worcester, UK
Contact:
Contact Enverex
Website

  • Quote

Post by Enverex » Sun Jun 17, 2007 9:18 am

Afaik Virtualbox is 32bit only (i.e. when you build it it builds as 32bit, not 64bit, same as Wine) so you need a multilib machine to be able to build it.
Top
cruzki
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Tue Dec 13, 2005 1:50 pm

  • Quote

Post by cruzki » Sat Sep 01, 2007 6:08 pm

Enverex wrote:Afaik Virtualbox is 32bit only (i.e. when you build it it builds as 32bit, not 64bit, same as Wine) so you need a multilib machine to be able to build it.
What is a multilib machine? A one with multilib profile aka desktop profile?

When I install this machine I use the nomultilib profile, but then I swich to desktop profile, but now I can't compile ANY gcc anymore because this error.
Top
likewhoa
l33t
l33t
Posts: 778
Joined: Wed Oct 04, 2006 12:28 pm
Location: Brooklyn, New York
Contact:
Contact likewhoa
Website

  • Quote

Post by likewhoa » Sat Sep 01, 2007 6:23 pm

cruzki wrote:
Enverex wrote:Afaik Virtualbox is 32bit only (i.e. when you build it it builds as 32bit, not 64bit, same as Wine) so you need a multilib machine to be able to build it.
What is a multilib machine? A one with multilib profile aka desktop profile?

When I install this machine I use the nomultilib profile, but then I swich to desktop profile, but now I can't compile ANY gcc anymore because this error.
make sure you have CONFIG_IA32_EMULATION enabled in kernel otherwise you won't be able to compile 32bit code.
also after switching from no-multilib profile to multilib which is the default for 2007.0 you need to rebuild your toolchain and recompile the basesystem.
Top
Locked

7 posts • Page 1 of 1

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic