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

IPB

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Compile Problem - Dev_img-1.5, Compiler Error Messages
ArchiMark
post Jan 18 2005, 02:06 PM
Post #1





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Hope someone can advise...have a feeling that there's something simple I'm overlooking....

Installed Dev_Img-1.5 on my C3000 yesterday. I have used Dev_Img-1.5 successfully a year ago on the C860 I had then....so a bit rusty now... rolleyes.gif

Just tried compiling a simple "HelloWorld" file as a test...

Here's the error messages I got...

CODE
gcc: hello1: No such file or directory

gcc: installation problem, cannot exec `/usr/lib/gcc-lib/armv4l-redhat-linux/2.95.1/cpp': Exec format error

gcc: installation problem, cannot exec `/usr/lib/gcc-lib/armv4l-redhat-linux/2.95.1/cc1plus': Exec format error

gcc: installation problem, cannot exec `as': No such file or directory



Any suggestions?

Thanks!

Mark
Go to the top of the page
 
+Quote Post
ArchiMark
post Jan 18 2005, 04:59 PM
Post #2





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Some additional info, maybe this will help someone advise me.....

Here's my etc/fstab file:

CODE
/dev/mtdblock2             /             jffs2     ro, noatime                   1   1
/dev/mtdblock3             /home     jffs2    defaults, noatime            1   2
none                            /dev/shm tmpfs size=1m,noauto               0   0
/dev/mmcda1              /mnt/card  auto   noauto, owner                 0   0
none                           /dev/pts    devpts gid=5, mode=620           0   0
/mnt/card/Documents  /mnt/dev                   cramfs loop, noauto   0   0
/mnt/card/Documents/dev_img-1.5 /mnt/dev cramfs loop, noauto   0   0
/mnt/card/dev_img-1.5 /mnt/dev                 cramfs loop, noauto    0   0
/mnt/card/dev_img-1.5 /home/zaurus/develop cramfs loop, noauto 0   0


Does this look right??

Any other ideas?

If I want to try installing dev_img-1.5 again, what should I do before trying reinstall?

Thanks,

Mark
Go to the top of the page
 
+Quote Post
ArchiMark
post Jan 18 2005, 05:00 PM
Post #3





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Oooops....

Duplicated post (deleted)....

blink.gif

Mark

This post has been edited by ArchiMark: Jan 18 2005, 06:17 PM
Go to the top of the page
 
+Quote Post
freizugheit
post Jan 18 2005, 10:47 PM
Post #4





Group: Members
Posts: 409
Joined: 7-November 03
Member No.: 811



Follow cmisip's installation instruction at home.comcast.net/~cmisip/zaurus.htm.

It is the best to date.
Go to the top of the page
 
+Quote Post
ArchiMark
post Jan 19 2005, 07:25 AM
Post #5





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Thanks for your help, freizugheit!

However.....

"PAGE UNAVAILABLE

This URL you typed is unavailable at this time."


blink.gif


Oh well.....

Mark
Go to the top of the page
 
+Quote Post
ArchiMark
post Jan 25 2005, 12:01 PM
Post #6





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Got reply to PM from cmisip regarding his webpage....

Turns out his instructions were for zgcc anyway, not Dev_Img.... blink.gif

So could anyone else out there please advise???

Thank!

Mark
Go to the top of the page
 
+Quote Post
ArchiMark
post Jan 26 2005, 08:55 AM
Post #7





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Just curious....anyone out there in ZLand got Dev_Img-1.5 working on their C3000?

Meanwhile, anybody out there have any other advice??

Would REALLY like to get Dev_Img-1.5 working on my C3000. It was great having int on my ol' C860....

Thanks,

Mark
Go to the top of the page
 
+Quote Post
ArchiMark
post Jan 26 2005, 04:44 PM
Post #8





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Afternoon Update:

Reinstalled Dev_Img-1.5. Seems like things are working better now...but not quite there yet....

After install, typed
CODE
./gcc
and got
CODE
gcc: No input files
. So as I recall that means install should be OK.

Tried compiling simple 'Hello World' file.

Got the following error messages:

CODE
gcc: installation problem, cannot exec `as': No such file or directory
/home/zaurus/Documents/Text_Files/hello.cpp: In function `int main(int, char**)':
/home/zaurus/Documents/Text_Files/hello.cpp:8: `QPushbutton' undeclared (first use this function)
/home/zaurus/Documents/Text_Files/hello.cpp:8: (Each declared identifier is reported only once
/home/zaurus/Documents/Text_Files/hello.cpp:8: for each function it appears in.)
/home/zaurus/Documents/Text_Files/hello.cpp:8: parse error before `( '
/home/zaurus/Documents/Text_Files/hello.cpp:9: `hello' undeclared (first use this function)
/home/zaurus/Documents/Text_Files/hello.cpp:14: parse error at end of input
/home/zaurus/Documents/Text_Files/hello.cpp:14: output pipe has been closed


Don't understand the first error message line, what is that about???
( I do see something in the /bin directory names `as'....).

The rest of the error messages relate to the code itself that I wrote, I should be able to fix those issues....

Appreciate any and all input!!

Thanks,

Mark

This post has been edited by ArchiMark: Jan 26 2005, 04:59 PM
Go to the top of the page
 
+Quote Post
maslovsky
post Jan 27 2005, 01:04 AM
Post #9





Group: Members
Posts: 1,426
Joined: 22-October 03
Member No.: 89



Maybe it's a permissions problem? Whan are permissions of as executable in /mnt/dev/bin? Is is executable by user zaurus?
Go to the top of the page
 
+Quote Post
ArchiMark
post Jan 27 2005, 07:31 AM
Post #10





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Well, maybe I have bigger problems, Maslovsky.....

I typed
CODE
cd /mnt/dev/bin


and got back
CODE
No such file or directory


So then I did
CODE
$ su
#cd /mnt/dev/bin
cd: can't cd to /mnt/dev/bin
#cd /mnt/dev
#ls -l
#lrwxrwxrwx  1  root   root   develop -> /home/zaurus/develop


So wonder if this is installation related problem??

Maybe related to how C3000 is setup versus the C760/C860 are setup relative to the compiler_setup script???

Just some thoughts, but what do I know?? rolleyes.gif

Really appreciate any help!

Thanks,

Mark
Go to the top of the page
 
+Quote Post
maslovsky
post Jan 27 2005, 11:57 AM
Post #11





Group: Members
Posts: 1,426
Joined: 22-October 03
Member No.: 89



Where there any error messages during setup? Can you create /mnt/dev directory? Maybe you'll need to remount your partitions to rw before running dev-img setup
Go to the top of the page
 
+Quote Post
ArchiMark
post Jan 27 2005, 01:25 PM
Post #12





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



QUOTE(maslovsky @ Jan 27 2005, 11:57 AM)
Where there any error messages during setup? 


Yes, there were some error messages when I first tried to install.

I found some notes I made I think these are from when I was installing Dev_Img-1.5....

CODE

#cd /mnt/card/Documents
#./image_setup.sh /mnt/card/dev_img-1.5 /mnt/dev
# setting mount point /mnt/dev....
#mounting image /mnt/card/dev_img-1.5
#mount: /mnt/card/Documents: ls a directory
#mount: Could not setup loop device
#Failed to mount image /mnt/card/Documents on /mnt/dev


** I did try to install Dev_Img-1.5 again after getting these error messages. Maybe this is part of the problem too??


QUOTE
Can you create /mnt/dev directory?


It is there already and has 'develop' inside of it.

Although now I see something that really looks very strange....

I'm using tkcExplorer to literally see all my directories and files. It shows that within /mnt/dev/develop is another 'develop' directory. And then there's another 'develop' directory within that one and so on and so on....

So I assume that something got really messed up during installation and second installation, right??

QUOTE
Maybe you'll need to remount your partitions to rw before running dev-img setup


OK, so are you saying that I should

A) First remount partitions to rw and then

cool.gif Run the 'compiler_setup.sh' script again to reinstall Dev_Img-1.5 ??

Do I need to do anything else before doing this or removing the existing Dev_Img-1.5 installation??

Thanks!

Mark
Go to the top of the page
 
+Quote Post
ArchiMark
post Feb 2 2005, 04:27 PM
Post #13





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



OK, would like to try installing dev_img-1.5 one more time on my C3000....

Tried running 'image_setup.sh' and here's what I get:

CODE
Setting mount point /home/zaurus/develop...
Mounting image /mnt/card/dev_img-1.5...
Mount: Mounting /usr/mnt.rom/card/dev_img-1.5 on /home/zaurus/develop
failed: Block device required
Failed to mount image /mnt/card/dev_img-1.5 on /home/zaurus/develop


When I type 'mount' I get:

CODE
rootfs on /type rootfs (fw)
/dev/root on /  type jffs2 (ro)
/proc on /proc  type proc (rw)
/dev/mtdblock3 on /home type jffs2 (rw,noatime)
/dev/ram1 on /dev type minix (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda1 on /hdd1 type ext3 (ro, noatime)
/dev/hda2 on /hdd2 type ext3 (rw, noatime)
/dev/hda3 on /hdd3 type vfat (rw, noatime)
none on /dev/pts type devpts (rw)
/dev/mmcda1 on /usr/mnt.rom/card type vfat (rw, noatime)


Any suggestions as to how to get install working???

Thanks!!

Mark
Go to the top of the page
 
+Quote Post
maslovsky
post Feb 2 2005, 08:02 PM
Post #14





Group: Members
Posts: 1,426
Joined: 22-October 03
Member No.: 89



OK, this is what you should have start with smile.gif
I wonder if /home/zaurus is actualy a link to som other directory. Give me the output of ls -l /home command.
Go to the top of the page
 
+Quote Post
ArchiMark
post Feb 2 2005, 08:31 PM
Post #15





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



Thanks for your help, maslovsky!

OK, output of 'ls -l /home is:

lrwxrwxrwx 1 root root 15 Oct 27 21:14 QtPalmtop -> /hdd2/QtPalmtop

drwxr-xr-x 7 root root 0 Oct 27 20:24 dev

drwxr-sr-x 11 root root 0 Dec 31 1969 etc

drwxr-xr-x 6 root root 0 Jan 31 09:56 root

drwxr-xr-x 2 root root 0 Feb 2 17:21 samba

drwxr-xr-x 7 root root 0 Oct 27 20:24 sharp

drwxr-xr-x 3 root root 0 Oct 27 21:13 system

lrwxrwxrwx 1 root root 9 Oct 27 20:24 tmp -> /hdd2/tmp

drwxr-xr-x 2 root root 0 Oct 27 20:24 userdata

drwx------- 9 zaurus qpe 0 Feb 2 11:49 zaurus


Hope this helps....

Thanks,

Mark
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
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: 23rd October 2014 - 05:49 AM