<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hello,<div><br></div><div>I am trying to run VTest against Varnish Cache master branch.</div><div><br></div><div>Here are my steps:</div><div><br></div><br>set VARNISH_FOLDER "/home/ubuntu/git/varnish"<br>set VARNISH_CACHE "varnish-cache"<br>set VARNISH_CACHE_BUILD "$VARNISH_FOLDER/varnish-cache-build"<br><br>git clone <a href="https://github.com/varnishcache/$VARNISH_CACHE.git" target="_blank">https://github.com/varnishcache/$VARNISH_CACHE.git</a><div>./autogen.sh<br></div><div>./configure --with-unwind --enable-developer-warnings --enable-debugging-symbols --disable-stack-protector --with-persistent-storage --enable-asan --enable-ubsan --prefix=$VARNISH_CACHE_BUILD<br>make<br>make install<br>cd ..</div><div><br>git clone <a href="https://github.com/VTest/VTest.git" target="_blank">https://github.com/VTest/VTest.git</a> vtest<br>cd vtest<br>env VARNISH_SRC="$VARNISH_FOLDER/varnish-cache" make varnishtest<br><br></div><div>but here it fails with:</div><div><br></div><div>cc \<br>       -O2 -s -Wall -Werror \<br>        -o varnishtest \<br>      -DVTEST_WITH_VTC_VARNISH \<br>    -DVTEST_WITH_VTC_LOGEXPECT \<br>  -Isrc -Ilib -I/usr/local/include -pthread \<br>   -I/home/ubuntu/git/varnish/varnish-cache/include \<br>    src/*.c lib/*.c \<br>     -L/usr/local/lib -lm -lpcre -lz \<br>     -L/home/ubuntu/git/varnish/varnish-cache/lib/libvarnishapi/.libs \<br>    -Wl,--rpath,/home/ubuntu/git/varnish/varnish-cache/lib/libvarnishapi/.libs \<br>  -lvarnishapi<br>src/vtc_main.c: In function ‘cleaner_setup’:<br>src/vtc_main.c:232:3: error: ignoring return value of ‘nice’, declared with attribute warn_unused_result [-Werror=unused-result]<br>   (void)nice(1);  /* Not important */<br>   ^~~~~~~~~~~~~<br>cc1: all warnings being treated as errors<br>Makefile:51: recipe for target 'varnishtest' failed<br>make: *** [varnishtest] Error 1<br></div><div><br></div><div>To be able to overcome this I had to change FLAGS:</div><div><br></div><div>diff --git Makefile Makefile<br>index 996686f..c3ba32a 100644<br>--- Makefile<br>+++ Makefile<br>@@ -18,7 +18,7 @@ DEPS= ${SRCS} \<br>        src/teken_state.h \<br>        src/vtc_h2_dectbl.h<br> <br>-FLAGS= -O2 -s -Wall -Werror<br>+FLAGS ?=       -O2 -s -Wall -Werror<br> <br> INCS=  -Isrc \<br>        -Ilib \<br></div><div><br></div><div><br></div><div>and issue:</div><div><br></div>env FLAGS="-O2 -s -Wall" VARNISH_SRC="/home/ubuntu/git/varnish/varnish-cache" make varnishtest<div><br></div><div><br></div><div>but now the outcome is:</div><div><br></div><div>cc \<br>       -O2 -s -Wall \<br>        -o varnishtest \<br>      -DVTEST_WITH_VTC_VARNISH \<br>    -DVTEST_WITH_VTC_LOGEXPECT \<br>  -Isrc -Ilib -I/usr/local/include -pthread \<br>   -I/home/ubuntu/git/varnish/varnish-cache/include \<br>    src/*.c lib/*.c \<br>     -L/usr/local/lib -lm -lpcre -lz \<br>     -L/home/ubuntu/git/varnish/varnish-cache/lib/libvarnishapi/.libs \<br>    -Wl,--rpath,/home/ubuntu/git/varnish/varnish-cache/lib/libvarnishapi/.libs \<br>  -lvarnishapi<br>src/vtc_main.c: In function ‘cleaner_setup’:<br>src/vtc_main.c:232:3: warning: ignoring return value of ‘nice’, declared with attribute warn_unused_result [-Wunused-result]<br>   (void)nice(1);  /* Not important */<br>   ^~~~~~~~~~~~~<br>//usr/lib/aarch64-linux-gnu/libasan.so.4: warning: the use of `tmpnam' is dangerous, better use `mkstemp'<br>//usr/lib/aarch64-linux-gnu/libasan.so.4: warning: the use of `tempnam' is dangerous, better use `mkstemp'<br>//usr/lib/aarch64-linux-gnu/libasan.so.4: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp'<br></div><div><br></div><div>No tests are executed.</div><div>As you might have noticed I test on aarch64 architecture.</div><div><br></div><div>Do I need to do something more ?</div><div><br></div><div><br></div><div>Regards,</div><div>Martin</div></div>
</div></div>
</div></div>