Author Topic: Compiling Natively on PDAXROM  (Read 11589 times)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #15 on: November 08, 2004, 05:01:18 am »
This should help all who want to start compiling...

I decided to reinstall RC5 from scratch...   After re-installation I figured out how to setup the developer image....

To use the zgcc-3.3.2.img i found that i needed to make
/opt/arm/3.3.2-vfp  as given by path

i then mounted this as such:
mount -o loop /mnt/cf/zgcc-3.3.2.img /opt/arm/3.3.2-vfp

This immediately gives me gcc happily working away.  The samba share is bad... not sure why, as it has write access. It gave me errors such as ./configure file has 1.8 and e18 seconds modifiy timestamp in the future. The times are pretty close on both machinces....  When i copied the files back to my fat cf microdrive they worked much better - previously when i type make in a source directory (after ./configure) the make would keep looking ./configure....

need to grab make, bison, file, flex, m4 from the feed and i had a happier setup...  

I have been able to roll bison and flex and some other stuff with better success.

I'm going to install f77 and also try formatting my 340meg cf microdrive as ext2 to see if that helps me upon running into trouble.  

What is the best way to have a network shared drive from a windows machine?  Can i make up somesort of image like phat linux or such uses that can be mounted rw over the network?

Again, the cross toolchain may be a little easier but i like being able to roll my own onboard...  I'm keeping gcc on board in anycase to do a project at the moment - it's so cool sshing into my Z a couple of times having mc, gcc and the program in three windows...
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #16 on: November 08, 2004, 09:03:29 am »
does anyone know where i can get the source for the cmp command? I can't seem to find the source anywhere i've looked, what is it packaged with?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #17 on: November 08, 2004, 09:12:12 am »
For reference, cmp is contained within diffutils...
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #18 on: November 08, 2004, 09:54:33 am »
offroadgeek - unlikely this is your problem, but... i just overwrote my /usr/include directory by copying a file with the wrong syntax. I now have a file called include in my usr directory.  gcc complained can't created executables... guess this would be the same problem for you, that gcc can't find some includes somewhere.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #19 on: November 08, 2004, 09:55:44 am »
is there a way to recover from the above simple mistake... i typed in the directory /usr/local/include  :
cp gmp.h /usr/include
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #20 on: November 08, 2004, 10:42:22 am »
after reinstalling twice, it turns out that i didn't have a /usr/include to begin with... i was wondering how it was overwritten!  Lardman, i'm trying to compile g95 as my fortran compiler... in case this fails (looks for gmp.h even though it exists), where do you get f77?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #21 on: November 08, 2004, 10:49:25 am »
why does it tell me path: command not found when i type path since i reinstalled? grrr....   how do i add gmp.h to the include path so that ./configure sees it? It doesn't see it in /usr/include /usr/local/include or in the source directory...
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Natively on PDAXROM
« Reply #22 on: November 08, 2004, 11:09:44 am »
It's part of GCC. Are you sure it's not in there already? (It may be called f77 or g77, I can't remember).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #23 on: November 08, 2004, 12:53:47 pm »
Ah, now i understand what you were saying about using g77...  it's not that easy as far as i can see.  G77 is the GCC fortran compiler, but it's not compiled into the version that's on the sdk...  apparently i need to download the gcc sources and g77 and compile all that, which will take quite a bit of room......

how can i find where the include directories are?

like which works for binaries is there another for libs?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #24 on: November 08, 2004, 12:57:08 pm »
got it to find gmp.h.... now it says checking for mpf_init in -lgmp... configure: error: could not link with libgmp.

This is for g95 configure.... ideas?  libgmp and associates are in /usr/local/lib which the install for gmp created. how to check are in the path? copying to /usr/lib didn't help....
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Compiling Natively on PDAXROM
« Reply #25 on: November 08, 2004, 06:03:51 pm »
/usr/local/lib (iirc) and /usr/lib and /lib are normally checked automatically (I think) for libs, otherwise you need to use the -L flag to specify the directory:

gcc <whatever> -L/some/strange/place/for/libs

Another thing to note - I'm not quite sure how well F95 works yet; I remember seeing a report of problems compiling something (either R or Octave).


Si

P.S. You're talking about the configure file... not sure about that, though it's probably using GCC to create an executable and checking whether it works, in which case the above *should* apply ;-). Possibly check the filenames (like is there a libgmp.so, etc.)...?
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #26 on: November 09, 2004, 05:39:11 am »
lardman there is a libgmp.so...

When i compiled before with f2c after about an hour there was a problem with internal compiler error: segmenatation fault. I'm not sure f2c was working correctly. I had compiled it, but had to install it manually (f2c / libf2c.a / f2c.h) but i was getting some warnings in the compile...  When i told it to make install anyhow it installed a load of files... unfortunately octave wasn't among them.

I finally think i have a solution... After muching searching for a fortran compiler... i have installed perl, and compiled fort77. The tests included compiled grand (so i was told), and ./configure and make for octave seemed to complete after a long time. I'm not doing make install so i hope it all works out....
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #27 on: November 09, 2004, 05:39:52 am »
Some stuff i've been installing has been looking for a (install) executable. What is this? It appeared to just be a script that changed permissions...
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #28 on: November 09, 2004, 05:44:12 am »
you fill find install in coreutils-extra in the unstable feed
SLC-860 cacko / senao wifi

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
Compiling Natively on PDAXROM
« Reply #29 on: November 09, 2004, 05:54:44 am »
Damn-it!  make install gave me this error

g++ -g -O2 -o gendoc dendoc.cc
g++: Internal error: Terminated (program cc1plus)


It install a load of stuff... including a symlink from ./octave -> octave-2.1.57, but it didn't installl octave-2.1.57... how could i try to compile this part myself?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.