Tiny Core Extensions > TCE Q&A Forum
gcc-4.4.0 errors - something missing?
oleg:
I booted empty TC, then installed gcc-4.4.0 and tried to compile "hello world" program. Compilation failed with errors that compiler cannot find some libraries.
Does this mean that dependencies for gcc-4.4.0 are not correct?
Juanito:
Could you cut & paste the errors?
oleg:
The file I am trying to compile is
#include <iostream>
int main(){ std::cout<<"a"; }
In one case I am getting this message:
/tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/cc1plus: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory
but this is the installation with a few other extensions and with persistent hda1
In the other case where TC is just in cloud mode the messages are the following
In file included from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/i686-pc-linux-gnu/bits/c++config.h:243,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/iostream:39,
from /mnt/hda1/a.cpp:1:
/tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/i686-pc-linux-gnu/bits/os_defines.h:39:22: error: features.h: No such file or directory
In file included from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/bits/postypes.h:42,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/iosfwd:42,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ios:39,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ostream:40,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/iostream:40,
from /mnt/hda1/a.cpp:1:
/tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/cwchar:47:19: error: wchar.h: No such file or directory
In file included from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/i686-pc-linux-gnu/bits/c++locale.h:42,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/bits/localefwd.h:42,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ios:42,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ostream:40,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/iostream:40,
from /mnt/hda1/a.cpp:1:
/tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/clocale:44:20: error: locale.h: No such file or directory
In file included from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/bits/localefwd.h:44,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ios:42,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ostream:40,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/iostream:40,
from /mnt/hda1/a.cpp:1:
/tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/cctype:44:19: error: ctype.h: No such file or directory
In file included from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/i686-pc-linux-gnu/bits/gthr.h:162,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/ext/atomicity.h:34,
from /tmp/tcloop/gcc-4.4.0/usr/local/bin/../lib/gcc/i686-pc-linux-gnu/4.4.0/../../../../include/c++/4.4.0/bits/ios_base.h:41,
...
and so on for 60Kb
Juanito:
--- Quote from: oleg on February 09, 2010, 11:48:46 PM ---error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory
--- End quote ---
This is because the cloog extension is missing - did you load the gcc-4.4.0 extension with the appsbrowser? If so, this would automatically load the required dependencies - libgmp, libmpfr, ppl and cloog - for you.
The other errors would probably by cured by loading the base-dev extension. I'm not sure, strictly speaking, whether I should add base-dev to the deps or not.
Be sure to read the info file: http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tcz/gcc-4.4.0.tcz.info, which is also displayed by the appsbrowser.
BTW - unless you specifically need gcc-4.4.0, I would recommend to use the compiletc meta extension, which will automatically download most things required to compile on microcore/tinycore, including the version of gcc used to build microcore/tinycore.
oleg:
Thank you. I will try base-dev.
Yes, in the first case I installed it with "tce-load -i" from local directory. But, all dependencies where in the directory, and I tried to re-install with AppBrowser. Even if I reboot and install gcc again using Appbroswer I am getting the same error message! That looks strange.
Navigation
[0] Message Index
[#] Next page
Go to full version