All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 11266] New: qt5base-5.11.1 does not compile with musl, complains about redefinitions
Date: Tue, 04 Sep 2018 16:33:26 +0000	[thread overview]
Message-ID: <bug-11266-163@https.bugs.busybox.net/> (raw)

https://bugs.busybox.net/show_bug.cgi?id=11266

            Bug ID: 11266
           Summary: qt5base-5.11.1 does not compile with musl, complains
                    about redefinitions
           Product: buildroot
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: richterphilipp.pops at gmail.com
                CC: buildroot at uclibc.org
  Target Milestone: ---

Created attachment 7706
  --> https://bugs.busybox.net/attachment.cgi?id=7706&action=edit
Config file to reproduce

Hello,

using the latest buildroot commit 2989e3c87a1123350728904fd789ad513e76b073
I tried to build qt5base 11.1 with musl but I get errors about redefinitions
like statx_timestamp, statx and renameat2. Seems like there are collisions
between the linux headers and the musl headers ?

Steps to reproduce :

1) select musl as libc

2) select qt5base 11.1 in the target packages

3) make

Build output :

In file included from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:94: 
/usr/include/linux/stat.h:56:8: error: redefinition of ?struct statx_timestamp? 
 struct statx_timestamp {                                                       
        ^~~~~~~~~~~~~~~                                                         
In file included from /usr/include/sys/stat.h:446,                              
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/mkspecs/linux-g++/qplatformdefs.h:75,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:25:8: note: previous definition of ?struct
statx_timestamp?
 struct statx_timestamp
        ^~~~~~~~~~~~~~~
In file included from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:94:
/usr/include/linux/stat.h:99:8: error: redefinition of ?struct statx?
 struct statx {
        ^~~~~
In file included from /usr/include/sys/stat.h:446,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/mkspecs/linux-g++/qplatformdefs.h:75,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:36:8: note: previous definition of ?struct statx?
 struct statx
        ^~~~~
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:110:12:
error: ?int renameat2(int, const char*, int, const char*, unsigned int)? was
declared ?extern? and later ?static? [-fpermissive]                         
 static int renameat2(int oldfd, const char *oldpath, int newfd, const char
*newpath, unsigned flags)
            ^~~~~~~~~
In file included from /usr/include/c++/8.2.1/cstdio:42,
                 from /usr/include/c++/8.2.1/ext/string_conversions.h:43,
                 from /usr/include/c++/8.2.1/bits/basic_string.h:6391,
                 from /usr/include/c++/8.2.1/string:52,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/include/QtCore/../../src/corelib/tools/qbytearray.h:52, 
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/include/QtCore/qbytearray.h:1,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/include/QtCore/../../src/corelib/tools/qstring.h:49, 
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/include/QtCore/qstring.h:1,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/include/QtCore/../../src/corelib/io/qiodevice.h:50,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/include/QtCore/qiodevice.h:1,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/include/QtCore/../../src/corelib/io/qfiledevice.h:43, 
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/include/QtCore/qfiledevice.h:1,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfile.h:44,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_p.h:54,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:43:
/usr/include/stdio.h:164:12: note: previous declaration of ?int renameat2(int,
const char*, int, const char*, unsigned int)?
 extern int renameat2 (int __oldfd, const char *__old, int __newfd,
            ^~~~~~~~~
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:115:12:
error: ?int statx(int, const char*, int, unsigned int, statx*)? was declared
?extern? and later ?static? [-fpermissive]                                  
 static int statx(int dirfd, const char *pathname, int flag, unsigned mask,
struct statx *statxbuf)
            ^~~~~
In file included from /usr/include/sys/stat.h:446,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/mkspecs/linux-g++/qplatformdefs.h:75,
                 from
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:87:5: note: previous declaration of ?int statx(int,
const char*, int, unsigned int, statx*)?
 int statx (int __dirfd, const char *__restrict __path, int __flags,
     ^~~~~
make[2]: *** [Makefile:423: qfilesystemengine_unix.o] Error 1
make[1]: *** [package/pkg-generic.mk:222:
/home/popsulfr/work/buildroot/x86_64/build/qt5base-5.11.1/.stamp_configured]
Error 2
make: *** [Makefile:16: _all] Error 2

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2018-09-04 16:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-04 16:33 bugzilla at busybox.net [this message]
2018-09-06 20:49 ` [Buildroot] [Bug 11266] qt5base-5.11.1 does not compile with musl, complains about redefinitions bugzilla at busybox.net
2018-09-09  8:08 ` bugzilla at busybox.net
2018-09-09  8:56 ` bugzilla at busybox.net

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-11266-163@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.