How can I get the main build

Aleksander Morgado aleksander at aleksander.es
Fri May 15 15:40:50 UTC 2020


Hey

> I am so sorry. I can't use the mailing list normally. I am restricted by a firewall in China. I have used /autogen.sh. And compress.

If you want a "release tarball" you shouldn't just compress the
directory. If you want a release tarball, you want to run "make
distcheck", e.g.:

$ NOCONFIGURE=1 ./autogen.sh
$ ./configure && make && make distcheck

> But there is an error when running make in Openwrt
> /home/suyunfan/router/myplatform/source/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include/glib-2.0/glib/gmacros.h:480:43: error: inlining failed in call to 'glib_autoptr_cleanup_QmiMessage .isra.38 ': call is unlikely and code size would grow [-Werror = inline]
>  #define _GLIB_AUTOPTR_FUNC_NAME (TypeName) glib_autoptr_cleanup _ ## TypeName
>                                            ^ ~~~~~~~~~~~~~~~~~~~~~
> /home/suyunfan/router/myplatform/source/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/usr/include/glib-2.0/glib/gmacros.h:500:36: note: in expansion of macro '_GLIB_AUTOPTR_FUNC_NAME'
>    static G_GNUC_UNUSED inline void _GLIB_AUTOPTR_FUNC_NAME (TypeName) (TypeName ** _ ptr) {if (* _ptr) (func) (* _ptr);} \
>                                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~
> ../../../src/libqmi-glib/qmi-message.h:174:1: note: in expansion of macro 'G_DEFINE_AUTOPTR_CLEANUP_FUNC'
>  G_DEFINE_AUTOPTR_CLEANUP_FUNC (QmiMessage, qmi_message_unref)
>  ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> qmi-ctl.c: 4132: 27: note: called from here
>      g_autoptr (QmiMessage) request = NULL;
>                            ^ ~~~~~~
> cc1: all warnings being treated as errors

I recall having seen this myself in the past, but didn't get around to
debugging it. Just try to adjust your CFLAGS to have -Wno-inline and
rebuild.

> I want to use it in openwrt. I replaced libqmi in openwrt compilation. Can you help me compile a downloadable place with https://www.freedesktop.org/software/libqmi/? Also give me the latest modemmanager by the way.

Try the make distcheck step as said above, that will get you a source
tarball in the same way as I do the normal release tarballs.

-- 
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list