Author Topic: gcc compliler on Z C7xx  (Read 16137 times)

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #30 on: April 08, 2004, 09:52:51 am »
Quote
Quote
BTW, compiled using the new dev_img-1.5 file that I installed earlier today....

Was installation smooth enough? What I was trying to accomplish is to let people just run a script to have everythig set up. Did it work as expected?

I found it went quite smoothly, I did reboot and compiled my first QT app with no problems, once again Maslovsky you have impressed me   :-)

Now hurry with the new QT ROM ;-)
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
gcc compliler on Z C7xx
« Reply #31 on: April 08, 2004, 10:12:59 am »
Hi maslovsky,

Thanks for version 1.5 of dev_img!

Install went very smooth and was easy even for a dummie like me!

The only thing I can think of is to add one line between steps 1 and 2 in your install instructions for code newbies to make things really clear for them.

I\'d make a new step 2:

2. Change directory to the directory where the setup script and dev_img-1.5 resides (ie. \'cd /mnt/card\')

Then change the current step 2  to step 3, etc....

Very minor thing but I can tell you as a code newbie every bit of clarity really helps minimize problems...  :?

Now onto doing the rest of the QT tutorials....  

Thanks,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #32 on: April 08, 2004, 10:16:34 am »
I either did not find or just did not notice installation instructions, downloaded it from ZUG, there was only this image file.  I had to figure it out myself, so it must be fairly idiot-proof.
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
gcc compliler on Z C7xx
« Reply #33 on: April 08, 2004, 10:20:02 am »
Hey padishah E,

The install instructions are on the page that lists the file to be downloaded....   :roll:

HTH,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
gcc compliler on Z C7xx
« Reply #34 on: April 08, 2004, 10:28:35 am »
I take it this is a libc 2.2 based system?

Could someone also comment as to whether it has g77 onboard?

Cheers,


Simon
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

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
gcc compliler on Z C7xx
« Reply #35 on: April 08, 2004, 10:44:27 am »
Actually, Anton do you have any tips on how you compiled your native compiler?

Cheers,


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

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #36 on: April 08, 2004, 10:52:47 am »
Quote
Hey padishah E,

The install instructions are on the page that lists the file to be downloaded....   :roll:  

HTH,

Mark

 :oops: DOH!!

Quote
1. Unzip and copy contents of the file onto CF or SD card. 2. Run image_setup.sh script as root: image_setup.sh full_path_to_dev_image mount_point where \"mount_point\" is any folder, for exmaple /mnt/dev 3. When script finishes, relogin as zaurus

Yep, I just breezed past that in some kind of ecstatic blissful ignorance, oops!

 :roll:
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #37 on: April 08, 2004, 10:58:15 am »
Quote
I take it this is a libc 2.2 based system?

Could someone also comment as to whether it has g77 onboard?

Cheers,


Simon
No mate, no Fortran.

Shame, I used to love Fortran and wouldn\'t mind digging out my old Fortran-77 books and playing...  :-(

Maslovsky? Friendly hint ;-)

Lardman, I don\'t know how to check if it is libc 2.2, if you can tell me what to type, I\'ll do it and post it immediately.
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
gcc compliler on Z C7xx
« Reply #38 on: April 08, 2004, 11:28:35 am »
Which ROM are you using?

Assuming it\'s not OZ3.3.6pre1 then it is libc2.2 (though if you are using OZ3.3.6pre1 I\'d be no closer to knowing which version it\'s linked against)

(FYI: \'ldd binary_name\' would also do the trick)


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

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #39 on: April 08, 2004, 01:40:12 pm »
Quote
Which ROM are you using?

Assuming it\'s not OZ3.3.6pre1 then it is libc2.2 (though if you are using OZ3.3.6pre1 I\'d be no closer to knowing which version it\'s linked against)

(FYI: \'ldd binary_name\' would also do the trick)


Si

I am actually flashing a new ROM right now, so I will be using Cacko QT ROM 1.21 Elena. Will post the output of that command once I\'ve set my machine up again, unless someone can do it before me.

--EDIT--
ldd test
test: Out of space
ldd: warning: you do not have execution permission for \'./test\'
        libm.so.6 =] /lib/libm.so.6 (0x40022000)
        libc.so.6 =] /lib/libc.so.6 (0x40050000)
        /lib/ld-linux.so.2 =] /lib/ld-linux.so.2 (0x40000000)


HTH
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

GMan

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #40 on: April 08, 2004, 04:29:30 pm »
Quote
That did it Gary!!

Thanks a lot for your help!

BTW, compiled using the new dev_img-1.5 file that I installed earlier today....

Mark
Happy C860 Camper

No problem!  I installed 1.5 as well.  I just replaced the reference in /etc/fstab that pointed to the 1.4 image to point to the 1.5 image and that was it.  So as long as the dev images are a single cramfs file I think upgrades should always be this smooth

-Gary

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
gcc compliler on Z C7xx
« Reply #41 on: April 09, 2004, 08:39:46 am »
Quote
--EDIT--
ldd test
test: Out of space
ldd: warning: you do not have execution permission for \'./test\'
libm.so.6 =] /lib/libm.so.6 (0x40022000)
libc.so.6 =] /lib/libc.so.6 (0x40050000)
/lib/ld-linux.so.2 =] /lib/ld-linux.so.2 (0x40000000)

Thanks, my fault, I was wrong I guess that a simple:

$ ls -rtl /lib/libc*

would do the job. In any case I\'d say it\'s using libc2.2 which is fine, the next question is as to whether this is GCC3.x or GCC2.95 (I need GCC3.x)?


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

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
gcc compliler on Z C7xx
« Reply #42 on: April 12, 2004, 04:34:14 am »
I initially failed to use the image_setup.sh script correctly and had to manually delete multiple incorrect lines from /etc/fstab.  I ended up having to do the configuration manually.

I don\'t understand the point of having a mount point that is different from \"/home/zaurus/develop\" in the image_setup.sh script.  Why not just mount the \"dev_img-1.5\" file directly to \"/home/zaurus/develop\"?  Here are the steps that I had to use to get the compiler working on my Sharp ROM on my Zaurus SL-C760\'s SD card:

Unzip the dev-img-1.5.zip file to /mnt/card

su root

Add the following line to \"/etc/fstab\":
Code: [Select]
/usr/mnt.rom/card/dev_img-1.5   /home/zaurus/develop  cramfs  auto,loop  0 0[/b]

mount /home/zaurus/develop

cd /home/zaurus

Add the following line to \".bashrc\":
Code: [Select]
export PATH="$PATH:/home/zaurus/develop/bin"

exit
exit


Go back in the terminal.

Check the path with \"echo $PATH\" to see that the \"/home/zaurus/develop/bin\" directory is in the path.

su root

compiler_setup.sh

exit

Try to compile a \"Hello, World!\" program.

I find that /home/zaurus/develop/bin does not automatically mount on a reboot.

padishah_emperor

  • Hero Member
  • *****
  • Posts: 849
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #43 on: April 12, 2004, 10:06:16 am »
Quote
Quote
--EDIT--
ldd test
test: Out of space
ldd: warning: you do not have execution permission for \'./test\'
libm.so.6 =] /lib/libm.so.6 (0x40022000)
libc.so.6 =] /lib/libc.so.6 (0x40050000)
/lib/ld-linux.so.2 =] /lib/ld-linux.so.2 (0x40000000)

Thanks, my fault, I was wrong I guess that a simple:

$ ls -rtl /lib/libc*

would do the job. In any case I\'d say it\'s using libc2.2 which is fine, the next question is as to whether this is GCC3.x or GCC2.95 (I need GCC3.x)?


Si

Sorry, only just checked this thread, yes it\'s libc2.2 and GCC 2.95 on dev_img 1.5

HTH
Left Linux and Linux PDAs... sorry, got boring.  Switched to Mac.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
gcc compliler on Z C7xx
« Reply #44 on: April 13, 2004, 09:12:03 am »
Thanks.

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