Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682030 - dev-libs/boost-1.65 - provide USE flag to enable Boost.Test suite
Summary: dev-libs/boost-1.65 - provide USE flag to enable Boost.Test suite
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: David Seifert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-29 19:29 UTC by Martin Mokrejš
Modified: 2019-04-15 19:21 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2019-03-29 19:29:12 UTC
Hi,
  I realized ncbi-tools++ complained that I do NOT have a Boost.Test suite installed. Seems indeed not, the ebuild would have to pass --with-test to configure.

https://www.boost.org/doc/libs/1_64_0/libs/test/doc/html/boost_test/adv_scenarios/build_utf.html

  Should one expect this to be hidden under USE=tools or USE=test? Well, I recompiled boost and boost_build with both and it did not help. See dev-libs/boost/metadata.xml


An example of configure output from sci-biology/blast+-2.6.0::science:

configure: WARNING: Untested Boost version; may prove incompatible.
configure: WARNING: If so, please re-run this script with the flag --without-boost.
checking for Boost library name tag... -mt (autodetected)
checking for Boost.Regex in /usr... yes
checking for Boost.Spirit in /usr... yes
checking for Boost.System in /usr... yes
checking for Boost.Filesystem in /usr... yes
checking for Boost.Iostreams in /usr... yes
checking for Boost.Program-Options in /usr... yes
checking for Boost.Test in /usr... included-only
checking for Boost.Thread in /usr... yes


Here is the snippet from config.log:

configure:34429: checking for Boost.Test in /usr
configure:34468: /usr/bin/x86_64-pc-linux-gnu-g++  -std=gnu++11 -o conftest  -Wall -Wno-format-y2k  -pthread -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -fPIC  -I/usr/include -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BIT
S=64 -D_LARGEFILE64_SOURCE   -D_MT -D_REENTRANT -D_THREAD_SAFE  -Wl,-rpath,/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0 -Wl,--enable-new-dtags -Wl,-export-dynamic  -pthread -Wl,-O1 -Wl,--as-needed  -O conftest.cpp  -ldl -lm  -lpthread >&5
configure:34474: $? = 0
configure:34481: test -z "$ac_cxx_werror_flag" || test ! -s conftest.err
configure:34484: $? = 0
configure:34491: test -s conftest
configure:34494: $? = 0
configure:34468: /usr/bin/x86_64-pc-linux-gnu-g++  -std=gnu++11 -o conftest  -Wall -Wno-format-y2k  -pthread -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -fPIC  -DNCBI_BOOST_NOT_INCLUDED -I/usr/include -DNDEBUG -D_LARGEFILE
_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE   -D_MT -D_REENTRANT -D_THREAD_SAFE  -Wl,-rpath,/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0 -Wl,--enable-new-dtags -Wl,-export-dynamic  -pthread -Wl,-O1 -Wl,--as-needed  -O conftest.cpp  -l
boost_unit_test_framework-mt  -ldl -lm  -lpthread >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../lib64/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
configure:34474: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define NCBI_CXX_TOOLKIT 1
| #define HAVE_COMMON_NCBI_BUILD_VER_H 1
| #define HOST "x86_64-unknown-linux-gnu"
| #define HOST_CPU "x86_64"
| #define HOST_VENDOR "unknown"
| #define HOST_OS "linux-gnu"
| #define NCBI_COMPILER "GCC"
| #define NCBI_COMPILER_GCC 1
| #define NCBI_COMPILER_VERSION 830
| #define _GNU_SOURCE 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_SIZE_T 8
| #define NCBI_PLATFORM_BITS 64
| #define NCBI_SIGNATURE "GCC_830-ReleaseMTDLL64--x86_64-unknown-linux5.0.5-gnu2.28-vostro"
| #define NCBI_DLL_SUPPORT 1
| #define NCBI_DLL_BUILD 1
| #define NCBI_PLUGIN_AUTO_LOAD 1
| #define HAVE_IOSTREAM 1
| #define HAVE_FSTREAM 1
| #define HAVE_STRSTREAM 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_LIMITS 1
| #define HAVE_LIMITS_H 1
| #define HAVE_UNISTD_H 1
| #define NCBI_OS_UNIX 1
| #define NCBI_OS "UNIX"
| #define NCBI_OS_LINUX 1
| #define HAVE_WSTRING 1
| #define HAVE_SOCKLEN_T 1
| #define HAVE_CPUID_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_POLL_H 1
| #define HAVE_SYS_EPOLL_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_SYS_STATVFS_H 1
| #define HAVE_SYS_SYSINFO_H 1
| #define HAVE_SYS_VFS_H 1
| #define HAVE_X86INTRIN_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_LIBGEN_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_MALLOC_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_SIGNAL_H 1
| #define HAVE_STDDEF_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_VALGRIND_MEMCHECK_H 1
| #define HAVE_WCHAR_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_GETHOSTBYNAME_R 6
| #define HAVE_GETHOSTBYADDR_R 8
| #define HAVE_GETSERVBYNAME_R 6
| #define NCBI_HAVE_GETPWUID_R 5
| #define HAVE_GETLOGIN_R 1
| #define HAVE_LOCALTIME_R 1
| #define HAVE_PTHREAD_SETCONCURRENCY 1
| #define HAVE_PTHREAD_ATFORK 1
| #define HAVE_FUNC_LOCALTIME_R_TM 1
| #define HAVE_PTHREAD_MUTEX 1
| #define HAVE_VPRINTF 1
| #define HAVE_ALARM 1
| #define HAVE_ASPRINTF 1
| #define HAVE_ATOLL 1
| #define HAVE_BASENAME 1
| #define HAVE_EUIDACCESS 1
| #define HAVE_FSEEKO 1
| #define HAVE_FSTAT 1
| #define HAVE_GETGROUPLIST 1
| #define HAVE_GETOPT 1
| #define HAVE_GETPAGESIZE 1
| #define HAVE_GETPASS 1
| #define HAVE_GETPWUID 1
| #define HAVE_GETRUSAGE 1
| #define HAVE_GETTIMEOFDAY 1
| #define HAVE_GETUID 1
| #define HAVE_LCHOWN 1
| #define HAVE_LUTIMES 1
| #define HAVE_MEMRCHR 1
| #define HAVE_PUTENV 1
| #define HAVE_READV 1
| #define HAVE_SELECT 1
| #define HAVE_SETENV 1
| #define HAVE_STATFS 1
| #define HAVE_STATVFS 1
| #define HAVE_STRCASECMP 1
| #define HAVE_STRDUP 1
| #define HAVE_STRNDUP 1
| #define HAVE_STRSEP 1
| #define HAVE_STRTOK_R 1
| #define HAVE_TIMEGM 1
| #define HAVE_USLEEP 1
| #define HAVE_UTIMES 1
| #define HAVE_VASPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_WRITEV 1
| #define RETSIGTYPE void
| #define SELECT_UPDATES_TIMEOUT 1
| #define HAVE_STRCASECMP_LC 1
| #define HAVE_SYSINFO_1 1
| #define HAVE_GETLOADAVG 1
| #define NCBI_HAVE_READDIR_R 3
| #define SIZEOF_CHAR 1
| #define SIZEOF_DOUBLE 8
| #define SIZEOF_FLOAT 4
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_LONG_DOUBLE 16
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_SHORT 2
| #define SIZEOF_VOIDP 8
| #define SIZEOF_WCHAR_T 4
| #define SIZEOF___INT64 0
| #define HAVE_INTPTR_T 1
| #define HAVE_UINTPTR_T 1
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define NCBI_USE_THROW_SPEC 1
| #define HAVE_IOS_REGISTER_CALLBACK 1
| #define HAVE_SYSV_SEMAPHORES 1
| #define STACK_GROWS_DOWN 1
| #define HAVE_CPP_STD_VARARGS 1
| #define HAVE_CPP_GNU_VARARGS 1
| #define NCBI_DEPRECATED __attribute__((__deprecated__))
| #define NCBI_FORCEINLINE inline __attribute__((always_inline))
| #define HAVE_ATTRIBUTE_DESTRUCTOR 1
| #define NCBI_RESTRICT_C __restrict__
| #define HAVE_RESTRICT_C 1
| #define NCBI_RESTRICT_CXX __restrict__
| #define HAVE_RESTRICT_CXX 1
| #define NCBI_NORETURN __attribute__((__noreturn__))
| #define NCBI_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
| #define NCBI_TLS_VAR __thread
| #define NCBI_PACKED __attribute__((__packed__))
| #define HAVE_UNALIGNED_READS 1
| #define HAVE_VECTOR_MATH 1
| #define HAVE_GETADDRINFO 1
| #define HAVE_GETNAMEINFO 1
| #define HAVE_GETHOSTENT_R 1
| #define HAVE_INET_NTOP 1
| #define HAVE_SOCKETPAIR 1
| #define HAVE_ERF 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBRT 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
| #define HAVE_SCHED_YIELD 1
| #define HAVE_LIBICONV 1
| #define ICONV_CONST 
| #define HAVE_STRNDUP 1
| #define HAVE_STRSEP 1
| #define HAVE_STRTOK_R 1
| #define HAVE_TIMEGM 1
| #define HAVE_USLEEP 1
| #define HAVE_UTIMES 1
| #define HAVE_VASPRINTF 1
| #define HAVE_VSNPRINTF 1
| #define HAVE_WRITEV 1
| #define RETSIGTYPE void
| #define SELECT_UPDATES_TIMEOUT 1
| #define HAVE_STRCASECMP_LC 1
| #define HAVE_SYSINFO_1 1
| #define HAVE_GETLOADAVG 1
| #define NCBI_HAVE_READDIR_R 3
| #define SIZEOF_CHAR 1
| #define SIZEOF_DOUBLE 8
| #define SIZEOF_FLOAT 4
| #define SIZEOF_INT 4
| #define SIZEOF_LONG 8
| #define SIZEOF_LONG_DOUBLE 16
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_SHORT 2
| #define SIZEOF_VOIDP 8
| #define SIZEOF_WCHAR_T 4
| #define SIZEOF___INT64 0
| #define HAVE_INTPTR_T 1
| #define HAVE_UINTPTR_T 1
| #define HAVE_STRUCT_TM_TM_ZONE 1
| #define NCBI_USE_THROW_SPEC 1
| #define HAVE_IOS_REGISTER_CALLBACK 1
| #define HAVE_SYSV_SEMAPHORES 1
| #define STACK_GROWS_DOWN 1
| #define HAVE_CPP_STD_VARARGS 1
| #define HAVE_CPP_GNU_VARARGS 1
| #define NCBI_DEPRECATED __attribute__((__deprecated__))
| #define NCBI_FORCEINLINE inline __attribute__((always_inline))
| #define HAVE_ATTRIBUTE_DESTRUCTOR 1
| #define NCBI_RESTRICT_C __restrict__
| #define HAVE_RESTRICT_C 1
| #define NCBI_RESTRICT_CXX __restrict__
| #define HAVE_RESTRICT_CXX 1
| #define NCBI_NORETURN __attribute__((__noreturn__))
| #define NCBI_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
| #define NCBI_TLS_VAR __thread
| #define NCBI_PACKED __attribute__((__packed__))
| #define HAVE_UNALIGNED_READS 1
| #define HAVE_VECTOR_MATH 1
| #define HAVE_GETADDRINFO 1
| #define HAVE_GETNAMEINFO 1
| #define HAVE_GETHOSTENT_R 1
| #define HAVE_INET_NTOP 1
| #define HAVE_SOCKETPAIR 1
| #define HAVE_ERF 1
| #define HAVE_LIBDL 1
| #define HAVE_LIBRT 1
| #define HAVE_NANOSLEEP 1
| #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1
| #define HAVE_SCHED_YIELD 1
| #define HAVE_LIBICONV 1
| #define ICONV_CONST 
| #define HAVE_LIBZ 1
| #define HAVE_LIBBZ2 1
| #define HAVE_LIBPCRE 1
| #define HAVE_LIBGMP 1
| #define HAVE_LIBGCRYPT 1
| #define HAVE_LIBNETTLE 1
| #define HAVE_LIBOPENSSL 1
| #define HAVE_MYSQL 1
| #define HAVE_BERKELEY_DB 1
| #define HAVE_SQLLEN 1
| #define HAVE_SQLSETPOSIROW 1
| #define NCBI_SQLCOLATTRIBUTE_SQLLEN 1
| #define HAVE_PYTHON 1
| #define HAVE_PYTHON27 1
| #define HAVE_PYTHON3 1
| #define NCBI_EXPECTED_BOOST_VERSION 106500
| /* end confdefs.h.  */
| #ifdef NCBI_BOOST_NOT_INCLUDED
|                 #  include <boost/test/unit_test.hpp>
|                 #else
|                 #  include <boost/test/included/unit_test.hpp>
|                 #endif
|                 using boost::unit_test::test_suite;
|                 static void s_Test1(void) { BOOST_CHECK(1 == 1); }
|                 test_suite* init_unit_test_suite(int, char*[])
|                 {
|                     test_suite* test = BOOST_TEST_SUITE("foo");
|                     test->add(BOOST_TEST_CASE(&s_Test1), 0);
|                     return test;
|                 }
configure:34514: result: included-only
configure:34524: checking for Boost.Thread in /usr
configure:34552: /usr/bin/x86_64-pc-linux-gnu-g++  -std=gnu++11 -o conftest  -Wall -Wno-format-y2k  -pthread -O2 -pipe -mpclmul -mpopcnt -march=native -ftree-vectorize -fPIC  -I/usr/include -DNDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE   -D_MT -D_REENTRANT -D_THREAD_SAFE  -Wl,-rpath,/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0 -Wl,--enable-new-dtags -Wl,-export-dynamic  -pthread -Wl,-O1 -Wl,--as-needed  -O conftest.cpp  -lboost_thread-mt -lboost_system-mt  -ldl -lm  -lpthread >&5
configure:34558: $? = 0
configure:34565: test -z "$ac_cxx_werror_flag" || test ! -s conftest.err
configure:34568: $? = 0
configure:34575: test -s conftest
configure:34578: $? = 0
configure:34591: result: yes