https://bugzilla.redhat.com/show_bug.cgi?id=2085444
--- Comment #43 from xiangquan.liu(a)intel.com ---
BTW, rpmbuild introduces one compile option "-flto" which causes another build
error as below. So my question is - Do we have to use this compile option?
Thanks!
g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches
-pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection
-fcf-protection -Wnon-virtual-dtor -std=c++17 -fstack-protector-strong -O2
-D_FORTIFY_SOURCE=2 -UDEBUG -DNDEBUG -ffunction-sections -fdata-sections -Wall
-Wextra -Winit-self -Wpointer-arith -Wreturn-type -Waddress -Wsequence-point
-Wformat-security -Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow
-Wcast-align -Wconversion -Wredundant-decls -DITT_ARCH_IA64 -fcf-protection
-Wnon-virtual-dtor -std=c++17 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2
-UDEBUG -DNDEBUG -ffunction-sections -fdata-sections -Wall -Wextra -Winit-self
-Wpointer-arith -Wreturn-type -Waddress -Wsequence-point -Wformat-security
-Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wconversion
-Wredundant-decls -DITT_ARCH_IA64 -fcf-protection -Wnon-virtual-dtor -std=c++17
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -UDEBUG -DNDEBUG
-ffunction-sections -fdata-sections -Wall -Wextra -Winit-self -Wpointer-arith
-Wreturn-type -Waddress -Wsequence-point -Wformat-security
-Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wconversion
-Wredundant-decls -DITT_ARCH_IA64 -fcf-protection -Wnon-virtual-dtor -std=c++17
-fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -UDEBUG -DNDEBUG
-ffunction-sections -fdata-sections -Wall -Wextra -Winit-self -Wpointer-arith
-Wreturn-type -Waddress -Wsequence-point -Wformat-security
-Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wconversion
-Wredundant-decls -DITT_ARCH_IA64 -fcf-protection -Werror -fpie
-DOPENSSL_API_COMPAT=10101 manage_metadata.o enclave_creator_sign.o sign_tool.o
parse_key_file.o util_st.o sgx_memset_s.o crypto_evp_digest.o tinyxml2.o
loader.o se_detect.o se_trace.o se_map.o
-L/sgx-sdk/linux/installer/rpm/sdk/sgxsdk-2.19.100.0/BUILD/sgxsdk-2.19.100.0/psw/urts/parser
-pie -Wl,-z,relro,-z,now,-z,noexecstack -lpthread -lenclaveparser -lcrypto -o
sgx_sign
/sgx-sdk/linux/installer/rpm/sdk/sgxsdk-2.19.100.0/BUILD/sgxsdk-2.19.100.0/common/inc/internal/thread_data.h:88:16:
error: type 'struct _thread_data_t' violates the C++ One Definition Rule
[-Werror=odr]
88 | typedef struct _thread_data_t
| ^
/sgx-sdk/linux/installer/rpm/sdk/sgxsdk-2.19.100.0/BUILD/sgxsdk-2.19.100.0/common/inc/internal/thread_data.h:88:16:
note: a different type is defined in another translation unit
88 | typedef struct _thread_data_t
| ^
/sgx-sdk/linux/installer/rpm/sdk/sgxsdk-2.19.100.0/BUILD/sgxsdk-2.19.100.0/common/inc/internal/thread_data.h:90:17:
note: the first difference of corresponding definitions is field 'self_addr'
90 | sys_word_t self_addr;has context menuComposeParagraph
--
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2085444