Opened 6 years ago

Closed 6 years ago

#58424 closed defect (fixed)

qt5-qtcreator fails to build on Mojave with Xcode-10.2.1 because 'qtprofilesetup.h' file is not found

Reported by: fu7mu4 (fu7mu4) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: qt5-qtcreator

Description

This defect is similar to #58418 but the log of this port log says fatal error: 'qtprofilesetup.h' file not found

MacOS Mojave 10.14.4, Xcode-10.2.1, current Macports. Rebuilding of qt5-qtcreator fails: sudo port -d rev-upgrade

qbsprojectmanager.cpp:49:10: fatal error: 'qtprofilesetup.h' file not found
#include <qtprofilesetup.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [.obj/release-shared/qbsprojectmanager.o] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.8.2/src/plugins/qbsprojectmanager'
make[2]: *** [sub-qbsprojectmanager-all] Error 2
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.8.2/src/plugins'
make[1]: *** [sub-plugins-all-ordered] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.8.2/src'
make: *** [sub-src-all-ordered] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.8.2'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.8.2" && /usr/bin/make -w all
Exit code: 2
Error: Failed to build qt5-qtcreator: command execution failed
DEBUG: Error code: CHILDSTATUS 79791 2
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$nice $fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/main.log for details.
DEBUG: Registry error: qt59-qtbase not registered as installed & active.
DEBUG: Rebuilding port qt5-qtcreator finished with status 1
DEBUG: rev-upgrade failed: Error rebuilding qt5-qtcreator
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 445)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    ("uplevel" body line 3)
    invoked from within
"uplevel 1 $body"
Error: rev-upgrade failed: Error rebuilding qt5-qtcreator
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

Attachments (1)

main.log.gz (244.1 KB) - added by fu7mu4 (fu7mu4) 6 years ago.
build log for qt-qtcreator, the size of original main.log is 13MB

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by fu7mu4 (fu7mu4)

Attachment: main.log.gz added

build log for qt-qtcreator, the size of original main.log is 13MB

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Owner: set to MarcusCalhoun-Lopez
Status: newassigned

comment:2 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

This seems to be a result of the recent update of Qbs, which removed this file.
Instead of trying to fix this version of Qt Creator, I will see if the upgrading to version 4.9 fixes the issue.

comment:3 Changed 6 years ago by kencu (Ken)

FYI a simple version/checksum bump to 4.9.0 results in build & install success on Mojave:

$ port -v installed qt5-qtcreator
The following ports are currently installed:
  qt5-qtcreator @4.9.0_0 (active) platform='darwin 18' archs='x86_64' date='2019-05-02T11:41:40-0700'

comment:4 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: fixed
Status: assignedclosed

In 3bf3d883ef4d559503b31c43f8ac52359a3db708/macports-ports (master):

qt5-qtcreator: update version 4.8.2->4.9.0

Fixes #58424

Note: See TracTickets for help on using tickets.