[RTEMS Project] #4543: cannot build multiprocessor application on eclipse

RTEMS trac trac at rtems.org
Wed Nov 3 14:22:44 UTC 2021


#4543: cannot build multiprocessor application on eclipse
-----------------------------+--------------------
  Reporter:  mohamedosama94  |      Owner:  (none)
      Type:  task            |     Status:  new
  Priority:  high            |  Milestone:  6.1
 Component:  arch/aarch64    |    Version:  6
  Severity:  critical        |   Keywords:
Blocked By:                  |   Blocking:
-----------------------------+--------------------
 Hi,

 hope my mail finds you well, i have an issue as i am using rtems6 for zinq
 a53_lp64  i downloaded the source and installed the toolchain
 aarch64-rtems6 and i built the bsp successfully by using waf and i  used
 the qemu to run the test samples exe files successfully , so i installed
 the eclipse and added rtems plugin to it and i built  the sample rtems
 example successfully but when i try  to build an application task  has
 test_begin() or test_end() the make is uncomplete and  error
 (.text.Init+0x50): relocation truncated to fit: R_AARCH64_CALL26 against
 undefined symbol `rtems_test_begin'  always appear  i tried open
 declaration and i found the reference prototype
 int rtems_test_begin(const char* name, const RTEMS_TEST_STATE state);
   on test-info.h   so eclipse refuse to build as cannot see the source
 code of the function and this also for rtems_test_end so what i have to do
 to make the eclipse build the rtems-application,  kindly check the logs




 /home/mohamed/quick-
 starts/rtems/6/lib/gcc/aarch64-rtems6/10.3.1/../../../../aarch64-rtems6/bin/ld:
 o-optimize/init.o: in function `Init':
 /home/mohamed/eclipse-ground/rtems/rtems-app//init.c:64: undefined
 reference to `rtems_test_begin'
 /home/mohamed/eclipse-ground/rtems/rtems-app//init.c:64:(.text.Init+0x50):
 relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol
 `rtems_test_begin'
 /home/mohamed/quick-
 starts/rtems/6/lib/gcc/aarch64-rtems6/10.3.1/../../../../aarch64-rtems6/bin/ld:
 /home/mohamed/eclipse-ground/rtems/rtems-app//init.c:66: undefined
 reference to `locked_print_initialize'
 /home/mohamed/eclipse-ground/rtems/rtems-app//init.c:66:(.text.Init+0x54):
 relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol
 `locked_print_initialize'
 /home/mohamed/quick-
 starts/rtems/6/lib/gcc/aarch64-rtems6/10.3.1/../../../../aarch64-rtems6/bin/ld:
 o-optimize/init.o: in function `success':
 /home/mohamed/eclipse-ground/rtems/rtems-app//init.c:31: undefined
 reference to `rtems_test_end'
 /home/mohamed/eclipse-ground/rtems/rtems-app//init.c:31:(.text.Init+0x5c):
 relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol
 `rtems_test_end'
 /home/mohamed/quick-
 starts/rtems/6/lib/gcc/aarch64-rtems6/10.3.1/../../../../aarch64-rtems6/bin/ld:
 /home/mohamed/eclipse-ground/rtems/rtems-app//init.c:32: undefined
 reference to `rtems_test_exit'
 /home/mohamed/eclipse-ground/rtems/rtems-app//init.c:32:(.text.Init+0x64):
 relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol
 `rtems_test_exit'
 /home/mohamed/quick-
 starts/rtems/6/lib/gcc/aarch64-rtems6/10.3.1/../../../../aarch64-rtems6/bin/ld:
 o-optimize/init.o:(.rodata._User_extensions_Initial_extensions+0x80):
 undefined reference to `rtems_test_fatal_extension'
 collect2: error: ld returned 1 exit status

 best regards,
 Mohamed

--
Ticket URL: <http://devel.rtems.org/ticket/4543>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list