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? thanks, |
for me it looks like an incompatible compiler (it means this cc1 is unable to run on that hardware)
|
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? thanks, |
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. |
All times are GMT -5. The time now is 03:00 AM. |