I am trying to compile jansson for arm-none-eabi to run on an Arm Cortex-M3. I successfully used autoconf with ./configure --target=arm-none-gnueabi --host=arm-none-gnueabi. I then ran make with no errors. I am running Ubuntu 21.10.
When I ran make check, I get the following output:
Making check in doc
make[1]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/doc'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/doc'
Making check in src
make[1]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/src'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/src'
Making check in test
make[1]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test'
Making check in bin
make[2]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/bin'
make json_process
make[3]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/bin'
make[3]: 'json_process' is up to date.
make[3]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/bin'
make[2]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/bin'
Making check in suites
make[2]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/suites'
Making check in api
make[3]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/suites/api'
make test_array test_chaos test_copy test_dump test_dump_callback test_equal test_fixed_size test_load test_load_callback test_loadb test_memory_funcs test_number test_object test_pack test_simple test_sprintf test_unpack test_version
make[4]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/suites/api'
make[4]: 'test_array' is up to date.
make[4]: 'test_chaos' is up to date.
make[4]: 'test_copy' is up to date.
make[4]: 'test_dump' is up to date.
make[4]: 'test_dump_callback' is up to date.
make[4]: 'test_equal' is up to date.
make[4]: 'test_fixed_size' is up to date.
make[4]: 'test_load' is up to date.
make[4]: 'test_load_callback' is up to date.
make[4]: 'test_loadb' is up to date.
make[4]: 'test_memory_funcs' is up to date.
make[4]: 'test_number' is up to date.
make[4]: 'test_object' is up to date.
make[4]: 'test_pack' is up to date.
make[4]: 'test_simple' is up to date.
make[4]: 'test_sprintf' is up to date.
make[4]: 'test_unpack' is up to date.
make[4]: 'test_version' is up to date.
make[4]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/suites/api'
make[3]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/suites/api'
make[3]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/suites'
make[3]: Nothing to be done for 'check-am'.
make[3]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/suites'
make[2]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/suites'
Making check in ossfuzz
make[2]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/ossfuzz'
make[2]: Nothing to be done for 'check'.
make[2]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test/ossfuzz'
make[2]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test'
make check-TESTS
make[3]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test'
make[4]: Entering directory '/home/thomasokeeffe/Downloads/jansson-2.14/test'
FAIL: run-suites
============================================================================
Testsuite summary for jansson 2.14
============================================================================
# TOTAL: 1
# PASS: 0
# SKIP: 0
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to https://github.com/akheron/jansson/issues
============================================================================
make[4]: *** [Makefile:678: test-suite.log] Error 1
make[4]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test'
make[3]: *** [Makefile:786: check-TESTS] Error 2
make[3]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test'
make[2]: *** [Makefile:883: check-am] Error 2
make[2]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test'
make[1]: *** [Makefile:570: check-recursive] Error 1
make[1]: Leaving directory '/home/thomasokeeffe/Downloads/jansson-2.14/test'
make: *** [Makefile:642: check-recursive] Error 1
The test is faulty in jansson 2.14, but has been fixed in master. It only checks that correct symbols are exported in the shared library, no actual functionality is broken :)
I am trying to compile jansson for arm-none-eabi to run on an Arm Cortex-M3. I successfully used autoconf with
./configure --target=arm-none-gnueabi --host=arm-none-gnueabi
. I then ranmake
with no errors. I am running Ubuntu 21.10.When I ran
make check
, I get the following output:Here is the content of
test/test-suite.log
: