<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>it is Intrinsic functions, you need add '-msse2' or '-msse4' on your gcc cmdline<br></div>At 2015-06-09 02:24:51,dave <dtyx265@gmail.com> wrote:<br> <blockquote id="isReplyContent" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">
  

    
  
  
    I would like to profile x265 with lttng by using
    -finstrument-functions but when I add it to CXX flags I get the
    following when linking,<br>
    <br>
    Linking CXX executable x265<br>
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cli.dir/link.txt
    --verbose=1<br>
    /usr/bin/c++   -finstrument-functions -O3 -DNDEBUG  
    CMakeFiles/cli.dir/input/input.cpp.o
    CMakeFiles/cli.dir/input/yuv.cpp.o
    CMakeFiles/cli.dir/input/y4m.cpp.o
    CMakeFiles/cli.dir/output/output.cpp.o
    CMakeFiles/cli.dir/output/reconplay.cpp.o
    CMakeFiles/cli.dir/output/yuv.cpp.o
    CMakeFiles/cli.dir/output/y4m.cpp.o
    CMakeFiles/cli.dir/output/raw.cpp.o
    CMakeFiles/cli.dir/filters/filters.cpp.o
    CMakeFiles/cli.dir/x265.cpp.o  -o x265 -rdynamic libx265.so.60
    -lpthread -lrt -ldl
    -Wl,-rpath,/home/shakezula/Development/x265.hg/build/linux: <br>
    libx265.so.60: undefined reference to `_mm_hadd_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_unpackhi_epi64(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_storeu_si128(long long
    __vector*, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_hsub_epi16(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_storeh_pi(int __vector*,
    float __vector)'<br>
    libx265.so.60: undefined reference to `_mm_shuffle_epi8(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_sll_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_hadd_epi16(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_srai_epi32(long long
    __vector, int)'<br>
    libx265.so.60: undefined reference to `_mm_sub_epi16(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_srai_epi16(long long
    __vector, int)'<br>
    libx265.so.60: undefined reference to `_mm_madd_epi16(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_cvtsi32_si128(int)'<br>
    libx265.so.60: undefined reference to `_mm_unpackhi_epi16(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_add_epi16(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_set1_epi32(int)'<br>
    libx265.so.60: undefined reference to `_mm_loadu_si128(long long
    __vector const*)'<br>
    libx265.so.60: undefined reference to `_mm_unpacklo_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_sra_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_packs_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_add_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_unpacklo_epi64(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_load_si128(long long
    __vector const*)'<br>
    libx265.so.60: undefined reference to `_mm_sub_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_hsub_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_storel_epi64(long long
    __vector*, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_set_epi32(int, int, int,
    int)'<br>
    libx265.so.60: undefined reference to `_mm_unpacklo_epi16(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_store_si128(long long
    __vector*, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_castsi128_ps(long long
    __vector)'<br>
    libx265.so.60: undefined reference to `_mm_mullo_epi32(long long
    __vector, long long __vector)'<br>
    libx265.so.60: undefined reference to `_mm_unpackhi_epi32(long long
    __vector, long long __vector)'<br>
    collect2: error: ld returned 1 exit status<br>
    make[2]: *** [x265] Error 1<br>
    make[2]: Leaving directory
    `/home/shakezula/Development/x265.hg/build/linux'<br>
    make[1]: *** [CMakeFiles/cli.dir/all] Error 2<br>
    make[1]: Leaving directory
    `/home/shakezula/Development/x265.hg/build/linux'<br>
    make: *** [all] Error 2<br>
    <br>
    I tried using <code>-finstrument-functions-exclude-file-list= with
      the intrinsic headers and everything in source/common/vec but I
      get the same results.  Any help would be greatly appreciated.<br>
      <br>
      thanks,<br>
      Dave<br>
    </code>
  

</blockquote></div>