Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: halma on October 19, 2014, 10:48:46 PM

Title: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire
Post by: halma on October 19, 2014, 10:48:46 PM
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

 :o

Code: [Select]
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/
Can someone tell me which extension i have missed to install ?

Many thanks
Halma
Title: Re: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire
Post by: coreplayer2 on October 20, 2014, 12:35:30 AM
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
Title: Re: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire
Post by: Rich on October 20, 2014, 12:46:53 AM
Hi halma
Try  eglibc_base-dev.tcz  if it's available.
Title: Re: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire
Post by: Rich on October 20, 2014, 03:02:31 AM
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.
Title: Re: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire
Post by: halma on October 20, 2014, 12:49:48 PM
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.

this means an symlink to stubs-64.h should be ok for x64?
Code: [Select]
sudo ln /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs-32.h
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

Thanks
Halma
Title: Re: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire
Post by: Rich on October 20, 2014, 03:32:16 PM
Hi halma
Quote
this means an symlink to stubs-64.h should be ok for x64?
Actually I wasn't suggesting that. I don't know what the correct fix is.
Title: Re: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire
Post by: curaga on October 21, 2014, 04:08:38 AM
No, you shouldn't do such a symlink. Something is wrong on your system, are you mixing extensions from different repos?
Title: Re: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire
Post by: halma on November 01, 2014, 08:18:36 PM
Hi curaga
Quote
No, you shouldn't do such a symlink. Something is wrong on your system, are you mixing extensions from different repos?
no, i dont think so, i am just using "tce" to install the extension/s and i dont edited the repo url, thats the one which is shipped/ provided from the latest TC himself after installing latest TC.

but the symlink work so far while i try to compile....

best regards
Halma