undefined reference to `xz_crc64'

Jiri Gaisler jiri at gaisler.se
Tue Jul 25 20:11:00 UTC 2017


I updated RSB and RTEMS to git head. RSB built fine for sparc, but
building the libtests/tar01 RTEMS test now fails with:

mv -f .deps/initial_filesystem_tar_xz.Tpo .deps/initial_filesystem_tar_xz.Po
sparc-rtems4.12-gcc -B../../../../../leon3/lib/ -specs bsp_specs -qrtems
-mcpu=leon3 -O2 -g -ffunction-sections -fdata-sections -Wall
-Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes
-Wnested-externs  -Wl,--gc-sections  -mcpu=leon3 -DHAVE_XZ=1  -o
tar01.exe init.o test_cat.o initial_filesystem_tar.o
initial_filesystem_tar_gz.o initial_filesystem_tar_xz.o -lrtemscpu -lz
../../../../../leon3/lib/librtemscpu.a(xz_dec_stream.o): In function
`dec_block':
/home/jiri/ibm/src/rtems/rtems.git/c/src/../../cpukit/libmisc/xz/xz_dec_stream.c:260:
undefined reference to `xz_crc64'
collect2: error: ld returned 1 exit status
Makefile:699: recipe for target 'tar01.exe' failed
gmake[6]: *** [tar01.exe] Error 1
gmake[6]: Leaving directory
'/home/jiri/src/rtems/b1/sparc-rtems4.12/c/leon3/testsuites/libtests/tar01'
Makefile:637: recipe for target 'tar01' failed
gmake[5]: *** [tar01] Error 2


tar01 used to build without issues, any ideas ...?

Jiri.




More information about the devel mailing list