compiler

記錄compiler上面遇到問題


更新記錄

item note
20161014 第一版

目錄


hiv300

link時找不到__aeabi_i2f

  • 問題

    1
    2
    3
    4
    /opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../lib/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/../../../../arm-hisiv300-linux-uclibcgnueabi/bin/ld: mpp_run: hidden symbol `__aeabi_i2f
    ' in /opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../lib/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/libgcc.a(_arm_addsubsf3.o) is referenced by DSO
    /opt/hisi-linux/x86-arm/arm-hisiv300-linux/bin/../lib/gcc/arm-hisiv300-linux-uclibcgnueabi/4.8.3/../../../../arm-hisiv300-linux-uclibcgnueabi/bin/ld: final link failed: Bad value
    collect2: error: ld returned 1 exit status
  • 解決方式
    於CFLAGS加入-lgcc_s
    參考來源:hidden symbol `__aeabi_uidiv' in xxxx is referenced by DSO

    1
    gcc -lgcc_s