| Linux - Embedded & Single-board computer This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-05-2012, 01:04 PM
|
#1
|
|
LQ Newbie
Registered: Mar 2012
Posts: 15
Rep: 
|
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,
|
|
|
|
11-06-2012, 12:59 AM
|
#2
|
|
Senior Member
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 2,802
|
for me it looks like an incompatible compiler (it means this cc1 is unable to run on that hardware)
|
|
|
|
11-06-2012, 06:50 AM
|
#3
|
|
LQ Newbie
Registered: Mar 2012
Posts: 15
Original Poster
Rep: 
|
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,
|
|
|
|
11-06-2012, 12:24 PM
|
#4
|
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,267
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:12 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|