[odb-users] Can't compile simple person.hxx- gcc error in /usr/include/gnu/stubs.h

Szumowski, Thomas thomas.szumowski at lmco.com
Thu Apr 26 08:52:10 EDT 2012


Thanks for the quick reply Artur. So far I installed:
sudo apt-get install gcc-multilib
sudo apt-get install g++-multilib

When I try to install libc6-dev-i386, I get the following error below (after doing apt-get update). What's odd is in searching I've only seen this error with respect to 64 bit machines attempting to build 32-bit libraries. I am on a 64 bit machine, but using a 32-bit virtualbox image. The logs from the 1st email seem to indicate so as well.

---------------------------------------
user at ubuntu-VirtualBox:/opt/odb/bin$ sudo apt-get install libc6-dev-i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libc6-dev-i386 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libc6-dev-i386' has no installation candidate


From: Artur Shaihullin [mailto:ashaihullin at gmail.com]
Sent: Thursday, April 26, 2012 8:44 AM
To: Szumowski, Thomas
Subject: EXTERNAL: Re: [odb-users] Can't compile simple person.hxx- gcc error in /usr/include/gnu/stubs.h

May be you need install libc6-dev-i386
2012/4/26 Szumowski, Thomas <thomas.szumowski at lmco.com<mailto:thomas.szumowski at lmco.com>>
I am trying to compile the basic person.hxx example from the top of the user manual and am running into problems. The code is below along with commands indicating my machine and gcc status. The machine is a 32-bit 11.10 Ubuntu OS.  Any tips?


-----------------------------------------------------------------------------
COMPILE ERROR
-----------------------------------------------------------------------------

user at ubuntu-VirtualBox:/opt/odb/bin$ ./odb -d sqlite --generate-query --trace person.hxx
starting plugin odb
In file included from /usr/include/features.h:388:0,
                from /opt/odb/i686-linux-gnu/bin/../lib/gcc/i686-linux-gnu/4.5.1/../../../../include/c++/4.5.1/i686-linux-gnu/bits/os_defines.h:39,
                from /opt/odb/i686-linux-gnu/bin/../lib/gcc/i686-linux-gnu/4.5.1/../../../../include/c++/4.5.1/i686-linux-gnu/bits/c++config.h:275,
                from /opt/odb/i686-linux-gnu/bin/../lib/gcc/i686-linux-gnu/4.5.1/../../../../include/c++/4.5.1/string:40,
                from person.hxx:4:
/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
compilation terminated.

-----------------------------------------------------------------------------
MACHINE INFORMATION
-----------------------------------------------------------------------------

user at ubuntu-VirtualBox:/opt/odb/bin$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

user at ubuntu-VirtualBox:/opt/odb/bin$ uname -rm
3.0.0-12-generic i686

user at ubuntu-VirtualBox:/opt/odb/bin$ file /sbin/init
/sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped



Tom Szumowski
Lockheed Martin - Advanced Technology Laboratories
Phone: (856) 792-9077
E-mail:  thomas.szumowski at lmco.com<mailto:thomas.szumowski at lmco.com><mailto:thomas.szumowski at lmco.com<mailto:thomas.szumowski at lmco.com>>



--
Best Regards,
Artur Shain



More information about the odb-users mailing list