WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: /usr/include/gnu/stubs.h:7:27: fatal error: gnu/stubs-32.h: No such file or dire  (Read 4154 times)

Offline halma

  • Full Member
  • ***
  • Posts: 164
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
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
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
« Last Edit: October 20, 2014, 12:43:47 AM by coreplayer2 »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
Hi halma
Try  eglibc_base-dev.tcz  if it's available.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
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.

Offline halma

  • Full Member
  • ***
  • Posts: 164
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
« Last Edit: October 20, 2014, 12:54:01 PM by halma »
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11634
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
No, you shouldn't do such a symlink. Something is wrong on your system, are you mixing extensions from different repos?
The only barriers that can stop you are the ones you create yourself.

Offline halma

  • Full Member
  • ***
  • Posts: 164
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

1 + 2 = 6  cause  10 - 6 = 78 ;-) lol