While I try to build yocto project using Ubuntu 16.04, I get below error: | /usr/bin/ld: mpn/.libs/invert_limb.o: relocation R_X86_64_PC32 against protected symbol `__gmpn_invert_limb_table' can not be used when making a shared object GCC - I tried to downgrade from 5 to 4.8, still the same issue. Log snippet: | /usr/bin/ld: mpn/.libs/invert_limb.o: relocation R_X86_64_PC32 against protected symbol `__gmpn_invert_limb_table' can not be used when making a shared object | /usr/bin/ld: final link failed: Bad value | collect2: error: ld returned 1 exit status | Makefile:836: recipe for target 'libgmp.la' failed | make[2]: *** [libgmp.la] Error 1 | make[2]: Leaving directory '/home/ganga/workspace/build-tchxb6/tmp/work/x86_64-linux/gmp-native/5.1.1-r0/build' | Makefile:926: recipe for target 'all-recursive' failed | make[1]: *** [all-recursive] Error 1 | make[1]: Leaving directory '/home/ganga/workspace/build-+ die 'oe_runmake failed' | | + bbfatal 'oe_runmake failed' | + echo 'ERROR: oe_runmake failed' | ERROR: oe_runmake failed | + exit 1 | + bb_exit_handler | + ret=1
Which branch/revision of the project are you trying to build?
FWIW I had to go back to daisy and dora to find gmp 5.1.1 which suggests you're using very old code which isn't likely to work on a 16.04 system that didn't exist when those releases were made. Its also well outside our support window.
The version referenced is obsolete and is no longer supported by the Yocto project. It's possible that can help on the mailing but you may need commercial support for this type of issue.