Register
Results 1 to 3 of 3

Problem compiling image 500 plus

Hi When i try to compile image 500 plus i get the ...

  1. #1
    Newbie
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    0
    Uploads
    0

    Default Problem compiling image 500 plus

    Hi

    When i try to compile image 500 plus i get the next error:

    NOTE: package util-linux-2.12r-r6: task do_unpack: completed
    NOTE: package util-linux-2.12r-r6: task do_patch: started
    NOTE: Applying patch 'gcc34.patch'
    NOTE: Applying patch 'fdiskbsdlabel_thumb.diff'
    NOTE: Applying patch 'umount.diff'
    Command Error: exit status: 1 Output:
    Applying patch patches/umount.diff
    patch: **** Only garbage was found in the patch input.
    Patch patches/umount.diff appears to be empty; applied
    NOTE: dropping user into a shell, so that patch rejects can be fixed manually.

    I saw in internet, and i had not answer about it.

    My umount.diff is here:

    *** util-linux-2.12r/mount/umount.c.orig 2005-09-10 20:07:38.000000000 +0200
    --- util-linux-2.12r/mount/umount.c 2006-06-07 21:14:04.000000000 +0200
    ***************
    *** 40,46 ****
    #include <linux/unistd.h>
    #ifdef __NR_umount2

    ! static int umount2(const char *path, int flags);

    _syscall2(int, umount2, const char *, path, int, flags);

    --- 40,46 ----
    #include <linux/unistd.h>
    #ifdef __NR_umount2

    ! int umount2(const char *path, int flags);

    _syscall2(int, umount2, const char *, path, int, flags);

    I don't know what is the problem

    Can anyone help me??

    <--txintxan added 114 Minutes and 49 Seconds later...-->

    I see probably problem is util-linux

    Shell says me this:

    make[1]: Entering directory `/root/.local/share/Trash/files/util-linux-2_1.12r/po'
    rm -f cat-id-tbl.tmp
    sed -f ./po2tbl.sed util-linux.pot \
    | sed -e "s/@PACKAGE NAME@/util-linux/" > cat-id-tbl.tmp
    if cmp -s cat-id-tbl.tmp cat-id-tbl.c; then \
    rm cat-id-tbl.tmp; \
    else \
    echo cat-id-tbl.c changed; \
    rm -f cat-id-tbl.c; \
    mv cat-id-tbl.tmp cat-id-tbl.c; \
    fi
    rm -f stamp-cat-id && echo timestamp > stamp-cat-id
    make[1]: Leaving directory `/root/.local/share/Trash/files/util-linux-2_1.12r/po'
    make[1]: Entering directory `/root/.local/share/Trash/files/util-linux-2_1.12r/lib'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/.local/share/Trash/files/util-linux-2_1.12r/lib'
    make[1]: Entering directory `/root/.local/share/Trash/files/util-linux-2_1.12r/getopt'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/root/.local/share/Trash/files/util-linux-2_1.12r/getopt'
    make[1]: Entering directory `/root/.local/share/Trash/files/util-linux-2_1.12r/disk-utils'
    cc -s -o mkfs.cramfs mkfs.cramfs.o ../lib/md5.o -lz
    /usr/lib/gcc/i586-suse-linux/4.2.1/../../../../i586-suse-linux/bin/ld: powerpc:common architecture of input file `../lib/md5.o' is incompatible with i386 output
    collect2: ld returned 1 exit status
    make[1]: *** [mkfs.cramfs] Error 1
    make[1]: Leaving directory `/root/.local/share/Trash/files/util-linux-2_1.12r/disk-utils'
    make: *** [all] Error 1
    Last edited by txintxan; 12th June, 2008 at 07:14 PM. Reason: Automerged Doublepost

  2. #2
    Top Poster
    Join Date
    May 2008
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    2
    Uploads
    0

    Default

    You've got something odd with your cross compiling environment there for sure. You're linking against libraries from your i386 GCC installation which is not going to work with PowerPC compiled object code.

  3. #3
    Newbie
    Join Date
    Jun 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Downloads
    11
    Uploads
    0

    Default

    Thanks guy. this is just what I am looking for. Cheers!

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •