fbergmann / libSEDML

SED-ML library based on libSBML
BSD 2-Clause "Simplified" License
9 stars 12 forks source link

error: too few arguments to function void _ck_assert_failed #79

Open sagitter opened 4 years ago

sagitter commented 4 years ago

Hi all.

This error comes out compiling libsedml-0.4.4 in Fedora 33 PPC64le only (development branch):

 90%] Building CXX object tests/CMakeFiles/test_sedml.dir/TestIssues.cpp.o
cd /builddir/build/BUILD/libSEDML-0.4.4/build/tests && /usr/bin/g++ -DLINUX -DPACKAGE_NAME=\"libsedml\" -DPACKAGE_VERSION=\"0.4.4\" -DUSE_ZLIB -I/builddir/build/BUILD/libSEDML-0.4.4/build/sedml/common -I/builddir/build/BUILD/libSEDML-0.4.4/build -I/builddir/build/BUILD/libSEDML-0.4.4/tests/.. -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -fno-strict-aliasing -fPIC -I/usr/include/libxml2 -o CMakeFiles/test_sedml.dir/TestIssues.cpp.o -c /builddir/build/BUILD/libSEDML-0.4.4/tests/TestIssues.cpp
In file included from /builddir/build/BUILD/libSEDML-0.4.4/tests/TestIssues.cpp:43:
/builddir/build/BUILD/libSEDML-0.4.4/tests/TestIssues.cpp: In function 'void test_mathml_issue1_fn(int)':
/builddir/build/BUILD/libSEDML-0.4.4/tests/TestIssues.cpp:97:3: error: too few arguments to function 'void _ck_assert_failed(const char*, int, const char*, const char*, ...)'
   97 |   fail_unless( v1 == v2 );
      |   ^~~~~~~~~~~
/usr/include/check.h:502:27: note: declared here
  502 | CK_DLL_EXP void CK_EXPORT _ck_assert_failed(const char *file, int line,
      |                           ^~~~~~~~~~~~~~~~~
make[2]: *** [tests/CMakeFiles/test_sedml.dir/build.make:85: tests/CMakeFiles/test_sedml.dir/TestIssues.cpp.o] Error 1

Full build log: https://kojipkgs.fedoraproject.org//work/tasks/3886/48203886/build.log Dependencies: https://kojipkgs.fedoraproject.org//work/tasks/3886/48203886/root.log