introspectableInterface.cpp+automoc build failure #17

Closed
opened 1 year ago by Ray-V · 7 comments
Ray-V commented 1 year ago
Collaborator

Building to master, commit f5df7ad, gives this failure.

[ 19%] Generating objectmanagerInterface.h, objectmanagerProxy.h, introspectableInterface.h, objectmanagerInterface.cpp, objectmanagerProxy.cpp, introspectableInterface.cpp
cd /tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces && dbusxml2qt3 /tmp/build/tmp-tdebluez/tdebluez/src/interfaces/org.freedesktop.DBus.ObjectManager.xml 2>/dev/null
    Successfully remade target file 'src/libtdebluez/interfaces/objectmanagerInterface.h'.
  Must remake target 'src/libtdebluez/interfaces/introspectableInterface.cpp'.
  Successfully remade target file 'src/libtdebluez/interfaces/introspectableInterface.cpp'.
   File 'src/libtdebluez/interfaces/introspectableInterface.cpp+automoc' does not exist.
  Must remake target 'src/libtdebluez/interfaces/introspectableInterface.cpp+automoc'.
[ 19%] Automocing src/libtdebluez/interfaces/introspectableInterface.cpp
cd /tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces && /usr/bin/cmake -DTMOC_EXECUTABLE:FILEPATH=/opt/tde/bin/tmoc -DSRC_FILE:FILEPATH=/tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces/introspectableInterface.cpp -DMETA_INCLUDES:STRING="" -DMASTER_SOURCE_DIR:FILEPATH=/tmp/build/tmp-tdebluez/tdebluez -DMASTER_BINARY_DIR:FILEPATH=/tmp/build/tmp-tdebluez/tdebluez/build-tdebluez -P /tmp/build/tmp-tdebluez/tdebluez/cmake/modules/tde_automoc.cmake
CMake Error at /tmp/build/tmp-tdebluez/tdebluez/cmake/modules/TDEMacros.cmake:74 (message):
  #################################################

   AUTOMOC error: '/tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces/introspectableInterface.cpp' not found!

  #################################################

This occurs from commit c6b84c6 - building to commit 65f7663 is ok with the patch in PR 16.

I don't understand what's happening - on the one hand:
Successfully remade target file 'src/libtdebluez/interfaces/introspectableInterface.cpp'.
but then it can't be found, re: AUTOMOC error:
which is correct, it doesn't exist.

Other +automoc files have been built:

build-tdebluez/src/libtdebluez/interfaces/device1Proxy.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/agent1Proxy.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/gattmanager1Interface.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/adapter1Interface.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/agentmanager1Interface.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/dbusbaseNode.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/healthmanager1Proxy.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/gattmanager1Proxy.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/adapter1Proxy.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/device1Interface.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/healthmanager1Interface.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/agent1Interface.cpp+automoc
build-tdebluez/src/libtdebluez/interfaces/agentmanager1Proxy.cpp+automoc
Building to master, commit f5df7ad, gives this failure. ``` [ 19%] Generating objectmanagerInterface.h, objectmanagerProxy.h, introspectableInterface.h, objectmanagerInterface.cpp, objectmanagerProxy.cpp, introspectableInterface.cpp cd /tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces && dbusxml2qt3 /tmp/build/tmp-tdebluez/tdebluez/src/interfaces/org.freedesktop.DBus.ObjectManager.xml 2>/dev/null Successfully remade target file 'src/libtdebluez/interfaces/objectmanagerInterface.h'. Must remake target 'src/libtdebluez/interfaces/introspectableInterface.cpp'. Successfully remade target file 'src/libtdebluez/interfaces/introspectableInterface.cpp'. File 'src/libtdebluez/interfaces/introspectableInterface.cpp+automoc' does not exist. Must remake target 'src/libtdebluez/interfaces/introspectableInterface.cpp+automoc'. [ 19%] Automocing src/libtdebluez/interfaces/introspectableInterface.cpp cd /tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces && /usr/bin/cmake -DTMOC_EXECUTABLE:FILEPATH=/opt/tde/bin/tmoc -DSRC_FILE:FILEPATH=/tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces/introspectableInterface.cpp -DMETA_INCLUDES:STRING="" -DMASTER_SOURCE_DIR:FILEPATH=/tmp/build/tmp-tdebluez/tdebluez -DMASTER_BINARY_DIR:FILEPATH=/tmp/build/tmp-tdebluez/tdebluez/build-tdebluez -P /tmp/build/tmp-tdebluez/tdebluez/cmake/modules/tde_automoc.cmake CMake Error at /tmp/build/tmp-tdebluez/tdebluez/cmake/modules/TDEMacros.cmake:74 (message): ################################################# AUTOMOC error: '/tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces/introspectableInterface.cpp' not found! ################################################# ``` This occurs from commit c6b84c6 - building to commit 65f7663 is ok with the patch in PR 16. I don't understand what's happening - on the one hand: ` Successfully remade target file 'src/libtdebluez/interfaces/introspectableInterface.cpp'.` but then it can't be found, re:` AUTOMOC error:` which is correct, it doesn't exist. Other `+automoc` files have been built: ``` build-tdebluez/src/libtdebluez/interfaces/device1Proxy.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/agent1Proxy.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/gattmanager1Interface.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/adapter1Interface.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/agentmanager1Interface.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/dbusbaseNode.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/healthmanager1Proxy.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/gattmanager1Proxy.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/adapter1Proxy.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/device1Interface.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/healthmanager1Interface.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/agent1Interface.cpp+automoc build-tdebluez/src/libtdebluez/interfaces/agentmanager1Proxy.cpp+automoc ```
SlavekB commented 1 year ago
Owner

I switched building from ninja-build to classic Makefiles, but I'm not able to reproduce the problem. I tried to reduce and increase the number of parallel builds, but it always ended successfully.

Wondering what else could I try?

I switched building from ninja-build to classic Makefiles, but I'm not able to reproduce the problem. I tried to reduce and increase the number of parallel builds, but it always ended successfully. Wondering what else could I try?
Ray-V commented 1 year ago
Poster
Collaborator

If I clear the src/libtdebluez/interfaces build directory except for Makefile and CMakeFiles/, and within that run :
dbusxml2qt3 /tmp/build/tmp-tdebluez/tdebluez/src/interfaces/org.freedesktop.DBus.ObjectManager.xml
I get:

[2023/04/07 20:45:25.042] ClassGenerator: processing interface 'org.freedesktop.DBus.Introspectable'
[2023/04/07 20:45:25.042] ClassGenerator: processing interface 'org.freedesktop.DBus.ObjectManager'

/tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces# ls -1
CMakeFiles/
Makefile
objectmanagerInterface.cpp
objectmanagerInterface.h
objectmanagerProxy.cpp
objectmanagerProxy.h

so although there's no error message, the introspectable files are not being created.

If I comment out the Introspectable interface section in org.freedesktop.DBus.ObjectManager.xml,
that is, revert the part of commit c6b84c6 relating to org.freedesktop.DBus.ObjectManager.xml,
then introspectableInterface.cpp is built:

dbusxml2qt3 /tmp/build/tmp-tdebluez/tdebluez/src/interfaces/org.freedesktop.DBus.ObjectManager.xml
[2023/04/07 21:22:40.442] ClassGenerator: processing interface 'org.freedesktop.DBus.ObjectManager'
[2023/04/07 21:22:40.444] Generating org.freedesktop.DBus.Introspectable on demand

/tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces# ls -1
CMakeFiles/
Makefile
introspectableInterface.cpp
introspectableInterface.h
objectmanagerInterface.cpp
objectmanagerInterface.h
objectmanagerProxy.cpp
objectmanagerProxy.h

With that hack, the build is successful, so until I can find out why it doesn't work otherwise, I'll go with that.

tdebluez runs from a konsole
and tdebluezauth with this message ...

[2023/04/08 20:51:50.366] Requesting name org.trinitydesktop.tdebluez failed. The object will only be addressable through unique name ':1.17'
[2023/04/08 20:51:50.366] TQSocketNotifier: Multiple socket notifiers for same socket 10 and type read

so at least they're not crashing.

Clicking on the panel icon opens a konqueror window:

Location: bluetooth:/
Pane:     An error occurred while loading bluetooth:/:

          Unknown error code 50
          No adapter found
          Please send a full bug report at http://bugs.trinitydesktop.org.

There is no adapter connected, so will have to wait to see what happens when I get one.

If I clear the `src/libtdebluez/interfaces` build directory except for Makefile and CMakeFiles/, and within that run : `dbusxml2qt3 /tmp/build/tmp-tdebluez/tdebluez/src/interfaces/org.freedesktop.DBus.ObjectManager.xml` I get: ``` [2023/04/07 20:45:25.042] ClassGenerator: processing interface 'org.freedesktop.DBus.Introspectable' [2023/04/07 20:45:25.042] ClassGenerator: processing interface 'org.freedesktop.DBus.ObjectManager' /tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces# ls -1 CMakeFiles/ Makefile objectmanagerInterface.cpp objectmanagerInterface.h objectmanagerProxy.cpp objectmanagerProxy.h ``` so although there's no error message, the `introspectable` files are not being created. If I comment out the Introspectable interface section in org.freedesktop.DBus.ObjectManager.xml, that is, revert the part of commit c6b84c6 relating to org.freedesktop.DBus.ObjectManager.xml, then introspectableInterface.cpp is built: ``` dbusxml2qt3 /tmp/build/tmp-tdebluez/tdebluez/src/interfaces/org.freedesktop.DBus.ObjectManager.xml [2023/04/07 21:22:40.442] ClassGenerator: processing interface 'org.freedesktop.DBus.ObjectManager' [2023/04/07 21:22:40.444] Generating org.freedesktop.DBus.Introspectable on demand /tmp/build/tmp-tdebluez/tdebluez/build-tdebluez/src/libtdebluez/interfaces# ls -1 CMakeFiles/ Makefile introspectableInterface.cpp introspectableInterface.h objectmanagerInterface.cpp objectmanagerInterface.h objectmanagerProxy.cpp objectmanagerProxy.h ``` With that hack, the build is successful, so until I can find out why it doesn't work otherwise, I'll go with that. tdebluez runs from a konsole and tdebluezauth with this message ... ``` [2023/04/08 20:51:50.366] Requesting name org.trinitydesktop.tdebluez failed. The object will only be addressable through unique name ':1.17' [2023/04/08 20:51:50.366] TQSocketNotifier: Multiple socket notifiers for same socket 10 and type read ``` so at least they're not crashing. Clicking on the panel icon opens a konqueror window: ``` Location: bluetooth:/ Pane: An error occurred while loading bluetooth:/: Unknown error code 50 No adapter found Please send a full bug report at http://bugs.trinitydesktop.org. ``` There is no adapter connected, so will have to wait to see what happens when I get one.
Owner

Clicking on the panel icon opens a konqueror window:

That is left click. Try right click for further settings/options

> Clicking on the panel icon opens a konqueror window: That is left click. Try right click for further settings/options
Collaborator

With that hack, the build is successful, so until I can find out why it doesn't work otherwise, I'll go with that.

Did you build dbusxml2qt3 from latest git? Because we corrected this just few weeks ago.

tdebluez runs from a konsole
and tdebluezauth with this message ...

[2023/04/08 20:51:50.366] Requesting name org.trinitydesktop.tdebluez failed. The object will only be addressable through unique name ':1.17'
[2023/04/08 20:51:50.366] TQSocketNotifier: Multiple socket notifiers for same socket 10 and type read

so at least they're not crashing.

But both of them do not have anything to do with each other on the dbus level.
Did you check if previous instance is already running?

Clicking on the panel icon opens a konqueror window:

Location: bluetooth:/
Pane:     An error occurred while loading bluetooth:/:

          Unknown error code 50
          No adapter found
          Please send a full bug report at http://bugs.trinitydesktop.org.

There is no adapter connected, so will have to wait to see what happens when I get one.

We did not have time to implement working tdeio implementation and my knowledge is limited in this area.

Sorry for answering that late, but I was away for holidays. Also thank you for testing and delivering fixes.

> With that hack, the build is successful, so until I can find out why it doesn't work otherwise, I'll go with that. > Did you build dbusxml2qt3 from latest git? Because we corrected this just few weeks ago. > tdebluez runs from a konsole > and tdebluezauth with this message ... > ``` > [2023/04/08 20:51:50.366] Requesting name org.trinitydesktop.tdebluez failed. The object will only be addressable through unique name ':1.17' > [2023/04/08 20:51:50.366] TQSocketNotifier: Multiple socket notifiers for same socket 10 and type read > ``` > so at least they're not crashing. But both of them do not have anything to do with each other on the dbus level. Did you check if previous instance is already running? > > Clicking on the panel icon opens a konqueror window: > ``` > Location: bluetooth:/ > Pane: An error occurred while loading bluetooth:/: > > Unknown error code 50 > No adapter found > Please send a full bug report at http://bugs.trinitydesktop.org. > ``` > There is no adapter connected, so will have to wait to see what happens when I get one. > We did not have time to implement working tdeio implementation and my knowledge is limited in this area. Sorry for answering that late, but I was away for holidays. Also thank you for testing and delivering fixes.
SlavekB commented 1 year ago
Owner

Yes, now it makes sense. You need build dbus-1-tqt first to contain TDE/dbus-1-tqt#31.

Yes, now it makes sense. You need build dbus-1-tqt first to contain TDE/dbus-1-tqt#31.
Ray-V commented 1 year ago
Poster
Collaborator

Thanks - fixed by updating dbus-1-tqt.

Thanks - fixed by updating dbus-1-tqt.
Ray-V closed this issue 1 year ago
SlavekB added this to the R14.1.0 release milestone 1 year ago
MicheleC removed this from the R14.1.0 release milestone 1 year ago
MicheleC added the ST/invalid label 1 year ago
Owner

I have removed this issue from R14.1.0 milestone and marked it as invalid, since in reality there was no issue, just a wrong order of building across updates.

I have removed this issue from R14.1.0 milestone and marked it as invalid, since in reality there was no issue, just a wrong order of building across updates.
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdebluez#17
Loading…
There is no content yet.