Compiling Problem in Tiny Core Linux on PC104 board.
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Compiling Problem in Tiny Core Linux on PC104 board.
Hello All,
I am unable to compile anything on a particular system, and I need some help to track this down.
I have a PC104 stack, (VDX104 from Tri-M).
I have a CF card with GRUB installed and two partitions. A boot partitions, (sda1) and a partition for extensions (sda2).
I am running Tiny Core Linux.
I boot TinyCore version 4.7 with these boot options:
kernel /boot/vmlinuz text libata.dma=0 tce=sda2
I did a "tce-load -iw compiletc" It completed successfully.
This pulls down all the bits and bobs needed to compile a program using GCC.
I created a source code file: echo "int main(){return 0;}" > main.c
I try to compile it: gcc main.c -o main
I get this error:
gcc: internal compiler error: Illegal instruction (program cc1)
Please submit a full bug... yada yada...
I tried a C++ program with the nearly same result (g++ main.cpp -o main):
gcc: internal compiler error: Illegal instruction (program cc1plus)
Please submit a full bug... yada yada...
I don't know how to begin to debug this. I don't believe it to be an issue with GCC or the distro, as I have done the same steps on a desktop computer (with less ram) and have no issue compiling.
Anyone have an idea of where to start to try to fix this?
pan,
Yes, I see what you mean. I did some digging and found my processor to be a p5 class, while gcc was compiled for a p6 class. The question I have now, is how do I find a binary version of a p5 class gcc, and runtime libs?
This is just one of the problems one tends to encounter when using the target platform as a development host. I suggest moving your development process to a full-on workstation, where you aren't going to bump into some kind of resource starvation at every turn. In the process, you will be able to use modern/advanced editing and other tools, as well as easier backup, code versioning, and a system of deploying and managing runtime images.
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.