Author Topic: dev-img installed but g++ acting funny  (Read 2681 times)

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
dev-img installed but g++ acting funny
« on: August 30, 2004, 11:36:38 pm »
Hi, I'm a musician who wants to learn c++ just as a side hobby. I am new to linux and don't know a whole lot. I am not illeterate when it comes to computers however. anyways, I want to get the devimg working. i have a 5500sl w/a 256 sandisk SD card. I have the image and the script on /mnt/card and also created /mnt/dev for my final destination. Here is what I typed....

# image_setup.sh /mnt/card/dev_img-1.5 /mnt/dev
Setting mount point /mnt/dev...
Mounting image /mnt/card/dev_img-1.5...
Can't find /home/system/var/mnt/dev in /etc/fstab
Failed to mount image /mnt/card/dev_img-1.5 on /mnt/dev

I also nano'd fstab and this is whats inside, don't really know what any of it means...

/dev/mtdblock0  /       cramfs  ro              1  1
/dev/ram1       /dev    minix   defaults        1  2
/dev/mtdblock1  /home   ext2    defaults        1  2
/dev/hda1       /mnt/cf auto    noauto,owner    0  0
/dev/mmcda1     /mnt/card       auto    noauto,owner    0  0
none            /dev/pts        devpts  gid=5,mode=620  0  0
/mnt/card/dev_img-1.5 /mnt/dev/ cramfs loop,noauto 0 0


I can see that on the last line is where the script added what I typed.  I am really confused here. I am a linux noob and a programming noob so this is just way over my head. I have however searched the forums and google quite extensively so I come to you defeated, not just looking for a quick ansewr. Thank you for your help.

James

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
dev-img installed but g++ acting funny
« Reply #1 on: August 31, 2004, 01:54:43 am »
You do not have to mount the image file to /mnt/dev.  You can mount it to /home/zaurus/develop.  I mentioned in one of my postings how I got it to work manually:

https://www.oesf.org/forums/inde...l=develop&st=30
« Last Edit: August 31, 2004, 02:12:19 am by qx773 »

projekt

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
dev-img installed but g++ acting funny
« Reply #2 on: August 31, 2004, 07:14:49 pm »
Devimg installed, but from what I know you just g++ x.cpp and it should work, right?

# PATH="$PATH:/home/zaurus/develop/bin/"
# $PATH
bash: /root/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/home/QtPalmtop/bin:/home/zaurus/develop/bin/: No such file or directory
# mount /home/zaurus/develop/
mount: Could not find a spare loop device
# mknod /dev/loop2 b 7 2
# mount /home/zaurus/develop/
# compiler_setup.sh
Linking...
Setting up /usr/bin...
Setting up /usr/local/bin...
Setting up flex...
Setting up /usr/local/lib...
Setting up flex...
mkdir: Cannot create directory `/home/zaurus/automake': File exists
mkdir: Cannot create directory `/home/zaurus/autoconf': File exists
mkdir: Cannot create directory `/home/zaurus/libtool': File exists
Setting up perl...
mkdir: Cannot create directory `/mnt/pkgs': File exists
mkdir: Cannot create directory `/mnt/pkgs/perl': File exists
mkdir: Cannot create directory `/mnt/pkgs/perl/perl5.8.0': File exists
Setting up libraries...
You are now set up for dev using /home/zaurus/develop
# g++
gcc: installation problem, cannot exec `/usr/lib/gcc-lib/armv4l-redhat-linux/2.95.1/collect2': Exec format error

Also, how can I see what loop devices are currently active? I noticed that after I ran this script, I came back and tried to go onto my SD card and I didn't see any files or folders anywhere under mnt! I need help here, this is driving me bonkers!

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
dev-img installed but g++ acting funny
« Reply #3 on: August 31, 2004, 08:56:20 pm »
I've never received those error messages.  The "File exists" errors seem to indicate that you ran the compiler_setup.sh script more than once.  Did you execute the "su root" command to become the root user prior to executing the compiler_setup.sh script?

You can type the

mount

command by itself to see what devices are currently mounted.

Are you able to type the command:

cd /home/zaurus/develop
ls


and get a list of directories?

What happens when you run:

md5sum /home/zaurus/develop/lib/gcc-lib/armv4l-redhat-linux/2.95.1/collect2

Is the result different from when you run:

md5sum /usr/lib/gcc-lib/armv4l-redhat-linux/2.95.1/collect2

The md5 checksum that I get is 5c268f025b1861b850cdcbc1e7eb9098.
« Last Edit: August 31, 2004, 08:57:21 pm by qx773 »

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
dev-img installed but g++ acting funny
« Reply #4 on: August 31, 2005, 10:56:03 pm »
I learned today that a program called autoconf is hard-coded to look in "/mnt/dev/bin" for a file that is in "/home/zaurus/develop/bin".  That means that you have to do something like:

su root
cd /mnt
ln -s /home/zaurus/develop dev
exit


to link /mnt/dev to /home/zaurus/develop.
« Last Edit: August 31, 2005, 10:57:54 pm by qx773 »