- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
We tried to test linux-sgx on redhat 10. When compile linux sgx "https://github.com/intel/linux-sgx" on redhat10(gcc14), we meet many compile error due to gcc14 add more code inspection rules, after solving these compile error by adding CFLAGS and CXXFLAGS,such as:
CFLAGS += -std=c99 -Wno-error=implicit-int -Wno-error=declaration-missing-parameter-type CXXFLAGS += $(ENCLAVE_CXXFLAGS) -fno-exceptions -fno-rtti -Wno-error=implicit-int -Wno-error=declaration-missing-parameter-type
But there are other compile errors occur when go ahead. Can someone help take a look at this issue?
parallel-tests: installing 'config/test-driver'
autoreconf: Leaving directory '.'
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/linux-sgx/sdk/cpprt/linux/libunwind':
configure: error: C compiler cannot create executables
See `config.log' for more details
sed: can't read include/config.h: No such file or directory
make[3]: *** [Makefile:84: libunwind] Error 2
make[3]: Leaving directory '/home/linux-sgx/sdk/cpprt'
make[2]: *** [Makefile.source:162: cpprt] Error 2
make[2]: Leaving directory '/home/linux-sgx/sdk'
make[1]: *** [Makefile:50: all] Error 2
make[1]: Leaving directory '/home/linux-sgx/sdk'
make: *** [Makefile:80: sdk] Error 2
^C[1]+ Exit 2 nohup make sdk
i checked the config.log and it shows:
Thread model: posix,
Supported LTO compression algorithms: zlib zstd
gcc version 14.2.1 20250110 (Red Hat 14.2.1-7) (GCC)
... rest of stderr output deleted ...
configure:4618: $? = 0
configure:4607: gcc -V >&5
gcc: error: unrecognized command-line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4618: $? = 1
configure:4607: gcc -qversion >&5
gcc: error: unrecognized command-line option 'qversion'; did you mean '-version'?
gcc: fatal error: no input files
compilation terminated.
configure:4618: $? = 1
configure:4607: gcc -version >&5
gcc: error: unrecognized command-line option '-version'
gcc: fatal error: no input files
compilation terminated.
configure:4618: $? = 1
configure:4643: checking whether the C compiler works
configure:4665: gcc conftest.c >&5
/usr/local/bin/ld: /lib64/libc.so.6: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6
/usr/local/bin/ld: cannot find /lib64/libc.so.6
/usr/local/bin/ld: /lib64/libc.so.6: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6
/usr/local/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2
/usr/local/bin/ld: cannot find /lib64/ld-linux-x86-64.so.2
/usr/local/bin/ld: /lib64/ld-linux-x86-64.so.2: unknown type [0x13] section `.relr.dyn'
/usr/local/bin/ld: skipping incompatible /lib64/ld-linux-x86-64.so.2 when searching for /lib64/ld-linux-x86-64.so.2
collect2: error: ld returned 1 exit status
i uploade the config.log and configure file on attachment.
Link kopiert

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite