RTEMS 4.10 i386 undefined reference to `rtems_bdbuf_configuration'
Joel Sherrill
joel at rtems.org
Mon Sep 7 19:18:30 UTC 2020
On Mon, Sep 7, 2020 at 2:08 PM Heinz Junkes <junkes at fhi-berlin.mpg.de>
wrote:
> unfortunately leads to this:
>
> ...
> rtemsTestHarness.o rtemsTestData.o -lCom -Wl,--gc-sections -lm
> -lrtemsCom -lc -lrtemscpu -lrtemsCom -lCom -lnfs -lm -lgcc
>
It needs to be in an object file defined between rtemsTestData.o and
-lCom. Otherwise, there are configuration symbols lacking and the dummy
configuration will get pulled in.
/home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x0):
> multiple definition of `rtems_libio_init_helper'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x0):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x4):
> multiple definition of `rtems_libio_supp_helper'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x4):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x8):
> multiple definition of `rtems_fs_init_helper'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x8):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0xc):
> multiple definition of `rtems_libio_number_iops'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0xc):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.bss+0x0):
> multiple definition of `rtems_telnetd_maximum_ptys'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.bss+0x0):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x10):
> multiple definition of `imfs_rq_memfile_bytes_per_block'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x10):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.rodata+0x0):
> multiple definition of `rtems_filesystem_table'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.rodata+0x0):
> first defined here
> /home/travis/.rtems/lib/gcc/i386-rtems4.10/4.4.7/../../../../i386-rtems4.10/bin/ld:
> Warning: size of symbol `rtems_filesystem_table' changed from 16 in
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o) to 24
> in
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o)
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.bss+0x4):
> multiple definition of `rtems_pipe_configured'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.bss+0x4):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.rodata+0x18):
> multiple definition of `configuration_mount_table'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.rodata+0x10):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x14):
> multiple definition of `rtems_filesystem_mount_table'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x14):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.rodata+0x28):
> multiple definition of `rtems_filesystem_mount_table_size'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.rodata+0x20):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x18):
> multiple definition of `RTEMS_Malloc_Heap'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x18):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x1c):
> multiple definition of `rtems_unified_work_area'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.bss+0x5):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x20):
> multiple definition of `rtems_malloc_statistics_helpers'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.bss+0x8):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.bss+0x8):
> multiple definition of `rtems_malloc_sbrk_helpers'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.bss+0xc):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.bss+0xc):
> multiple definition of `rtems_malloc_dirty_helper'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.bss+0x10):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x40):
> multiple definition of `Device_drivers'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x40):
> first defined here
> /home/travis/.rtems/lib/gcc/i386-rtems4.10/4.4.7/../../../../i386-rtems4.10/bin/ld:
> Warning: size of symbol `Device_drivers' changed from 48 in
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o) to 96
> in
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o)
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0xa0):
> multiple definition of `Configuration_Initial_Extensions'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x80):
> first defined here
> /home/travis/.rtems/lib/gcc/i386-rtems4.10/4.4.7/../../../../i386-rtems4.10/bin/ld:
> Warning: size of symbol `Configuration_Initial_Extensions' changed from 32
> in /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o) to
> 64 in
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o)
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x100):
> multiple definition of `Configuration_RTEMS_API'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0xa0):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x140):
> multiple definition of `Configuration_POSIX_API'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.bss+0x20):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x178):
> multiple definition of `rtems_minimum_stack_size'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0xd0):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x17c):
> multiple definition of `rtems_maximum_priority'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0xd4):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x180):
> multiple definition of `Configuration'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0xe0):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.bss+0x10):
> multiple definition of `_RTEMS_tasks_Initialize_user_tasks_p'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.data+0x120):
> first defined here
> /home/h1/GSOC/rtems5_epics7/QtC-epics-base/lib/RTEMS-pc386-qemu/librtemsCom.a(rtems_config.o):(.data+0x1c0):
> multiple definition of `_POSIX_Threads_Initialize_user_threads_p'
> /home/travis/.rtems/i386-rtems4.10/pc686/lib//librtemscpu.a(dummy.o):(.bss+0x58):
> first defined here
> collect2: ld returned 1 exit status
> ../../../../configure/RULES_BUILD:212: recipe for target
> 'libComTestHarness' failed
>
> ------------------------------------------------------------------------------
> Fritz-Haber-Institut | Phone: (+49 30) 8413-4270
> Heinz Junkes | Fax (G3+G4): (+49 30) 8413-5900
> Faradayweg 4-6 | VC: 102220181216 at bjn.vc
> D - 14195 Berlin | E-Mail: junkes at fhi-berlin.mpg.de
>
> ------------------------------------------------------------------------------
>
> > On 7. Sep 2020, at 19:55, Sebastian Huber <
> sebastian.huber at embedded-brains.de> wrote:
> >
> > On 07/09/2020 19:14, Heinz Junkes wrote:
> >
> >> rtems 4.10 —with-network —with-posix
> >>
> >> Unfortunately I cannot resolve a reference:
> >>
> >>
> source/rtems-source-builder/rtems/build/i386-rtems4.10-kernel-4.10-1/i386-rtems4.10-kernel-4.10-1-4.10/build/i386-rtems4.10/c/pc686/cpukit/libblock/../../../../../../rtems-4.10/c/src/../../cpukit/libblock/src/bdbuf.c:1156:
> undefined reference to `rtems_bdbuf_configuration’
> >>
> >> the linker order looks like this:
> >> -lCom -Wl,--gc-sections -lm -lrtemsCom -lc -lrtemscpu -lCom
> -lnfs -lm -lgcc
> >
> > Try:
> >
> > -lCom -Wl,--gc-sections -lm -lrtemsCom -lc -lrtemscpu -lrtemsCom
> -lCom -lnfs -lm -lgcc
> >
> >
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20200907/201795e9/attachment.html>
More information about the users
mailing list