Bug#1068158: python-escript: FTBFS: RuntimeError: We do not current support different different dpkg-buildflags for C vs C++:

Bo YU tsu.yubo at gmail.com
Tue Apr 2 16:29:09 BST 2024


On Tue, Apr 2, 2024 at 11:19 PM Sebastian Ramacher <sramacher at debian.org> wrote:
>
> Hi
>
> On 2024-04-02 23:16:16 +0800, Bo YU wrote:
> > Tags: patch
> >
> > Hi,
> > >  File "/<<PKGBUILDDIR>>/site_scons/extractdebbuild.py", line 61:
> > >    raise RuntimeError("We do not current support different different dpkg-buildflags for C vs C++")
> > > make[1]: *** [debian/rules:65: override_dh_auto_build] Error 2
> >
> > I have looked into this a bit.
> > As the error hint here, the default cflags in here when build is:
> >
> > ```
> > -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-
> > clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-uninitialized
> > ```
> >
> > But cxxflags without[0] `-Werror=implicit-function-declaration` here. Is it
> > expected?
>
> It is expected. -Werror=implicit-function-declaration makes no sense in
> C++ since C++ simply does not support implicit function declarations.

Thanks for clarification.

Once cleared my local build, I will push this update again.

BR,
Bo
>
> Cheers
>



More information about the debian-science-maintainers mailing list