Wind River Support Network

HomeDefectsLIN7-4795
Fixed

LIN7-4795 : build libvpx failed due to collect2: error:ld returned 1 exit status

Created: Sep 18, 2015    Updated: Sep 8, 2018
Resolved Date: Aug 21, 2016
Found In Version: 7.0
Fix Version: 7.0.0.18
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace

Description

Problem Description
======================
build libvpx failed due to collect2: error:ld returned 1 exit status


Expected Behavior
======================
Build project no issues.

Observed Behavior
======================
Others build successfully.

Logs
======================
/tmp/log.do_compile.25445
DEBUG: Executing shell function do_compile
NOTE: make -j 8 -e MAKEFLAGS=
    [CREATE] vpx_scale_rtcd.h
    [CREATE] vp8_rtcd.h
    [CREATE] vp9_rtcd.h
    [DEP] vpx_config.c.d
    [DEP] vp9/decoder/vp9_dsubexp.c.d
    [DEP] vp9/decoder/vp9_onyxd_if.c.d
    [DEP] vp9/decoder/vp9_thread.c.d
    [DEP] vp9/decoder/vp9_detokenize.c.d
    [DEP] vp9/decoder/vp9_decodframe.c.d
    [DEP] vp9/decoder/vp9_decodemv.c.d
    [DEP] vp9/decoder/vp9_dboolhuff.c.d
    [DEP] vp9/vp9_dx_iface.c.d
    [DEP] vp9/common/vp9_scan.c.d
    [DEP] vp9/common/vp9_common_data.c.d
    [DEP] vp9/common/vp9_treecoder.c.d
    [DEP] vp9/common/vp9_reconintra.c.d
    [DEP] vp9/common/vp9_reconinter.c.d
    [DEP] vp9/common/vp9_quant_common.c.d
    [DEP] vp9/common/vp9_mvref_common.c.d
    [DEP] vp9/common/vp9_loopfilter_filters.c.d
    [DEP] vp9/common/vp9_loopfilter.c.d
    [DEP] vp9/common/vp9_tile_common.c.d
    [DEP] vp9/common/vp9_seg_common.c.d
    [DEP] vp9/common/vp9_scale.c.d
    [DEP] vp9/common/vp9_rtcd.c.d
    [DEP] vp9/common/vp9_pred_common.c.d
    [DEP] vp9/common/vp9_idct.c.d
    [DEP] vp9/common/generic/vp9_systemdependent.c.d
    [DEP] vp9/common/vp9_findnearmv.c.d
    [DEP] vp9/common/vp9_filter.c.d
    [DEP] vp9/common/vp9_extend.c.d
    [DEP] vp9/common/vp9_entropymv.c.d
    [DEP] vp9/common/vp9_entropymode.c.d
    [DEP] vp9/common/vp9_entropy.c.d
    [DEP] vp9/common/vp9_debugmodes.c.d
    [DEP] vp9/common/vp9_convolve.c.d
    [DEP] vp9/common/vp9_alloccommon.c.d
    [DEP] vp9/encoder/vp9_mbgraph.c.d
    [DEP] vp9/encoder/vp9_temporal_filter.c.d
    [DEP] vp9/encoder/vp9_vaq.c.d
    [DEP] vp9/encoder/vp9_variance_c.c.d
    [DEP] vp9/encoder/vp9_treewriter.c.d
    [DEP] vp9/encoder/vp9_tokenize.c.d
    [DEP] vp9/encoder/vp9_subexp.c.d
    [DEP] vp9/encoder/vp9_segmentation.c.d
    [DEP] vp9/encoder/vp9_sad_c.c.d
    [DEP] vp9/encoder/vp9_rdopt.c.d
    [DEP] vp9/encoder/vp9_ratectrl.c.d
    [DEP] vp9/encoder/vp9_quantize.c.d
    [DEP] vp9/encoder/vp9_psnr.c.d
    [DEP] vp9/encoder/vp9_picklpf.c.d
    [DEP] vp9/encoder/vp9_onyx_if.c.d
    [DEP] vp9/encoder/vp9_modecosts.c.d
    [DEP] vp9/encoder/vp9_mcomp.c.d
    [DEP] vp9/encoder/vp9_lookahead.c.d
    [DEP] vp9/encoder/vp9_firstpass.c.d
    [DEP] vp9/encoder/vp9_encodemv.c.d
    [DEP] vp9/encoder/vp9_encodemb.c.d
    [DEP] vp9/encoder/vp9_encodeintra.c.d
    [DEP] vp9/encoder/vp9_encodeframe.c.d
    [DEP] vp9/encoder/vp9_dct.c.d
    [DEP] vp9/encoder/vp9_boolhuff.c.d
    [DEP] vp9/encoder/vp9_bitstream.c.d
    [DEP] vp9/vp9_cx_iface.c.d
    [DEP] vp8/decoder/threading.c.d
    [DEP] vp8/decoder/onyxd_if.c.d
    [DEP] vp8/decoder/detokenize.c.d
    [DEP] vp8/decoder/decodframe.c.d
    [DEP] vp8/decoder/decodemv.c.d
    [DEP] vp8/decoder/dboolhuff.c.d
    [DEP] vp8/vp8_dx_iface.c.d
    [DEP] vp8/common/treecoder.c.d
    [DEP] vp8/common/variance_c.c.d
    [DEP] vp8/common/swapyv12buffer.c.d
    [DEP] vp8/common/setupintrarecon.c.d
    [DEP] vp8/common/sad_c.c.d
    [DEP] vp8/common/reconintra4x4.c.d
    [DEP] vp8/common/reconintra.c.d
    [DEP] vp8/common/reconinter.c.d
    [DEP] vp8/common/quant_common.c.d
    [DEP] vp8/common/modecont.c.d
    [DEP] vp8/common/mbpitch.c.d
    [DEP] vp8/common/loopfilter_filters.c.d
    [DEP] vp8/common/loopfilter.c.d
    [DEP] vp8/common/rtcd.c.d
    [DEP] vp8/common/idctllm.c.d
    [DEP] vp8/common/idct_blk.c.d
    [DEP] vp8/common/generic/systemdependent.c.d
    [DEP] vp8/common/findnearmv.c.d
    [DEP] vp8/common/filter.c.d
    [DEP] vp8/common/extend.c.d
    [DEP] vp8/common/entropymv.c.d
    [DEP] vp8/common/entropymode.c.d
    [DEP] vp8/common/entropy.c.d
    [DEP] vp8/common/dequantize.c.d
    [DEP] vp8/common/debugmodes.c.d
    [DEP] vp8/common/blockd.c.d
    [DEP] vp8/common/alloccommon.c.d
    [DEP] vp8/encoder/vp8_asm_enc_offsets.c.d
    [DEP] vp8/encoder/temporal_filter.c.d
    [DEP] vp8/encoder/treewriter.c.d
    [DEP] vp8/encoder/tokenize.c.d
    [DEP] vp8/encoder/segmentation.c.d
    [DEP] vp8/encoder/rdopt.c.d
    [DEP] vp8/encoder/ratectrl.c.d
    [DEP] vp8/encoder/quantize.c.d
    [DEP] vp8/encoder/psnr.c.d
    [DEP] vp8/encoder/picklpf.c.d
    [DEP] vp8/encoder/pickinter.c.d
    [DEP] vp8/encoder/onyx_if.c.d
    [DEP] vp8/encoder/modecosts.c.d
    [DEP] vp8/encoder/mcomp.c.d
    [DEP] vp8/encoder/lookahead.c.d
    [DEP] vp8/encoder/denoising.c.d
    [DEP] vp8/encoder/firstpass.c.d
    [DEP] vp8/encoder/ethreading.c.d
    [DEP] vp8/encoder/encodemv.c.d
    [DEP] vp8/encoder/encodemb.c.d
    [DEP] vp8/encoder/encodeintra.c.d
    [DEP] vp8/encoder/encodeframe.c.d
    [DEP] vp8/encoder/dct.c.d
    [DEP] vp8/encoder/boolhuff.c.d
    [DEP] vp8/encoder/bitstream.c.d
    [DEP] vp8/vp8_cx_iface.c.d
    [DEP] vpx_scale/vpx_scale_rtcd.c.d
    [DEP] vpx_scale/vpx_scale_asm_offsets.c.d
    [DEP] vpx_scale/generic/gen_scalers.c.d
    [DEP] vpx_scale/generic/yv12extend.c.d
    [DEP] vpx_scale/generic/yv12config.c.d
    [DEP] vpx_scale/generic/vpx_scale.c.d
    [DEP] vpx_mem/vpx_mem.c.d
    [DEP] vpx/src/vpx_image.c.d
    [DEP] vpx/src/vpx_codec.c.d
    [DEP] vpx/src/vpx_encoder.c.d
    [DEP] vpx/src/vpx_decoder.c.d
    [DEP] vpx/src/svc_encodeframe.c.d
    [CC] vpx/src/svc_encodeframe.c.o
vpx/src/svc_encodeframe.c: In function 'vpx_svc_init':
vpx/src/svc_encodeframe.c:395:7: warning: 'input_ptr' may be used uninitialized in this function [-Wmaybe-uninitialized]
       svc_log(svc_ctx, SVC_LOG_ERROR, "option missing value: %s\n",
       ^
vpx/src/svc_encodeframe.c:383:9: note: 'input_ptr' was declared here
   char *input_ptr;
         ^
    [CC] vpx/src/vpx_decoder.c.o
    [CC] vpx/src/vpx_encoder.c.o
    [CC] vpx/src/vpx_codec.c.o
    [CC] vpx/src/vpx_image.c.o
    [CC] vpx_mem/vpx_mem.c.o
    [CC] vpx_scale/generic/vpx_scale.c.o
    [CC] vpx_scale/generic/yv12config.c.o
    [CC] vpx_scale/generic/yv12extend.c.o
    [CC] vpx_scale/generic/gen_scalers.c.o
    [CC] vpx_scale/vpx_scale_asm_offsets.c.o
    [CC] vpx_scale/vpx_scale_rtcd.c.o
    [CC] vp8/common/alloccommon.c.o
    [CC] vp8/common/blockd.c.o
    [CC] vp8/common/debugmodes.c.o
    [CC] vp8/common/dequantize.c.o
    [CC] vp8/common/entropy.c.o
    [CC] vp8/common/entropymode.c.o
    [CC] vp8/common/entropymv.c.o
    [CC] vp8/common/extend.c.o
    [CC] vp8/common/filter.c.o
    [CC] vp8/common/findnearmv.c.o
    [CC] vp8/common/generic/systemdependent.c.o
    [CC] vp8/common/idct_blk.c.o
    [CC] vp8/common/idctllm.c.o
    [CC] vp8/common/rtcd.c.o
    [CC] vp8/common/loopfilter.c.o
    [CC] vp8/common/loopfilter_filters.c.o
    [CC] vp8/common/mbpitch.c.o
    [CC] vp8/common/modecont.c.o
    [CC] vp8/common/quant_common.c.o
    [CC] vp8/common/reconinter.c.o
    [CC] vp8/common/reconintra.c.o
    [CC] vp8/common/reconintra4x4.c.o
    [CC] vp8/common/sad_c.c.o
    [CC] vp8/common/setupintrarecon.c.o
    [CC] vp8/common/swapyv12buffer.c.o
    [CC] vp8/common/variance_c.c.o
    [CC] vp8/common/treecoder.c.o
    [CC] vp8/vp8_cx_iface.c.o
    [CC] vp8/encoder/bitstream.c.o
    [CC] vp8/encoder/boolhuff.c.o
    [CC] vp8/encoder/dct.c.o
    [CC] vp8/encoder/encodeframe.c.o
    [CC] vp8/encoder/encodeintra.c.o
    [CC] vp8/encoder/encodemb.c.o
    [CC] vp8/encoder/encodemv.c.o
    [CC] vp8/encoder/ethreading.c.o
    [CC] vp8/encoder/firstpass.c.o
    [CC] vp8/encoder/denoising.c.o
    [CC] vp8/encoder/lookahead.c.o
    [CC] vp8/encoder/mcomp.c.o
    [CC] vp8/encoder/modecosts.c.o
    [CC] vp8/encoder/onyx_if.c.o
    [CC] vp8/encoder/pickinter.c.o
    [CC] vp8/encoder/picklpf.c.o
    [CC] vp8/encoder/psnr.c.o
    [CC] vp8/encoder/quantize.c.o
    [CC] vp8/encoder/ratectrl.c.o
    [CC] vp8/encoder/rdopt.c.o
    [CC] vp8/encoder/segmentation.c.o
    [CC] vp8/encoder/tokenize.c.o
vp8/encoder/tokenize.c: In function 'vp8_tokenize_mb':
vp8/encoder/tokenize.c:255:39: warning: array subscript is above array bounds [-Warray-bounds]
             rc = vp8_default_zig_zag1d[c];
                                       ^
vp8/encoder/tokenize.c:256:34: warning: array subscript is above array bounds [-Warray-bounds]
             band = vp8_coef_bands[c];
                                  ^
    [CC] vp8/encoder/treewriter.c.o
    [CC] vp8/encoder/temporal_filter.c.o
    [CC] vp8/encoder/vp8_asm_enc_offsets.c.o
    [CC] vp8/vp8_dx_iface.c.o
    [CC] vp8/decoder/dboolhuff.c.o
    [CC] vp8/decoder/decodemv.c.o
    [CC] vp8/decoder/decodframe.c.o
    [CC] vp8/decoder/detokenize.c.o
    [CC] vp8/decoder/onyxd_if.c.o
    [CC] vp8/decoder/threading.c.o
    [CC] vp9/common/vp9_alloccommon.c.o
    [CC] vp9/common/vp9_convolve.c.o
    [CC] vp9/common/vp9_debugmodes.c.o
    [CC] vp9/common/vp9_entropy.c.o
    [CC] vp9/common/vp9_entropymode.c.o
    [CC] vp9/common/vp9_entropymv.c.o
    [CC] vp9/common/vp9_extend.c.o
    [CC] vp9/common/vp9_filter.c.o
    [CC] vp9/common/vp9_findnearmv.c.o
    [CC] vp9/common/generic/vp9_systemdependent.c.o
    [CC] vp9/common/vp9_idct.c.o
    [CC] vp9/common/vp9_pred_common.c.o
    [CC] vp9/common/vp9_rtcd.c.o
    [CC] vp9/common/vp9_scale.c.o
    [CC] vp9/common/vp9_seg_common.c.o
    [CC] vp9/common/vp9_tile_common.c.o
    [CC] vp9/common/vp9_loopfilter.c.o
    [CC] vp9/common/vp9_loopfilter_filters.c.o
    [CC] vp9/common/vp9_mvref_common.c.o
    [CC] vp9/common/vp9_quant_common.c.o
    [CC] vp9/common/vp9_reconinter.c.o
    [CC] vp9/common/vp9_reconintra.c.o
    [CC] vp9/common/vp9_treecoder.c.o
    [CC] vp9/common/vp9_common_data.c.o
    [CC] vp9/common/vp9_scan.c.o
    [CC] vp9/vp9_cx_iface.c.o
    [CC] vp9/encoder/vp9_bitstream.c.o
    [CC] vp9/encoder/vp9_boolhuff.c.o
    [CC] vp9/encoder/vp9_dct.c.o
    [CC] vp9/encoder/vp9_encodeframe.c.o
    [CC] vp9/encoder/vp9_encodeintra.c.o
    [CC] vp9/encoder/vp9_encodemb.c.o
    [CC] vp9/encoder/vp9_encodemv.c.o
    [CC] vp9/encoder/vp9_firstpass.c.o
    [CC] vp9/encoder/vp9_lookahead.c.o
    [CC] vp9/encoder/vp9_mcomp.c.o
    [CC] vp9/encoder/vp9_modecosts.c.o
    [CC] vp9/encoder/vp9_onyx_if.c.o
    [CC] vp9/encoder/vp9_picklpf.c.o
    [CC] vp9/encoder/vp9_psnr.c.o
    [CC] vp9/encoder/vp9_quantize.c.o
    [CC] vp9/encoder/vp9_ratectrl.c.o
    [CC] vp9/encoder/vp9_rdopt.c.o
    [CC] vp9/encoder/vp9_sad_c.c.o
    [CC] vp9/encoder/vp9_segmentation.c.o
    [CC] vp9/encoder/vp9_subexp.c.o
    [CC] vp9/encoder/vp9_tokenize.c.o
    [CC] vp9/encoder/vp9_treewriter.c.o
    [CC] vp9/encoder/vp9_variance_c.c.o
    [CC] vp9/encoder/vp9_vaq.c.o
    [CC] vp9/encoder/vp9_temporal_filter.c.o
    [CC] vp9/encoder/vp9_mbgraph.c.o
    [CC] vp9/vp9_dx_iface.c.o
    [CC] vp9/decoder/vp9_dboolhuff.c.o
    [CC] vp9/decoder/vp9_decodemv.c.o
    [CC] vp9/decoder/vp9_decodframe.c.o
    [CC] vp9/decoder/vp9_detokenize.c.o
    [CC] vp9/decoder/vp9_thread.c.o
    [CC] vp9/decoder/vp9_onyxd_if.c.o
    [CC] vp9/decoder/vp9_dsubexp.c.o
    [CC] vpx_config.c.o
    [CREATE] libvpx.ver
    [LD] libvpx.so.1.3.0
    [LN]      libvpx.so.1.3.0 libvpx.so
    [LN]      libvpx.so.1.3.0 libvpx.so.1
    [LN]      libvpx.so.1.3.0 libvpx.so.1.3
    [CREATE] vpx.pc
    [EXAMPLE] vp8cx_set_ref.c
    [DEP] vp8cx_set_ref.c.d
    [EXAMPLE] vp8_set_maps.c
    [DEP] vp8_set_maps.c.d
    [EXAMPLE] error_resilient.c
    [DEP] error_resilient.c.d
    [EXAMPLE] decode_with_drops.c
    [DEP] decode_with_drops.c.d
    [EXAMPLE] force_keyframe.c
    [DEP] force_keyframe.c.d
    [EXAMPLE] twopass_encoder.c
    [DEP] twopass_encoder.c.d
    [EXAMPLE] simple_encoder.c
    [DEP] simple_encoder.c.d
    [EXAMPLE] decode_to_md5.c
    [DEP] decode_to_md5.c.d
    [DEP] md5_utils.c.d
    [EXAMPLE] postproc.c
    [DEP] postproc.c.d
    [EXAMPLE] simple_decoder.c
    [DEP] simple_decoder.c.d
    [DEP] vp9_spatial_scalable_encoder.c.d
    [DEP] args.c.d
    [DEP] vp8_scalable_patterns.c.d
    [DEP] vpxenc.c.d
    [DEP] third_party/libyuv/source/cpu_id.c.d
    [DEP] third_party/libyuv/source/scale.c.d
    [DEP] third_party/libmkv/EbmlWriter.c.d
    [DEP] vpxstats.c.d
    [DEP] webmenc.c.d
    [DEP] tools_common.c.d
    [DEP] y4minput.c.d
    [DEP] vpxdec.c.d
    [DEP] nestegg/src/nestegg.c.d
    [DEP] nestegg/halloc/src/halloc.c.d
    [CC] md5_utils.c.o
    [CC] args.c.o
    [CC] tools_common.c.o
    [CC] nestegg/halloc/src/halloc.c.o
    [CC] nestegg/src/nestegg.c.o
    [CC] third_party/libyuv/source/scale.c.o
    [CC] third_party/libyuv/source/cpu_id.c.o
    [CC] vpxdec.c.o
    [LD] vpxdec
    [CC] y4minput.c.o
    [CC] webmenc.c.o
    [CC] vpxstats.c.o
    [CC] third_party/libmkv/EbmlWriter.c.o
    [CC] vpxenc.c.o
    [LD] vpxenc
y4minput.c.o:(.debug_loc+0x15bb): undefined reference to `.LCL9'
y4minput.c.o:(.debug_loc+0x15d4): undefined reference to `.LCL9'
y4minput.c.o:(.debug_loc+0x15eb): undefined reference to `.LCL9'
y4minput.c.o:(.debug_loc+0x17b9): undefined reference to `.LCL9'
y4minput.c.o:(.debug_loc+0x17d2): undefined reference to `.LCL9'
y4minput.c.o:(.debug_loc+0x17e9): more undefined references to `.LCL9' follow
collect2: error: ld returned 1 exit status
/buildarea1/WRL7Async_regression/build_dir/userspace/fsl-p10xx/GIT_LX01/fsl_p1010rdb_3_cgl_glibc_std_WR_systemd/lxbuilds/fsl_p1010rdb-3_platform_up/fsl-p10xx-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/work/ppce500v2-wrs-linux-gnuspe/libvpx/1.3.0-r0/libvpx-v1.3.0/examples.mk:196: recipe for target 'vpxenc' failed
make[1]: *** [vpxenc] Error 1
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2
ERROR: oe_runmake failed
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_compile (log file is located at /buildarea1/WRL7Async_regression/build_dir/userspace/fsl-p10xx/GIT_LX01/fsl_p1010rdb_3_cgl_glibc_std_WR_systemd/lxbuilds/fsl_p1010rdb-3_platform_up/fsl-p10xx-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/work/ppce500v2-wrs-linux-gnuspe/libvpx/1.3.0-r0/temp/do_compile/log.do_compile.25445)

Workaround

Apply the patch to temporarily disable stack protector option in libvpx. Notice this change should be reverted after this issue is resolved.

cd /path-to/wrlinux-7/addons/wr-common/layers/wr-security
patch -Np1 <0001-security_flags_wrs-temporarily-disable-stack-protect.patch

Steps to Reproduce

1) /lpg-build/cdc/fast_prod/wrlinux70/WRL70_GIT/wrlinux-7/wrlinux/configure --enable-board=fsl-p10xx --enable-kernel=
cgl --enable-rootfs=glibc-cgl --with-layer=/lpg-build/cdc/WASSP_LINUX/testcases/wrlinux/wr-testing/userspace,/lpg-
build/cdc/WASSP_LINUX/testcases/wrlinux/wr-testing/cgl --with-template=feature/libhugetlbfs,feature/acl,feature/nf
sd,feature/oprofile,feature/mariadb,feature/mysql-odbc,feature/LAMP,feature/ipv6,feature/cut,feature/lttng2 --enab
le-test=yes --enable-build=profiling --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-reconfig=yes


2) make all

Other Downloads


Live chat
Online