Re: multiple definition of __getreent (in newlib's crt0.c and RTEMS' confdefs.h)

2018-04-17 Thread Joel Sherrill
On Tue, Apr 17, 2018 at 3:35 AM, Amaan Cheval wrote: > Great tips, thank you for the help! > Updating the bsp_specs to replace startfile with crtbegin.o did let me get > past the the __getreent problems. It seems like I'll need to learn much > more about linker scripts

Re: multiple definition of __getreent (in newlib's crt0.c and RTEMS' confdefs.h)

2018-04-17 Thread Sebastian Huber
On 17/04/18 10:35, Amaan Cheval wrote: - https://docs.rtems.org/branches/master/bsp-howto/linker_script.html You have to be careful with the BSP guilde. It is a bit out of date. For a reference linker command file I would use this:

Re: multiple definition of __getreent (in newlib's crt0.c and RTEMS' confdefs.h)

2018-04-17 Thread Amaan Cheval
Great tips, thank you for the help! Updating the bsp_specs to replace startfile with crtbegin.o did let me get past the the __getreent problems. It seems like I'll need to learn much more about linker scripts and the GCC spec syntax than I currently know to do this right - I've currently only

Re: multiple definition of __getreent (in newlib's crt0.c and RTEMS' confdefs.h)

2018-04-16 Thread Joel Sherrill
0.0's libc, which > > defines __getreent. > > - Use the arch's gcc to compile any test that includes confdefs.h or as a > > quick test (slightly quicker than locating crt0.o and analyzing symbols): > > > -> % echo "void __getreent(){}" | i386-rtems5-gcc -xc -v - > > ... > > G

Re: multiple definition of __getreent (in newlib's crt0.c and RTEMS' confdefs.h)

2018-04-16 Thread Amaan Cheval
(RTEMS 5, RSB > c9db1326ef99e3e1267d17d2c7e5e51a48d1be2a, Newlib 3.0.0) (i386-rtems5) > > /tmp/cc90vvoP.o: In function `__getreent': > :(.text+0x0): multiple definition of `__getreent' > --- > Next steps: > - Figure out how __getreent is actually meant to be used based

Re: multiple definition of __getreent

2015-06-21 Thread Sujay Raj
:2420: multiple definition of `__getreent' /home/raaj/development/rtems/4.11/tools/lib/gcc/arm-rtems4.11/4.9.2/../../../../arm-rtems4.11/lib/thumb/armv7-a/neon/hard/libc.a(lib_a-getreent.o): /home/raaj/development/rtems/rtems-source-builder/rtems/build/arm-rtems4.11-gcc-4.9.2-newlib

Re: multiple definition of __getreent

2015-06-21 Thread Joel Sherrill
/../../../xilinx_zynq_a9_qemu/lib/include/rtems/confdefs.h:2420: multiple definition of `__getreent' /home/raaj/development/rtems/4.11/tools/lib/gcc/arm-rtems4.11/4.9.2/../../../../arm-rtems4.11/lib/thumb/armv7-a/neon/hard/libc.a(lib_a-getreent.o): /home/raaj/development/rtems/rtems-source-builder/rtems/build

Re: multiple definition of __getreent

2015-06-21 Thread Sujay Raj
(default-configuration.o): In function `__getreent': /home/raaj/development/rtems/xilinx_zynq_a9_qemu/arm-rtems4.11/c/xilinx_zynq_a9_qemu/cpukit/libmisc/../../cpukit/../../../xilinx_zynq_a9_qemu/lib/include/rtems/confdefs.h:2420: multiple definition of `__getreent' /home/raaj/development

Re: multiple definition of __getreent

2015-06-21 Thread Chris Johns
On 22/06/2015 3:24 am, Sujay Raj wrote: @Chris , I used 'target_link_libraries' in mk_bin/CMakeLists.txt to link libc.a and libbsd.a to the monkey-bin target I think touching anything in Cmake with the hack around we have using is only going to cause issues. We are currently working around

Re: multiple definition of __getreent

2015-06-20 Thread Chris Johns
/xilinx_zynq_a9_qemu/arm-rtems4.11/c/xilinx_zynq_a9_qemu/cpukit/libmisc/../../cpukit/../../../xilinx_zynq_a9_qemu/lib/include/rtems/confdefs.h:2420: multiple definition of `__getreent' /home/raaj/development/rtems/4.11/tools/lib/gcc/arm-rtems4.11/4.9.2/../../../../arm-rtems4.11/lib/thumb/armv7-a/neon

Re: multiple definition of __getreent

2015-06-20 Thread Joel Sherrill
/xilinx_zynq_a9_qemu/lib/librtemscpu.a(default-configuration.o): In function `__getreent': /home/raaj/development/rtems/xilinx_zynq_a9_qemu/arm-rtems4.11/c/xilinx_zynq_a9_qemu/cpukit/libmisc/../../cpukit/../../../xilinx_zynq_a9_qemu/lib/include/rtems/confdefs.h:2420: multiple definition of `__getreent