Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
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.


  Search this Thread
Old 11-05-2012, 01:04 PM   #1
LQ Newbie
Registered: Mar 2012
Posts: 21

Rep: Reputation: Disabled
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?

Old 11-06-2012, 12:59 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,339

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
for me it looks like an incompatible compiler (it means this cc1 is unable to run on that hardware)
Old 11-06-2012, 06:50 AM   #3
LQ Newbie
Registered: Mar 2012
Posts: 21

Original Poster
Rep: Reputation: Disabled
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?

Old 11-06-2012, 12:24 PM   #4
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tiny Core Linux 4.2 Introduces Tiny Core Plus LXer Syndicated Linux News 0 12-27-2011 09:30 AM
Does a u-boot for a single core board works for a dual core board? archieval Linux - Embedded & Single-board computer 0 06-06-2011 03:34 AM
LXer: Tiny Core- A 10 MB Tiny Linux Desktop LXer Syndicated Linux News 0 02-28-2010 07:00 PM
LXer: Tiny Core Linux 2.0 and Micro Core Linux 2.0 released LXer Syndicated Linux News 0 06-09-2009 02:21 AM
Need references for installing linux on Flash memory card for pc104 board umeshbabu Linux - Newbie 1 06-30-2005 09:18 PM

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration