mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-03-02 22:57:32 -05:00
Build problem with GCC 6.1.1 #4266
Labels
No labels
Accessibility
AppImage
Bounty
Build system
CI
Can't reproduce
Code cleanup
Confirmed bug
Confirmed bug
Core
Crash
Data loss
Discussion
Docker
Documentation
Duplicate
Feature
Feature request
Feature request
Feature request
Filters
Flatpak
GUI
Has workaround
I2P
Invalid
Libtorrent
Look and feel
Meta
NSIS
Network
Not an issue
OS: *BSD
OS: Linux
OS: Windows
OS: macOS
PPA
Performance
Project management
Proxy/VPN
Qt bugs
Qt6 compat
RSS
Search engine
Security
Temp folder
Themes
Translations
Triggers
Waiting diagnosis
Waiting info
Waiting upstream
Waiting web implementation
Watched folders
WebAPI
WebUI
autoCloseOldIssue
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/qBittorrent#4266
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @edianderson on GitHub (May 9, 2016).
When try build qbittorrent from source, occurs this error:
Enviroment:
GCC 6.1.1
ArchLinux 64 bits.
@sledgehammer999 commented on GitHub (May 9, 2016):
Are you usign qt4? If yes, don't expect it to build nicely with newer compilers.
@eli-schwartz commented on GitHub (May 9, 2016):
Arch AUR package: qbittorent-git
32-bit
gcc 6.1.1-1
qt5-base 5.6.0-5
@edianderson commented on GitHub (May 9, 2016):
No, I am using qt5-base 5.6.0-5.
When trying build from AUR or directly from git, the same error occurs.
Error from AUR:
cd src/ && ( test -e Makefile || /usr/lib/qt/bin/qmake /home/edi/Projects/Qbittorrent/qbittorrent/src/qbittorrent/src/src.pro QMAKE_LRELEASE= -o Makefile ) && make -f Makefile
make[1]: Entering directory '/home/edi/Projects/Qbittorrent/qbittorrent/src/qbittorrent/src'
compiling app/qtsingleapplication/qtsingleapplication.cpp
In file included from /usr/include/c++/6.1.1/bits/stl_algo.h:59:0,
from /usr/include/c++/6.1.1/algorithm:62,
from /usr/include/qt/QtCore/qglobal.h:85,
from /usr/include/qt/QtCore/qcoreapplication.h:37,
from /usr/include/qt/QtWidgets/qapplication.h:37,
from /usr/include/qt/QtWidgets/QApplication:1,
from app/qtsingleapplication/qtsingleapplication.h:44,
from app/qtsingleapplication/qtsingleapplication.cpp:42:
/usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
#include_next <stdlib.h>
^
@sledgehammer999 commented on GitHub (May 10, 2016):
This probably a compiler error/bug or wrong packaging of the compiler. 'stdlib.h' is supposed to be part of the compiler and in fact it is referenced by the compiler's headers. So there's nothing I can do about it. Try to see if there is already a bug report filed against gcc in Arch for this.
If not, then open one. I am closing this. If it turns out to be an actual qbt bug then I can reopen this.
@eli-schwartz commented on GitHub (May 10, 2016):
This looks promising: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Q5SWCUUMWQ4EMS7CU2CBOZHV3WZYOOTT/
@edianderson commented on GitHub (May 10, 2016):
Hi sledgehammer999, I had not seen it could build with cmake. I tried and it worked. The problem looks like occurs when using qmake.
@YuanhaoGong commented on GitHub (May 10, 2016):
I got the same error:
/usr/include/c++/6.1.1/cstdlib:75:25: fatal error: stdlib.h: No such file or directory
@edianderson commented on GitHub (May 10, 2016):
YuanhaoGong try build with cmake, it worked for me.
@Chocobo1 commented on GitHub (May 17, 2016):
Looks like this is a qmake bug: https://bugreports.qt.io/browse/QTBUG-53375 (closed in favor of: https://bugreports.qt.io/browse/QTBUG-53367)
Workarounds for now (choose one):
src/Makefileremove-isystem /usr/includeunderINCPATHvariable.@sledgehammer999 commented on GitHub (May 17, 2016):
The last bug is marked as "P2 Important" so I wager that it will be fixed in their release. Plus 5.6.0 is supposed to be LTS so a minor version release is due.
@Chocobo1 commented on GitHub (May 23, 2016):
@sledgehammer999
Qt closed https://bugreports.qt.io/browse/QTBUG-53367 marking it as invalid!?
Isn't qmake's fault of appending (abusing)
-isystemin the first place?@sledgehammer999 commented on GitHub (May 24, 2016):
I would think so too! Anyway, can you confirm that #5275 bash script change is correct?
@Chocobo1 commented on GitHub (May 24, 2016):
IMO the PR is more like a hack, including
/usr/includeshould be fine if it's not paired with-isystem.@vnta commented on GitHub (Jan 25, 2017):
Try by disabling pre-compiled headers, either from cmake-gui or using the command line parameter
-DENABLE_PRECOMPILED_HEADERS=OFF