Problem compiling image 500 plus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • txintxan
    Newbie
    • Jun 2008
    • 1

    #1

    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; 12 June, 2008, 19:14. Reason: Automerged Doublepost
  • kagon
    Top Poster
    • May 2008
    • 140

    #2
    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.

    Comment

    • duckchen
      Newbie
      • Jun 2008
      • 5

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

      Comment

      Working...