undefined reference to `rtems_jffs2_initialize'

Ярослав Лещинский midniwalker at gmail.com
Tue Sep 3 09:06:13 UTC 2019


Hello Sebastian,

I'm using rtems5.

My stm32l4.cfg

include $(RTEMS_ROOT)/make/custom/default.cfg

RTEMS_CPU = arm

CPU_CFLAGS = -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard

CFLAGS_OPTIMIZE_V = -O2 -g
CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections

LDFLAGS = -Wl,--gc-sections -ljffs2 -lz

Output during linking
-Wl,--gc-sections -ljffs2 -lz   -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16
-mfloat-abi=hard  o-optimize/main.o
/home/midnight/rtems/toolchain/5/lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld:
o-optimize/main.o:(.rodata.rtems_filesystem_table+0xc): undefined reference
to `rtems_jffs2_initialize'


Also header #include <rtems/jffs2.h> was used and defined #define
CONFIGURE_FILESYSTEM_JFFS2


Thanks.

On Tue, 3 Sep 2019 at 07:00, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> Hello,
>
> On 02/09/2019 21:31, Ярослав Лещинский wrote:
> > I would like to use jffs2. Linker flags have been added (-ljffs2 -lz)
> > but I still getting UD to rtems_jffs2_initialize.
>
> which RTEMS version? What linker command line and exact error message?
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Dornierstr. 4, D-82178 Puchheim, Germany
> Phone   : +49 89 189 47 41-16
> Fax     : +49 89 189 47 41-09
> E-Mail  : sebastian.huber at embedded-brains.de
> PGP     : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>


-- 
--
Kind regards,
*Yaroslav Leshchinsky*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190903/4b8dc576/attachment-0002.html>


More information about the users mailing list