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

Amr Ali amr.ali.cc at gmail.com
Thu Apr 26 08:46:49 EDT 2012


Install gcc-multilib

"sudo apt-get install gcc-multilib"

On 04/26/2012 02:39 PM, Szumowski, Thomas wrote:
> 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>
> 

-- 
Amr Ali

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20120426/8c146151/signature.pgp


More information about the odb-users mailing list