Wookey wrote::

> Testing it now.

Nope, that doesn't actually fix the problem, although it appears to
have reduced the number of instances of complaint (that may just be an artifact 
of parallel=1)

Not totally clear what's going on here (the function and prototype
seems to match to me). I'll have to have a proper look yet. Does it think they 
are both definitions?

seatest.h:
void (*seatest_simple_test_result)(int passed, char* reason, const char* 
function, unsigned int line);

seatest.c:
void (*seatest_simple_test_result)(int passed, char* reason, const char* 
function, unsigned int line) = seatest_simple_test_result_log;

void seatest_simple_test_result_log(int passed, char* reason, const char* 
function, unsigned int line)
{
  ...
}

[ 86%] Linking CXX executable NE10_imgproc_unit_test_smoke
cd /home/wookey/packages/ne10/ne10-1.2.1/obj-aarch64-linux-gnu/test && 
/usr/bin/cmake -E cmake_link_script CMakeFiles/NE10_imgp\
roc_unit_test_static.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/home/wookey/packages/ne10/ne10-1.2.1=. 
-fstack-protector-strong -Wformat -Werror=format-\
security -Wdate-time -D_FORTIFY_SOURCE=2 -fno-strict-aliasing -O2 -DNDEBUG 
-Wl,-z,relro -rdynamic CMakeFiles/NE10_imgproc_unit_\
test_static.dir/__/modules/imgproc/test/test_main.c.o 
CMakeFiles/NE10_imgproc_unit_test_static.dir/__/modules/imgproc/test/test\
_suite_resize.c.o 
CMakeFiles/NE10_imgproc_unit_test_static.dir/__/modules/imgproc/test/test_suite_rotate.c.o
 CMakeFiles/NE10_im\
gproc_unit_test_static.dir/__/modules/imgproc/test/test_suite_boxfilter.c.o 
CMakeFiles/NE10_imgproc_unit_test_static.dir/src/se\
atest.c.o CMakeFiles/NE10_imgproc_unit_test_static.dir/src/unit_test_common.c.o 
CMakeFiles/NE10_imgproc_unit_test_static.dir/sr\
c/NE10_random.c.o -o NE10_imgproc_unit_test_smoke  ../modules/libNE10.a -lm 
-lrt -lstdc++
/usr/bin/ld: 
CMakeFiles/NE10_imgproc_unit_test_static.dir/__/modules/imgproc/test/test_suite_resize.c.o:./obj-aarch64-linux-gnu\
/test/./test/include/seatest.h:23: multiple definition of 
`seatest_simple_test_result'; CMakeFiles/NE10_imgproc_unit_test_stati\
c.dir/__/modules/imgproc/test/test_main.c.o:./obj-aarch64-linux-gnu/test/./test/include/seatest.h:23:
 first defined here
/usr/bin/ld: 
CMakeFiles/NE10_imgproc_unit_test_static.dir/__/modules/imgproc/test/test_suite_rotate.c.o:./obj-aarch64-linux-gnu\
/test/./test/include/seatest.h:23: multiple definition of 
`seatest_simple_test_result'; CMakeFiles/NE10_imgproc_unit_test_stati\
c.dir/__/modules/imgproc/test/test_main.c.o:./obj-aarch64-linux-gnu/test/./test/include/seatest.h:23:
 first defined here
/usr/bin/ld: 
CMakeFiles/NE10_imgproc_unit_test_static.dir/__/modules/imgproc/test/test_suite_boxfilter.c.o:./obj-aarch64-linux-\
gnu/test/./test/include/seatest.h:23: multiple definition of 
`seatest_simple_test_result'; CMakeFiles/NE10_imgproc_unit_test_st\
atic.dir/__/modules/imgproc/test/test_main.c.o:./obj-aarch64-linux-gnu/test/./test/include/seatest.h:23:
 first defined here
/usr/bin/ld: 
CMakeFiles/NE10_imgproc_unit_test_static.dir/src/seatest.c.o:./obj-aarch64-linux-gnu/test/./test/include/seatest.h\
:23: multiple definition of `seatest_simple_test_result'; 
CMakeFiles/NE10_imgproc_unit_test_static.dir/__/modules/imgproc/test/\
test_main.c.o:./obj-aarch64-linux-gnu/test/./test/include/seatest.h:23: first 
defined here
collect2: error: ld returned 1 exit status
make[3]: *** [test/CMakeFiles/NE10_imgproc_unit_test_static.dir/build.make:197: 
test/NE10_imgproc_unit_test_smoke] Error 1
make[3]: Leaving directory 
'/home/wookey/packages/ne10/ne10-1.2.1/obj-aarch64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:281: 
test/CMakeFiles/NE10_imgproc_unit_test_static.dir/all] Error 2
make[2]: Leaving directory 
'/home/wookey/packages/ne10/ne10-1.2.1/obj-aarch64-linux-gnu'
make[1]: *** [Makefile:152: all] Error 2
make[1]: Leaving directory 
'/home/wookey/packages/ne10/ne10-1.2.1/obj-aarch64-linux-gnu'
dh_auto_build: error: cd obj-aarch64-linux-gnu && make -j1 VERBOSE=1 returned 
exit code 2
make: *** [debian/rules:17: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2


There are also some complaints about printf format types too which should 
probably be fixed..
home/wookey/packages/ne10/ne10-1.2.1/modules/imgproc/test/test_suite_boxfilter.c:163:41:
 warning: format '%d' expects argument\
 of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
  163 |         printf ("**ERROR**: allocating %d bytes memory for kernels 
fails!\n",
      |                                        ~^
      |                                         |
      |                                         int
      |                                        %ld
  164 |                 sizeof (ne10_size_t) * (*size));
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      |
      |                                      long unsigned int


Wookey
-- 
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/

Reply via email to