Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: 10.04 Android OS Make Error

  1. #1
    Join Date
    Jul 2010
    Location
    Australia
    Beans
    22
    Distro
    Ubuntu 10.04 Lucid Lynx

    Question 10.04 Android OS Make Error

    Hi,
    I have followed the instructions to the letter and I have download the Android OS Source code as per instructions, and when says to run the "make" command, I get this output:
    Code:
    hamish@hamish-laptop:~/mydroid$ make
    ============================================
    PLATFORM_VERSION_CODENAME=AOSP
    PLATFORM_VERSION=AOSP
    TARGET_PRODUCT=generic
    TARGET_BUILD_VARIANT=eng
    TARGET_SIMULATOR=
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    HOST_ARCH=x86
    HOST_OS=linux
    HOST_BUILD_TYPE=release
    BUILD_ID=OPENMASTER
    ============================================
    Install: out/host/linux-x86/framework/apicheck.jar
    Install: out/host/linux-x86/framework/clearsilver.jar
    Install: out/host/linux-x86/framework/droiddoc.jar
    host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
    In file included from /usr/include/features.h:378,
                     from /usr/include/string.h:26,
                     from external/clearsilver/java-jni/j_neo_util.c:1:
    /usr/include/gnu/stubs.h:9:27: error: gnu/stubs-64.h: No such file or directory
    make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libclearsilver-jni_intermediates/j_neo_util.o] Error 1
    Have I screwed up?
    Regards,
    Hamish
    PS, The instructions are here

  2. #2
    Join Date
    Jul 2010
    Location
    Australia
    Beans
    22
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 10.04 Android OS Make Error

    I have tried a few more times with the same message

  3. #3
    Join Date
    Jul 2010
    Location
    Australia
    Beans
    22
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 10.04 Android OS Make Error

    I tried "make clean" then "make" same result
    I tried copying stubs-32.h and pasting it, then renaming it too stubs-64.h, it give this output:
    Code:
    hamish@hamish-laptop:~/mydroid$ make
    ============================================
    PLATFORM_VERSION_CODENAME=AOSP
    PLATFORM_VERSION=AOSP
    TARGET_PRODUCT=generic
    TARGET_BUILD_VARIANT=eng
    TARGET_SIMULATOR=
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    HOST_ARCH=x86
    HOST_OS=linux
    HOST_BUILD_TYPE=release
    BUILD_ID=OPENMASTER
    ============================================
    Install: out/host/linux-x86/framework/apicheck.jar
    Install: out/host/linux-x86/framework/clearsilver.jar
    Install: out/host/linux-x86/framework/droiddoc.jar
    host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_util.c
    target Generated: libclearsilver-jni <= out/host/common/obj/JAVA_LIBRARIES/clearsilver_intermediates/javalib.jar
    host C: libclearsilver-jni <= external/clearsilver/java-jni/j_neo_cs.c
    host C: libneo_util <= external/clearsilver/util/neo_err.c
    host C: libneo_util <= external/clearsilver/util/neo_files.c
    host C: libneo_util <= external/clearsilver/util/neo_misc.c
    host C: libneo_util <= external/clearsilver/util/neo_rand.c
    host C: libneo_util <= external/clearsilver/util/ulist.c
    host C: libneo_util <= external/clearsilver/util/neo_hdf.c
    host C: libneo_util <= external/clearsilver/util/neo_str.c
    host C: libneo_util <= external/clearsilver/util/neo_date.c
    host C: libneo_util <= external/clearsilver/util/wildmat.c
    host C: libneo_util <= external/clearsilver/util/ulocks.c
    host C: libneo_util <= external/clearsilver/util/neo_hash.c
    host SharedLib: libneo_util (out/host/linux-x86/obj/lib/libneo_util.so)
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
    /usr/bin/ld: cannot find -lstdc++
    collect2: ld returned 1 exit status
    make: *** [out/host/linux-x86/obj/lib/libneo_util.so] Error 1

  4. #4
    Join Date
    Jul 2010
    Location
    Australia
    Beans
    22
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 10.04 Android OS Make Error

    Ok, so i ran:
    Code:
    hamish@hamish-laptop:~/mydroid$ sudo ln -s /usr/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so
    and got this output:
    Code:
    hamish@hamish-laptop:~/mydroid$ make
    ============================================
    PLATFORM_VERSION_CODENAME=AOSP
    PLATFORM_VERSION=AOSP
    TARGET_PRODUCT=generic
    TARGET_BUILD_VARIANT=eng
    TARGET_SIMULATOR=
    TARGET_BUILD_TYPE=release
    TARGET_BUILD_APPS=
    TARGET_ARCH=arm
    HOST_ARCH=x86
    HOST_OS=linux
    HOST_BUILD_TYPE=release
    BUILD_ID=OPENMASTER
    ============================================
    Install: out/host/linux-x86/framework/apicheck.jar
    Install: out/host/linux-x86/framework/clearsilver.jar
    Install: out/host/linux-x86/framework/droiddoc.jar
    host SharedLib: libneo_util (out/host/linux-x86/obj/lib/libneo_util.so)
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.so when searching for -lstdc++
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/i486-linux-gnu/4.4.3/libstdc++.a when searching for -lstdc++
    /usr/bin/ld: cannot find -lstdc++
    collect2: ld returned 1 exit status
    make: *** [out/host/linux-x86/obj/lib/libneo_util.so] Error 1
    Im lost, anybody know how to fix this?

  5. #5
    Join Date
    Jul 2010
    Location
    Australia
    Beans
    22
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: 10.04 Android OS Make Error

    I have also uninstalled and reinstalled all the required packages and still get the same error message(first one)
    PLease help

  6. #6
    Join Date
    Nov 2009
    Beans
    2

    Re: 10.04 Android OS Make Error

    I ran into this very problem. First make sure you have java 1.5 in your PATH environment variable.

    Then in your droid repo directory 'source build/envsetup.sh' <-- and you HAVE to be in the top-level directory or the next command won't recognize the platforms you may have pulled.

    lunch 1 <-- tells the build system to build for the emulator
    make <-- builds the android platform.

  7. #7
    Join Date
    Jul 2010
    Beans
    1

    Re: 10.04 Android OS Make Error

    I have the same error and have try re-install ubuntu+tools+repo+... make ... without success.
    Then I try to get froyo source only by add "-b froyo" to repo init as below.

    repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo
    repo sync
    ...
    run all the .sh and now make -j4 run like a charm.

    You may also have to remove java6 by

    sudo apt-get autoremove sun-java6-jdk

    and manual download and install sun-java5-jdk.

    Hope this help.

  8. #8
    Join Date
    Jul 2010
    Beans
    1

    Re: 10.04 Android OS Make Error

    There's a bug on the master branch that is forcing use of 64-bit code generation if Java6 is used:

    The issue is with:
    https://review.source.android.com/15611

    Particularly, the diffs here:
    https://review.source.android.com/#p...,cs/Android.mk

    +# This forces a 64-bit build for Java6
    +ifneq ($(filter 1.6%,$(java_version)),)
    + LOCAL_CFLAGS += -m64
    + LOCAL_LDFLAGS += -m64
    +endif
    +

    Hopefully this gets fixed soon.

  9. #9
    Join Date
    Mar 2007
    Location
    UK, Sunny North Wales
    Beans
    Hidden!
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: 10.04 Android OS Make Error

    Quote Originally Posted by dlindquist View Post
    There's a bug on the master branch that is forcing use of 64-bit code generation if Java6 is used:

    The issue is with:
    https://review.source.android.com/15611

    Particularly, the diffs here:
    https://review.source.android.com/#p...,cs/Android.mk

    +# This forces a 64-bit build for Java6
    +ifneq ($(filter 1.6%,$(java_version)),)
    + LOCAL_CFLAGS += -m64
    + LOCAL_LDFLAGS += -m64
    +endif
    +

    Hopefully this gets fixed soon.
    Thanks for the tip dlinquist. It looks like the fix has been done to repo now.
    can you tell me how to grab it?
    I have tried copying the patch command line but I get a 'Not a git repository' error although when I perform repo sync it will seem to sync with the android source.

    Any help would be appreciated as I am very new to git.

    edit: I think I have now managed to grab the patch but it still has the same problem, looking at the diff it is still enforcing a 64bit build, is that correct?
    edit2: Just noticed you only replied a few hours ago so I guess this new merge doesnt fix the probelm as you suggest in your diff. I guess it is java5 for now then

    Cheers,

    Doddi
    Last edited by doddi; July 7th, 2010 at 10:55 PM.

  10. #10
    Join Date
    Jan 2010
    Beans
    2

    Re: 10.04 Android OS Make Error

    Sol 1 - As everyone has suggested, move to Java5

    Sol 2 - Comment out
    # This forces a 64-bit build for Java6
    #ifneq ($(filter 1.6%,$(java_version)),)
    # LOCAL_CFLAGS += -m64
    # LOCAL_LDFLAGS += -m64
    #endif

    in files
    external/clearsilver/cgi/Android.mk
    external/clearsilver/cs/Android.mk
    external/clearsilver/java-jni/Android.mk
    external/clearsilver/util/Android.mk

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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