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.

ti-glsdk_dra7xx-evm_6_04_00_02 yocto compile error

SDK: ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-installer.bin

procedure:

export PATH=xxxxxx:$PATH
cd $GLSDK
./bin/setup-yocto.sh
cd yocto-layers
mkdir downloads
./build-core-sdk.sh dra7xx-evm

Error log:

ERROR: Function failed: do_compile (see /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/temp/log.do_compile.31139 for further information)
ERROR: Logfile of failure stored in: /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/temp/log.do_compile.31139
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4
| make all-recursive
| make[1]: Entering directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git'
| Making all in shared
| make[2]: Entering directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/shared'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/shared'
| Making all in src
| make[2]: Entering directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src'
| GEN git-version.h
| make all-recursive
| make[3]: Entering directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src'
| Making all in xwayland
| make[4]: Entering directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/xwayland'
| make all-am
| make[5]: Entering directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/xwayland'
| make[5]: Nothing to be done for `all-am'.
| make[5]: Leaving directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/xwayland'
| make[4]: Leaving directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/xwayland'
| make[4]: Entering directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src'
| GEN git-version.h
| CCLD weston-launch
| CCLD spring-tool
| spring_tool-animation.o: In function `weston_surface_animation_destroy':
| /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/animation.c:135: undefined reference to `wl_list_remove'
| /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/animation.c:136: undefined reference to `wl_list_remove'
| /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/animation.c:137: undefined reference to `wl_list_remove'
| spring_tool-animation.o: In function `weston_surface_animation_run':
| /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/animation.c:203: undefined reference to `wl_list_insert'
| spring_tool-animation.o: In function `wl_signal_add':
| /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/sysroots/dra7xx-evm/usr/include/wayland-server.h:223: undefined reference to `wl_list_insert'
| spring_tool-animation.o: In function `weston_surface_animation_run':
| /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/animation.c:214: undefined reference to `wl_list_insert'
| collect2: error: ld returned 1 exit status
| make[4]: *** [spring-tool] Error 1
| make[4]: *** Waiting for unfinished jobs....
| weston_launch-weston-launch.o: In function `handle_signal':
| /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/weston-launch.c:452: undefined reference to `drmSetMaster'
| /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src/weston-launch.c:447: undefined reference to `drmDropMaster'
| collect2: error: ld returned 1 exit status
| make[4]: *** [weston-launch] Error 1
| make[4]: Leaving directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src'
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git/src'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/temp/log.do_compile.31139 for further information)
ERROR: Task 5 (/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/sources/meta-ti/recipes-graphics/weston/weston_1.3.0.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1035 tasks of which 1034 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/media/source_codes/jacinto/GLSDK_6_04_00_02/ti-glsdk_dra7xx-evm_6_04_00_02_linux-x64-install/ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/sources/meta-ti/recipes-graphics/weston/weston_1.3.0.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[GLSDK]>
[GLSDK]> Completed Yocto build at Wed Sep 17 17:00:54 HKT 2014
[GLSDK]>
kevin$

why "undefined reference to `wl_list_insert'" .......... ?

where can i get the library?

  • Hi Kevin,

    Have you made any changes to the yocto_layers directory, check out this thread how to change the permissions that are required:

    http://e2e.ti.com/support/omap/f/885/p/332333/1162087.aspx

    Regards,

    Boyko

  • Hi Kevin,

    Would you be able to give me the ls -al output on this directory?

    ti-glsdk_dra7xx-evm_6_04_00_02/yocto-layers/build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/wayland/1.3.0-r1/temp?

    Does this directory exist at all?

    Regards

    Karthik

  • Hi Boyko,

    Thanks for your suggestion. But i can't see any permissions problem,

    it seems every folder or files is kevin:kevin,

    *****************************************************************************************

    kevin$ cd yocto-layers/

    kevin$ ls -l
    total 97
    drwxrwxr-x 6 kevin kevin 248 Sep 17 23:00 build
    -rwxrwxr-x 1 kevin kevin 1259 Sep 17 22:41 build-core-sdk.sh
    -rwxrwxr-x 1 kevin kevin 682 Sep 17 22:41 build-specific-recipe.sh
    -rwxrwxr-x 1 kevin kevin 486 Sep 17 22:41 clean-specific-recipe.sh
    drwxrwxr-x 6 kevin kevin 448 Sep 11 02:09 configs
    drwxrwxr-x 11 kevin kevin 62776 Sep 17 14:49 downloads
    -rwxrwxr-x 1 kevin kevin 24520 Sep 11 02:09 oe-layertool-setup.sh
    drwxrwxr-x 2 kevin kevin 344 Sep 11 02:09 sample-files
    drwxrwxr-x 9 kevin kevin 248 Sep 11 13:37 sources

    *****************************************************************************************

    And i only change some *.bb file:

    files list1:

    sources/meta-openembedded/meta-oe/recipes-multimedia/webm/libvpx.inc

    sources/meta-openembedded/meta-oe/recipes-connectivity/iw/iw_3.6.bb

    sources/meta-openembedded/meta-oe/recipes-graphics/openbox/openbox_3.5.0.bb

    files list1's change:

    just change SRC_URI , because i have no proxy setting.

    files list2:

    sources/oe-core/meta/recipes-core/coreutils/coreutils-8.21

    sources/oe-core/meta/recipes-core/coreutils/coreutils-8.21.bb

    files list2's change:

    deleted. because i want to force yocto use coreutils-6.9;

    why coreutils-6.9 ?? Because coreutils-8.21 reported error while running do_configure !

  • hi, Karthik

    kevin$ cd build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/wayland/1.3.0-r1/temp

    kevin$ ls -al
    total 543
    drwxrwxr-x 2 kevin kevin 2928 Sep 17 23:10 .
    drwxrwxr-x 10 kevin kevin 368 Sep 16 19:33 ..
    lrwxrwxrwx 1 kevin kevin 20 Sep 16 18:59 log.do_compile -> log.do_compile.11359
    -rw-r--r-- 1 kevin kevin 53827 Sep 16 18:59 log.do_compile.11359
    lrwxrwxrwx 1 kevin kevin 21 Sep 16 18:58 log.do_configure -> log.do_configure.7624
    -rw-r--r-- 1 kevin kevin 19396 Sep 16 18:59 log.do_configure.7624
    lrwxrwxrwx 1 kevin kevin 25 Sep 16 18:58 log.do_create_srcipk -> log.do_create_srcipk.7601
    -rw-rw-r-- 1 kevin kevin 233 Sep 16 18:58 log.do_create_srcipk.7601
    lrwxrwxrwx 1 kevin kevin 17 Sep 11 20:31 log.do_fetch -> log.do_fetch.3241
    -rw-rw-r-- 1 kevin kevin 2690 Sep 11 20:31 log.do_fetch.3241
    lrwxrwxrwx 1 kevin kevin 20 Sep 16 18:59 log.do_install -> log.do_install.12304
    -rw-r--r-- 1 kevin kevin 20956 Sep 16 18:59 log.do_install.12304
    lrwxrwxrwx 1 kevin kevin 19 Sep 16 19:33 log.do_package -> log.do_package.1392
    -rw-r--r-- 1 kevin kevin 9070 Sep 16 19:33 log.do_package.1392
    lrwxrwxrwx 1 kevin kevin 23 Sep 16 19:33 log.do_packagedata -> log.do_packagedata.8961
    -rw-rw-r-- 1 kevin kevin 2921 Sep 16 19:33 log.do_packagedata.8961
    lrwxrwxrwx 1 kevin kevin 17 Sep 11 20:31 log.do_patch -> log.do_patch.3253
    -rw-rw-r-- 1 kevin kevin 178 Sep 11 20:31 log.do_patch.3253
    lrwxrwxrwx 1 kevin kevin 29 Sep 16 19:32 log.do_populate_sysroot -> log.do_populate_sysroot.24393
    -rw-r--r-- 1 kevin kevin 3424 Sep 16 19:32 log.do_populate_sysroot.24393
    lrwxrwxrwx 1 kevin kevin 18 Sep 11 20:31 log.do_unpack -> log.do_unpack.3245
    -rw-rw-r-- 1 kevin kevin 5605 Sep 11 20:31 log.do_unpack.3245
    -rw-rw-r-- 1 kevin kevin 428 Sep 16 19:33 log.task_order
    -rwxrwxr-x 1 kevin kevin 15503 Sep 16 18:59 run.autotools_postconfigure.7624
    -rwxrwxr-x 1 kevin kevin 17139 Sep 16 18:58 run.autotools_preconfigure.7624
    -rw-rw-r-- 1 kevin kevin 384 Sep 11 20:31 run.base_do_fetch.3241
    -rw-rw-r-- 1 kevin kevin 439 Sep 11 20:31 run.base_do_unpack.3245
    -rw-r--r-- 1 kevin kevin 4292 Sep 16 19:33 run.debian_package_name_hook.1392
    -rwxrwxr-x 1 kevin kevin 15254 Sep 16 18:59 run.do_compile.11359
    -rwxrwxr-x 1 kevin kevin 27671 Sep 16 18:58 run.do_configure.7624
    -rwxrwxr-x 1 kevin kevin 21180 Sep 16 18:58 run.do_create_srcipk.7601
    -rw-rw-r-- 1 kevin kevin 75 Sep 11 20:31 run.do_fetch.3241
    -rwxrwxr-x 1 kevin kevin 16059 Sep 16 18:59 run.do_install.12304
    -rw-r--r-- 1 kevin kevin 3040 Sep 16 19:33 run.do_package.1392
    -rwxrwxr-x 1 kevin kevin 14901 Sep 16 19:33 run.do_packagedata.8961
    -rw-r--r-- 1 kevin kevin 3170 Sep 16 19:33 run.do_package_qa.1392
    -rw-rw-r-- 1 kevin kevin 76 Sep 11 20:31 run.do_patch.3253
    -rw-r--r-- 1 kevin kevin 207 Sep 16 19:32 run.do_populate_sysroot.24393
    -rw-r--r-- 1 kevin kevin 2643 Sep 16 18:59 run.do_qa_configure.7624
    -rw-r--r-- 1 kevin kevin 668 Sep 16 19:32 run.do_qa_staging.24393
    -rw-r--r-- 1 kevin kevin 96 Sep 16 19:32 run.do_siteconfig.24393
    -rw-rw-r-- 1 kevin kevin 78 Sep 11 20:31 run.do_unpack.3245
    -rw-r--r-- 1 kevin kevin 5600 Sep 16 19:33 run.emit_pkgdata.1392
    -rw-r--r-- 1 kevin kevin 8510 Sep 16 19:33 run.fixup_perms.1392
    -rw-r--r-- 1 kevin kevin 4926 Sep 16 19:33 run.package_depchains.1392
    -rw-r--r-- 1 kevin kevin 1873 Sep 16 19:33 run.package_do_filedeps.1392
    -rw-r--r-- 1 kevin kevin 3464 Sep 16 19:33 run.package_do_pkgconfig.1392
    -rw-r--r-- 1 kevin kevin 9053 Sep 16 19:33 run.package_do_shlibs.1392
    -rw-r--r-- 1 kevin kevin 2100 Sep 16 19:33 run.package_do_split_locales.1392
    -rw-r--r-- 1 kevin kevin 1692 Sep 16 19:33 run.package_fixsymlinks.1392
    -rw-r--r-- 1 kevin kevin 873 Sep 16 19:33 run.package_get_auto_pr.1392
    -rw-r--r-- 1 kevin kevin 104 Sep 16 19:33 run.package_name_hook.1392
    -rw-rw-r-- 1 kevin kevin 1872 Sep 11 20:31 run.patch_do_patch.3253
    -rw-r--r-- 1 kevin kevin 1196 Sep 16 19:33 run.perform_packagecopy.1392
    -rw-r--r-- 1 kevin kevin 4449 Sep 16 19:33 run.populate_packages.1392
    -rw-r--r-- 1 kevin kevin 648 Sep 16 19:33 run.read_shlibdeps.1392
    -rw-r--r-- 1 kevin kevin 434 Sep 16 19:32 run.siteconfig_do_siteconfig.24393
    -rw-r--r-- 1 kevin kevin 8500 Sep 16 19:33 run.split_and_strip_files.1392
    -rwxrwxr-x 1 kevin kevin 16515 Sep 16 19:33 run.sstate_create_package.1392
    -rwxrwxr-x 1 kevin kevin 16560 Sep 16 19:32 run.sstate_create_package.24393
    -rwxrwxr-x 1 kevin kevin 16535 Sep 16 19:33 run.sstate_create_package.8961
    -rw-r--r-- 1 kevin kevin 266 Sep 16 19:33 run.sstate_task_postfunc.1392
    -rw-r--r-- 1 kevin kevin 266 Sep 16 19:32 run.sstate_task_postfunc.24393
    -rw-rw-r-- 1 kevin kevin 266 Sep 16 19:33 run.sstate_task_postfunc.8961
    -rw-r--r-- 1 kevin kevin 132 Sep 16 19:33 run.sstate_task_prefunc.1392
    -rw-r--r-- 1 kevin kevin 132 Sep 16 19:32 run.sstate_task_prefunc.24393
    -rw-rw-r-- 1 kevin kevin 132 Sep 16 19:33 run.sstate_task_prefunc.8961
    -rw-r--r-- 1 kevin kevin 132 Sep 16 18:58 run.sysroot_cleansstate.7624
    -rwxrwxr-x 1 kevin kevin 16984 Sep 16 19:32 run.sysroot_stage_all.24393
    kevin$

  • Hi Kevin,

    Unfortunately, that does not give me any further clues on the problem.

    In the meanwhile, I tried to install 6.04 release and do a Yocto build and it worked fine for me. So I'm not sure what is going wrong at your end. I would need more data to determine the problem.

    Although this is a time consuming suggestion, would it be possible for you to retry the same and capture all the steps once again?

    Regards

    Karthik

  • hi, Karthik

    i catch the point.

    cd build/arago-tmp-external-linaro-toolchain/work/cortexa15hf-vfp-neon-3.8-oe-linux-gnueabi/weston/1.3.0-r3/git

    open src/Makefile, search "WESTON_LAUNCH_LIBS" would get  "WESTON_LAUNCH_LIBS =    -lpam"

    then change it to "WESTON_LAUNCH_LIBS =    -lpam -ldrm" .

    it would solve this problem:

    weston/1.3.0-r3/git/src/weston-launch.c:452: undefined reference to `drmSetMaster'

    weston/1.3.0-r3/git/src/weston-launch.c:447: undefined reference to `drmDropMaster'

    But it need to add so much "-lxxx" into each Makefile to solve all the undefined reference problem.

    why configure procedure can't create the right library dependence parameters? 

    can you share your autoconf & automake version?

    Thanks

    Kevin

  • Hi Kevin,

    Ideally you don't have to do these kind of instrusive changes, it should work with the "build-core-sdk.sh" without any issues.

    I checked the WESTON_LAUNCH_LIBS in the Makefile and find that the "-ldrm" is already present. So there is some difference in the tool versions (perhaps) that is causing this problem.

    The version of Autoconf is 2.69.

    Please let me know if you need any more details, I can provide it to you so that the problem can be identified.

    Regards

    Karthik

  • hi, Karthik

    i can work around this issue by apply my change:

    diff --git a/recipes-graphics/weston/weston_1.3.0.bb b/recipes-graphics/weston/weston_1.3.0.bb
    index c32b50f..8cb78bb 100644
    --- a/recipes-graphics/weston/weston_1.3.0.bb
    +++ b/recipes-graphics/weston/weston_1.3.0.bb
    @@ -21,7 +21,7 @@ SRCREV = "95659c03219b057d9d703b04cf89bc0329ce947a"

    S = "${WORKDIR}/git"

    -PR = "r3"
    +PR = "r4"

    inherit autotools pkgconfig useradd

    @@ -99,23 +99,19 @@ do_install_append() {
    cp ${S}/clients/weston-keyboard ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-multi-resource ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-resizor ${D}/usr/bin/weston-clients/
    - cp ${S}/clients/weston-simple-egl ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-simple-im ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-simple-shm ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-simple-touch ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-smoke ${D}/usr/bin/weston-clients/
    - cp ${S}/clients/weston-subsurfaces ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-desktop-shell ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-info ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-screenshooter ${D}/usr/bin/weston-clients/
    - cp ${S}/clients/weston-tablet-shell ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-terminal ${D}/usr/bin/weston-clients/
    cp ${S}/clients/weston-transformed ${D}/usr/bin/weston-clients/

    mkdir -p ${D}/usr/libexec
    cp ${S}/clients/weston-desktop-shell ${D}/usr/libexec/
    cp ${S}/clients/weston-screenshooter ${D}/usr/libexec/
    - cp ${S}/clients/weston-tablet-shell ${D}/usr/libexec/

    mkdir -p ${D}/home/root
    mkdir -p ${D}/home/root/.config
    @@ -124,11 +120,6 @@ do_install_append() {

    }

    -do_configure() {
    - aclocal -I ${STAGING_DIR_TARGET}/usr/share/aclocal
    - ./autogen.sh --prefix=/usr --host=arm-linux --with-libtool-sysroot=${STAGING_DIR_TARGET} --enable-weston-launch
    -}
    -
    PACKAGES += "${PN}-examples"

    FILES_${PN} = "${bindir}/weston* ${bindir}/wcap-decode ${libexecdir} ${datadir} ${libdir}/weston/* /home/root/.profile /home/root/.config/* /usr/libexec/weston-desktop-shell /usr/libexec/weston-screenshooter /usr/libexec/weston-tablet-shell"

    At last, i can build yocto all successfully.

    Thanks

    Kevin