Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make doc fails #607

Open
kkbodke opened this issue Jan 31, 2025 · 0 comments
Open

make doc fails #607

kkbodke opened this issue Jan 31, 2025 · 0 comments

Comments

@kkbodke
Copy link

kkbodke commented Jan 31, 2025

$ make doc RUST_BACKTRACE=full
cargo doc -p svsm --open --all-features --document-private-items
Compiling libtcgtpm v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm)
Documenting polyval v0.6.2
Compiling svsm v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/kernel)
Checking verify_proof v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/verify_proof)
Documenting ctr v0.9.2
Documenting aes v0.8.4
Checking verify_external v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/verify_external)
Documenting verify_proof v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/verify_proof)
Documenting verify_external v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/verify_external)
Documenting bootlib v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/bootlib)
Documenting cpuarch v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/cpuarch)
Documenting ghash v0.5.1
Documenting aes-gcm v0.10.3
error: failed to run custom build command for libtcgtpm v0.1.0 (/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm)

Caused by:
process didn't exit successfully: /home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/target/debug/build/libtcgtpm-1e1a58900f432933/build-script-build (exit status: 101)
--- stdout
make[1]: Entering directory '/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm'
(cd /home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/tpm-20-ref/TPMCmd &&
./bootstrap &&
sed -i 's/^ax_pthread_ok=no/ax_pthread_ok=yes/' configure &&
./configure
EXTRA_CFLAGS="-I /home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/TpmConfiguration"
CFLAGS="-g -O0 -DDEBUG=YES -static -nostdinc -fno-stack-protector -fPIE -mno-sse -mno-red-zone -DFILE_BACKED_NV=NO -I/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/libcrt/include -I/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/openssl/include -Wno-error=unused-variable"
LIBCRYPTO_LIBS="/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/libcrt/libcrt.a /home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/openssl/libcrypto.a"
LIBCRYPTO_CFLAGS="-g -O0 -DDEBUG=YES -static -nostdinc -fno-stack-protector -fPIE -mno-sse -mno-red-zone -DFILE_BACKED_NV=NO -I/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/libcrt/include -I/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/openssl/include -Wno-error=unused-variable")
Generating file lists: src.mk
Setting up build
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... unsupported
checking for gcc option to enable C99 features... unsupported
checking for gcc option to enable C89 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether ln -s works... yes
checking for ranlib... ranlib
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libcrypto... yes
make[1]: Leaving directory '/home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm'

--- stderr
./configure: line 4597: syntax error near unexpected token ,' ./configure: line 4597: AX_PTHREAD(, AC_MSG_ERROR([requires pthread]))'
make[1]: *** [Makefile:128: /home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/deps/tpm-20-ref/TPMCmd/Makefile] Error 2
thread 'main' panicked at libtcgtpm/build.rs:18:5:
assertion failed: status.success()
stack backtrace:
0: 0x56c8ab429b5a - std::backtrace_rs::backtrace::libunwind::trace::h99efb0985cae5d78
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5
1: 0x56c8ab429b5a - std::backtrace_rs::backtrace::trace_unsynchronized::he2c1aa63b3f7fad8
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
2: 0x56c8ab429b5a - std::sys::backtrace::_print_fmt::h8a221d40f5e0f88b
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:66:9
3: 0x56c8ab429b5a - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h304520fd6a30aa07
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:39:26
4: 0x56c8ab44910b - core::fmt::rt::Argument::fmt::h5da9c218ec984eaf
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/fmt/rt.rs:177:76
5: 0x56c8ab44910b - core::fmt::write::hf5713710ce10ff22
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/fmt/mod.rs:1178:21
6: 0x56c8ab427763 - std::io::Write::write_fmt::hda708db57927dacf
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/io/mod.rs:1823:15
7: 0x56c8ab42ad02 - std::sys::backtrace::BacktraceLock::print::hbcdbec4d97c91528
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:42:9
8: 0x56c8ab42ad02 - std::panicking::default_hook::{{closure}}::he1ad87607d0c11c5
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:266:22
9: 0x56c8ab42a96e - std::panicking::default_hook::h81c8cd2e7c59ee33
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:293:9
10: 0x56c8ab42b4ff - std::panicking::rust_panic_with_hook::had2118629c312a4a
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:797:13
11: 0x56c8ab42b243 - std::panicking::begin_panic_handler::{{closure}}::h7fa5985d111bafa2
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:664:13
12: 0x56c8ab42a039 - std::sys::backtrace::__rust_end_short_backtrace::h704d151dbefa09c5
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:170:18
13: 0x56c8ab42af04 - rust_begin_unwind
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:662:5
14: 0x56c8ab400233 - core::panicking::panic_fmt::h3eea515d05f7a35e
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:74:14
15: 0x56c8ab4002bc - core::panicking::panic::h102d65dbfa674afe
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:148:5
16: 0x56c8ab4015d5 - build_script_build::main::he7eb20c979fa6aad
at /home/kkbodke/work/tdx/TD_Partitioning/coconut/svsm/libtcgtpm/build.rs:18:5
17: 0x56c8ab404feb - core::ops::function::FnOnce::call_once::h10554c5166970f9e
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5
18: 0x56c8ab40264e - std::sys::backtrace::__rust_begin_short_backtrace::he9033a8f980d0440
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/sys/backtrace.rs:154:18
19: 0x56c8ab402621 - std::rt::lang_start::{{closure}}::hef4a9c659d8114aa
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/rt.rs:164:18
20: 0x56c8ab424390 - core::ops::function::impls::<impl core::ops::function::FnOnce for &F>::call_once::h08ecba131ab90ec4
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:284:13
21: 0x56c8ab424390 - std::panicking::try::do_call::hf33a59fd8ce953f4
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:554:40
22: 0x56c8ab424390 - std::panicking::try::h5005ce80ce949fd8
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:518:19
23: 0x56c8ab424390 - std::panic::catch_unwind::hfbae19e2e2c5b7ed
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panic.rs:345:14
24: 0x56c8ab424390 - std::rt::lang_start_internal::{{closure}}::ha0331c3690741813
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/rt.rs:143:48
25: 0x56c8ab424390 - std::panicking::try::do_call::hcdcbdb616b4d0295
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:554:40
26: 0x56c8ab424390 - std::panicking::try::h3f2f1725a07d2256
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:518:19
27: 0x56c8ab424390 - std::panic::catch_unwind::h51869e04b56b2dc3
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panic.rs:345:14
28: 0x56c8ab424390 - std::rt::lang_start_internal::h4d90db0530245041
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/rt.rs:143:20
29: 0x56c8ab4025fa - std::rt::lang_start::h7b30942c7879fed9
at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/rt.rs:163:17
30: 0x56c8ab401ade - main
31: 0x7a4b61a2a1ca - __libc_start_call_main
at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
32: 0x7a4b61a2a28b - __libc_start_main_impl
at ./csu/../csu/libc-start.c:360:3
33: 0x56c8ab400965 - _start
34: 0x0 -
make: *** [Makefile:105: doc] Error 101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant