You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CC=/usr/bin/gcc-5 ./configure --with-open-posix-testsuite
make -j$(getconf _NPROCESSORS_ONLN) all
All but open-posix tests are built with GCC5. The open-posix test are attempted to be build with stock GCC (/usr/bin/gcc I guess) which is not present in my installation (SLES 12SP1 with GCC5 from Toolchain Module):
The Open Posix Testsuite build system was never integrated with the rest of the LTP. It has separate build system etc. which is mainly because it's intended to be usable on any POSIX-like platform. Looking into the LTP build system all the --with-open-posix-testsuite configure option does is including the open_posix_testsuite directory in the recursive build. Now the CC, CFLAGS, and LDFLAGS are set in the include/mk/config.mk file which is not used by the Open Posix Testsuite build system at all since it's intended to be used separately.
I will try to figure out a way how to propagate the parameters to the Open Posix Testsuite while avoiding unexpected behaviour but I'm not sure that it's doable (since we have to stick with POSIX make there).
You can easily workaround this for now by exporting CC=/usr/bin/gcc-5 before you do the build which should be picked up by both configure and make.
The open_posix_testsuite can be enabled to build from the top level
configure but none of the parameters passed to it are propagated which
confuses users and has been discussed a few times on the LTP ML.
This commit propagates CC, CFLAGS and LDFLAGS. If config-openposix.mk
was created by the top level configure script the generate-makefiles.sh
script includes its content in the generated Makefiles.
This fixes issue #54.
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
On master I configure LTP to be build with GCC5:
All but open-posix tests are built with GCC5. The open-posix test are attempted to be build with stock GCC (/usr/bin/gcc I guess) which is not present in my installation (SLES 12SP1 with GCC5 from Toolchain Module):
The text was updated successfully, but these errors were encountered: