* Enabling tpm from meta-security for AGL
@ 2017-05-05 10:12 Dominig Ar Foll
2017-05-05 10:41 ` Patrick Ohly
2017-05-05 12:45 ` Khem Raj
0 siblings, 2 replies; 5+ messages in thread
From: Dominig Ar Foll @ 2017-05-05 10:12 UTC (permalink / raw)
To: yocto
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?
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....
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Enabling tpm from meta-security for AGL
2017-05-05 10:12 Enabling tpm from meta-security for AGL Dominig Ar Foll
@ 2017-05-05 10:41 ` Patrick Ohly
2017-05-05 12:45 ` Khem Raj
1 sibling, 0 replies; 5+ messages in thread
From: Patrick Ohly @ 2017-05-05 10:41 UTC (permalink / raw)
To: Dominig Ar Foll; +Cc: yocto
On Fri, 2017-05-05 at 12:12 +0200, Dominig Ar Foll 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'
g++ ends up trying to link an executable instead of a shared objection.
If I remember correctly, -fstack-protector-strong in CFLAGS causes that.
The order of parameters must be ${CFLAGS) $(LDFLAGS).
I've tried with meta-security master and it doesn't happen there, so
perhaps it was already fixed.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Enabling tpm from meta-security for AGL
2017-05-05 10:12 Enabling tpm from meta-security for AGL Dominig Ar Foll
2017-05-05 10:41 ` Patrick Ohly
@ 2017-05-05 12:45 ` Khem Raj
2017-05-05 13:13 ` Patrick Ohly
1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2017-05-05 12:45 UTC (permalink / raw)
To: Dominig Ar Foll; +Cc: yocto@yoctoproject.org
On Fri, May 5, 2017 at 6:12 AM, Dominig Ar Foll
<dominig.arfoll@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Enabling tpm from meta-security for AGL
2017-05-05 12:45 ` Khem Raj
@ 2017-05-05 13:13 ` Patrick Ohly
2017-05-05 13:14 ` Khem Raj
0 siblings, 1 reply; 5+ messages in thread
From: Patrick Ohly @ 2017-05-05 13:13 UTC (permalink / raw)
To: Khem Raj; +Cc: yocto@yoctoproject.org
On Fri, 2017-05-05 at 08:45 -0400, Khem Raj wrote:
> Set
>
> SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
But that's just a workaround, right? Ideally the build rules of
tpm2.0-tools should be fixed to not need that.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Enabling tpm from meta-security for AGL
2017-05-05 13:13 ` Patrick Ohly
@ 2017-05-05 13:14 ` Khem Raj
0 siblings, 0 replies; 5+ messages in thread
From: Khem Raj @ 2017-05-05 13:14 UTC (permalink / raw)
To: Patrick Ohly; +Cc: yocto@yoctoproject.org
On Fri, May 5, 2017 at 9:13 AM, Patrick Ohly <patrick.ohly@intel.com> wrote:
> On Fri, 2017-05-05 at 08:45 -0400, Khem Raj wrote:
>> Set
>>
>> SECURITY_CFLAGS = "${SECURITY_NO_PIE_CFLAGS}"
>
> But that's just a workaround, right? Ideally the build rules of
> tpm2.0-tools should be fixed to not need that.
>
yes it can be solved in components own build system
> --
> Best Regards, Patrick Ohly
>
> The content of this message is my personal opinion only and although
> I am an employee of Intel, the statements I make here in no way
> represent Intel's position on the issue, nor am I authorized to speak
> on behalf of Intel on this matter.
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-05-05 13:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-05 10:12 Enabling tpm from meta-security for AGL Dominig Ar Foll
2017-05-05 10:41 ` Patrick Ohly
2017-05-05 12:45 ` Khem Raj
2017-05-05 13:13 ` Patrick Ohly
2017-05-05 13:14 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.