[PATCH v2] doc/raspberrypi: Added instructions for raspberrypi

Niteesh gsnb.gn at gmail.com
Sun Jan 12 15:48:03 UTC 2020


I can't build QEMU using RSB, there seems to be a problem with GLib(see
attachment)
but I had no problem building it from the source. Should I just mention
build qemu from
source?

On Tue, Jan 7, 2020 at 11:12 PM Niteesh <gsnb.gn at gmail.com> wrote:

> I didn't use the QEMU build from RSB, I built it from the source directly
> for another project
> I'll try QEMU from RSB, and will also add instructions for it in a couple
> of days.
>
> On Tue, Jan 7, 2020 at 1:00 AM Gedare Bloom <gedare at rtems.org> wrote:
>
>> On Mon, Jan 6, 2020 at 11:25 AM Niteesh <gsnb.gn at gmail.com> wrote:
>> >
>> > Do you want to add a build section or just add in a statement that
>> states "it was built
>> > using xx version of RSB"?
>> >
>>
>> Just a simple statement. Don't even  need to mention a specific
>> version, if they use RSB to build QEMU it should just work, right?
>>
>> > On Mon, Jan 6, 2020 at 11:51 PM Gedare Bloom <gedare at rtems.org> wrote:
>> >>
>> >> On Mon, Jan 6, 2020 at 2:47 AM Christian Mauderer <list at c-mauderer.de>
>> wrote:
>> >> >
>> >> > Looks a lot better.
>> >> >
>> >> > On 05/01/2020 20:19, G S Niteesh wrote:
>> >> > > Added instructions to run examples on raspberrypi.
>> >> > > ---
>> >> > >  user/bsps/arm/raspberrypi.rst | 74
>> ++++++++++++++++++++++++++++++++++-
>> >> > >  1 file changed, 73 insertions(+), 1 deletion(-)
>> >> > >
>> >> > > diff --git a/user/bsps/arm/raspberrypi.rst
>> b/user/bsps/arm/raspberrypi.rst
>> >> > > index 4ef75bd..7eccca5 100644
>> >> > > --- a/user/bsps/arm/raspberrypi.rst
>> >> > > +++ b/user/bsps/arm/raspberrypi.rst
>> >> > > @@ -5,4 +5,76 @@
>> >> > >  raspberrypi
>> >> > >  ===========
>> >> > >
>> >> > > -TODO.
>> >> > > +This BSP supports `Raspberry Pi 1` and `Raspberry Pi 2` currently.
>> >> > > +The support for `Raspberry Pi 3` is work under progress.
>> >> > > +The default bootloader on the raspberrypi which is used to boot
>> raspbian
>> >> >
>> >> > raspberrypi -> Raspberry Pi
>> >> > raspbian -> Raspbian
>> >> >
>> >> > > +or other OS can be also used to boot RTEMS. U-boot can also be
>> used.
>> >> > > +
>> >> > > +Setup SD card
>> >> > > +----------------
>> >> > > +
>> >> > > +The Raspberry Pis have an unconventional booting mechanism. The
>> GPU
>> >> > > +boots first, initializes itself, runs the bootloader and starts
>> the CPU.
>> >> > > +The bootloader looks for a kernel image, by default the kernel
>> images must
>> >> > > +have a name of the form `kernel*.img` but this can be changed by
>> adding
>> >> >
>> >> > Please highlight all files in the same way. Other BSPs use the
>> following
>> >> > syntax:
>> >> >
>> >> >     The ``ticker.exe`` elf file must be translated ...
>> >> >
>> >> > So here it is:
>> >> >
>> >> > `kernel*.img` -> ``kernel*.img``
>> >> >
>> >> > > +`kernel=<img_name>` to config.txt.
>> >> >
>> >> > config.txt -> ``config.txt``
>> >> >
>> >> > > +
>> >> > > +You must provide the required files for the GPU to proceed. These
>> files
>> >> > > +can be downloaded from this
>> >> > > +`link <https://github.com/raspberrypi/firmware/tree/master/boot
>> >`_.
>> >> >
>> >> > I would suggest:
>> >> >
>> >> > ... can be downloaded from
>> >> > `the Raspberry Pi Firmware Repository
>> >> > <https://github.com/raspberrypi/firmware/tree/master/boot>`_.
>> >> >
>> >> > I think you shouldn't break links so if this is too long you can
>> >> > exceptionally break the 80 character rule. It's done for other links
>> too.
>> >> >
>> >> > > +You can remove the kernel*.img if you want, but don't touch the
>> other files.
>> >> >
>> >> > kernel*.img -> ``kernel*.img``
>> >> >
>> >> > > +
>> >> > > +Copy these files in to a SD card with FAT filesystem.
>> >> > > +
>> >> > > +Kernel image
>> >> > > +------------
>> >> > > +
>> >> > > +The following steps show how to run hello.exe on a Raspberry Pi 2.
>> >> >
>> >> > hello.exe -> ``hello.exe``
>> >> >
>> >> > > +The same instructions can be applied to Raspberry Pi 1 also.
>> >> > > +Other executables can be processed in a similar way.
>> >> > > +
>> >> > > +To create the kernel image:
>> >> > > +
>> >> > > +.. code-block:: none
>> >> > > +
>> >> > > +     arm-rtems5-objcopy -Obinary hello.exe kernel.img
>> >> > > +
>> >> > > +Copy the kernel image to the SD card.
>> >> > > +
>> >> > > +Make sure you have these lines below in your config.txt.
>> >> > > +
>> >> > > +.. code-block:: none
>> >> > > +
>> >> > > +     enable-uart=1
>> >> > > +     kernel_address=0x200000
>> >> > > +     kernel=kernel.img
>> >> > > +
>> >> > > +Testing
>> >> > > +-------
>> >> >
>> >> > Maybe change that chapter to "Emulation" or "Testing using QEMU".
>> When
>> >> > reading I had expected a hardware setup in this chapter after the
>> >> > SD-card has been prepared in the previous one.
>> >> >
>> >> > > +
>> >> > > +Qemu along with GDB can be used for debugging, but it only
>> supports
>> >> >
>> >> > Please always use the capitalization that the project uses. In this
>> case:
>> >> >
>> >> > Qemu -> QEMU
>> >> >
>> >> > > +``Raspberry Pi 2`` and the emulation is also incomplete. So some
>> of the
>> >> >
>> >> > Again: One formatting for one phrase. So that would be:
>> >> >
>> >> > ``Raspberry Pi 2`` -> Raspberry Pi 2
>> >> >
>> >> > > +features might not work as expected.
>> >> > > +
>> >> > > +Make sure you have latest version of qemu, because older ones
>> don't support
>> >> >
>> >> > qemu -> QEMU
>> >> >
>> >> My only other comment is if this version is built by RSB already it is
>> >> worth mentioning here.
>> >>
>> >> > > +Raspberry Pi.
>> >> > > +
>> >> > > +.. code-block:: none
>> >> > > +
>> >> > > +     qemu-system-arm -M raspi2 -m 1G -kernel hello.exe -serial
>> mon:stdio -nographic -S -s
>> >> > > +
>> >> > > +This starts qemu and creates a socket at port ``localhost:1234``
>> for GDB to
>> >> >
>> >> > qemu -> QEMU
>> >> >
>> >> > > +connect.
>> >> > > +
>> >> > > +In a new terminal, run GDB using
>> >> > > +
>> >> > > +.. code-block:: none
>> >> > > +
>> >> > > +     arm-rtems5-gdb hello.exe
>> >> > > +     tar remote:1234
>> >> > > +     load
>> >> > > +
>> >> > > +This will connect GDB to qemu and load the application.
>> >> >
>> >> > qemu -> QEMU
>> >> >
>> >> > > +
>> >> > > +**Note**: Add ``set scheduler-locking on`` in GDB if you have any
>> issues
>> >> > > +running the examples.
>> >> > > \ No newline at end of file
>> >> > >
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200112/d67930d4/attachment-0001.html>
-------------- next part --------------
RTEMS Tools Project - Source Builder Error Report
 Build: error: building glib-2.39.3-x86_64-linux-gnu-1
 Command Line: ../source-builder/sb-set-builder --prefix=/home/niteesh/development/rtems/5 devel/qemu.bset
 Python: 2.7.15+ (default, Oct  7 2019, 17:39:04) [GCC 7.4.0]
 git://git.rtems.org/rtems-source-builder.git/origin/83fa79314dd87c0a8c78fd642b2cea3138be8dd6
 Linux niteesh-vivobook-asuslaptop-x512fl 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64
Tail of the build log:
checking for struct stat.st_blocks... yes
checking for struct statfs.f_fstypename... no
checking for struct statfs.f_bavail... yes
checking for struct statvfs.f_basetype... no
checking for struct statvfs.f_fstypename... no
checking for struct tm.tm_gmtoff... yes
checking for struct tm.__tm_gmtoff... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... yes
checking for nl_langinfo and CODESET... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking size of size_t... 8
checking for the appropriate definition for size_t... unsigned long
checking size of ssize_t... 8
checking for the appropriate definition for ssize_t... long
checking for lstat... yes
checking for strsignal... yes
checking for vsnprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for poll... yes
checking for vasprintf... yes
checking for setenv... yes
checking for unsetenv... yes
checking for getc_unlocked... yes
checking for readlink... yes
checking for symlink... yes
checking for fdwalk... no
checking for memmem... yes
checking for lchmod... no
checking for lchown... yes
checking for fchmod... yes
checking for fchown... yes
checking for utimes... yes
checking for getresuid... yes
checking for getmntent_r... yes
checking for setmntent... yes
checking for endmntent... yes
checking for hasmntopt... yes
checking for getfsstat... no
checking for getvfsstat... no
checking for fallocate... yes
checking for splice... yes
checking for prlimit... yes
checking for statvfs... yes
checking for statfs... yes
checking whether to use statfs or statvfs... statfs
checking crt_externs.h usability... no
checking crt_externs.h presence... no
checking for crt_externs.h... no
checking for _NSGetEnviron... no
checking for newlocale... yes
checking for uselocale... yes
checking for strtod_l... yes
checking for strtoll_l... yes
checking for strtoull_l... yes
checking value of AF_INET... 2
checking value of AF_INET6... 10
checking value of AF_UNIX... 1
checking value of MSG_PEEK... 2
checking value of MSG_OOB... 1
checking value of MSG_DONTROUTE... 4
checking for getprotobyname_r... yes
checking for endservent... yes
checking for if_nametoindex... yes
checking for if_indextoname... yes
checking if arpa/nameser_compat.h is needed... no
checking for res_query... in -lresolv
checking for socket... yes
checking for res_init... yes
checking for linux/netlink.h... yes
checking for struct ip_mreqn... yes
checking number of arguments to statfs()... 2
checking open() option O_DIRECTORY... yes
checking for C99 vsnprintf... yes
checking whether printf supports positional parameters... yes
checking for signed... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for size_t... (cached) yes
checking for ptrdiff_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for snprintf... yes
checking for wcslen... yes
checking for C99 snprintf... yes
checking for fd_set... yes, found in sys/types.h
checking for nl_langinfo (CODESET)... yes
checking for nl_langinfo (PM_STR)... yes
checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... yes
checking for a compliant posix_memalign() implementation... yes
checking for OpenBSD strlcpy/strlcat... no
checking for an implementation of va_copy()... yes
checking for an implementation of __va_copy()... yes
checking whether va_lists can be copied by value... no
checking for dlopen... no
checking for NSLinkModule... no
checking for dlopen in -ldl... yes
checking for dlsym in -ldl... yes
checking for RTLD_GLOBAL brokenness... no
checking for preceeding underscore in symbols... no
checking for dlerror... yes
checking for the suffix of module shared libraries... .so
checking for gspawn implementation... gspawn.lo
checking for GIOChannel implementation... giounix.lo
checking for is_selinux_enabled in -lselinux... no
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking for inotify_init1... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking for FAMOpen in -lfam... no
configure: WARNING: *** FAM support will not be built (FAM library not found) ***
checking for getxattr in -lc... yes
checking sys/xattr.h usability... yes
checking sys/xattr.h presence... yes
checking for sys/xattr.h... yes
checking for XATTR_NOFOLLOW... no
checking for LIBELF... no
checking for elf_begin in -lelf... no
checking for elf_getshdrstrndx in -lelf... no
checking for elf_getshdrnum in -lelf... no
checking libelf.h usability... no
checking libelf.h presence... no
checking for libelf.h... no
checking for platform-dependent source... 
checking whether to compile timeloop... yes
checking if building for some Win32 platform... no
checking for thread implementation... posix
checking thread related cflags... -pthread
checking thread related libraries... -pthread
checking for localtime_r... yes
checking for gmtime_r... (cached) yes
checking for posix getpwuid_r... yes
checking for posix getgrgid_r... yes
checking for pthread_attr_setstacksize... yes
checking for pthread_condattr_setclock... yes
checking for pthread_cond_timedwait_monotonic... no
checking for pthread_cond_timedwait_monotonic_np... no
checking for clock_gettime... yes
checking for lock-free atomic intrinsics... yes
checking for futex(2) system call... yes
checking for eventfd(2) system call... yes
checking value of POLLIN... 1
checking value of POLLOUT... 4
checking value of POLLPRI... 2
checking value of POLLERR... 8
checking value of POLLHUP... 16
checking value of POLLNVAL... 32
checking for broken poll... no
checking whether compiler understands -Wno-pointer-sign... yes
checking for EILSEQ... yes
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for xsltproc... no
checking for XML catalog (/etc/xml/catalog)... found
checking for xmlcatalog... no
checking whether to generate man pages... no
checking whether to include dtrace tracing support... no
checking whether to include systemtap tracing support... no
checking for guint32... yes
checking alignment of guint32... 4
checking for guint64... yes
checking alignment of guint64... 8
checking for unsigned long... yes
checking alignment of unsigned long... 8
checking for DBUS1... no
checking for dbus-daemon... dbus-daemon
checking for -Bsymbolic-functions linker flag... yes
checking for -fvisibility=hidden compiler flag... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Wall in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Wstrict-prototypes in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Werror=declaration-after-statement in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Werror=missing-prototypes in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Werror=implicit-function-declaration in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Werror=pointer-arith in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Werror=init-self in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Werror=format-security in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Werror=format=2 in envvar CFLAGS... yes
checking if gcc -O2 -g -pipe -I/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/include supports flag -Werror=missing-include-dirs in envvar CFLAGS... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating glib-2.0.pc
config.status: creating gmodule-2.0.pc
config.status: creating gmodule-export-2.0.pc
config.status: creating gmodule-no-export-2.0.pc
config.status: creating gthread-2.0.pc
config.status: creating gobject-2.0.pc
config.status: creating gio-2.0.pc
config.status: creating gio-unix-2.0.pc
config.status: creating gio-windows-2.0.pc
config.status: creating glib-zip
config.status: creating glib-gettextize
config.status: creating Makefile
config.status: creating build/Makefile
config.status: creating build/win32/Makefile
config.status: creating build/win32/dirent/Makefile
config.status: creating build/win32/vs9/Makefile
config.status: creating build/win32/vs10/Makefile
config.status: creating build/win32/vs11/Makefile
config.status: creating glib/Makefile
config.status: creating glib/glib.stp
config.status: creating glib/libcharset/Makefile
config.status: creating glib/gnulib/Makefile
config.status: creating glib/pcre/Makefile
config.status: creating glib/update-pcre/Makefile
config.status: creating glib/tests/Makefile
config.status: creating gmodule/Makefile
config.status: creating gmodule/gmoduleconf.h
config.status: creating gobject/Makefile
config.status: creating gobject/gobject.stp
config.status: creating gobject/glib-mkenums
config.status: creating gobject/tests/Makefile
config.status: creating gthread/Makefile
config.status: creating gio/Makefile
config.status: creating gio/gdbus-2.0/codegen/Makefile
config.status: creating gio/gdbus-2.0/codegen/config.py
config.status: creating gio/gnetworking.h
config.status: creating gio/xdgmime/Makefile
config.status: creating gio/inotify/Makefile
config.status: creating gio/kqueue/Makefile
config.status: creating gio/fen/Makefile
config.status: creating gio/fam/Makefile
config.status: creating gio/win32/Makefile
config.status: creating gio/tests/Makefile
config.status: creating gio/tests/gdbus-object-manager-example/Makefile
config.status: creating gio/tests/services/Makefile
config.status: creating gio/tests/services/org.gtk.GDBus.Examples.ObjectManager.service
config.status: creating gio/tests/modules/Makefile
config.status: creating po/Makefile.in
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating docs/reference/glib/Makefile
config.status: creating docs/reference/glib/version.xml
config.status: creating docs/reference/gobject/Makefile
config.status: creating docs/reference/gobject/version.xml
config.status: creating docs/reference/gio/Makefile
config.status: creating docs/reference/gio/gdbus-object-manager-example/Makefile
config.status: creating docs/reference/gio/version.xml
config.status: creating tests/Makefile
config.status: creating tests/gobject/Makefile
config.status: creating tests/refcount/Makefile
config.status: creating m4macros/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
config.status: executing libtool commands
config.status: executing glib/glibconfig.h commands
config.status: executing chmod-scripts commands
+ LD_LIBRARY_PATH=/home/niteesh/development/rtems/rsb/rtems/build/tmp/sb-niteesh/devel/qemu/home/niteesh/development/rtems/5/lib
+ make -j 8 all
make  all-recursive
make[1]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build'
Making all in .
make[2]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build'
make[2]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build'
Making all in m4macros
make[2]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/m4macros'
make  all-am
make[3]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/m4macros'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/m4macros'
make[2]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/m4macros'
Making all in glib
make[2]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib'
  GEN      glibconfig-stamp
config.status: executing glib/glibconfig.h commands
config.status: glib/glibconfig.h is unchanged
make  all-recursive
make[3]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib'
Making all in libcharset
make[4]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/libcharset'
make  all-am
make[5]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/libcharset'
  CC       libcharset_la-localcharset.lo
  GEN      ref-add.sed
  GEN      ref-del.sed
  GEN      charset.alias
  CCLD     libcharset.la
x86_64-linux-gnu-ar: `u' modifier ignored since `D' is the default (see `U')
make[5]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/libcharset'
make[4]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/libcharset'
Making all in pcre
make[4]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/pcre'
make  all-am
make[5]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/pcre'
  CC       libpcre_la-pcre_byte_order.lo
  CC       libpcre_la-pcre_chartables.lo
  CC       libpcre_la-pcre_compile.lo
  CC       libpcre_la-pcre_config.lo
  CC       libpcre_la-pcre_dfa_exec.lo
  CC       libpcre_la-pcre_exec.lo
  CC       libpcre_la-pcre_fullinfo.lo
  CC       libpcre_la-pcre_get.lo
  CC       libpcre_la-pcre_globals.lo
  CC       libpcre_la-pcre_jit_compile.lo
  CC       libpcre_la-pcre_newline.lo
  CC       libpcre_la-pcre_ord2utf8.lo
  CC       libpcre_la-pcre_string_utils.lo
  CC       libpcre_la-pcre_study.lo
  CC       libpcre_la-pcre_tables.lo
  CC       libpcre_la-pcre_valid_utf8.lo
  CC       libpcre_la-pcre_xclass.lo
  CCLD     libpcre.la
x86_64-linux-gnu-ar: `u' modifier ignored since `D' is the default (see `U')
make[5]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/pcre'
make[4]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/pcre'
Making all in update-pcre
make[4]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/update-pcre'
make  all-am
make[5]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/update-pcre'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/update-pcre'
make[4]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib/update-pcre'
Making all in .
make[4]: Entering directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib'
  CC       libglib_2_0_la-gallocator.lo
  CC       libglib_2_0_la-gcache.lo
  CC       libglib_2_0_la-gcompletion.lo
  CC       libglib_2_0_la-grel.lo
  CC       libglib_2_0_la-gthread-deprecated.lo
  CC       libglib_2_0_la-garray.lo
  CC       libglib_2_0_la-gasyncqueue.lo
  CC       libglib_2_0_la-gatomic.lo
  CC       libglib_2_0_la-gbacktrace.lo
  CC       libglib_2_0_la-gbase64.lo
  CC       libglib_2_0_la-gbitlock.lo
  CC       libglib_2_0_la-gbookmarkfile.lo
../../glib-2.39.3/glib/gbacktrace.c: In function 'g_on_error_query':
../../glib-2.39.3/glib/gbacktrace.c:174:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
     fgets (buf, 8, stdin);
     ^~~~~~~~~~~~~~~~~~~~~
../../glib-2.39.3/glib/gbacktrace.c: In function 'stack_trace':
../../glib-2.39.3/glib/gbacktrace.c:302:18: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
       close (0); dup (in_fd[0]);   /* set the stdin to the in pipe */
                  ^~~~~~~~~~~~~~
../../glib-2.39.3/glib/gbacktrace.c:303:18: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
       close (1); dup (out_fd[1]);  /* set the stdout to the out pipe */
                  ^~~~~~~~~~~~~~~
../../glib-2.39.3/glib/gbacktrace.c:304:18: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
       close (2); dup (out_fd[1]);  /* set the stderr to the out pipe */
                  ^~~~~~~~~~~~~~~
../../glib-2.39.3/glib/gbacktrace.c:309:18: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result]
       close (2); dup (old_err);
                  ^~~~~~~~~~~~~
../../glib-2.39.3/glib/gbacktrace.c:322:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write (in_fd[1], "backtrace\n", 10);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../glib-2.39.3/glib/gbacktrace.c:323:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write (in_fd[1], "p x = 0\n", 8);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../glib-2.39.3/glib/gbacktrace.c:324:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write (in_fd[1], "quit\n", 5);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC       libglib_2_0_la-gbytes.lo
  CC       libglib_2_0_la-gcharset.lo
  CC       libglib_2_0_la-gchecksum.lo
  CC       libglib_2_0_la-gconvert.lo
  CC       libglib_2_0_la-gdataset.lo
  CC       libglib_2_0_la-gdate.lo
  CC       libglib_2_0_la-gdatetime.lo
../../glib-2.39.3/glib/gdate.c: In function 'g_date_strftime':
../../glib-2.39.3/glib/gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);
       ^~~~~~
  CC       libglib_2_0_la-gdir.lo
  CC       libglib_2_0_la-genviron.lo
  CC       libglib_2_0_la-gerror.lo
  CC       libglib_2_0_la-gfileutils.lo
  CC       libglib_2_0_la-ggettext.lo
  CC       libglib_2_0_la-ghash.lo
  CC       libglib_2_0_la-ghmac.lo
  CC       libglib_2_0_la-ghook.lo
cc1: some warnings being treated as errors
  CC       libglib_2_0_la-ghostutils.lo
Makefile:1782: recipe for target 'libglib_2_0_la-gdate.lo' failed
make[4]: *** [libglib_2_0_la-gdate.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib'
Makefile:2441: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib'
make[2]: *** [all] Error 2
Makefile:1161: recipe for target 'all' failed
make[2]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build/glib'
Makefile:1200: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/build'
make: *** [all] Error 2
Makefile:841: recipe for target 'all' failed
shell cmd failed: /bin/sh -ex  /home/niteesh/development/rtems/rsb/rtems/build/glib-2.39.3-x86_64-linux-gnu-1/do-build
error: building glib-2.39.3-x86_64-linux-gnu-1


More information about the devel mailing list