This topic has been deleted. Only users with topic management privileges can see it.
Hello, I am new to QT Creator, and relatively new to C++. I am using QT Creator 4.11.0, on an Ubuntu laptop. I have successfully completed my first program for Linux using QT Creator. However, whenever QT creator creates a new empty project, there are already some issues. These issues don’t prevent compilation and running of the program, but they do create many warnings and I don’t know how to fix it. Here is what I am getting:
For every function in mainwindow.cpp it says: use of undeclared identifier “MainWindow”.
At the top of the window in a yellow bar it says Warning: The code model could not parse an included file, which might lead to incorrect code completion and highlighting. For example. When I hit the Show details button I get:
cstddef:50:10: fatal error: ‘stddef.h’ file not found
mainwindow.cpp:1:1: note: in file included from /home/chris/C++/STL QTC/Testing/TestingOne/mainwindow.cpp:1:
mainwindow.cpp:1:10: note: in file included from /home/chris/C++/STL QTC/Testing/TestingOne/mainwindow.cpp:1:
mainwindow.h:4:10: note: in file included from /home/chris/C++/STL QTC/Testing/TestingOne/mainwindow.h:4:
QMainWindow:1:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1:
qmainwindow.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:43:
qtwidgetsglobal.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43:
qtguiglobal.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43:
qglobal.h:46:12: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:46:
I should be copying this from a newly started program, but instead I am taking if from a newly started project in which I have added some widgets and a slot. Still, at least most of this is there before I start to modify the program.
In main.cpp:
#include «mainwindow.h»
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv); o variable has incomplete type ‘QApplication’
MainWindow w; o unknown type name ‘MainWindow’
w.show();
return a.exec();
}
at the top of this window in the yellow box:
cstddef:50:10: fatal error: ‘stddef.h’ file not found
main.cpp:1:1: note: in file included from /home/chris/C++/STL QTC/Testing/TestingOne/main.cpp:1:
main.cpp:1:10: note: in file included from /home/chris/C++/STL QTC/Testing/TestingOne/main.cpp:1:
mainwindow.h:4:10: note: in file included from /home/chris/C++/STL QTC/Testing/TestingOne/mainwindow.h:4:
QMainWindow:1:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1:
qmainwindow.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:43:
qtwidgetsglobal.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43:
qtguiglobal.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43:
qglobal.h:46:12: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:46:
and at the bottom of this window:
o variable has incomplete type: ‘QApplication’
forward declaration of ‘Qapplication’
unknown type name: ‘MainWindow’
And finally in mainwindow.h:
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QmainWindow o expected class name (continues off screen, no horizontal scroll bar)
{
Q_OBJECT o incomplete result type ‘Qstring’ in function definition o calling ‘tr’ with incomplete return type ‘Qstring’ o incomplete result type ‘Qstring’ in function definition o calling
At the top in the yellow box:
cstddef:50:10: fatal error: ‘stddef.h’ file not found
mainwindow.h:1:1: note: in file included from /home/chris/C++/STL QTC/Testing/TestingOne/mainwindow.h:1:
mainwindow.h:4:10: note: in file included from /home/chris/C++/STL QTC/Testing/TestingOne/mainwindow.h:4:
QMainWindow:1:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QMainWindow:1:
qmainwindow.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmainwindow.h:43:
qtwidgetsglobal.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43:
qtguiglobal.h:43:10: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43:
qglobal.h:46:12: note: in file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:46:
and at the bottom:
there is too much to type there, and no way to copy it to paste it here. I will attach a picture of it.
If I remember correctly, I get an error when I try to add stddef.h
Please tell me how to fix these problems. Thank you.
@Citabria said in Issues in new project from creation:
I am using QT Creator 4.11.0, on an Ubuntu laptop.
These issues don’t prevent compilation and running of the program, but they do create many warnings and I don’t know how to fix it.
What version of Ubuntu? You should always say. Assuming >= Ubuntu 20.04, you need to sudo apt install clang-9
, clang version 9 instead of the version 8 which comes with Ubuntu 20.04. That will make your Creator Code Model correctly parse your source files.
@JonB
I have 20.04.1
Here’s what I got when I did what was suggested:
chris@chris-XPS-13-9310:~$ sudo apt install clang-9
[sudo] password for chris:
Reading package lists… Done
Building dependency tree
Reading state information… Done
clang-9 is already the newest version (1:9.0.1-12).
clang-9 set to manually installed.
The following packages were automatically installed and are no longer required:
apt-clone archdetect-deb dctrl-tools dmraid gir1.2-timezonemap-1.0
gir1.2-xkl-1.0 kpartx kpartx-boot libdebian-installer4 libdmraid1.0.0.rc16
libtimezonemap-data libtimezonemap1 python3-icu python3-pam rdate
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
chris@chris-XPS-13-9310:~$
This doesn’t seem to have helped. I rebooted, rebuilt, still getting all the same issues.
Hi, Thanks for your quick reply. I wish it had been the answer. While I am waiting for another response there were a few things I thought I should add.
First, I tried to attach the photo of the other error messages but couldn’t. I did find a small symbol that said picture, but hitting it only put a URL link into my test, and I saw no way to get a file browser so I could point to the file.
Of course I saw from the feedback from the terminal that I already had the newer file. This Linux laptop is only about 2-1/2 months old. I downloaded the latest version of QT Creator only about 3-1/ weeks ago.
I am experiencing two other problems that may arise from the same cause, and so I should tell about them in case they are clues to the problem.
The first program I wrote using QT Creator works well. It uses lineEdits to display numbers, and to get user input when a new number needs to be typed in. I am using the editing finished signal to call a function in which the number is retrieved from the lineEdit, converted to a number, number put into global variable, some math done, results put into variables, variables converted to text and displayed in lineEdits. This is all working perfectly when the signal is called by changing focus, clicking into another lineEdit. But if I use the return key to send the signal, odd things happen. It puts a zero into some of the variables. It is odd and I have not tried to figure out the problem yet. It may be caused by the same cause. Or, is there something completely different about calling editing finished by changing focus, from using the return key.
I have started a new program. I am using a stacked widget. On the first page I have a bunch of buttons which are menu items, which change the page. I added most of these by coping them form the first one I added. Suddenly things have changed, even when I add a new button, and also with lineEdits. The text property had disappeared from the properties editor. I can right-click and say change text to do it. But most of the other properties have become un-editable. In fact I think all of them. Is there something I don’t know about QT Ceator, or is this a problem possibly resulting from the same cause as my original reason for writing this question ? Is there a way to get the widgets properties to be editable again ?
Also, I had edited the properties of a large number of buttons simultaneously, by selecting them all first. It worked, but perhaps it is that that caused their properties in the property editor to become un-editable.
Another thing happened. I had all the buttons set to allow line wrap. This worked well because the two words I had in the buttons at first, broke into two lines when I squeezed the form horizontally, allowing it to become smaller, allowing all the buttons to become smaller horizontally than they could without line wrap.
I then experimented with the size policy property. After changing this, I was never able to get line wrap to work again.
When I first discovered that the properties had become un-editable, I thought it was because of having added layouts. But removing them didn’t fix it.
HI @Citabria,
Do the warnings go away after you compiled your program successfully the first time?
OtherwiseI have two hints for you:
-
Upgrade Qt Creator, e.g. by installing the latest version from https://download.qt.io/official_releases/online_installers The Clang Code Model improved a lot in the latest versions (we now have 4.14.1 and a first beta of 4.15)
-
/home/chris/C++/STL QTC/Testing/TestingOne/mainwindow.cpp:1:
By all means avoid spaces and other non-ASCII characters in project paths. They will hit you sooner or later.
Best regards
Thanks for the info. I had thought I might have some sort of corrupted installation and might need to install a new version. Do I uninstall first, and then install the new, and will my project files be safe ? Of course I’d back them up first anyway.
I am not sure that all the errors were there when I first successfully compiled the first early versions of the first program. I am not sure when I first noticed them. But since I first noticed them, they have never gone away.
I have been working on a new program but I opened the first and found it also suffers from all the properties not being editable, or at least most of them. I don’t think it did that before so either the program is corrupting, or I have unknowingly switched something that caused the properties to be locked.
Hi, I uninstalled the older version and installed the newer one from the link.
It fixed all the «issues». It fixed the problem where hitting return instead of changing focus was doing odd things.
Only one problem remains. Most of the attributes in the attribute editor are still un-editable for my widgets. What can I do to fix this ?
Sorry, my fault. The attributes are editable. I had the editors on the sides squeezed a bit to show more of the form. So the attributes weren’t visible, only the titles. Silly mistake. I think everything is working now. Thank you very much for your help.
cat /var/log/portage/dev-python:pyside-5.12.2:20190820-103202.log
* Package: dev-python/pyside-5.12.2
* Repository: testing
* Maintainer: qt@gentoo.org
* USE: 3d abi_x86_64 amd64 declarative designer elibc_glibc gui help kernel_linux multimedia network opengl python_targets_python2_7 python_targets_python3_6 python_targets_python3_7 script scripttools scxml svg userland_GNU widgets
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
* dev-python/pyside will not be compiled with PGO.
>>> Unpacking source...
>>> Unpacking pyside-setup-everywhere-src-5.12.2.tar.xz to /mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work
>>> Source unpacked in /mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work
>>> Preparing source in /mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2 ...
* Hardcoded definition(s) removed in CMakeLists.txt:
* set(CMAKE_BUILD_TYPE ${SHIBOKEN_BUILD_TYPE})
>>> Source prepared.
>>> Configuring source in /mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2 ...
* python2_7: running configuration
>>> Working in BUILD_DIR: "/mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2-python2_7"
cmake -C /mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2-python2_7/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTS=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DAnimation=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DCore=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DExtras=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DInput=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DLogic=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DRender=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Charts=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Concurrent=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5DataVisualization=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Gui=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Help=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Location=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5MultimediaWidgets=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Network=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5OpenGL=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Positioning=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5ScriptTools=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Scxml=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sensors=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Sql=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5TextToSpeech=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5UiTools=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebChannel=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngine=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineCore=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebSockets=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=no -DCMAKE_DISABLE_FIND_PACKAGE_Qt5X11Extras=yes -DCMAKE_DISABLE_FIND_PACKAGE_Qt5XmlPatterns=yes -DPYTHON_EXECUTABLE=/usr/bin/python3.6 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m/ -DPYTHON_LIBRARY=/usr/lib64/python3.6/ -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2-python2_7/gentoo_toolchain.cmake /mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2
loading initial cache file /mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2-python2_7/gentoo_common_config.cmake
CMake Warning (dev) at gentoo_common_config.cmake:9 (SET):
implicitly converting 'BOOLEAN' to 'STRING' type.
This warning is for project developers. Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 9.1.0
-- The CXX compiler identification is GNU 9.1.0
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Shiboken2Config: Using default python: .cpython-37m-x86_64-linux-gnu
-- Found PythonInterp: /usr/bin/python3.6 (found suitable version "3.6.9", minimum required is "3")
-- Found PythonLibs: /usr/lib64/python3.6/ (Required is at least version "3")
CMake Error at /usr/lib64/cmake/Shiboken2-5.12.2/shiboken_helpers.cmake:193 (message):
The detected Python minor version is not compatible with the Python minor
version which was used when Shiboken was built. Consider building shiboken
with FORCE_LIMITED_API set to '1', so that only the Python major version
matters.
Built with: '3.7' Detected: '3.6'
Call Stack (most recent call first):
/usr/lib64/cmake/Shiboken2-5.12.2/Shiboken2Config.cpython-37m-x86_64-linux-gnu.cmake:55 (shiboken_check_if_built_and_target_python_are_compatible)
/usr/lib64/cmake/Shiboken2-5.12.2/Shiboken2Config.cmake:5 (include)
CMakeLists.txt:62 (find_package)
-- Configuring incomplete, errors occurred!
See also "/mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2-python2_7/CMakeFiles/CMakeOutput.log".
* ERROR: dev-python/pyside-5.12.2::testing failed (configure phase):
* cmake failed
*
* Call stack:
* ebuild.sh, line 125: Called src_configure
* environment, line 3343: Called python_foreach_impl 'configuration'
* environment, line 2805: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'configuration'
* environment, line 2115: Called _multibuild_run '_python_multibuild_wrapper' 'configuration'
* environment, line 2113: Called _python_multibuild_wrapper 'configuration'
* environment, line 843: Called configuration
* environment, line 3341: Called cmake-utils_src_configure
* environment, line 1222: Called die
* The specific snippet of code:
* "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
*
* If you need support, post the output of `emerge --info '=dev-python/pyside-5.12.2::testing'`,
* the complete build log and the output of `emerge -pqv '=dev-python/pyside-5.12.2::testing'`.
* The complete build log is located at '/var/log/portage/dev-python:pyside-5.12.2:20190820-103202.log'.
* The ebuild environment file is located at '/mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/temp/environment'.
* Working directory: '/mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2-python2_7'
* S: '/mnt/Volume_3/Gentoo/temp/portage/dev-python/pyside-5.12.2/work/pyside-setup-everywhere-src-5.12.2/sources/pyside2'
Context: I recently switched from debian stable to debian testing so I have updated several hundred packages since the last time I used QT creator.
When I create a new project in QT creator I am greeted with many error messages.
For example, here are the errors for the autogenerated main.cpp class in a fresh project:
cstddef:50:10: fatal error: 'stddef.h' file not found
error: variable has incomplete type 'QApplication'
forward declaration of 'QApplication'
unknown type name 'MainWindow'
When I open up previous projects that I know have no errors they also show a whole bunch of similar errors.
However, all of these projects build and run just fine.
What is causing this?
asked Mar 8, 2020 at 20:20
JShorthouseJShorthouse
1,26213 silver badges28 bronze badges
3
I found the solution to this problem in this bug report.
The libclang-common-8-dev
package needs to be installed. After installing this package and restarting qt creator all of the errors went away.
answered Mar 9, 2020 at 1:36
JShorthouseJShorthouse
1,26213 silver badges28 bronze badges
5
After seeing JShorthouse’s answer, I disabled all the Clang related plugins. Then, everything started working like normal after restarting QT creator.
Find the plugins list in the menu under Help->About Plugins…
answered Aug 12, 2020 at 14:38
DristDrist
1111 silver badge3 bronze badges
1
Description
Onuralp SEZER
2021-02-22 12:20:43 UTC
Description of problem: I create QML project with "cmake/gcc" when I click on "cpp" It shows this errors; cstddef:50:10: error: 'stddef.h' file not found main.cpp:1:1: note: in file included from /home/thunderbirdtr/qt_projects/img_gallery_fullscreen/main.cpp:1: main.cpp:1:10: note: in file included from /home/thunderbirdtr/qt_projects/img_gallery_fullscreen/main.cpp:1: QGuiApplication:1:10: note: in file included from /usr/include/qt5/QtGui/QGuiApplication:1: qguiapplication.h:43:10: note: in file included from /usr/include/qt5/QtGui/qguiapplication.h:43: qtguiglobal.h:43:10: note: in file included from /usr/include/qt5/QtGui/qtguiglobal.h:43: qglobal.h:46:12: note: in file included from /usr/include/qt5/QtCore/qglobal.h:46: But we have stddef.hi in -> "gcc" package rpm -ql gcc |grep stddef ... /usr/lib/gcc/x86_64-redhat-linux/11/include/stddef.h ... I also changed to same project in to "clang" mode and still same result, there was a upstream bug but looks fixed as well. Version-Release number of selected component (if applicable): qt-creator-4.14.0-4.fc34.x86_64 How reproducible: * Create a new QML project and It will come up on "cpp" files. Actual results: cstddef:50:10: error: 'stddef.h' file not found Expected results: No error Additional info: Upstream bug : https://bugreports.qt.io/browse/QTCREATORBUG-25147 This problem doesn't happen "fedora 33/qt-creator 4.13.2" <- It is only started with 4.14 release version.
Comment 4
Ben Cotton
2022-05-12 16:58:39 UTC
This message is a reminder that Fedora Linux 34 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '34'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 34 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed.
Comment 5
Ben Cotton
2022-06-08 06:32:13 UTC
Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07. Fedora Linux 34 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. Thank you for reporting this bug and we are sorry it could not be fixed.
After upgrading to Saucy, Clang now gives me the error message:
clang -Wall -Werror -std=c99 -ggdb -O0 5.1.c -o 5.1
In file included from 5.1.c:1:
/usr/include/stdio.h:33:11: fatal error: 'stddef.h' file not found
# include <stddef.h>
^
1 error generated.
make: *** [5.1] Error 1
BTW the header I included was stdio.h
not stddef.h
but I am assuming that stdio.h
references or #includes
stddef.h
asked Dec 14, 2013 at 19:14
hazizhaziz
2,8597 gold badges36 silver badges47 bronze badges
You are missing header files. Their are 2 notable links related to this: launchpad notice and debian bug. You can fix this by removing clang and install the 3.3 version with
sudo apt-get remove clang
sudo apt-get install clang-3.3
answered Dec 14, 2013 at 19:22
RinzwindRinzwind
288k39 gold badges561 silver badges701 bronze badges
Closed
Bug 1542622
Opened 4 years ago
Closed 1 year ago
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Steps to reproduce:
This can be reproduced by cross-compiling firefox to aarch64.
Actual results:
the build crashes with various errors related to error: cast from pointer to smaller type ‘uintptr_t’ (aka ‘unsigned int’) loses information
Expected results:
the build should pass, as it does for firefox-60.6.1
Component: Untriaged → General
Product: Firefox → Firefox Build System
Can you try current mozilla-central? We’ve recently setup aarch64 cross builds, and they work.
Not sure, since my downstream is limited. So could you point out at which point the changes you mentioned are going to be merged into beta channel? Or if there’s a set of commits, so that I can backport them.
Your specific error looks like it could be related to bug 1522614
#1522614 seems to be about windows, nonetheless with 67.0b9 the pointer error is gone.
Now there is this new error:
16:34.20 [style 0.0.1] /usr/lib/gcc/aarch64-unknown-linux-gnu/8.3.0/include/g++-v8/cstddef:50:10: fatal error: ‘stddef.h’ file not found
16:34.30 [style 0.0.1] /usr/lib/gcc/aarch64-unknown-linux-gnu/8.3.0/include/g++-v8/cstddef:50:10: fatal error: ‘stddef.h’ file not found, err: true
16:35.29 [style 0.0.1] /usr/lib/gcc/aarch64-unknown-linux-gnu/8.3.0/include/g++-v8/cstddef:50:10: fatal error: ‘stddef.h’ file not found
16:35.29 [style 0.0.1] /usr/lib/gcc/aarch64-unknown-linux-gnu/8.3.0/include/g++-v8/cstddef:50:10: fatal error: ‘stddef.h’ file not found, err: true
the headers are present:
/usr/lib/gcc/aarch64-unknown-linux-gnu/8.3.0/include/stddef.h
/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/8.3.0/include/stddef.h
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/stddef.h
shall I open a new bug?
also still waiting for input from #1
Can you attach your $OBJDIR/config.status file? It looks like the clang bindgen is invoking is very confused about what set of things it should be looking for; it’s certainly not getting invoked with --target
, which is what I would expect.
I wonder if we could get bindgen to spit out what it thinks the clang search paths etc. are.
Flags: needinfo?(herrtimson)
here’s the config.status from firefox-67.0_beta9
Flags: needinfo?(herrtimson)
froydnj, do you think there’s anything helpfull in that log?
It looks like clang’s getting the right flags for everything. What does:
echo '#include <cstddef>' | /usr/lib64/llvm/8/bin/clang++ -x c++ -fno-sized-deallocation --target=aarch64-linux-gnu -E -o - - -v`
say? And, just for fun, what does:
echo '#include <cstddef>' | /usr/lib64/llvm/8/bin/clang++ -x c++ -fno-sized-deallocation --target=aarch64-unknown-linux-gnu -E -o - - -v`
say?
this is for —target=aarch64-linux-gnu
(I’m still on llvm/clang-7.1.0 though)
and this is for aarch64-unknown-linux-gnu
CHOST for gentoo (and fedora?) is aarch64-unknown-linux-gnu, I think aarch64-linux-gnu is a debianism?
Well, that’d be the problem then. We’re passing --target=aarch64-linux-gnu
to clang, which then can’t find the GCC headers for aarch64-unknown-linux-gnu
. I guess we need to be a little smarter somewhere along the line in what --target
clang should receive, though I’m not totally sure what changed in the 67 timeframe…glandium, do you have any thoughts here?
Flags: needinfo?(mh+mozilla)
During configure, I explicitly set it to --target aarch64-unknown-linux-gnu
, so might this be a case of --target
not honored?
I tried to use the attached patch, but to no avail. Still the very same error about stddef.h
not found from #4
What is BINDGEN_SYSTEM_FLAGS
in config.status
?
Flags: needinfo?(mh+mozilla)
(In reply to Mike Hommey [:glandium] from comment #15)
What is
BINDGEN_SYSTEM_FLAGS
inconfig.status
?
-x c++ -fno-sized-deallocation -DTRACING=1 -DIMPL_LIBXUL -DMOZILLA_INTERNAL_API -DRUST_BINDGEN -DOS_POSIX=1 -DOS_LINUX=1 --target=aarch64-linux-gnu -I/usr/aarch64-unknown-linux-gnu/usr/include/nspr -I/usr/include/nss -I/usr/aarch64-unknown-linux-gnu/tmp/portage/www-client/firefox-67.0_beta9/work/firefox-67.0/ff/dist/include/nss -I/usr/aarch64-unknown-linux-gnu/usr/include/pixman-1 -I/usr/aarch64-unknown-linux-gnu/tmp/portage/www-client/firefox-67.0_beta9/work/firefox-67.0/ff
If you’re asking what they are with the patch from comment 14, I do not know; those are from the attached config.status
. What about with the patch from comment 14?
Flags: needinfo?(herrtimson)
here is the full build log with the patch from #14
and here is the config.status file
I’m not sure wether there is any difference, but that —target is now aarch64-unknown-linux-gnu, and the patch does work as intended.
Flags: needinfo?(herrtimson)
What happens if you try to build with clang rather than gcc?
Using clang rather than gcc triggers another bug during configure, concerning system-libjpeg. So guess that needs to be adressed before
I suspected the clang-sys crate to be the reason for this, but the code hasn’t changed inbetween firefox v66 and v67
I think I found the problem, the attached patch will make firefox-66.0.5 fail for the same reason. I isolated it from a diff of the two build folders of firefox-66.0.5/build/ and firefox-67.0/build/
I’ll try to revert that patch and do some runtime testing.
Summary: >=firefox-66.0.2 fails to cross compile to aarch64 with error: cast from pointer to smaller type ‘uintptr_t’ (aka ‘unsigned int’) loses information → >=firefox-66.0.2 fails to cross compile to aarch64 with error: [style 0.0.1] /usr/lib/gcc/aarch64-unknown-linux-gnu/8.3.0/include/g++-v8/cstddef:50:10: fatal error: ‘stddef.h’ file not found
Version: 66 Branch → 67 Branch
I was able to reduce the patch, it’s the last chunk that makes all the difference. Can you help me to find out more about the actuall problem here?
Flags: needinfo?(mh+mozilla)
What happens if you apply the patch from bug 1526857?
Flags: needinfo?(mh+mozilla)
this makes me hit #1557030 I believe:
0:22.10 checking for rustfmt… not found
0:23.38 checking for clang for bindgen… /usr/lib/llvm/7/bin/clang++
0:23.41 checking for libclang for bindgen… not found
0:23.41 ERROR: Could not find libclang to generate rust bindings for C/C++. Please install the necessary packages, run mach bootstrap
, or use —with-libclang-path to give the path containing it.
0:23.45 *** Fix above errors and then restart with
0:23.45 «./mach build»
0:23.45 gmake: *** [client.mk:115: configure] Error 1
passing —with-libclang-path=/usr/lib/llvm/7/lib64
0:06.00 checking for cbindgen… /usr/bin/cbindgen
0:06.00 checking for rustfmt… not found
0:06.05 checking for clang for bindgen… /usr/lib/llvm/7/bin/clang++
0:06.05 checking for libclang for bindgen… /usr/lib/llvm/7/lib64/libclang.so
0:06.09 checking that libclang is new enough… yes
0:06.09 Traceback (most recent call last):
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/configure.py», line 132, in <module>
0:06.09 sys.exit(main(sys.argv))
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/configure.py», line 38, in main
0:06.09 sandbox.run(os.path.join(os.path.dirname(file), ‘moz.configure’))
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/python/mozbuild/mozbuild/configure/init.py», line 481, in run
0:06.09 func(*args)
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/python/mozbuild/mozbuild/configure/init.py», line 525, in _value_for
0:06.09 return self._value_for_depends(obj)
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/python/mozbuild/mozbuild/util.py», line 947, in method_call
0:06.09 cache[args] = self.func(instance, *args)
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/python/mozbuild/mozbuild/configure/init.py», line 534, in _value_for_depends
0:06.09 value = obj.result()
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/python/mozbuild/mozbuild/util.py», line 947, in method_call
0:06.09 cache[args] = self.func(instance, *args)
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/python/mozbuild/mozbuild/configure/init.py», line 151, in result
0:06.09 return self._func(*resolved_args)
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/python/mozbuild/mozbuild/configure/init.py», line 1097, in wrapped
0:06.09 return new_func(*args, **kwargs)
0:06.09 File «/usr/armv7a-unknown-linux-gnueabihf/tmp/portage/www-client/firefox-68.0_beta11/work/firefox-68.0/build/moz.configure/bindgen.configure», line 278, in basic_bindgen_cflags
0:06.09 return args + (clang_flags or [])
0:06.09 TypeError: can only concatenate list (not «unicode») to list
0:06.12 *** Fix above errors and then restart with
0:06.12 «./mach build»
Please attach config.log
after trying to build again under the same conditions as for comment 26, but with the MOZ_CONFIGURE_TRACE
environment variable set to 1
.
this was solved by exporting sysroot through BINDGEN_CFLAGS
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: — → WORKSFORME
Has Regression Range: — → yes
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Thu, 27 Feb 2020 22:33:06 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexis Murzeau <amubtdx@gmail.com>
:
New Bug report received and forwarded. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Thu, 27 Feb 2020 22:33:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Subject: qtcreator: Clang code model fail to find stddef.h if libclang-common-8-dev package is not installed Package: qtcreator Version: 4.11.0-2 Severity: normal Dear Maintainer, * What led up to the situation? Install `qtcreator` but not the `libclang-common-8-dev` package Note: Installing `clang` package will install `clang-9` and not `clang-8`. When opening a CMake project in qtcreator that does `#include <cstddef>`, an error is reported by the clang code model in `cstddef`: `cstddef:50:10: fatal error: 'stddef.h' file not found` * What exactly did you do (or not do) that was effective (or ineffective)? When installing the `libclang-common-8-dev` package, the clang code model error goes away and no error is reported anymore. * What outcome did you expect instead? I expect the clang code model to work out of the box with all depends and recommends dependencies of `qtcreator`. As of now, `libclang-common-8-dev` seems required by the clang code model to work correctly, but that package is not a direct or indirect dependency of `qtcreator`. The simplest solution (if it is the right one) is to add `libclang-common-8-dev` as depends or recommends dependency to qtcreator. Or maybe it should be a dependency of `libclang1-8` instead (which qtcreator depends on). -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.4.8-amdnoflr-20200109 (SMP w/12 CPU cores) Kernel taint flags: TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages qtcreator depends on: ii libc6 2.29-10 ii libclang1-8 1:8.0.1-7 ii libgcc-s1 [libgcc1] 10-20200222-1 ii libgcc1 1:10-20200222-1 ii libkf5syntaxhighlighting5 5.62.0-3 ii libllvm8 1:8.0.1-7 ii libqbscore1.13 1.13.1-2 ii libqt5concurrent5 5.12.5+dfsg-8 ii libqt5core5a [qtbase-abi-5-12-5] 5.12.5+dfsg-8 ii libqt5designer5 5.12.5-2+b2 ii libqt5designercomponents5 5.12.5-2+b2 ii libqt5gui5 5.12.5+dfsg-8 ii libqt5help5 5.12.5-2+b2 ii libqt5network5 5.12.5+dfsg-8 ii libqt5printsupport5 5.12.5+dfsg-8 ii libqt5qml5 [qtdeclarative-abi-5-12-5] 5.12.5-5 ii libqt5quick5 5.12.5-5 ii libqt5quickwidgets5 5.12.5-5 ii libqt5script5 5.12.5+dfsg-2 ii libqt5serialport5 5.12.5-1 ii libqt5sql5 5.12.5+dfsg-8 ii libqt5sql5-sqlite 5.12.5+dfsg-8 ii libqt5widgets5 5.12.5+dfsg-8 ii libqt5xml5 5.12.5+dfsg-8 ii libstdc++6 10-20200222-1 ii qml-module-qtqml-models2 5.12.5-5 ii qml-module-qtquick-controls 5.12.5-1+b1 ii qml-module-qtquick2 5.12.5-5 ii qtchooser 66-2 ii qtcreator-data 4.11.0-2 Versions of packages qtcreator recommends: ii clang 1:9.0-49 ii clang-tidy 1:9.0-49 ii gdb-minimal [gdb] 9.1-1 ii konsole [x-terminal-emulator] 4:19.08.1-2+b1 ii make 4.2.1-1.2 pn qmlscene <none> pn qt5-doc <none> pn qt5-qmltooling-plugins <none> pn qtbase5-dev-tools <none> pn qtcreator-doc <none> pn qtdeclarative5-dev-tools <none> pn qttools5-dev-tools <none> pn qttranslations5-l10n <none> pn qtxmlpatterns5-dev-tools <none> Versions of packages qtcreator suggests: pn clazy <none> ii cmake 3.16.3-1 ii g++ 4:9.2.1-3.1 ii git 1:2.25.1-1 pn kate-data <none> pn subversion <none> ii valgrind 1:3.15.0-1 Versions of libclang-common-8-dev that fix the issue: libclang-common-8-dev 1:8.0.1-7 -- no debconf information -- Alexis Murzeau PGP: B7E6 0EBB 9293 7B06 BDBC 2787 E7BD 1904 F480 937F
[signature.asc (application/pgp-signature, attachment)]
Reply sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
You have taken responsibility.
(Fri, 28 Feb 2020 18:15:07 GMT) (full text, mbox, link).
Notification sent
to Alexis Murzeau <amubtdx@gmail.com>
:
Bug acknowledged by developer.
(Fri, 28 Feb 2020 18:15:07 GMT) (full text, mbox, link).
Message #10 received at 952718-done@bugs.debian.org (full text, mbox, reply):
Hi Alexis! On Thu, 27 Feb 2020 at 19:33, Alexis Murzeau <amubtdx@gmail.com> wrote: > > Subject: qtcreator: Clang code model fail to find stddef.h if libclang-common-8-dev package is not installed > Package: qtcreator > Version: 4.11.0-2 > Severity: normal > > Dear Maintainer, > > * What led up to the situation? > > Install `qtcreator` but not the `libclang-common-8-dev` package > Note: Installing `clang` package will install `clang-9` and not `clang-8`. > > When opening a CMake project in qtcreator that does `#include > <cstddef>`, an error is reported by the clang code model in `cstddef`: > `cstddef:50:10: fatal error: 'stddef.h' file not found` That's just right, the header is not installed yet. > * What exactly did you do (or not do) that was effective (or > ineffective)? > > When installing the `libclang-common-8-dev` package, the clang code > model error goes away and no error is reported anymore. Right, because that's one of the packages that provides stddef.h > * What outcome did you expect instead? > > I expect the clang code model to work out of the box with all depends > and recommends dependencies of `qtcreator`. > As of now, `libclang-common-8-dev` seems required by the clang code > model to work correctly, but that package is not a direct or indirect > dependency of `qtcreator`. No, you ar emixing two things here. The clang code model is a plugin that uses clang's API to parse a source file and do checks over it, like missing headers. It does not requires clang headers. What you saw is a project that needed a header not available in the system (or at least not for the selected toolchain). The same could happen if for example you install qtcreator but not qbase5-dev, and then you open a project that needs QString. I'm so closing this bug. If you think I might be missing some detail please feel free to reply to this bug and I'll reopen it if necessary (or you can do so if you think you are sure about it). Regards, Lisandro. -- Lisandro Damián Nicanor Pérez Meyer http://perezmeyer.com.ar/ http://perezmeyer.blogspot.com/
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Fri, 28 Feb 2020 22:39:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexis Murzeau <amubtdx@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Fri, 28 Feb 2020 22:39:02 GMT) (full text, mbox, link).
Message #15 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi, On 28/02/2020 19:11, Lisandro Damián Nicanor Pérez Meyer wrote: >> * What outcome did you expect instead? >> >> I expect the clang code model to work out of the box with all depends >> and recommends dependencies of `qtcreator`. >> As of now, `libclang-common-8-dev` seems required by the clang code >> model to work correctly, but that package is not a direct or indirect >> dependency of `qtcreator`. > > No, you ar emixing two things here. > > The clang code model is a plugin that uses clang's API to parse a > source file and do checks over it, like missing headers. It does not > requires clang headers.> > What you saw is a project that needed a header not available in the > system (or at least not for the selected toolchain). The same could > happen if for example you install qtcreator but not qbase5-dev, and > then you open a project that needs QString. Actually, the error is about missing `stddef.h` header which should be available everywhere. It happens with a simple program like this: ``` #include <stddef.h> int main() { return 0; } ``` Using another computer with outdated packages, I noticed that: - When having qtcreator 4.10.2-2 and no `libclang-common-8-dev` package installed, a project with the above file in `main.cpp` configured to be compiled using cmake and gcc-9, the clang code model works fine, there is no highlighted errors. When I do Ctrl+Click on the stddef.h header, qtcreator opens /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h - After having upgraded qtcreator to 4.11.0-2, the code model now shows the error about missing `stddef.h` for the same project and configuration (cmake + gcc-9). When I do Ctrl+Click on the stddef.h header, despite being "not found", qtcreator opens the same file: /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h. - If I downgrade qtcreator to 4.10.2-2 again, the error about `stddef.h` not found goes away. I've attached a test project I used with gcc-9 compiler. > > I'm so closing this bug. If you think I might be missing some detail > please feel free to reply to this bug and I'll reopen it if necessary > (or you can do so if you think you are sure about it). > > Regards, Lisandro. > I searched on QtCreator's own bug tracker and found a matching issue: https://bugreports.qt.io/browse/QTCREATORBUG-23451 I will reopen this bug as it is definitely a regression in qtcreator 4.11 and set the upstream url. -- Alexis Murzeau PGP: B7E6 0EBB 9293 7B06 BDBC 2787 E7BD 1904 F480 937F
[test_stddef.zip (application/zip, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Bug reopened
Request was from Alexis Murzeau <amubtdx@gmail.com>
to control@bugs.debian.org
.
(Fri, 28 Feb 2020 22:39:03 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Fri, 28 Feb 2020 22:48:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Fri, 28 Feb 2020 22:48:05 GMT) (full text, mbox, link).
Message #24 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
reopen 952718 forwarded 952718 https://bugreports.qt.io/browse/QTCREATORBUG-23451 tag 952718 upstream thanks El vie., 28 feb. 2020 19:35, Alexis Murzeau <amubtdx@gmail.com> escribió: > Hi, > > On 28/02/2020 19:11, Lisandro Damián Nicanor Pérez Meyer wrote: > >> * What outcome did you expect instead? > >> > >> I expect the clang code model to work out of the box with all depends > >> and recommends dependencies of `qtcreator`. > >> As of now, `libclang-common-8-dev` seems required by the clang code > >> model to work correctly, but that package is not a direct or indirect > >> dependency of `qtcreator`. > > > > No, you ar emixing two things here. > > > > The clang code model is a plugin that uses clang's API to parse a > > source file and do checks over it, like missing headers. It does not > > requires clang headers.> > > What you saw is a project that needed a header not available in the > > system (or at least not for the selected toolchain). The same could > > happen if for example you install qtcreator but not qbase5-dev, and > > then you open a project that needs QString. > > Actually, the error is about missing `stddef.h` header which should be > available everywhere. > It happens with a simple program like this: > ``` > #include <stddef.h> > > int main() { > return 0; > } > ``` > > Using another computer with outdated packages, I noticed that: > > - When having qtcreator 4.10.2-2 and no `libclang-common-8-dev` package > installed, > a project with the above file in `main.cpp` configured to be compiled > using cmake and gcc-9, > the clang code model works fine, there is no highlighted errors. > When I do Ctrl+Click on the stddef.h header, qtcreator opens > /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h > > - After having upgraded qtcreator to 4.11.0-2, the code model now shows > the error > about missing `stddef.h` for the same project and configuration (cmake + > gcc-9). > When I do Ctrl+Click on the stddef.h header, despite being "not found", > qtcreator opens the same file: > /usr/lib/gcc/x86_64-linux-gnu/9/include/stddef.h. > > - If I downgrade qtcreator to 4.10.2-2 again, the error about `stddef.h` > not found goes away. > > I've attached a test project I used with gcc-9 compiler. > Great! Reopening and tagging accordingly. Thanks a lot for the follow up! >
[Message part 2 (text/html, inline)]
Added tag(s) upstream.
Request was from Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
to control@bugs.debian.org
.
(Fri, 28 Feb 2020 22:48:06 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Wed, 04 Mar 2020 17:48:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Wed, 04 Mar 2020 17:48:05 GMT) (full text, mbox, link).
Message #31 received at 952718@bugs.debian.org (full text, mbox, reply):
tag 952718 wontfix severity 952718 wishlist thanks Hi! According to the upstream bug this is a limitaion of using clang for the code model, as it can't parse gcc's headers. Forcing a dependency on clang headers means that Creator would be showing a different header than the one really used at compile time. This is problematic, as they might differ. As an example I use Creator for microcontrollers which might have very different definitions. It's not up to the package maintainers to tape over upstream limitations/bugs, and showing by default a wrong header is definitely not the right solution. I am so lowering the severity to wishlist and marking it as wontfix, as upstream does not seems to have plans to solve this issue, which is totally understandable.
Added tag(s) wontfix.
Request was from Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
to control@bugs.debian.org
.
(Wed, 04 Mar 2020 17:48:08 GMT) (full text, mbox, link).
Severity set to ‘wishlist’ from ‘normal’
Request was from Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
to control@bugs.debian.org
.
(Wed, 04 Mar 2020 17:48:08 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Wed, 04 Mar 2020 21:15:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexis Murzeau <amubtdx@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Wed, 04 Mar 2020 21:15:02 GMT) (full text, mbox, link).
Message #40 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi, I've a question about whether libclang1-X should depend on libclang-common-X-dev to always have the clang's builtin headers available when libclang is installed. A bit of context: QtCreator uses libclang for its code model. If clang's builtin headers are not available in the system, libclang will fail to find its builtin headers (like stddef.h) and might fail to parse code and flag "#include <stddef.h>" as an error because the header cannot be found (stddef.h is one of the builtin headers). This was reported to QtCreator's upstream in [2]. As seen in [0] and [1], libclang expect to have its builtin headers available to work correctly. While analyzing this bug, I found that kdevelop has the exact same issue as QtCreator. That is, if they are installed without the libclang's builtin headers, they both fail to parse "#include <stddef.h>" as libclang can't find it. Codelite is probably in the same case as it uses libclang too but I've not tested it. So, I'm thinking that libclang1-X should have a dependency on libclang-common-X-dev as it seems all users of libclang will likely need the builtin headers too. (For example, libclang1-8 should depend on libclang-common-8-dev). @LLVM Packaging Tream, what do you think about adding this dependency ? Thanks :) [0] http://lists.llvm.org/pipermail/cfe-dev/2018-April/057688.html [1] http://clang.llvm.org/docs/LibTooling.html#builtin-includes [2] https://bugreports.qt.io/browse/QTCREATORBUG-23451 -- Alexis Murzeau PGP: B7E6 0EBB 9293 7B06 BDBC 2787 E7BD 1904 F480 937F
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Wed, 04 Mar 2020 21:51:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Wed, 04 Mar 2020 21:51:02 GMT) (full text, mbox, link).
Message #45 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi! El mié., 4 mar. 2020 18:11, Alexis Murzeau <amubtdx@gmail.com> escribió: > Hi, > > I've a question about whether libclang1-X should depend on > libclang-common-X-dev to always have the clang's builtin headers > available when libclang is installed. > Definitely not. Headers should depend upon the library, not the other way around. >
[Message part 2 (text/html, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Wed, 04 Mar 2020 22:48:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexis Murzeau <amubtdx@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Wed, 04 Mar 2020 22:48:02 GMT) (full text, mbox, link).
Message #50 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Le 04/03/2020 à 22:46, Lisandro Damián Nicanor Pérez Meyer a écrit : > Hi! > > El mié., 4 mar. 2020 18:11, Alexis Murzeau <amubtdx@gmail.com> escribió: > >> Hi, >> >> I've a question about whether libclang1-X should depend on >> libclang-common-X-dev to always have the clang's builtin headers >> available when libclang is installed. >> > > Definitely not. Headers should depend upon the library, not the other way > around. > >> > Why do you think that ? My view on this is that libclang contains the compiler and the compiler needs the headers but the headers don't really need the compiler to be used. I agree that if you install the headers, you probably have to install clang to use them anyway. But actually, clang binaries (like clang-tidy) depends on libclang-common-X-dev which depends on libllvm (that one is different than libclang. libllvm is the backend of the compiler while libclang and clang are the frontend) So as of now, headers do not depends on libclang or clang, and clang depends on these headers but not libclang. clang also depends on libclang, as do QtCreator and kdevelop and other IDE using libclang. That's why I'm wondering if the dependency of clang-X => libclang-common-X-dev should be lifted to libclang1-X => libclang-common-X-dev. For clang, this would start from: clang-8 => libclang1-8 libclang-common-8-dev to: clang-8 => libclang1-8 => libclang-common-8-dev The description of libclang1-X is: The C Interface to Clang provides a relatively small API that exposes facilities for: - parsing source code into an abstract syntax tree (AST), - loading already-parsed ASTs, - traversing the AST, - associating physical source locations with elements within the AST, - and other facilities that support Clang-based development tools. Some of them (like the one using already parsed AST) might not need builtin headers, so it might be understandable to avoid a dependency from libclang1 to libclang-common-X-dev. binary rdepends on libclang1-{6.0,7,8} are: - doxygen - clang-X which also depends already on libclang-common-X-dev - clang-tools-X which also depends on clang - libclang-X-dev which also depends already on libclang-common-X-dev - bpftrace (high-level tracing language for Linux eBPF) - codelite (IDE for C, C++ and others) - gnat-ps (IDE for C and Ada) - gnome-builder which also depends on clang (IDE for C, C++ and others) - irony-server (Emacs C/C++ minor mode) - kdevelop which recommends clang (C/C++ IDE) - libclang-perl (libclang perl bindings) - qdoc-qt5 (tool to generate doc from C/C++ source files) - qtcreator which recommends clang (C/C++ IDE) - rtags which recommends libclang-common-X-dev (C/C++ client/server indexer with integration for Emacs) - shiboken2 (CPython bindings generator for C++ libraries) - ycmd which recommends libclang-common-X-dev (code-completion & comprehension server) So many of them uses libclang to parse C/C++ code, but only bpftrace do not I think (it parses the BPFTrace language instead which is based on C). If libclang1-X should not depend on libclang-common-X-dev, then users of libclang1-X (like QtCreator, kdevelop, ...) that use libclang to compile code from source should depend themselves on libclang-common-X-dev as it is required for them to work correctly. -- Alexis Murzeau PGP: B7E6 0EBB 9293 7B06 BDBC 2787 E7BD 1904 F480 937F
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Wed, 04 Mar 2020 23:06:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Wed, 04 Mar 2020 23:06:02 GMT) (full text, mbox, link).
Message #55 received at 952718@bugs.debian.org (full text, mbox, reply):
Hi again. On Wed, 4 Mar 2020 at 19:45, Alexis Murzeau <amubtdx@gmail.com> wrote: > > Le 04/03/2020 à 22:46, Lisandro Damián Nicanor Pérez Meyer a écrit : > > Hi! > > > > El mié., 4 mar. 2020 18:11, Alexis Murzeau <amubtdx@gmail.com> escribió: > > > >> Hi, > >> > >> I've a question about whether libclang1-X should depend on > >> libclang-common-X-dev to always have the clang's builtin headers > >> available when libclang is installed. > >> > > > > Definitely not. Headers should depend upon the library, not the other way > > around. > > > >> > > > > Why do you think that ? Because development files should depend upon the libraries they provide the headers for, not the other way around. It's the basics of library packaging. [snip] > If libclang1-X should not depend on libclang-common-X-dev, then users of > libclang1-X (like QtCreator, kdevelop, ...) that use libclang to compile > code from source should depend themselves on libclang-common-X-dev as it > is required for them to work correctly. And then again, wrong. Making an IDE show the header a compiler is **NOT** using it's plain **WRONG**. I already expressed that in the bug upstream and in Qt Creator's bug. Note that I did even stress the question in upstream's bug just to show that nobody could say otherwise. Neither Marko nor Thiago denied that. So if you want a fix make clang understand other compiler's headers, or provide a better code parser. Regards, Lisandro. -- Lisandro Damián Nicanor Pérez Meyer http://perezmeyer.com.ar/ http://perezmeyer.blogspot.com/
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Wed, 04 Mar 2020 23:45:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Nicholas D Steeves <nsteeves@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Wed, 04 Mar 2020 23:45:02 GMT) (full text, mbox, link).
Message #60 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi Lisandro, Out of curiosity, could this be solved for a Debian (and derivatives) context by changing the Recommends on clang and clang-tidy to their versioned package names (eg: clang-8 and clang-tidy-8)? Cheers, Nicholas
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Wed, 04 Mar 2020 23:51:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Wed, 04 Mar 2020 23:51:02 GMT) (full text, mbox, link).
Message #65 received at 952718@bugs.debian.org (full text, mbox, reply):
Hi! On Wed, 4 Mar 2020 at 20:40, Nicholas D Steeves <nsteeves@gmail.com> wrote: > > Hi Lisandro, > > Out of curiosity, could this be solved for a Debian (and derivatives) > context by changing the Recommends on clang and clang-tidy to their > versioned package names (eg: clang-8 and clang-tidy-8)? No, this is not a versioning problem. -- Lisandro Damián Nicanor Pérez Meyer http://perezmeyer.com.ar/ http://perezmeyer.blogspot.com/
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Thu, 05 Mar 2020 00:09:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexis Murzeau <amubtdx@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Thu, 05 Mar 2020 00:09:03 GMT) (full text, mbox, link).
Message #70 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Le 05/03/2020 à 00:03, Lisandro Damián Nicanor Pérez Meyer a écrit : > Hi again. > > On Wed, 4 Mar 2020 at 19:45, Alexis Murzeau <amubtdx@gmail.com> wrote: >> >> Le 04/03/2020 à 22:46, Lisandro Damián Nicanor Pérez Meyer a écrit : >>> Hi! >>> >>> El mié., 4 mar. 2020 18:11, Alexis Murzeau <amubtdx@gmail.com> escribió: >>> >>>> Hi, >>>> >>>> I've a question about whether libclang1-X should depend on >>>> libclang-common-X-dev to always have the clang's builtin headers >>>> available when libclang is installed. >>>> >>> >>> Definitely not. Headers should depend upon the library, not the other way >>> around. >>> >>>> >>> >> >> Why do you think that ? > > Because development files should depend upon the libraries they > provide the headers for, not the other way around. It's the basics of > library packaging. libclang-common-X-dev contains clang's builtin headers which are not the same as libclang API headers. clang's builtin headers are not the ones providing the API of libclang but compiler builtin functions like _mm_sqrt_ps using clang's specific functions like __builtin_ia32_sqrtps. The package that contains libclang's API headers is libclang-X-dev, not libclang-common-X-dev. So to sum up, clang has: - libclang-X-dev: libclang's API headers containing functions available in libclang to manipulate AST, compile code, ... (for example ASTMutationListener.h, CompilerInstance.h, CXCompilationDatabase.h, ...) - libc++-X-dev: clang's libc++ standard library headers (for example vector, unordered_map, ...) - libc6-dev: GNU C standard library headers (for example stdlib.h, stdio.h, ...) - libclang-common-X-dev: clang's builtin headers (for example, immintrin.h, stddef.h, x86intrin.h, ...) And there is also libllvm API headers: - libllvm-X-dev: llvm's API headers (for example IRReader.h, LinkTimeOptimizer.h, ...) > > [snip] >> If libclang1-X should not depend on libclang-common-X-dev, then users of >> libclang1-X (like QtCreator, kdevelop, ...) that use libclang to compile >> code from source should depend themselves on libclang-common-X-dev as it >> is required for them to work correctly. > > And then again, wrong. Making an IDE show the header a compiler is > **NOT** using it's plain **WRONG**. I already expressed that in the > bug upstream and in Qt Creator's bug. Note that I did even stress the > question in upstream's bug just to show that nobody could say > otherwise. Neither Marko nor Thiago denied that. This may be wrong, but having parse errors because of issues like "fatal error: 'stddef.h' file not found" is not better. It makes qtcreator's code model to fail to parse code, which is one of the key feature of an IDE like this. It's better have the IDE use clang's builtin headers than not being able to parse code because of missing builtin headers. > > So if you want a fix make clang understand other compiler's headers, > or provide a better code parser. Currently, whatever if this is right or wrong, the only way to fix "fatal error: 'stddef.h' file not found" when using qtcreator or kdevelop on Debian is to install the appropriate libclang-common-X-dev. The toolchain used to parse the code model for qtcreator and the toolchain used to actually compile the code can be different, but that doesn't matter because clang already provide the appropriate *builtin* headers to make other compilers specific functions also available with clang. For example, gcc provides the non standard function _get_ssp available from immintrin.h [0], clang also does provide it in cetintrin.h builtin header which is included by its own immintrin.h builtin header. MSVC provides _InterlockedCompareExchange_HLEAcquire function (which is specific to MSVC as said in [1]), clang also provides it in the same immintrin.h builtin header (even on linux, these builtin headers are in libclang-common-X-dev package. Or maybe guarded with some #ifdef). So while clang support other compilers specifics, it still needs to have its matching *builtin* headers (which are mostly only intrinsics or platform specific stuff) as builtin headers of each compilers are probably highly specific to the compiler they are made for (which are different from API headers or C and C++ standard library headers). > > Regards, Lisandro. > > [0] https://gcc.gnu.org/onlinedocs/gcc/x86-control-flow-protection-intrinsics.html#x86-control-flow-protection-intrinsics [1] https://docs.microsoft.com/fr-fr/cpp/intrinsics/interlockedcompareexchange-intrinsic-functions?view=vs-2019 -- Alexis Murzeau PGP: B7E6 0EBB 9293 7B06 BDBC 2787 E7BD 1904 F480 937F
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Thu, 05 Mar 2020 00:15:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Nicholas D Steeves <nsteeves@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Thu, 05 Mar 2020 00:15:02 GMT) (full text, mbox, link).
Message #75 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi Lisandro, Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com> writes: > Hi! > > On Wed, 4 Mar 2020 at 20:40, Nicholas D Steeves <nsteeves@gmail.com> wrote: >> >> Hi Lisandro, >> >> Out of curiosity, could this be solved for a Debian (and derivatives) >> context by changing the Recommends on clang and clang-tidy to their >> versioned package names (eg: clang-8 and clang-tidy-8)? > > No, this is not a versioning problem. > I agree, ideally it should be solved upstream, but a side-effect of installing Recommends s/clang/clang-8/ is that it pulls in a dependency on libclang-common-8-dev, and Alexis Murzeau <amubtdx@gmail.com> writes: > Install `qtcreator` but not the `libclang-common-8-dev` package > Note: Installing `clang` package will install `clang-9` and not `clang-8`. > [snip] > > When installing the `libclang-common-8-dev` package, the clang code > model error goes away and no error is reported anymore. > [snip] > > I expect the clang code model to work out of the box with all depends > and recommends dependencies of `qtcreator`. > As of now, `libclang-common-8-dev` seems required by the clang code > model to work correctly, but that package is not a direct or indirect > dependency of `qtcreator`. > > The simplest solution (if it is the right one) is to add > `libclang-common-8-dev` as depends or recommends dependency to qtcreator. > Or maybe it should be a dependency of `libclang1-8` instead (which > qtcreator depends on). > My proposal would solve the Debian (and derivatives) case and is easy to update/maintain with a sed regex. Is our team categorically opposed to working around upstream issues using Debian packaging facilities? Thanks, Nicholas
[signature.asc (application/pgp-signature, inline)]
Added tag(s) fixed-upstream.
Request was from debian-bts-link@lists.debian.org
to control@bugs.debian.org
.
(Thu, 05 Mar 2020 18:21:16 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Sat, 14 Mar 2020 11:48:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexis Murzeau <amubtdx@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Sat, 14 Mar 2020 11:48:05 GMT) (full text, mbox, link).
Message #82 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi, Le 05/03/2020 à 01:12, Nicholas D Steeves a écrit : > Hi Lisandro, > > Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com> writes: > >> Hi! >> >> On Wed, 4 Mar 2020 at 20:40, Nicholas D Steeves <nsteeves@gmail.com> wrote: >>> >>> Hi Lisandro, >>> >>> Out of curiosity, could this be solved for a Debian (and derivatives) >>> context by changing the Recommends on clang and clang-tidy to their >>> versioned package names (eg: clang-8 and clang-tidy-8)? >> >> No, this is not a versioning problem. >> > > I agree, ideally it should be solved upstream, but a side-effect of > installing Recommends s/clang/clang-8/ is that it pulls in a dependency > on libclang-common-8-dev, and > [...]> > My proposal would solve the Debian (and derivatives) case and is easy to > update/maintain with a sed regex. Is our team categorically opposed to > working around upstream issues using Debian packaging facilities? > When the recommends on clang was added, the changelog got this: ``` * Make qtcreator recommend clang, as it has added quite interesting tools that use it. ``` So I think the recommends is just a way so the user has recommended tools available to qtcreator the same way `make` is recommended to build a C/C++ project. This is only a recommendation as the user may not want to use clang stuff and just use, say, gcc and ninja instead for example. I still think there should be a Depends (not Recommends) on libclang-common-8-dev instead somewhere. (that is, directly from qtcreator or indirectly) This to ensure the clang code model of QtCreator (and perhaps other IDEs that use it) works correctly and find its *builtin headers*. Again, I emphasis on builtin headers as I do not talk about API headers here; libclang's API headers are in a different package: libclang-8-dev. See also my previous mail: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=952718#70 @Lisandro, what do you think now given we were not talking about the same headers before ? -- Alexis Murzeau PGP: B7E6 0EBB 9293 7B06 BDBC 2787 E7BD 1904 F480 937F
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Sat, 14 Mar 2020 11:57:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Sylvestre Ledru <sylvestre@debian.org>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Sat, 14 Mar 2020 11:57:04 GMT) (full text, mbox, link).
Message #87 received at 952718@bugs.debian.org (full text, mbox, reply):
Le 14/03/2020 à 12:45, Alexis Murzeau a écrit : > > I still think there should be a Depends (not Recommends) on > libclang-common-8-dev instead somewhere. (that is, directly from > qtcreator or indirectly) What is wrong with this solution? Sorry if I missed a potential answer for this question. S
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Sat, 14 Mar 2020 15:03:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexis Murzeau <amubtdx@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Sat, 14 Mar 2020 15:03:02 GMT) (full text, mbox, link).
Message #92 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Le 14/03/2020 à 12:54, Sylvestre Ledru a écrit : > Le 14/03/2020 à 12:45, Alexis Murzeau a écrit : >> >> I still think there should be a Depends (not Recommends) on >> libclang-common-8-dev instead somewhere. (that is, directly from >> qtcreator or indirectly) > What is wrong with this solution? > > Sorry if I missed a potential answer for this question. > > S QtCreator's code model uses libclang-8. If libclang-common-8-dev is not installed, QtCreator's code model won't find some includes like <stddef.h> and highlight many false positive errors in its editor. This makes QtCreator's code model not fully working if libclang-common-8-dev is not installed (that's why I would expect a Depends instead of Recommends). Installing the full clang-8 toolchain is overkill to me as only libclang-common-8-dev is really needed to make the code model work fine, and libclang-common-8-dev is rather small compared to the full clang compiler. I think the current clang Recommends is for the static analyzer given this upstream commit bundling clang.exe for Windows: https://github.com/qt-creator/qt-creator/commit/d02e80b87bc423f0ccb696c1b10378a74758a432 "Deploy clang binary for use by static analyzer" -- Alexis Murzeau PGP: B7E6 0EBB 9293 7B06 BDBC 2787 E7BD 1904 F480 937F
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Sat, 14 Mar 2020 18:00:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Sat, 14 Mar 2020 18:00:05 GMT) (full text, mbox, link).
Message #97 received at 952718@bugs.debian.org (full text, mbox, reply):
Hi! I have discussed this with KDevelop's maintainer. As Alexis states the code parser will not work with c++ projects if the clang headers are not there. On the other hand if the c++ project is using gcc instead of clang to build the wrong headers would be displayed (even if the headers are meant to track gcc's ones, they are still not the originals). Following the same criterion as for another dependencies: Qt Creator is not *just* a C++ IDE, so anyone wanting to add the relevant headers should either install Recommends by default or proceed to install them by hand. Ideally we should be able to depend upon the same clang/llvm version qtcreator was built with, without having to resort to regular expressions or alike to modify debian/control on each upload. I have not checked if this is doable yet, but will try to do it. I expect the fix to be present in the next Qt Creator version I'll be pushing to unstable, for which I do not have an ETA due to lack of time. Kinds regards, Lisandro.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Fri, 03 Apr 2020 12:21:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Fri, 03 Apr 2020 12:21:05 GMT) (full text, mbox, link).
Message #102 received at 952718@bugs.debian.org (full text, mbox, reply):
Package: qtcreator Version: 4.11.0-2 Followup-For: Bug #952718 i just wasted about half an hour on researching this, so i'll summarize my current understanding: libclang-N needs to depend on libclang-common-N-dev, as otherwise it's dysfunctional. failing that, qtcreator needs to recommend libclang-common-N-dev. this could be upgraded to depends if the clang-related plugins incl. libclangsupport are factored out to a separate qtcreator sub-package which qtcreator recommends. alternatively, this approach could be used to isolate the libclang-N dependency itself. that qtcreator's code model technically uses the wrong headers is correct, but orthogonal to the issue, and usually not problematic (which is why the approach was deemed accepatable in the first place).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Sat, 04 Apr 2020 12:24:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Sat, 04 Apr 2020 12:24:02 GMT) (full text, mbox, link).
Message #107 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi! Just for the record, I haven't went ahead with this because I'm still very time constrained, covid-19 is not precisely helping with that.
[Message part 2 (text/html, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Sat, 04 Apr 2020 15:33:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Adam Majer <adamm@zombino.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Sat, 04 Apr 2020 15:33:03 GMT) (full text, mbox, link).
Message #112 received at 952718@bugs.debian.org (full text, mbox, reply):
On 2020-04-04 2:20 p.m., Lisandro Damián Nicanor Pérez Meyer wrote: > Hi! Just for the record, I haven't went ahead with this because I'm still very time constrained, > covid-19 is not precisely helping with that. Maybe a good idea here would be to split off the clang code model plugin into a seperate package so that these dependencies can be tracked a little more easily without putting all the dependencies onto the one master package. There are lots of people that would be using Qt Creator without the need for clang code model, for example. Would this be something worth considering? - Adam
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
:
Bug#952718
; Package qtcreator
.
(Sat, 04 Apr 2020 15:42:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Lisandro Damián Nicanor Pérez Meyer <perezmeyer@gmail.com>
:
Extra info received and forwarded to list. Copy sent to Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
.
(Sat, 04 Apr 2020 15:42:05 GMT) (full text, mbox, link).
Message #117 received at 952718@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Hi! El sáb., 4 abr. 2020 12:22, Adam Majer <adamm@zombino.com> escribió: > On 2020-04-04 2:20 p.m., Lisandro Damián Nicanor Pérez Meyer wrote: > > Hi! Just for the record, I haven't went ahead with this because I'm > still very time constrained, > > covid-19 is not precisely helping with that. > > Maybe a good idea here would be to split off the clang code model plugin > into a seperate package so > that these dependencies can be tracked a little more easily without > putting all the dependencies > onto the one master package. There are lots of people that would be using > Qt Creator without the > need for clang code model, for example. Would this be something worth > considering? > I don't think it will make the packaging easier, but if people find a separate package useful then I'm all for it. >
[Message part 2 (text/html, inline)]
Added tag(s) pending.
Request was from Pino Toscano <pino@debian.org>
to control@bugs.debian.org
.
(Wed, 19 Aug 2020 13:21:04 GMT) (full text, mbox, link).
Reply sent
to Pino Toscano <pino@debian.org>
:
You have taken responsibility.
(Wed, 19 Aug 2020 17:21:08 GMT) (full text, mbox, link).
Notification sent
to Alexis Murzeau <amubtdx@gmail.com>
:
Bug acknowledged by developer.
(Wed, 19 Aug 2020 17:21:08 GMT) (full text, mbox, link).
Message #124 received at 952718-close@bugs.debian.org (full text, mbox, reply):
Source: qtcreator Source-Version: 4.12.4-1 Done: Pino Toscano <pino@debian.org> We believe that the bug you reported is fixed in the latest version of qtcreator, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 952718@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Pino Toscano <pino@debian.org> (supplier of updated qtcreator package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Wed, 19 Aug 2020 19:00:23 +0200 Source: qtcreator Architecture: source Version: 4.12.4-1 Distribution: unstable Urgency: medium Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org> Changed-By: Pino Toscano <pino@debian.org> Closes: 919860 952718 966007 966169 Changes: qtcreator (4.12.4-1) unstable; urgency=medium . * Team upload. * New upstream release. * Use the default LLVM/clang Debian versions, rather than hardcoding 8. Hopefully qtcreator will properly support newer LLVM versions fast enough. (Closes: #966007) - switch the libclang-8-dev build dependency to libclang-dev >= 8 - switch the llvm-8-dev build dependency to llvm-dev >= 8 - get the LLVM root using llvm-config * Switch the generic clang recommend to a dependency of the exact clang-N used to build (Closes: #919860, #952718) (LP: #1890434, #1877927) - add the clang build dependency to get the used clang executable * Drop the Debian man page, as it is outdated, and it offers no useful information. * Force the version of libqt5designercomponents5 as dependency to be at least the same as used during the build. (Closes: #966169) * Remove the kate-data suggest, as it does not exist anymore; syntax highlighting files are already provided by KF5SyntaxHighlighting. Checksums-Sha1: b64d28cf04c425add5db926b4cb35a3bea450091 2880 qtcreator_4.12.4-1.dsc 6ae0934654c8dc0065b2104e6a43e8ef72f8bda3 34347508 qtcreator_4.12.4.orig.tar.xz 2eb9c91914b5dcb28ae1c36dfdb58ff159d77f2f 27440 qtcreator_4.12.4-1.debian.tar.xz 2b2402bc4fdeb6cb27fa02d3e4bbaba2e7b91080 13786 qtcreator_4.12.4-1_source.buildinfo Checksums-Sha256: d162b21f15d8c6eb56c4465f2c599ac7c7bf639d1d29820189c90ca0ba4ee412 2880 qtcreator_4.12.4-1.dsc 3f47d83344476b172f0c51a2351f5a9d8ce8dd8dd2eea827a52276763471b97a 34347508 qtcreator_4.12.4.orig.tar.xz a38fb9c04c9522514f83bf5042d8a4a16174f0b82ca97c7d7e6e714ef089e82c 27440 qtcreator_4.12.4-1.debian.tar.xz 062bd505acd39d6ce55cfa3b98d53f34392084a59b7d29ba018036649c405d34 13786 qtcreator_4.12.4-1_source.buildinfo Files: 7257d6c32c8d8b700a0ea4c97b985f1a 2880 devel optional qtcreator_4.12.4-1.dsc 5b539c03bdf807866e2383d7180871dc 34347508 devel optional qtcreator_4.12.4.orig.tar.xz e2c106e162ed668632c68948d551aa7f 27440 devel optional qtcreator_4.12.4-1.debian.tar.xz 657eb4372e5ae69fbf3d0713dad37d50 13786 devel optional qtcreator_4.12.4-1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEXyqfuC+mweEHcAcHLRkciEOxP00FAl89WuMACgkQLRkciEOx P00SmA/+L7Ej10Hp1BQNMY1362/EltcSq8Hj0WNpws57GNujbkDfjJWCGq65zqIe 3pCfKiGm55OBawWJqOMKFPAtUbjQwBgr9zTb6Jn8Y7WugIfFDYszzzpg2PwNFonL ISg0i8lyigKVaBLnHdi6w/QtsC0mmWgQMFPmk/zMOE5jjw4dn0cyy/YYdpEPZWV9 HV6y6hx4SlXPiIBcr2UDJAryobpElA1sUSjax2O0Ny5c1yMXvuY3vUNM/z/CB7Zi /jJOGAFz9ETbSfF05c4PfDiTx/AJgc4850dWDKjCatkdF+euhVWHQaW4LE/x/+5/ yYYYKojkYPu/m7Hhef85TNCO0RKMKRzJ2JzE9gS+RkvzQ7yQuR4jVMxR4zZyBxgi keUAvAbTxU903mW76zx1l7+1sgLKvEztGbAN8zT6hBZNEu5jbSlZpE3zxzJkDZcn rYFs6YN0L4/BOVbAaAB9ZbQZu8f+Z6vbrCK0iciKtcj1uBXl66PFmzVjBZEqI6ec p3BEH/9cQ9P838ozG8EJtY717DGQzsrozoYlX6Z1Kxua1utMPQ+jyqnXkCKzQk0w RvbOotM07U6QefXNIMUYG7gKaHbeXL7eX3ol/FcwPntPLgDSxEAI5tdjTaXsU491 RO0oL+4EKpBTzOspOD8WLRoejzIajHzidbv8VGDR+JpEbh5hn0A= =k4SO -----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org
.
(Wed, 23 Sep 2020 07:26:00 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Thu Feb 9 09:33:13 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.