Error in compiling 1.15.2 in Raspberry pi

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in compiling 1.15.2 in Raspberry pi

Abu Abdullah
Hi,

im facing the following error while compiling gstreamer on Raspberry Pi

**********************
make[4]: Entering directory '/home/pi/gstreamer-1.15.2/gst'
  CC       libgstreamer_1.0_la-gst.lo
  CC       libgstreamer_1.0_la-gstobject.lo
  CC       libgstreamer_1.0_la-gstallocator.lo
  CC       libgstreamer_1.0_la-gstbin.lo
  CC       libgstreamer_1.0_la-gstbuffer.lo
  CC       libgstreamer_1.0_la-gstbufferlist.lo
gstbuffer.c:184:2: error: #warning No 64-bit atomic int defined for
this platform/toolchain! [-Werror=cpp]
 #warning No 64-bit atomic int defined for this platform/toolchain!
  ^~~~~~~
  CC       libgstreamer_1.0_la-gstbufferpool.lo
  CC       libgstreamer_1.0_la-gstbus.lo
  CC       libgstreamer_1.0_la-gstcaps.lo
cc1: all warnings being treated as errors
Makefile:1227: recipe for target 'libgstreamer_1.0_la-gstbuffer.lo' failed
make[4]: *** [libgstreamer_1.0_la-gstbuffer.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
**********************
it is working with older version. im not specifying any option in configure:
./configure
make -j4
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Error in compiling 1.15.2 in Raspberry pi

Michael Gruner
I don’t know the exact root cause of the issue, but it seems it’s a warning treated as an error. If you just want to skip it, configure as the following:

./configure CFLAGS=“-Wno-error” CXXFLAGS=“-Wno-error”
make

Michael
www.ridgerun.com

> On Apr 10, 2019, at 12:05 PM, Abu Abdullah <[hidden email]> wrote:
>
> Hi,
>
> im facing the following error while compiling gstreamer on Raspberry Pi
>
> **********************
> make[4]: Entering directory '/home/pi/gstreamer-1.15.2/gst'
>  CC       libgstreamer_1.0_la-gst.lo
>  CC       libgstreamer_1.0_la-gstobject.lo
>  CC       libgstreamer_1.0_la-gstallocator.lo
>  CC       libgstreamer_1.0_la-gstbin.lo
>  CC       libgstreamer_1.0_la-gstbuffer.lo
>  CC       libgstreamer_1.0_la-gstbufferlist.lo
> gstbuffer.c:184:2: error: #warning No 64-bit atomic int defined for
> this platform/toolchain! [-Werror=cpp]
> #warning No 64-bit atomic int defined for this platform/toolchain!
>  ^~~~~~~
>  CC       libgstreamer_1.0_la-gstbufferpool.lo
>  CC       libgstreamer_1.0_la-gstbus.lo
>  CC       libgstreamer_1.0_la-gstcaps.lo
> cc1: all warnings being treated as errors
> Makefile:1227: recipe for target 'libgstreamer_1.0_la-gstbuffer.lo' failed
> make[4]: *** [libgstreamer_1.0_la-gstbuffer.lo] Error 1
> make[4]: *** Waiting for unfinished jobs....
> **********************
> it is working with older version. im not specifying any option in configure:
> ./configure
> make -j4
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Error in compiling 1.15.2 in Raspberry pi

Abu Abdullah
thank you, it works now. im not sure if it is related to the last
update to raspberrypi kernel (4.19.34-v7+). i will check it with older
kernels

On Wed, Apr 10, 2019 at 10:07 PM Michael Gruner
<[hidden email]> wrote:

>
> I don’t know the exact root cause of the issue, but it seems it’s a warning treated as an error. If you just want to skip it, configure as the following:
>
> ./configure CFLAGS=“-Wno-error” CXXFLAGS=“-Wno-error”
> make
>
> Michael
> www.ridgerun.com
>
> > On Apr 10, 2019, at 12:05 PM, Abu Abdullah <[hidden email]> wrote:
> >
> > Hi,
> >
> > im facing the following error while compiling gstreamer on Raspberry Pi
> >
> > **********************
> > make[4]: Entering directory '/home/pi/gstreamer-1.15.2/gst'
> >  CC       libgstreamer_1.0_la-gst.lo
> >  CC       libgstreamer_1.0_la-gstobject.lo
> >  CC       libgstreamer_1.0_la-gstallocator.lo
> >  CC       libgstreamer_1.0_la-gstbin.lo
> >  CC       libgstreamer_1.0_la-gstbuffer.lo
> >  CC       libgstreamer_1.0_la-gstbufferlist.lo
> > gstbuffer.c:184:2: error: #warning No 64-bit atomic int defined for
> > this platform/toolchain! [-Werror=cpp]
> > #warning No 64-bit atomic int defined for this platform/toolchain!
> >  ^~~~~~~
> >  CC       libgstreamer_1.0_la-gstbufferpool.lo
> >  CC       libgstreamer_1.0_la-gstbus.lo
> >  CC       libgstreamer_1.0_la-gstcaps.lo
> > cc1: all warnings being treated as errors
> > Makefile:1227: recipe for target 'libgstreamer_1.0_la-gstbuffer.lo' failed
> > make[4]: *** [libgstreamer_1.0_la-gstbuffer.lo] Error 1
> > make[4]: *** Waiting for unfinished jobs....
> > **********************
> > it is working with older version. im not specifying any option in configure:
> > ./configure
> > make -j4
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Error in compiling 1.15.2 in Raspberry pi

Tim Müller
On Wed, 2019-04-10 at 22:22 +0400, Abu Abdullah wrote:

Hi

> thank you, it works now. im not sure if it is related to the last
> update to raspberrypi kernel (4.19.34-v7+). i will check it with
> older kernels

It's not related to the kernel or any other updates, it's a change that
was made in GStreamer.

It's not a problem either, just suboptimal from a performance point of
view, hence a compiler warning.

The reason it happens is that by default the compiler on raspbian will
target armv6 so that things work with all rpi models.

If you don't need to support all models but e.g. only care about rpi3
you can target armv8 which I believe supports the required
instructions/primitives and avoids the warning.

Cheers
 Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Error in compiling 1.15.2 in Raspberry pi

AEtherScythe
Thanks for the hint.  I then figured out that setting the target to armv8
means:

./configure --target armv8



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Error in compiling 1.15.2 in Raspberry pi

AEtherScythe
In reply to this post by Tim Müller
Well, darn.  This didn't suppress the error, either: "./configure --target
armv8"
I went with the originally stated workaround, but FYI something is messing
with the quotes in the example.
Not sure if it is just how the message is being displayed, but clearly those
aren't the plain quotes that are required.
I did it like this:





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel