matanbs / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

doesn't compile on Mac OS X (10.10) - undeclared identifier #937

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
macmini:libvpx selur$ ./configure 
Configuring selected codecs
  enabling vp8_encoder
  enabling vp8_decoder
  enabling vp9_encoder
  enabling vp9_decoder
Configuring for target 'x86_64-darwin14-gcc'
  enabling x86_64
  enabling runtime_cpu_detect
  enabling mmx
  enabling sse
  enabling sse2
  enabling sse3
  enabling ssse3
  enabling sse4_1
  enabling avx
  enabling avx2
  using yasm
  enabling use_x86inc
  enabling postproc
  enabling unit_tests
  enabling webm_io
  enabling libyuv
Creating makefiles for x86_64-darwin14-gcc libs
Creating makefiles for x86_64-darwin14-gcc examples
Creating makefiles for x86_64-darwin14-gcc docs
macmini:libvpx selur$ make -j12
    [CREATE] vp9_rtcd.h
    [DEP] test/y4m_test.cc.d
    [DEP] test/vpx_scale_test.cc.d
    [DEP] test/vp9_subtract_test.cc.d
    [DEP] test/vp9_thread_test.cc.d
    [DEP] test/vp9_quantize_test.cc.d
    [DEP] test/vp9_lossless_test.cc.d
    [DEP] test/vp9_intrapred_test.cc.d
    [DEP] test/vp9_ethread_test.cc.d
    [DEP] test/vp9_error_block_test.cc.d
    [DEP] test/vp9_end_to_end_test.cc.d
    [DEP] test/vp9_decrypt_test.cc.d
    [DEP] test/vp9_boolcoder_test.cc.d
    [DEP] test/vp9_avg_test.cc.d
    [DEP] test/vp8_fragments_test.cc.d
    [DEP] test/vp8_fdct4x4_test.cc.d
    [DEP] test/vp8_denoiser_sse2_test.cc.d
    [DEP] test/vp8_decrypt_test.cc.d
    [DEP] test/vp8_boolcoder_test.cc.d
    [DEP] test/variance_test.cc.d
    [DEP] test/user_priv_test.cc.d
    [DEP] test/tile_independence_test.cc.d
    [DEP] test/test_vectors.cc.d
    [DEP] test/test_vector_test.cc.d
    [DEP] test/test_libvpx.cc.d
    [DEP] test/superframe_test.cc.d
    [DEP] test/subtract_test.cc.d
    [DEP] test/sixtap_predict_test.cc.d
    [DEP] test/set_roi.cc.d
    [DEP] test/sad_test.cc.d
    [DEP] test/resize_test.cc.d
    [DEP] test/quantize_test.cc.d
    [DEP] test/pp_filter_test.cc.d
    [DEP] test/partial_idct_test.cc.d
    [DEP] test/lpf_8_test.cc.d
    [DEP] test/keyframe_test.cc.d
    [DEP] test/invalid_file_test.cc.d
    [DEP] test/intrapred_test.cc.d
    [DEP] test/idct_test.cc.d
    [DEP] test/idct8x8_test.cc.d
    [DEP] test/frame_size_tests.cc.d
    [DEP] test/fdct8x8_test.cc.d
    [DEP] test/fdct4x4_test.cc.d
    [DEP] test/external_frame_buffer_test.cc.d
    [DEP] test/error_resilience_test.cc.d
    [DEP] test/encode_test_driver.cc.d
    [DEP] test/decode_test_driver.cc.d
    [DEP] test/decode_api_test.cc.d
    [DEP] test/dct32x32_test.cc.d
    [DEP] test/dct16x16_test.cc.d
    [DEP] test/datarate_test.cc.d
    [DEP] test/cq_test.cc.d
    [DEP] test/cpu_speed_test.cc.d
    [DEP] test/convolve_test.cc.d
    [DEP] test/config_test.cc.d
    [DEP] test/byte_alignment_test.cc.d
    [DEP] test/borders_test.cc.d
    [DEP] test/aq_segment_test.cc.d
    [DEP] test/altref_test.cc.d
    [DEP] test/active_map_test.cc.d
    [DEP] test/../y4minput.c.d
    [DEP] test/../y4menc.c.d
    [DEP] test/../webmdec.cc.d
    [DEP] test/../third_party/libwebm/mkvreader.cpp.d
    [DEP] test/../third_party/libwebm/mkvparser.cpp.d
    [DEP] test/../md5_utils.c.d
    [DEP] test/../ivfenc.c.d
    [DEP] third_party/googletest/src/src/gtest-all.cc.d
    [DEP] vp9/common/x86/vp9_idct_ssse3_x86_64.asm.d
    [DEP] vp9/common/x86/vp9_intrapred_ssse3.asm.d
    [DEP] vp9/common/x86/vp9_intrapred_sse2.asm.d
    [DEP] vp9/common/x86/vp9_copy_sse2.asm.d
    [DEP] vp9/common/x86/vp9_subpixel_bilinear_ssse3.asm.d
    [DEP] vp9/common/x86/vp9_subpixel_8t_ssse3.asm.d
    [DEP] vp9/common/x86/vp9_subpixel_bilinear_sse2.asm.d
    [DEP] vp9/common/x86/vp9_subpixel_8t_sse2.asm.d
    [DEP] vp9/common/x86/vp9_loopfilter_mmx.asm.d
    [DEP] vp9/encoder/x86/vp9_ssim_opt_x86_64.asm.d
    [DEP] vp9/encoder/x86/vp9_sad_sse4.asm.d
    [DEP] vp9/encoder/x86/vp9_sad_ssse3.asm.d
    [DEP] vp9/encoder/x86/vp9_dct_ssse3_x86_64.asm.d
    [DEP] vp9/encoder/x86/vp9_quantize_ssse3_x86_64.asm.d
    [DEP] vp9/encoder/x86/vp9_subpel_variance.asm.d
    [DEP] vp9/encoder/x86/vp9_subtract_sse2.asm.d
    [DEP] vp9/encoder/x86/vp9_sad_sse2.asm.d
    [DEP] vp9/encoder/x86/vp9_error_sse2.asm.d
    [DEP] vp9/encoder/x86/vp9_dct_mmx.asm.d
    [DEP] vp9/encoder/x86/vp9_sad_sse3.asm.d
    [DEP] vp9/encoder/x86/vp9_temporal_filter_apply_sse2.asm.d
    [DEP] vp9/encoder/x86/vp9_sad4d_sse2.asm.d
    [DEP] vp8/common/x86/loopfilter_block_sse2_x86_64.asm.d
    [DEP] vp8/common/x86/postproc_sse2.asm.d
    [DEP] vp8/common/x86/mfqe_sse2.asm.d
    [DEP] vp8/common/x86/postproc_mmx.asm.d
    [DEP] vp8/common/x86/sad_sse4.asm.d
    [DEP] vp8/common/x86/variance_impl_ssse3.asm.d
    [DEP] vp8/common/x86/subpixel_ssse3.asm.d
    [DEP] vp8/common/x86/sad_ssse3.asm.d
    [DEP] vp8/common/x86/sad_sse3.asm.d
    [DEP] vp8/common/x86/variance_impl_sse2.asm.d
    [DEP] vp8/common/x86/iwalsh_sse2.asm.d
    [DEP] vp8/common/x86/loopfilter_sse2.asm.d
    [DEP] vp8/common/x86/subpixel_sse2.asm.d
    [DEP] vp8/common/x86/sad_sse2.asm.d
    [DEP] vp8/common/x86/recon_sse2.asm.d
    [DEP] vp8/common/x86/idctllm_sse2.asm.d
    [DEP] vp8/common/x86/variance_impl_mmx.asm.d
    [DEP] vp8/common/x86/subpixel_mmx.asm.d
    [DEP] vp8/common/x86/sad_mmx.asm.d
    [DEP] vp8/common/x86/recon_mmx.asm.d
    [DEP] vp8/common/x86/loopfilter_mmx.asm.d
    [DEP] vp8/common/x86/iwalsh_mmx.asm.d
    [DEP] vp8/common/x86/idctllm_mmx.asm.d
    [DEP] vp8/common/x86/dequantize_mmx.asm.d
    [DEP] vp8/encoder/x86/ssim_opt_x86_64.asm.d
    [DEP] vp8/encoder/x86/encodeopt.asm.d
    [DEP] vp8/encoder/x86/quantize_mmx.asm.d
    [DEP] vp8/encoder/x86/temporal_filter_apply_sse2.asm.d
    [DEP] vp8/encoder/x86/subtract_sse2.asm.d
    [DEP] vp8/encoder/x86/fwalsh_sse2.asm.d
    [DEP] vp8/encoder/x86/dct_sse2.asm.d
    [DEP] vp8/encoder/x86/subtract_mmx.asm.d
    [DEP] vp8/encoder/x86/dct_mmx.asm.d
    [DEP] vpx_ports/x86_abi_support.asm.d
    [DEP] vpx_ports/emms.asm.d
    [DEP] vpx_config.c.d
    [DEP] vp9/decoder/vp9_dsubexp.c.d
    [DEP] vp9/decoder/vp9_read_bit_buffer.c.d
    [DEP] vp9/decoder/vp9_reader.c.d
    [DEP] vp9/decoder/vp9_decodemv.c.d
    [DEP] vp9/common/x86/vp9_idct_intrin_ssse3.c.d
    [DEP] vp9/common/x86/vp9_idct_intrin_sse2.c.d
    [DEP] vp9/common/x86/vp9_subpixel_8t_intrin_ssse3.c.d
    [DEP] vp9/common/x86/vp9_subpixel_8t_intrin_avx2.c.d
    [DEP] vp9/common/x86/vp9_loopfilter_intrin_avx2.c.d
    [DEP] vp9/common/x86/vp9_loopfilter_intrin_sse2.c.d
    [DEP] vp9/common/x86/vp9_asm_stubs.c.d
    [DEP] vp9/common/vp9_scan.c.d
    [DEP] vp9/common/vp9_common_data.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_thread.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_thread.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_prob.c.d
    [DEP] vp9/common/vp9_pred_common.c.d
    [DEP] vp9/common/vp9_idct.c.d
    [DEP] vp9/common/vp9_frame_buffers.c.d
    [DEP] vp9/common/vp9_filter.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_blockd.c.d
    [DEP] vp9/common/vp9_alloccommon.c.d
    [DEP] vp9/encoder/x86/vp9_variance_avx2.c.d
    [DEP] vp9/encoder/x86/vp9_error_intrin_avx2.c.d
    [DEP] vp9/encoder/x86/vp9_dct_avx2.c.d
    [DEP] vp9/encoder/x86/vp9_dct32x32_avx2.c.d
    [DEP] vp9/encoder/x86/vp9_dct_impl_sse2.c.d
    [DEP] vp9/encoder/x86/vp9_dct32x32_sse2.c.d
    [DEP] vp9/encoder/x86/vp9_dct_ssse3.c.d
    [DEP] vp9/encoder/x86/vp9_dct_sse2.c.d
    [DEP] vp9/encoder/x86/vp9_sad_intrin_avx2.c.d
    [DEP] vp9/encoder/x86/vp9_variance_sse2.c.d
    [DEP] vp9/encoder/x86/vp9_quantize_sse2.c.d
    [DEP] vp9/encoder/x86/vp9_subpel_variance_impl_intrin_avx2.c.d
    [DEP] vp9/encoder/x86/vp9_sad4d_intrin_avx2.c.d
    [DEP] vp9/encoder/x86/vp9_avg_intrin_sse2.c.d
    [DEP] vp9/encoder/x86/vp9_variance_impl_intrin_avx2.c.d
    [DEP] vp9/encoder/vp9_mbgraph.c.d
    [DEP] vp9/encoder/vp9_temporal_filter.c.d
    [DEP] vp9/encoder/vp9_aq_complexity.c.d
    [DEP] vp9/encoder/vp9_aq_cyclicrefresh.c.d
    [DEP] vp9/encoder/vp9_aq_variance.c.d
    [DEP] vp9/encoder/vp9_variance.c.d
    [DEP] vp9/encoder/vp9_treewriter.c.d
    [DEP] vp9/encoder/vp9_tokenize.c.d
    [DEP] vp9/encoder/vp9_resize.c.d
    [DEP] vp9/encoder/vp9_svc_layercontext.c.d
    [DEP] vp9/encoder/vp9_subexp.c.d
    [DEP] vp9/encoder/vp9_speed_features.c.d
    [DEP] vp9/encoder/vp9_segmentation.c.d
    [DEP] vp9/encoder/vp9_sad.c.d
    [DEP] vp9/encoder/vp9_pickmode.c.d
    [DEP] vp9/encoder/vp9_rdopt.c.d
    [DEP] vp9/encoder/vp9_rd.c.d
    [DEP] vp9/encoder/vp9_ratectrl.c.d
    [DEP] vp9/encoder/vp9_quantize.c.d
    [DEP] vp9/encoder/vp9_picklpf.c.d
    [DEP] vp9/encoder/vp9_encoder.c.d
    [DEP] vp9/encoder/vp9_mcomp.c.d
    [DEP] vp9/encoder/vp9_lookahead.c.d
    [DEP] vp9/encoder/vp9_write_bit_buffer.c.d
    [DEP] vp9/encoder/vp9_writer.c.d
    [DEP] vp9/encoder/vp9_firstpass.c.d
    [DEP] vp9/encoder/vp9_extend.c.d
    [DEP] vp9/encoder/vp9_ethread.c.d
    [DEP] vp9/encoder/vp9_encodemv.c.d
    [DEP] vp9/encoder/vp9_encodemb.c.d
    [DEP] vp9/encoder/vp9_encodeframe.c.d
    [DEP] vp9/encoder/vp9_dct.c.d
    [DEP] vp9/encoder/vp9_cost.c.d
    [DEP] vp9/encoder/vp9_context_tree.c.d
    [DEP] vp9/encoder/vp9_bitstream.c.d
    [DEP] vp9/encoder/vp9_avg.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/decodeframe.c.d
    [DEP] vp8/decoder/decodemv.c.d
    [DEP] vp8/decoder/dboolhuff.c.d
    [DEP] vp8/vp8_dx_iface.c.d
    [DEP] vp8/common/x86/variance_ssse3.c.d
    [DEP] vp8/common/x86/variance_sse2.c.d
    [DEP] vp8/common/x86/recon_wrapper_sse2.c.d
    [DEP] vp8/common/x86/idct_blk_sse2.c.d
    [DEP] vp8/common/x86/variance_mmx.c.d
    [DEP] vp8/common/x86/idct_blk_mmx.c.d
    [DEP] vp8/common/postproc.c.d
    [DEP] vp8/common/mfqe.c.d
    [DEP] vp8/common/x86/loopfilter_x86.c.d
    [DEP] vp8/common/x86/vp8_asm_stubs.c.d
    [DEP] vp8/common/x86/filter_x86.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/x86/vp8_enc_stubs_sse2.c.d
    [DEP] vp8/encoder/x86/denoising_sse2.c.d
    [DEP] vp8/encoder/x86/quantize_sse4.c.d
    [DEP] vp8/encoder/x86/quantize_ssse3.c.d
    [DEP] vp8/encoder/x86/quantize_sse2.c.d
    [DEP] vp8/encoder/x86/vp8_enc_stubs_mmx.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/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/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_psnr.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
    [CC] vpx/src/vpx_codec.c.o
    [CC] vp8/vp8_cx_iface.c.o
    [CC] vp8/encoder/bitstream.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/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/quantize.c.o
vp8/encoder/onyx_if.c:2179:45: error: use of undeclared identifier
      'vp8_copy32xn'
    cpi->fn_ptr[BLOCK_16X16].copymem      = vp8_copy32xn;
                                            ^
vp8/encoder/onyx_if.c:2180:45: error: use of undeclared identifier
      'vp8_copy32xn'
    cpi->fn_ptr[BLOCK_16X8].copymem       = vp8_copy32xn;
                                            ^
vp8/encoder/onyx_if.c:2181:45: error: use of undeclared identifier
      'vp8_copy32xn'
    cpi->fn_ptr[BLOCK_8X16].copymem       = vp8_copy32xn;
                                            ^
vp8/encoder/onyx_if.c:2182:45: error: use of undeclared identifier
      'vp8_copy32xn'
    cpi->fn_ptr[BLOCK_8X8].copymem        = vp8_copy32xn;
                                            ^
vp8/encoder/onyx_if.c:2183:45: error: use of undeclared identifier
      'vp8_copy32xn'
    cpi->fn_ptr[BLOCK_4X4].copymem        = vp8_copy32xn;
                                            ^
5 errors generated.
make[1]: *** [vp8/encoder/onyx_if.c.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [.DEFAULT] Error 2

Original issue reported on code.google.com by 4Se...@gmail.com on 29 Jan 2015 at 1:59

GoogleCodeExporter commented 9 years ago

Original comment by fgalli...@google.com on 29 Jan 2015 at 5:09

GoogleCodeExporter commented 9 years ago
Weird. I have a 10.10 machine I can try at home.

+larryv in case they have any ideas.

Original comment by johannko...@google.com on 29 Jan 2015 at 5:55

GoogleCodeExporter commented 9 years ago
Potentially: it's referencing functions in vp8_rtcd.h but does not include it 
directly. Would you please try this:

https://gerrit.chromium.org/gerrit/73611

diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c
index 258fa11..53d9fbb 100644
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -11,6 +11,7 @@

 #include "vpx_config.h"
 #include "./vpx_scale_rtcd.h"
+#include "./vp8_rtcd.h"
 #include "vp8/common/onyxc_int.h"
 #include "vp8/common/blockd.h"
 #include "onyx_int.h"

Original comment by johannko...@google.com on 29 Jan 2015 at 6:01

GoogleCodeExporter commented 9 years ago
adding '#include "./vp8_rtcd.h"' to 'vp8/encoder/onyx_if.c' does fix the 
problem here.

Original comment by 4Se...@gmail.com on 29 Jan 2015 at 6:13

GoogleCodeExporter commented 9 years ago

Original comment by johannko...@google.com on 30 Jan 2015 at 7:19