Re: Error in building rtems 5.3 tools via mingw

2023-03-17 Thread Joel Sherrill
On Fri, Mar 17, 2023 at 10:22 AM Giovanni Righi  wrote:

> Good afternoon,
> I'm trying to build the rtems 5.3 tools in windows using mingw, but I'm
> getting an error during the gdb build.
> I'm attaching the logs so you can see what's going on.
>

The error looks like this gdb is using a feature which is considered
deprecated by the late model gcc in your mingw.

=
In file included from ../../gdb-9.1/gdb/corelow.c:25:

../../gdb-9.1/gdb/inferior.h: In member function 'void
infcall_suspend_state_deleter::operator()(infcall_suspend_state*) const':

../../gdb-9.1/gdb/inferior.h:80:38: warning: 'bool
std::uncaught_exception()' is deprecated: use 'std::uncaught_exceptions()'
instead [-Wdeprecated-declarations]

   80 | if (!std::uncaught_exception ())
==

I see two options since I don't think using an older compiler version is
likely possible.

(1) Change the RSB file which has the gdb configure command to ensure it
disables werror.

(2) Update the version of gdb in the RSB. You can probably just copy the
gdb-12 cfg file from the master and bump to that.

Both require a minor level of digging into rtems-source-builder/rtems/config

--joel


> ___
> users mailing list
> users@rtems.org
> http://lists.rtems.org/mailman/listinfo/users
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Unfortunately no success tests on raspberryPi BSP with qemu

2023-03-17 Thread Heinz Junkes
Hi,

I've been trying again for some time to get RTEMS (version 5 or 6) for 
raspberryPi2 to work on a qemu.

There is a lot of documentation about it. To those I have tried it there are 
always some 'fuzzies’ and I
unfortunately get never any output message when starting
qemu-system-arm -M raspi2 -m 1G -kernel ./tests/hello.exe  -serial mon:stdio 
-nographic

Has anyone ever done it successfully and can send me a script?
Danke,
Heinz

P.S. no problems with RTEMS_BSP=xilinx_zynq_a9_qemu (on 5 and 6, with/without 
rtems-libbsd).
 I have never managed to get a bootable SD card here.



smime.p7s
Description: S/MIME cryptographic signature
___
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Error in building rtems 5.3 tools via mingw

2023-03-17 Thread Giovanni Righi
Good afternoon,
I'm trying to build the rtems 5.3 tools in windows using mingw, but I'm
getting an error during the gdb build.
I'm attaching the logs so you can see what's going on.
RTEMS Tools Project - Source Builder Error Report

 Build: error: building arg9xwm1

 Command Line: ../source-builder/sb-set-builder --prefix=C:/opt/rtems/5.3 
5/rtems-arm

 Python: 2.7.18 (default, Jan 14 2023, 22:21:24)  [GCC 12.2.0 64 bit (AMD64)]

 RSB: not a valid repo

 Windows

Tail of the build log:

ranlib libsim.a

x86_64-w64-mingw32-gcc -O2 -g -pipe 
-I/c/opt/rtems/rtems-source-builder-5.3/rtems/build/tmp/sb-197611/5a/c/opt/rtems/5.3/include
 -DHAVE_CONFIG_H  -DWITH_DEFAULT_ALIGNMENT=STRICT_ALIGNMENT 
-DDEFAULT_INLINE=0   -Wall -Wdeclaration-after-statement -Wpointer-arith 
-Wpointer-sign -Wno-unused -Wunused-value -Wunused-function -Wno-switch 
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement 
-Wempty-body -Wmissing-parameter-type -Wold-style-declaration 
-Wold-style-definition -Wno-format   -DMODET   -I. -I../../../gdb-9.1/sim/arm 
-I../common -I../../../gdb-9.1/sim/arm/../common -I../../include 
-I../../../gdb-9.1/sim/arm/../../include -I../../bfd 
-I../../../gdb-9.1/sim/arm/../../bfd -I../../opcodes 
-I../../../gdb-9.1/sim/arm/../../opcodes  -g -O2 -D__USE_MINGW_ACCESS 
-L/c/opt/rtems/rtems-source-builder-5.3/rtems/build/tmp/sb-197611/5a/c/opt/rtems/5.3/lib
 -Wl,--stack,12582912 -o run.exe \

  nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a  
../../libiberty/libiberty.a -L../../zlib -lz -lm 

make[3]: Leaving directory 
'/c/opt/rtems/rtems-source-builder-5.3/rtems/build/arg9xwm1/build/sim/arm'

make[2]: Leaving directory 
'/c/opt/rtems/rtems-source-builder-5.3/rtems/build/arg9xwm1/build/sim'

make[2]: Entering directory 
'/c/opt/rtems/rtems-source-builder-5.3/rtems/build/arg9xwm1/build/gdb'

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs arch/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs cli/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs mi/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs gdbsupport/.deps

mkdir -p -- arch/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs compile/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs tui/.deps

mkdir -p -- cli/.deps

mkdir -p -- mi/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs unittests/.deps

mkdir -p -- gdbsupport/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs guile/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs python/.deps

mkdir -p -- compile/.deps

mkdir -p -- tui/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs target/.deps

/bin/sh ../../gdb-9.1/gdb/../mkinstalldirs nat/.deps

mkdir -p -- unittests/.deps

mkdir -p -- guile/.deps

mkdir -p -- python/.deps

mkdir -p -- target/.deps

mkdir -p -- nat/.deps

  GENstamp-version

  CXXxml-support.o

  GENxml-builtin.c

  CXXxml-syscall.o

  CXXxml-tdesc.o

  CXXgdb.o

  CXXaarch32-tdep.o

  CXXada-exp.o

  CXXada-lang.o

  CXXada-tasks.o

  CXXada-typeprint.o

  CXXada-valprint.o

In file included from ../../gdb-9.1/gdb/ada-lang.c:32:

../../gdb-9.1/gdb/inferior.h: In member function 'void 
infcall_suspend_state_deleter::operator()(infcall_suspend_state*) const':

../../gdb-9.1/gdb/inferior.h:80:38: warning: 'bool std::uncaught_exception()' 
is deprecated: use 'std::uncaught_exceptions()' instead 
[-Wdeprecated-declarations]

   80 | if (!std::uncaught_exception ())

  |  ^~

In file included from C:/msys64/mingw64/include/c++/12.2.0/ext/concurrence.h:34,

 from 
C:/msys64/mingw64/include/c++/12.2.0/bits/shared_ptr_base.h:62,

 from C:/msys64/mingw64/include/c++/12.2.0/bits/shared_ptr.h:53,

 from C:/msys64/mingw64/include/c++/12.2.0/memory:77,

 from ../../gdb-9.1/gdb/gdbsupport/common-exceptions.h:25,

 from ../../gdb-9.1/gdb/gdbsupport/common-defs.h:137,

 from ../../gdb-9.1/gdb/defs.h:28,

 from ../../gdb-9.1/gdb/ada-lang.c:21:

C:/msys64/mingw64/include/c++/12.2.0/exception:124:8: note: declared here

  124 |   bool uncaught_exception() _GLIBCXX_USE_NOEXCEPT __attribute__ 
((__pure__));

  |^~

  CXXada-varobj.o

  CXXaddrmap.o

In file included from ../../gdb-9.1/gdb/ada-tasks.c:24:

../../gdb-9.1/gdb/inferior.h: In member function 'void 
infcall_suspend_state_deleter::operator()(infcall_suspend_state*) const':

../../gdb-9.1/gdb/inferior.h:80:38: warning: 'bool std::uncaught_exception()' 
is deprecated: use 'std::uncaught_exceptions()' instead 
[-Wdeprecated-declarations]

   80 | if (!std::uncaught_exception ())

  |  ^~

In file included from C:/msys64/mingw64/include/c++/12.2.0/ext/concurrence.h:34,

 from 
C:/msys64/mingw64/include/c++/12.2.0/bits/shared_ptr_base.h:62,

 from