This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

compilation error while building x-loader for android-gingerbread-2.3

Hello,

I started building binaries for android-gingerbread 2.3 by following TI Android GingerBread 2.3 DevKit 1.0 Developers Guide.

To building x-loader, I execute the command according to the guide,

and I got this result,

ashvin@DELL-inspiron:~/rowboat-android$ make CROSS_COMPILE=arm-eabi- distclean

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=2.3

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=GRH55

============================================

find: `frameworks/base/frameworks/base/docs/html': No such file or directory

find: `out/target/common/docs/gen': No such file or directory

find: `frameworks/base/frameworks/base/docs/html': No such file or directory

find: `out/target/common/docs/gen': No such file or directory

find: `frameworks/base/frameworks/base/docs/html': No such file or directory

find: `out/target/common/docs/gen': No such file or directory

find: `frameworks/base/frameworks/base/docs/html': No such file or directory

find: `out/target/common/docs/gen': No such file or directory

find: `frameworks/base/frameworks/base/docs/html': No such file or directory

find: `out/target/common/docs/gen': No such file or directory

make: *** No rule to make target `distclean'.  Stop.

I think there is no target in the rowboat-android....am i right? could anyone help please............

os: ubuntu 10.04 - 64 bit

version: android-gingerbread 2.3

platform: AM/DM37x EVM

thanks&cheers

ashwin

  • go to directory x-load-omap3 before run the make command.

  • hello Bin,

    yes, I moved x-load-omap3 directory and I run the command as shown below:

     

    ashvin@DELL-inspiron:~/rowboat-android/x-load-omap3$ make CROSS_COMPILE=arm-eabi- distclean

    find . -type f \

    \( -name 'core' -o -name '*.bak' -o -name '*~' \

    -o -name '*.o'  -o -name '*.a'  \) -print \

    | xargs rm -f

    find . -type f \

    \( -name .depend -o -name '*.srec' -o -name '*.bin' \) \

    -print \

    | xargs rm -f

    rm -f  *.bak tags TAGS

    rm -fr *.*~

    rm -f x-load x-load.map 

    rm -f include/asm/proc include/asm/arch

    rm -f include/config.h include/config.mk

  • The msg seems fine to me - it was trying to remove temp files. Now you can continue to follow the instructions to build x-loader.

  • excuse me if am asking very silly questions....because i am new to this environment...

    what is it mean that it was trying to remove temp files...does it removed those files or we have to remove?

    or u mean shall i continue to execute following commands to build x-loader

     

    $ make CROSS_COMPILE=arm-eabi- omap3evm_config

    $ make CROSS_COMPILE=arm-eabi-

  • No problem at all. (Sorry i did not know you background, I should make my response more instructive.)

    'make ... distclean' removes all the temp files (for example *.o) for you.

    Yes, now you can continue on the two commands you listed above to build x-loader.

  • Hi Bin,

    thanks for helping....

    I successfully executed commands as mentioned in the guide and build the x-loader and renamed as MLO.

    build the boot-loader and generated u-boot.bin and also successfully build the linux kernel and got uImage.

    now i get stuck at building root file system, 

    in which directory should I execute the command

    $ make TARGET_PRODUCT= <product name> OMAPES=5.x -j8

    :(

  • ~/rowboat-android/ in your case.

    Don't forget to change <product name> to something according to your board.

  • AM/DM37x and OMAP3 comes under same category ....isn't right?
    if yes I tried both and I got 
    ashvin@DELL-inspiron:~/rowboat-android$ make TARGET_PRODUCT= am3517evm OMAPES=5.x -j8
    build/core/product_config.mk:203: *** No matches for product "".  Stop.
    ashvin@DELL-inspiron:~/rowboat-android$ make TARGET_PRODUCT= omap3evm OMAPES=5.x -j8
    build/core/product_config.mk:203: *** No matches for product "".  Stop.
    what should I do?
  • there is not space between 'TARGET_PRODUCT=' and 'omap3evm'.

    for AM/DM37x EVM, set TARGET_PRODUCT to 'omap3evm'.

  • precise and perfecto....

    creating.......................................

    thank you so much...I will get you again if anything goes wrong...

    have a nice day 

     

  • HI

    While executing the command "sudo make TARGET_PRODUCT=omap3evm OMAPES=5.x -j2" I came across the following error please help me.

    Right now I am building my filesystem and succesfully builded my kernel,uImage and MLO:

    ============================================
    PLATFORM_VERSION_CODENAME=REL
    PLATFORM_VERSION=2.3.4
    TARGET_PRODUCT=omap3evm
    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=GRJ22
    ============================================
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    find: `frameworks/base/frameworks/base/docs/html': No such file or directory
    find: `out/target/common/docs/gen': No such file or directory
    Install: out/host/linux-x86/framework/apicheck.jar
    Install: out/host/linux-x86/framework/clearsilver.jar
    host C: libneo_cgi <= external/clearsilver/cgi/cgi.c
    host C: libneo_cgi <= external/clearsilver/cgi/date.c
    external/clearsilver/cgi/cgi.c:22:18: error: zlib.h: No such file or directory
    external/clearsilver/cgi/cgi.c: In function ‘cgi_compress’:
    external/clearsilver/cgi/cgi.c:885: error: ‘z_stream’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:885: error: (Each undeclared identifier is reported only once
    external/clearsilver/cgi/cgi.c:885: error: for each function it appears in.)
    external/clearsilver/cgi/cgi.c:885: error: expected ‘;’ before ‘stream’
    external/clearsilver/cgi/cgi.c:888: error: ‘stream’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:888: error: ‘Bytef’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:888: error: expected expression before ‘)’ token
    external/clearsilver/cgi/cgi.c:889: error: ‘uInt’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:889: error: expected ‘;’ before ‘str’
    external/clearsilver/cgi/cgi.c:890: error: expected expression before ‘)’ token
    external/clearsilver/cgi/cgi.c:892: error: ‘uLong’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:892: error: expected ‘)’ before ‘stream’
    external/clearsilver/cgi/cgi.c:895: error: ‘alloc_func’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:895: error: expected ‘;’ before numeric constant
    external/clearsilver/cgi/cgi.c:896: error: ‘free_func’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:896: error: expected ‘;’ before numeric constant
    external/clearsilver/cgi/cgi.c:897: error: ‘voidpf’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:897: error: expected ‘;’ before numeric constant
    external/clearsilver/cgi/cgi.c:900: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:900: error: ‘Z_DEFLATED’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:900: error: ‘MAX_WBITS’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:900: error: ‘Z_DEFAULT_STRATEGY’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:901: error: ‘Z_OK’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:904: error: ‘Z_FINISH’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:905: error: ‘Z_STREAM_END’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c: In function ‘cgi_output’:
    external/clearsilver/cgi/cgi.c:1200: error: ‘Z_NULL’ undeclared (first use in this function)
    external/clearsilver/cgi/cgi.c:1201: error: expected ‘)’ before ‘Bytef’
    external/clearsilver/cgi/cgi.c:1218: error: ‘Z_DEFLATED’ undeclared (first use in this function)
    make: *** [out/host/linux-x86/obj/SHARED_LIBRARIES/libneo_cgi_intermediates/cgi.o] Error 1
    make: *** Waiting for unfinished jobs....

    Please reply me ASAP as I am stuck and i cannot carry my work ahead.

    Regards

    Sharlin Kothari

  • Please avoid hijacking closed threads.

    Sharlin Kothari said:

    external/clearsilver/cgi/cgi.c:22:18: error: zlib.h: No such file or directory

    It looks like you have not setup the build host correctly. Please refer to our Developer Guide:

    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3.4-DevKit-2.1_DeveloperGuide#Host_.28PC.29_setup_requirements