[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BUG] Error compiling whlist compiling stubdom (xen 4.17)



I find it appropriate to foremention that the stubdom feature is not necessary to me at the moment.
However since when provided with "some" dependencies said feature is automatically enabled by ./configure script. Yes the compilation works fine with --disable-stubdom, however if my eyes didn't play tricks one me before mentioned switch is not present in --help print.
[root@localhost xen]# uname -r
6.1.1-arch1-1
[code]
Libraries have been installed in:
   /home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include" || mkdir -p -- . "/home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include"
 /usr/bin/install -c -m 644 'gmp.h' '/home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include/gmp.h'
test -z "/home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include" || mkdir -p -- . "/home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include"
make  install-data-hook
make[7]: Wejście do katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/gmp-x86_64'

+-------------------------------------------------------------+
| CAUTION:                                                    |
|                                                             |
| If you have not already run "make check", then we strongly  |
| recommend you do so.                                        |
|                                                             |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs.  GMP tends to |
| explore interesting corners in compilers and has hit bugs   |
| on quite a few occasions.                                   |
|                                                             |
+-------------------------------------------------------------+

make[7]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/gmp-x86_64'
make[6]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/gmp-x86_64'
make[5]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/gmp-x86_64'
make[4]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/gmp-x86_64'
make[3]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/gmp-x86_64'
( cd tpm_emulator-x86_64/build && make VERBOSE=1 tpm_crypto tpm  )
make[3]: Wejście do katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
/usr/bin/cmake -S/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64 -B/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build --check-build-system CMakeFiles/Makefile.cmake 0
make  -f CMakeFiles/Makefile2 tpm_crypto
make[4]: Wejście do katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
/usr/bin/cmake -S/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64 -B/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build/CMakeFiles 6
make  -f CMakeFiles/Makefile2 crypto/CMakeFiles/tpm_crypto.dir/all
make[5]: Wejście do katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
make  -f crypto/CMakeFiles/tpm_crypto.dir/build.make crypto/CMakeFiles/tpm_crypto.dir/depend
make[6]: Wejście do katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
cd /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64 /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build/crypto /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build/crypto/CMakeFiles/tpm_crypto.dir/DependInfo.cmake --color=
make[6]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
make  -f crypto/CMakeFiles/tpm_crypto.dir/build.make crypto/CMakeFiles/tpm_crypto.dir/build
make[6]: Wejście do katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
[ 16%] Building C object crypto/CMakeFiles/tpm_crypto.dir/hmac.o
cd /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build/crypto && /usr/bin/gcc  -I/opt/local/include -I/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64 -I/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build -std=c99 -DTPM_NO_EXTERN -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/posix -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../tools/include  -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/x86 -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/posix -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/lwip-x86_64/src/include -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/lwip-x86_64/src/include/ipv4 -I/home/pk/Pobrane/xen-4.17.0/stubdom/include -I/home/pk/Pobrane/xen-4.17.0/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -O1 -fno-omit-frame-pointer  -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -fno-pie -fno-stack-protector -fno-exceptions -fno-asynchronous-unwind-tables -Wno-declaration-after-statement   -Wall -Werror -Wextra -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings -MD -MT crypto/CMakeFiles/tpm_crypto.dir/hmac.o -MF CMakeFiles/tpm_crypto.dir/hmac.o.d -o CMakeFiles/tpm_crypto.dir/hmac.o -c /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/hmac.c
[ 33%] Building C object crypto/CMakeFiles/tpm_crypto.dir/rc4.o
cd /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build/crypto && /usr/bin/gcc  -I/opt/local/include -I/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64 -I/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build -std=c99 -DTPM_NO_EXTERN -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/posix -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../tools/include  -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/x86 -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/posix -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/lwip-x86_64/src/include -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/lwip-x86_64/src/include/ipv4 -I/home/pk/Pobrane/xen-4.17.0/stubdom/include -I/home/pk/Pobrane/xen-4.17.0/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -O1 -fno-omit-frame-pointer  -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -fno-pie -fno-stack-protector -fno-exceptions -fno-asynchronous-unwind-tables -Wno-declaration-after-statement   -Wall -Werror -Wextra -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings -MD -MT crypto/CMakeFiles/tpm_crypto.dir/rc4.o -MF CMakeFiles/tpm_crypto.dir/rc4.o.d -o CMakeFiles/tpm_crypto.dir/rc4.o -c /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rc4.c
[ 50%] Building C object crypto/CMakeFiles/tpm_crypto.dir/rsa.o
cd /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build/crypto && /usr/bin/gcc  -I/opt/local/include -I/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64 -I/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build -std=c99 -DTPM_NO_EXTERN -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include -D__MINIOS__ -DHAVE_LIBC -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/posix -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../tools/include  -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/x86 -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/x86/x86_64 -U __linux__ -U __FreeBSD__ -U __sun__ -nostdinc -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/../extras/mini-os/include/posix -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/cross-root-x86_64/x86_64-xen-elf/include -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/lwip-x86_64/src/include -isystem /home/pk/Pobrane/xen-4.17.0/stubdom/lwip-x86_64/src/include/ipv4 -I/home/pk/Pobrane/xen-4.17.0/stubdom/include -I/home/pk/Pobrane/xen-4.17.0/stubdom/../xen/include -mno-red-zone -O1 -fno-omit-frame-pointer -O1 -fno-omit-frame-pointer  -m64 -mno-red-zone -fno-reorder-blocks -fno-asynchronous-unwind-tables -m64 -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs   -fno-pie -fno-stack-protector -fno-exceptions -fno-asynchronous-unwind-tables -Wno-declaration-after-statement   -Wall -Werror -Wextra -Wno-unused-parameter -Wpointer-arith -Wcast-align -Wwrite-strings -MD -MT crypto/CMakeFiles/tpm_crypto.dir/rsa.o -MF CMakeFiles/tpm_crypto.dir/rsa.o.d -o CMakeFiles/tpm_crypto.dir/rsa.o -c /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.c
/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.c: In function ‘rsa_private’:
/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.c:56:7: error: the comparison will always evaluate as ‘true’ for the address of ‘p’ will never be NULL [-Werror=address]
   56 |   if (!key->p || !key->q || !key->u) {
      |       ^
In file included from /home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.c:17:
/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.h:28:12: note: ‘p’ declared here
   28 |   tpm_bn_t p;
      |            ^
/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.c:56:18: error: the comparison will always evaluate as ‘true’ for the address of ‘q’ will never be NULL [-Werror=address]
   56 |   if (!key->p || !key->q || !key->u) {
      |                  ^
/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.h:29:12: note: ‘q’ declared here
   29 |   tpm_bn_t q;
      |            ^
/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.c:56:29: error: the comparison will always evaluate as ‘true’ for the address of ‘u’ will never be NULL [-Werror=address]
   56 |   if (!key->p || !key->q || !key->u) {
      |                             ^
/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/crypto/rsa.h:30:12: note: ‘u’ declared here
   30 |   tpm_bn_t u;
      |            ^
cc1: all warnings being treated as errors
make[6]: *** [crypto/CMakeFiles/tpm_crypto.dir/build.make:104: crypto/CMakeFiles/tpm_crypto.dir/rsa.o] Błąd 1
make[6]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
make[5]: *** [CMakeFiles/Makefile2:259: crypto/CMakeFiles/tpm_crypto.dir/all] Błąd 2
make[5]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
make[4]: *** [CMakeFiles/Makefile2:266: crypto/CMakeFiles/tpm_crypto.dir/rule] Błąd 2
make[4]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
make[3]: *** [Makefile:215: tpm_crypto] Błąd 2
make[3]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom/tpm_emulator-x86_64/build'
make[2]: *** [Makefile:250: cross-root-x86_64/x86_64-xen-elf/lib/libtpm.a] Błąd 2
make[2]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0/stubdom'
make[1]: *** [Makefile:151: install-stubdom] Błąd 2
make[1]: Opuszczenie katalogu '/home/pk/Pobrane/xen-4.17.0'
make: *** [Makefile:183: world] Błąd 2
[pk@localhost xen-4.17.0]$
[/code]

I am not sure, if this perhaps could be easily "fixed" or overcame by not setting the treat warnings as errors flag, but I don't know how to do it with configure files .

Thanks

PomyloneKodowanie
 

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.