Hey Gedare Thanks for the reply I checked out rtems 7 and it seems to pass building gdb It seems that the issue I mentioned is just for rtems 6 Also thanks for the ldflag tip. Yet I don't exactly know where to add this flag. Is there some sort of file I need to edit and add the linker flag or should I just pass it through the command line when building the rsb?
On Wed, Mar 17, 2021, 21:28 Gedare Bloom <[email protected]> wrote: > On Wed, Mar 17, 2021 at 5:07 AM Alireza Banejad > <[email protected]> wrote: > > > > hello every one > > I'm trying to install rtems 6 arm toolchain on windows 10 but when the > source builder tries to build the rtems-gdb-10 it results in an error > > reading the report gives me the following: > > > C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: > ../gnulib/import/libgnu.a(getrandom.o): in function `getrandom': > > > > > C:\opt\rtems\rsb\rtems\build\argfxwm1\build\gnulib\import/../../../sourceware-mirror-binutils-gdb-fc9b4c8/gnulib/import/getrandom.c:129: > undefined reference to `BCryptGenRandom' > > > This looks relevant: > > http://sourceware-org.1504.n7.nabble.com/Unable-to-build-GDB-on-Windows-td649748.html > > It seems that the configure probe for getrandom picks up libbcrypt > exists on your Windows, but then it does not get linked properly. This > seems to be a gdb build system problem. Possibly a newer gdb has fixed > it? You might be able to figure out how to add -lbcrypt to your linker > flags (export LDFLAGS=-lbcrypt might just work) locally while > compiling GDB. > > > collect2.exe: error: ld returned 1 exit status > > > > make[2]: *** [Makefile:1866: gdb.exe] Error 1 > > > > make[2]: Leaving directory > '/c/opt/rtems/rsb/rtems/build/argfxwm1/build/gdb' > > > > make[1]: *** [Makefile:9744: all-gdb] Error 2 > > > > make[1]: Leaving directory '/c/opt/rtems/rsb/rtems/build/argfxwm1/build' > > > > make: *** [Makefile:866: all] Error 2 > > > > shell cmd failed: sh -ex /c/opt/rtems/rsb/rtems/build/argfxwm1/do-build > > > > error: building argfxwm1 > > Any thoughts? > > _______________________________________________ > > users mailing list > > [email protected] > > http://lists.rtems.org/mailman/listinfo/users >
_______________________________________________ users mailing list [email protected] http://lists.rtems.org/mailman/listinfo/users
