On Fri, May 5, 2017 at 6:12 AM, Dominig Ar Foll <dominig.arf...@fridu.net> wrote: > Hello, > > I am trying to enable tpm on an Intel target using yocto (morty) from > meta-security > > When I activate the tpm-tools-2.0 feature in my configuration, I have > a compilation error (see log bellow) > Search for line: > | /usr/src/debug/glibc/2.24-r0/git/csu/../sysdeps/x86_64/start.S:104: > undefined reference to `main' > > Would someone knows what I could be missing?
Set SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}" > > Regards > -- > Dominig ar Foll > Senior Software Architect > Intel Open Source Technology Centre > > --------- log extract ------------ > > | x86_64-agl-linux-libtool: link: (cd "tcti/.libs" && rm -f > "libtcti-device.so.0" && ln -s "libtcti-device.so.0.0.0" > "libtcti-device.so.0") > | x86_64-agl-linux-libtool: link: (cd "tcti/.libs" && rm -f > "libtcti-device.so" && ln -s "libtcti-device.so.0.0.0" > "libtcti-device.so") > | x86_64-agl-linux-libtool: link: ( cd "tcti/.libs" && rm -f > "libtcti-device.la" && ln -s "../libtcti-device.la" > "libtcti-device.la" ) > | x86_64-agl-linux-libtool: link: x86_64-agl-linux-g++ -m64 > -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 > --sysroot=/home/dominig/AGL/build/tmp/sysroots/intel-corei7-64 -fPIC > -DPIC -shared -nostd > lib > /home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/../lib/Scrt1.o > /home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/../lib/crti.o > /home/dominig/AGL/build/tmp/sysroots/intel-cor > ei7-64/usr/lib/../lib/x86_64-agl-linux/6.2.0/crtbeginS.o > tcti/.libs/tcti_libtcti_socket_la-platformcommand.o > sysapi/sysapi_util/.libs/tcti_libtcti_socket_la-changeEndian.o > tcti/.libs/tcti_libtcti_sock > et_la-tcti_socket.o tcti/.libs/tcti_libtcti_socket_la-commonchecks.o > common/.libs/tcti_libtcti_socket_la-sockets.o > common/.libs/tcti_libtcti_socket_la-debug.o > -L/home/dominig/AGL/build/tmp/sysroots/x > 86_64-linux/usr/lib/x86_64-agl-linux/gcc/x86_64-agl-linux/6.2.0 > -L/home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/lib/../lib > -L/home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/../lib/x > 86_64-agl-linux/6.2.0 > -L/home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/x86_64-agl-linux/6.2.0 > -L/home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/../lib > -L/home/dominig/AGL/bui > ld/tmp/sysroots/intel-corei7-64/lib > -L/home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib > /home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/libstdc++.so > -lm /home/dominig/AGL/build/ > tmp/sysroots/intel-corei7-64/usr/lib/libssp_nonshared.a -lc -lgcc_s > -lgcc > /home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/../lib/x86_64-agl-linux/6.2.0/crtendS.o > /home/dominig/AGL/build/tm > p/sysroots/intel-corei7-64/usr/lib/../lib/crtn.o -m64 -march=corei7 > -mtune=corei7 -mfpmath=sse -msse4.2 > --sysroot=/home/dominig/AGL/build/tmp/sysroots/intel-corei7-64 -O2 -g > -fstack-protector-strong - > Wl,--no-undefined > -Wl,--version-script=../TPM2.0-TSS/tcti/tcti_socket.map -Wl,-O1 > -Wl,--hash-style=gnu -Wl,--as-needed -fstack-protector-strong -Wl,-z > -Wl,relro -Wl,-z -Wl,now -Wl,-soname -Wl,libtcti > -socket.so.0 -o tcti/.libs/libtcti-socket.so.0.0.0 > | /home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/../lib/Scrt1.o: > In function `_start': > | /usr/src/debug/glibc/2.24-r0/git/csu/../sysdeps/x86_64/start.S:104: > undefined reference to `main' > | > /home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/libc_nonshared.a(elf-init.oS): > In function `__libc_csu_init': > | /usr/src/debug/glibc/2.24-r0/git/csu/elf-init.c:86: undefined > reference to `__init_array_start' > | > /home/dominig/AGL/build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-agl-linux/gcc/x86_64-agl-linux/6.2.0/ld: > /home/dominig/AGL/build/tmp/sysroots/intel-corei7-64/usr/lib/libc_nonshared.a(elf-init.oS > ): relocation R_X86_64_PC32 against undefined hidden symbol > `__init_array_start' can not be used when making a shared object > | > /home/dominig/AGL/build/tmp/sysroots/x86_64-linux/usr/libexec/x86_64-agl-linux/gcc/x86_64-agl-linux/6.2.0/ld: > final link failed: Bad value > | collect2: error: ld returned 1 exit status > | Makefile:2696: recipe for target 'tcti/libtcti-socket.la' failed > | make: *** [tcti/libtcti-socket.la] Error 1 > | make: *** Waiting for unfinished jobs.... > -- > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto