Author Topic: Can\'t get zgcc 2.01 to work.  (Read 2582 times)

Anonymous

  • Guest
Can\'t get zgcc 2.01 to work.
« on: November 25, 2003, 09:41:55 pm »
When executing the sample compile I get the following:

# gcc -o foo -lm foo.c
/mnt/card/.zgcc/bin/ld: cannot find -lm
collect2: ld returned 1 exit status


Any suggestions?

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Can\'t get zgcc 2.01 to work.
« Reply #1 on: November 26, 2003, 03:23:20 am »
Have you activated \"source zgcc.sh\"?

Anonymous

  • Guest
Can\'t get zgcc 2.01 to work.
« Reply #2 on: November 26, 2003, 08:01:04 pm »
I cut and pasted the code for zgcc.sh from the html file and must have had something wrong. I ran the one on the cramfs and it worked great.
Compilied zip,unzip and ssh 2.4 already.

Great package!

Thanks

Anonymous

  • Guest
Can\'t get zgcc 2.01 to work.
« Reply #3 on: November 27, 2003, 09:55:10 am »
the zgcc.sh file mentioned is also in the root of the .zgcc dir, so if it\'s mounted at /mnt/card/.zgcc, it\'s /mnt/card/.zgcc/zgcc.sh ... my case i copied to my flash at /home/root/.zgcc and .include respectively, so i had to go through and find/replace the stuff in the zgcc.sh file ...

if you changed anything from the stuff in the html walkthrough, you might want to consider making similar changes ..

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Can\'t get zgcc 2.01 to work.
« Reply #4 on: December 07, 2003, 09:49:49 pm »
please post the screen output of the following command to see whether your symbolic links are correct:

ls -l /usr/lib/lib*

freizugheit

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://
Can\'t get zgcc 2.01 to work.
« Reply #5 on: March 16, 2004, 04:53:58 am »
Zgcc has been working fine on my SL-5600 with the original Sharp ROM.

However, I encountered the following loader problem during compilation after recent upgrade of Sharp ROM to 1.32:

ld:warning:cannot find entry symbol - start; defaulting to 02000614

My current linux kernel version: 2.4.18-rmk7-pxa3-embedix.

Can someone enlighten?

Thanks in advance!!!