intel / intel/confidential-computing.sgx

se_trace.o: file not recognized: File format not recognized

Open
#999 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

I faced an error while building with docker

When I run ./build_compose_run.sh below error occur.

I already found similar error in the past issue but it doesn't work.

How should I fix it?

gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
ldd (Ubuntu GLIBC 2.31-0ubuntu9.12) 2.31
Docker version 24.0.7, build afdd53b

```
3.190 g++ -Wnon-virtual-dtor -std=c++14 -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 ../sgx_dcap_ql_wrapper.o se_trace.o se_thread.o -shared -Wl,-soname=libsgx_dcap_ql.so.1 -pthread -Wl,-z,relro,-z,now,-z,noexecstack -Wl,--version-script=dcap_ql_wrapper.lds -Wl,--gc-sections -g -L../../quote/linux -lsgx_qe3_logic -L../../../pce_wrapper/linux/ -lsgx_pce_logic -L../../../build/linux -L/opt/intel/sgxsdk/lib64 -lpthread -ldl -DDISABLE_TRACE -o libsgx_dcap_ql.so
3.194 /usr/bin/ld: se_trace.o: unable to initialize decompress status for section .debug_info
3.194 /usr/bin/ld: se_trace.o: unable to initialize decompress status for section .debug_info
3.194 /usr/bin/ld: se_trace.o: unable to initialize decompress status for section .debug_info
3.194 /usr/bin/ld: se_trace.o: unable to initialize decompress status for section .debug_info
3.194 se_trace.o: file not recognized: File format not recognized
3.194 collect2: error: ld returned 1 exit status
3.194 Makefile:89: recipe for target 'libsgx_dcap_ql.so' failed
3.194 make[2]: *** [libsgx_dcap_ql.so] Error 1
3.194 make[2]: Leaving directory '/linux-sgx/external/dcap_source/QuoteGeneration/quote_wrapper/ql/linux'
3.194 Makefile:66: recipe for target 'qe3_logic' failed
3.194 make[1]: *** [qe3_logic] Error 2
3.194 make[1]: Leaving directory '/linux-sgx/external/dcap_source/QuoteGeneration'
3.194 Makefile:169: recipe for target 'deb_libsgx_qe3_logic' failed
3.194 make: *** [deb_libsgx_qe3_logic] Error 2
------
Dockerfile:68
--------------------
66 |
67 | ENV BUILD_PLATFORM="docker"
68 | >>> RUN make deb_local_repo
69 |
70 | FROM ubuntu:18.04 as aesm
--------------------
ERROR: failed to solve: process "/bin/sh -c make deb_local_repo" did not complete successfully: exit code: 2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.