Tiny Core Extensions > TCE Talk

/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire

(1/2) > >>

halma:
hi
while i am trying to compile some source code on latest TC/x64) i get the following error message:

--- Quote ---/usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or directory
--- End quote ---

 :o


--- Code: ---ls -d /tmp/tcloop/*
/tmp/tcloop/bash/                     /tmp/tcloop/glib2/                    /tmp/tcloop/openssh/
/tmp/tcloop/binutils/                 /tmp/tcloop/glib2-dev/                /tmp/tcloop/openssl-1.0.0/
/tmp/tcloop/bison/                    /tmp/tcloop/glib2-python/             /tmp/tcloop/patch/
/tmp/tcloop/bzip2-lib/                /tmp/tcloop/glibc_apps/               /tmp/tcloop/pcre/
/tmp/tcloop/cloog/                    /tmp/tcloop/glibc_base-dev/           /tmp/tcloop/pcre-dev/
/tmp/tcloop/compiletc/                /tmp/tcloop/gmp/                      /tmp/tcloop/perl5/
/tmp/tcloop/dev86/                    /tmp/tcloop/grep/                     /tmp/tcloop/pkg-config/
/tmp/tcloop/diffutils/                /tmp/tcloop/iasl/                     /tmp/tcloop/ppl/
/tmp/tcloop/e2fsprogs_base-dev/       /tmp/tcloop/libaio/                   /tmp/tcloop/python/
/tmp/tcloop/file/                     /tmp/tcloop/libffi/                   /tmp/tcloop/python-dev/
/tmp/tcloop/findutils/                /tmp/tcloop/libgcrypt/                /tmp/tcloop/readline/
/tmp/tcloop/flex/                     /tmp/tcloop/libgpg-error/             /tmp/tcloop/sed/
/tmp/tcloop/gawk/                     /tmp/tcloop/libssh2/                  /tmp/tcloop/slang/
/tmp/tcloop/gcc/                      /tmp/tcloop/linux-3.8.10_api_headers/ /tmp/tcloop/sqlite3/
/tmp/tcloop/gcc_base-dev/             /tmp/tcloop/m4/                       /tmp/tcloop/squashfs-tools/
/tmp/tcloop/gcc_libs/                 /tmp/tcloop/make/                     /tmp/tcloop/tcl/
/tmp/tcloop/gcc_libs-dev/             /tmp/tcloop/mc/                       /tmp/tcloop/tk/
/tmp/tcloop/gdbm/                     /tmp/tcloop/mpc/                      /tmp/tcloop/util-linux_base-dev/
/tmp/tcloop/gettext/                  /tmp/tcloop/mpfr/                     /tmp/tcloop/yajl/
/tmp/tcloop/git/                      /tmp/tcloop/ncurses/                  /tmp/tcloop/zlib_base-dev/
--- End code ---
Can someone tell me which extension i have missed to install ?

Many thanks
Halma

coreplayer2:
Well the quick answer is this, the compiler is looking for 32bit libraries/headers which are not available on tinycorepure64.

But it looks like this system is running 32bit userspace apps with a 64bit kernel.  So if the app you're attempting to compile is destined for a 32bit system then compile on a pure 32bit system first.

I believe your build environment must be either x86 or x86_64, after your app is compiled you can then boot to the desired configuration and run your app

There's probably a better answer coming, but that should put you on the right track

Rich:
Hi halma
Try  eglibc_base-dev.tcz  if it's available.

Rich:
Hi halma
In the 32 bit version of 5.x it's in  glibc_base-dev.tcz. In the 64 bit version, it contains  stubs-64.h instead.

halma:
Hi Rich

--- Quote ---In the 32 bit version of 5.x it's in  glibc_base-dev.tcz. In the 64 bit version, it contains  stubs-64.h instead.
--- End quote ---

this means an symlink to stubs-64.h should be ok for x64?

--- Code: ---sudo ln /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs-32.h
--- End code ---

results in:

--- Quote ---tc@box:~$ sudo find / -name "stubs*.h"
/usr/include/gnu/stubs.h
/usr/include/gnu/stubs-64.h
/tmp/tcloop/glibc_base-dev/usr/include/gnu/stubs-64.h
/tmp/tcloop/glibc_base-dev/usr/include/gnu/stubs.h
tc@box:~$ sudo ln /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs-32.h
tc@box:~$ sudo find / -name "stubs*.h"
/usr/include/gnu/stubs-32.h
/usr/include/gnu/stubs.h
/usr/include/gnu/stubs-64.h
/tmp/tcloop/glibc_base-dev/usr/include/gnu/stubs-64.h
/tmp/tcloop/glibc_base-dev/usr/include/gnu/stubs.h
--- End quote ---

Thanks
Halma

Navigation

[0] Message Index

[#] Next page

Go to full version