Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on Arch Linux #14

Open
aakodadi opened this issue Jun 14, 2021 · 4 comments
Open

Build fails on Arch Linux #14

aakodadi opened this issue Jun 14, 2021 · 4 comments

Comments

@aakodadi
Copy link

Build fails on arch with the following error:

sources/main.cpp: In function ‘void myMessageOutput(QtMsgType, const QMessageLogContext&, const QString&)’:
sources/main.cpp:45:24: error: format not a string literal and no format arguments [-Werror=format-security]
45 |                  qFatal(QString("Fatal: %1").arg(msg).toUtf8());
cc1plus: some warnings being treated as errors
make[1]: *** [Makefile:925: ../tmp/obj/main.o] Error 1
make[1]: Leaving directory '/home/aakodadi/.local/qtdmm-qt5-git/src/qtdmm-qt5-git/src'
make: *** [Makefile:47: sub-src-make_first-ordered] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
@parkerlreed
Copy link

This is with

qt5-base 5.15.2
gcc 11.1.0-1

@tuxmaster5000
Copy link

I don't see this problem on Fedora 33 using:
gcc-10.3.1-1.fc33.x86_64
qt5-qtbase-devel-5.15.2-15.fc33.x86_64
So I can't reproduce it.

@parkerlreed
Copy link

Thanks. I'll see if I can narrow it down to GCC.

@parkerlreed
Copy link

parkerlreed commented Jun 15, 2021

Removed -Wformat -Werror=format-security from the default CFLAGS (system wide) and it works now (You have to start with clean source as they get shoved into the generated src/Makefile)

Working on gcc 11.1 removing those flags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants