Author Topic: Opie-feed Gcc Compile Woes!  (Read 12787 times)

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Opie-feed Gcc Compile Woes!
« on: June 19, 2006, 03:33:06 pm »
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: [Select]
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: [Select]
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?
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

koen

  • Hero Member
  • *****
  • Posts: 1008
    • View Profile
    • http://dominion.thruhere.net/koen/cms/
Opie-feed Gcc Compile Woes!
« Reply #1 on: June 19, 2006, 04:00:24 pm »
Quote
Code: [Select]
hello.cpp: 1: 22: iostream.h:  No such file or directory[div align=\"right\"][a href=\"index.php?act=findpost&pid=131874\"][{POST_SNAPBACK}][/a][/div]

You need to install the -dev package that has iostream.h
Forums are not bugtrackers!!! Smart questions
Ångström release team
iPAQ h2210, iPAQ h5550, iPAQ hx4700, Zaurus SL-C700, Nokia 770, all running some form of GPE
My blog

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #2 on: June 20, 2006, 10:32:30 am »
This will certainly help!  I've already begun looking for the correct file, except that there are a lot of *-dev files.

Is there any way to figure out which file should have the headers I'm looking for?
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Opie-feed Gcc Compile Woes!
« Reply #3 on: June 20, 2006, 10:41:19 am »
I guess the minimum would be:
libc6-dev
and
binutils (and binutils-symlinks )
SLC-860 cacko / senao wifi

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #4 on: June 21, 2006, 09:54:19 am »
I appreciate the information.  Unfortunately, I haven't been able to download the things, since I can't network my Zaurus, and I can't manually download anything while EWI is down.  Arrrgh!

I hope I can attempt these soon.
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

asm-nai

  • Newbie
  • *
  • Posts: 29
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #5 on: June 21, 2006, 10:32:10 am »
Quote
I appreciate the information.  Unfortunately, I haven't been able to download the things, since I can't network my Zaurus, and I can't manually download anything while EWI is down.  Arrrgh!

I hope I can attempt these soon.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

[a href=\"http://naismith.sakura.ne.jp/feed/354x/]my feed[/url]

There might be insufficient ipk.
GPE on SL-C3000

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #6 on: June 22, 2006, 09:40:53 pm »
Unfortunately, they don't work, since they use armv5 format.  I've been using the regular format (which, as far as I've been able to discern, is armv4, but that's almost an unspoken discussion).  I don't know why there's a difference, but when I've noticed the two, I always went with the "regular" files, and they've worked just fine on my SL5500 Zaurus.

I've had a difficult time finding out the difference between the two; I have the impression it's either a hardware difference (5x00 etc vs 3x00, maybe) or just a new way to compile things.  Perhaps I'll start a new thread on it someday.  In the meantime, I'm still stuck waiting for Ewi to get back online!
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #7 on: June 23, 2006, 05:24:16 am »
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"
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Opie-feed Gcc Compile Woes!
« Reply #8 on: June 23, 2006, 06:44:27 am »
Quote
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"
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132529\"][{POST_SNAPBACK}][/a][/div]

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)?
« Last Edit: June 23, 2006, 06:45:44 am by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #9 on: June 23, 2006, 08:08:39 am »
3-4 weeks or more
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Opie-feed Gcc Compile Woes!
« Reply #10 on: June 23, 2006, 08:31:49 am »
Quote
3-4 weeks or more
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132553\"][{POST_SNAPBACK}][/a][/div]

oh man, i better get a dual cpu amd64 then with 2GB ram....
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #11 on: June 23, 2006, 09:52:18 am »
Have spare one?
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Opie-feed Gcc Compile Woes!
« Reply #12 on: June 23, 2006, 11:29:08 am »
Quote
Have spare one?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132566\"][{POST_SNAPBACK}][/a][/div]

I'll see if my boss will buy me one first, then I will check about a spare
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #13 on: June 28, 2006, 09:51:43 pm »
Just yesterday I got a laptop (Pentium, 48 Meg, not much else) that I'd like to put DSL Linux on.  I was unsuccessful because of floppy drive problems; nonetheless, I realized that I'd rather put Opie on it  

To get back on topic, I was finally able to download the above files and install them on my Zaurus.  (The feed is finally working again!  I really wish I could set up my Zaurus on a network; unfortunately that isn't an option for me right now   .)  I'd like to note that libc6-dev needed the following dependencies:

linux-libc-headers-dev
glibc-extras-nss
libthread-db1
.

For good measure I also installed libsdtc++-dev.

Now hello.cpp gives a lot of errors when I try to compile!  So many, I decided to attach them rather than list them here.

I wonder if I need more gcc options to get it to work.  I haven't yet tried compiling anything, though, so I don't yet know if I have everything I need.  (I think I will also need make).

Ironically, I discovered yesterday that tetex is in the feed.  I'll be trying to download those and install them.  Even so, I still would like to be able to compile things!  In particular, I'd like to install Macaulay 2, and YACAS, and perhaps KSEG (except that KSEG relies too much on regular Qt).

(As you can probably guess, I'm a mathematician.  Unfortunately for me, I'm a mathematician who thinks that a Zaurus with a Targus keyboard is the perfect size for a laptop, if only it could run everything.)
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...

snowfarthing

  • Newbie
  • *
  • Posts: 32
    • View Profile
Opie-feed Gcc Compile Woes!
« Reply #14 on: June 28, 2006, 09:53:50 pm »
Oops!  The attachment didn't stick.  Here it is.
Zaurus SL5500 running OpenZaurus 3.5.4 with no network access.  :(   May dual-boot to other things someday...