OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Opie-feed Gcc Compile Woes!, Help needed to set variables to compile.
snowfarthing
post Jun 19 2006, 11:33 AM
Post #1





Group: Members
Posts: 32
Joined: 29-October 04
Member No.: 5,265



I'm currently trying to compile teTeX on my 5500 Zaurus (with OpenZaurus 3.5.4 installed) using the gcc files available from the Opie feed: g++ 3.4.4-r5, g++-sympinks, g++-rc 0.1.9-r1, g77 and etc, gcc and etc, and gcov. I've followed everything according to the teTeX INSTALL instructions, and when I try compiling, I get:

CODE
loading cache ./config.cache
checking whether make sets ${MAKE}... no
checking for gcc... arm-linux-gcc                                        # or whatever I set CC to be
checking whether the C compiler (arm-linux-gcc -O -g) works... no
configure:  error:  installation or configuration problem:  C compiler cannot create executables.

I've tried setting CC to gcc, cc, arm-linux-gcc, and g++, and I get the same results every time.

When I tried an even more basic program, hello.cpp, I received the following:

CODE
root@collie:  /media/card/.../tetex-src-3.0 # gcc -O -g hello.cpp
hello.cpp: 1: 22: iostream.h:  No such file or directory
hello.cpp:  In function `int main()':
hello.cpp:  5:  error: `cout' undeclared (first use of this function)
hello.cpp:  5:  error:  (Each undeclared identifier is reported only once for each function it appears in.)
hello.cpp:  8:  2:  no newline at end of file

Since I get similar results when I try to compile hello.c, I'm certain that I need to set variables for certain paths; unfortunately, I have no idea what those varialbes would be, or what paths I need to set! What do I need to do in order to compile things successfully?
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Hrw
post Jun 23 2006, 01:24 AM
Post #2





Group: Members
Posts: 1,376
Joined: 11-January 04
From: Poznań, Poland
Member No.: 1,413



pxa2xx machines are arm5, sa11xx are arm4. arm5 machines can run arm4 code but not vice versa.

thats why OZ feeds are built as "arm"
Go to the top of the page
 
+Quote Post
Meanie
post Jun 23 2006, 02:44 AM
Post #3





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(Hrw @ Jun 23 2006, 07:24 PM)
pxa2xx machines are arm5, sa11xx are arm4. arm5 machines can run arm4 code but not vice versa.

thats why OZ feeds are built as "arm"
*


so if I want my apps to run really really fast, then I will have to rebuild the whole feed for arm5 with xscale and immxt optimisation enabled right? how long does it take roughly to build the whole feed with say a PII with 512MB RAM (provided I manage to find a spare box and install linux plus OE on it)?
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 27th August 2014 - 05:18 PM