Opened 6 years ago

Closed 5 years ago

#58418 closed defect (worksforme)

qt5-qtcreator fails to build on Mojave with Xcode-10.2.1

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

Description

MacOS Mojave 10.14.4, Xcode-10.2.1, current Macports.

Rebuilding of qt5-qtcreator fails:

The following ports will be rebuilt: qt5-qtcreator @4.8.2
Continue? [Y/n]: y
--->  Computing dependencies for qt5-qtcreator
--->  Cleaning qt5-qtcreator
--->  Scanning binaries for linking errors
--->  Found 1 broken file, matching files to ports       
--->  Found 1 broken port, determining rebuild order
--->  Rebuilding in order
     qt5-qtcreator @4.8.2 
--->  Computing dependencies for qt5-qtcreator
--->  Fetching distfiles for qt5-qtcreator
--->  Verifying checksums for qt5-qtcreator
--->  Extracting qt5-qtcreator
--->  Applying patches to qt5-qtcreator
--->  Configuring qt5-qtcreator
--->  Building qt5-qtcreator
Error: Failed to build qt5-qtcreator: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/main.log for details.
Error: rev-upgrade failed: Error rebuilding qt5-qtcreator
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
$

Full log attached.

Attachments (3)

qt5-qtcreator.log.txt (1.8 MB) - added by mouse07410 (Mouse) 6 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/main.log
main.log.zip (243.4 KB) - added by mouse07410 (Mouse) 6 years ago.
New log
main2.log (1.8 MB) - added by mouse07410 (Mouse) 6 years ago.
for 4.9.0: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/main.log

Change History (31)

Changed 6 years ago by mouse07410 (Mouse)

Attachment: qt5-qtcreator.log.txt added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/main.log

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

Cc: mcalhoun@… removed
Owner: set to MarcusCalhoun-Lopez
Status: newassigned

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

The error seems to be

:info:build make[2]: write error

I am unable to reproduce this.
Depending what is causing the write error, this might be an issue with the machine you are using to build.
Are there reasons to think that might be the case?

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

qt5-qtcreator is broken for me on 10.13 as well, with the error seen in 58424. It seems likely the recent qbs upgrade broke it.

comment:4 Changed 6 years ago by mouse07410 (Mouse)

Depending what is causing the write error, this might be an issue with the machine you are using to build. Are there reasons to think that might be the case?

None, AFAIK.

This failure is consistent on four different machines, some under corporate management, and some aren't. The commonalities between them are: MacOS Mojave 10.14.4, Xcode-10.2.1, Macports-2.5.4 (latest stable).

"write error" could be due to permissions...?

Also, I was unable to find qtprofilesetup.h anywhere on my machines (another ticket mentions it).

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

There is a note in the qt5-qtcreator Portfile now that parallel building was previously disabled to avoid a make write error so it seems possible that this error has in fact been seen before.

comment:6 Changed 6 years ago by mouse07410 (Mouse)

...so it seems possible that this error has in fact been seen before

Do you know if parallel building is still disabled? The build takes a long time before it fails, but the following seems to suggest it builds in parallel:

$ ps -ef | grep clang
1638356520 55287 35660   0  7:05PM ttys014    0:00.00 grep clang
  501 53585 53583   0  7:00PM ttys016    0:00.00 /bin/sh -c cd src/ && ( test -e Makefile || /opt/local/libexec/qt5/bin/qmake -o Makefile /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/src.pro PREFIX=/opt/local USE_SYSTEM_BOTAN=1 QBS_INSTALL_DIR=/opt/local LLVM_INSTALL_DIR=/opt/local/libexec/llvm-7.0 -spec macx-clang ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile all
  501 53594 53592   0  7:00PM ttys016    0:00.00 /bin/sh -c cd libs/ && ( test -e Makefile || /opt/local/libexec/qt5/bin/qmake -o Makefile /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/libs/libs.pro PREFIX=/opt/local USE_SYSTEM_BOTAN=1 QBS_INSTALL_DIR=/opt/local LLVM_INSTALL_DIR=/opt/local/libexec/llvm-7.0 -spec macx-clang ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile all
  501 55018 53601   0  7:04PM ttys016    0:00.00 /bin/sh -c cd modelinglib/ && ( test -e Makefile || /opt/local/libexec/qt5/bin/qmake -o Makefile /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/libs/modelinglib/modelinglib.pro PREFIX=/opt/local USE_SYSTEM_BOTAN=1 QBS_INSTALL_DIR=/opt/local LLVM_INSTALL_DIR=/opt/local/libexec/llvm-7.0 -spec macx-clang ) && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile all
  501 55284 55027   0  7:05PM ttys016    0:00.01 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -Os -std=gnu++1y -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -DRELATIVE_PLUGIN_PATH="../PlugIns" -DRELATIVE_LIBEXEC_PATH="../Resources" -DRELATIVE_DATA_PATH="../Resources" -DRELATIVE_DOC_PATH="../Resources/doc" -DIDE_LIBRARY_BASENAME="lib" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DMODELING_LIBRARY -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I/src/libs/modelinglib -I/src/libs/modelinglib/qtserialization/inc -I../../../src -I../../../src -I../../libs -I/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/tools -I../../plugins -I../../libs -I. -Iqtserialization/inc -I/opt/local/libexec/qt5/lib/QtSvg.framework/Headers -I/opt/local/libexec/qt5/lib/QtWidgets.framework/Headers -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers -I/opt/local/libexec/qt5/lib/QtConcurrent.framework/Headers -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I.moc/release-shared -I/System/Library/Frameworks/OpenGL.framework/Headers -I/System/Library/Frameworks/AGL.framework/Headers/ -I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib -o .obj/release-shared/propertiesview.o qmt/model_widgets_ui/propertiesview.cpp
  501 55285 55284   0  7:05PM ttys016    0:00.26 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple x86_64-apple-macosx10.14.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name propertiesview.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-sdk-version=10.14 -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -target-linker-version 450.3 -coverage-notes-file /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/libs/modelinglib/.obj/release-shared/propertiesview.gcno -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -D RELATIVE_PLUGIN_PATH="../PlugIns" -D RELATIVE_LIBEXEC_PATH="../Resources" -D RELATIVE_DATA_PATH="../Resources" -D RELATIVE_DOC_PATH="../Resources/doc" -D IDE_LIBRARY_BASENAME="lib" -D QT_CREATOR -D QT_NO_CAST_TO_ASCII -D QT_RESTRICTED_CAST_FROM_ASCII -D QT_DISABLE_DEPRECATED_BEFORE=0x050900 -D QT_USE_FAST_OPERATOR_PLUS -D QT_USE_FAST_CONCATENATION -D MODELING_LIBRARY -D QT_NO_DEBUG -D QT_SVG_LIB -D QT_WIDGETS_LIB -D QT_GUI_LIB -D QT_CONCURRENT_LIB -D QT_CORE_LIB -I /src/libs/modelinglib -I /src/libs/modelinglib/qtserialization/inc -I ../../../src -I ../../../src -I ../../libs -I /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/tools -I ../../plugins -I ../../libs -I . -I qtserialization/inc -I /opt/local/libexec/qt5/lib/QtSvg.framework/Headers -I /opt/local/libexec/qt5/lib/QtWidgets.framework/Headers -I /opt/local/libexec/qt5/lib/QtGui.framework/Headers -I /opt/local/libexec/qt5/lib/QtConcurrent.framework/Headers -I /opt/local/libexec/qt5/lib/QtCore.framework/Headers -I .moc/release-shared -I /System/Library/Frameworks/OpenGL.framework/Headers -I /System/Library/Frameworks/AGL.framework/Headers/ -I /opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib -I/opt/local/include -stdlib=libc++ -Os -Wall -W -Wno-atomic-implicit-seq-cst -Wno-framework-include-private-from-public -Wno-atimport-in-framework-header -Wno-quoted-include-in-framework-header -std=gnu++1y -fdeprecated-macro -fdebug-compilation-dir /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/libs/modelinglib -ferror-limit 19 -fmessage-length 0 -fvisibility hidden -fvisibility-inlines-hidden -stack-protector 1 -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=macosx-10.14.0 -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o .obj/release-shared/propertiesview.o -x c++ qmt/model_widgets_ui/propertiesview.cpp
$ 

(Needless to say, this is the only build currently running on that machine)

Also, this port seems to be building Botan - but it doesn't list the version. I have botan @1.10.17_2 (active) installed by Macports, and Botan-2.11.0 that I maintain a fork of. They should not clash (separated by include directories and library names, but still...

comment:7 Changed 6 years ago by mouse07410 (Mouse)

Update: in the process, Macports seems to successfully build some kind of Qt Creator:

$ ll  /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/bin/Qt\ Creator.app/Contents/MacOS/
total 232
drwxr-xr-x  3 macports  wheel      96 May  2 19:09 ./
drwxr-xr-x  8 macports  wheel     256 May  2 19:09 ../
-rwxr-xr-x  1 macports  wheel  116828 May  2 19:09 Qt Creator*
$ ll  /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/bin/Qt\ Creator.app/Contents/MacOS/Qt\ Creator 
-rwxr-xr-x  1 macports  wheel  116828 May  2 19:09 /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/bin/Qt Creator.app/Contents/MacOS/Qt Creator*
$ file  /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/bin/Qt\ Creator.app/Contents/MacOS/Qt\ Creator 
/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/bin/Qt Creator.app/Contents/MacOS/Qt Creator: Mach-O 64-bit executable x86_64
$ otool -L /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/bin/Qt\ Creator.app/Contents/MacOS/Qt\ Creator 
/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/bin/Qt Creator.app/Contents/MacOS/Qt Creator:
	@rpath/Frameworks/libExtensionSystem.4.dylib (compatibility version 4.8.0, current version 4.8.2)
	@rpath/Frameworks/libAggregation.4.dylib (compatibility version 4.8.0, current version 4.8.2)
	@rpath/Frameworks/libUtils.4.dylib (compatibility version 4.8.0, current version 4.8.2)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1570.15.0)
	/opt/local/libexec/qt5/lib/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.12.0, current version 5.12.3)
	/opt/local/libexec/qt5/lib/QtGui.framework/Versions/5/QtGui (compatibility version 5.12.0, current version 5.12.3)
	/opt/local/libexec/qt5/lib/QtConcurrent.framework/Versions/5/QtConcurrent (compatibility version 5.12.0, current version 5.12.3)
	/opt/local/libexec/qt5/lib/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.12.0, current version 5.12.3)
	/opt/local/libexec/qt5/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.12.0, current version 5.12.3)
	/System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
	/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
	/System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.4)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
$ date
Thu May  2 19:25:13 EDT 2019
$

I don't know what it is building after Qt Creator.app has been built, and whether it would re-do any of this work when it's time to "stageroot" and actually install... But there is an executable now.

comment:8 Changed 6 years ago by mouse07410 (Mouse)

Update 2: I'm getting the qtprofilesetup.h file not found error now (in qbsprojectmanager.cpp 49:10):

bin/clang++ -c -pipe -stdlib=libc++ -Os -std=gnu++1y  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -fPIC -D'RELATIVE_PLUGIN_PATH="../PlugIns"' -D'RELATIVE_LIBEXEC_PATH="../Resources"' -D'RELATIVE_DATA_PATH="../Resources"' -D'RELATIVE_DOC_PATH="../Resources/doc"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQMAKE_AS_LIBRARY -DPROPARSER_THREAD_SAFE -DPROEVALUATOR_THREAD_SAFE -DPROEVALUATOR_CUMULATIVE -DPROEVALUATOR_DUAL_VFS -DPROEVALUATOR_SETENV -DQBS_VERSION=\"\" -DQBS_ENABLE_PROJECT_FILE_UPDATES -DQBS_INSTALL_DIR=\"/opt/local\" -DQBSPROJECTMANAGER_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../src -I../../../src -I../../libs -I/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/tools -I../../plugins -I../../libs -I../../shared -I../../libs/3rdparty -I. -isystem /opt/local/include/qbs -I/opt/local/libexec/qt5/lib/QtWidgets.framework/Headers -I/opt/local/libexec/qt5/lib/QtGui.framework/Headers -I/opt/local/libexec/qt5/lib/QtConcurrent.framework/Headers -I/opt/local/libexec/qt5/lib/QtNetwork.framework/Headers -I/opt/local/libexec/qt5/lib/QtCore.framework/Headers -I.moc/release-shared -I/System/Library/Frameworks/OpenGL.framework/Headers -I/System/Library/Frameworks/AGL.framework/Headers/ -I.uic -I/opt/local/libexec/qt5/mkspecs/macx-clang -F/opt/local/libexec/qt5/lib -o .obj/release-shared/qbsprojectmanager.o qbsprojectmanager.cpp
:info:build qbsprojectmanager.cpp:49:10: fatal error: 'qtprofilesetup.h' file not found
:info:build #include <qtprofilesetup.h>
:info:build          ^~~~~~~~~~~~~~~~~~
:info:build 1 error generated.
:info:build make[3]: *** [.obj/release-shared/qbsprojectmanager.o] Error 1
:info:build 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'
:info:build make[2]: *** [sub-qbsprojectmanager-all] Error 2

Attaching the complete log (main.log.zip).

Last edited 6 years ago by mouse07410 (Mouse) (previous) (diff)

Changed 6 years ago by mouse07410 (Mouse)

Attachment: main.log.zip added

New log

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

If you're no longer getting that make write error, then just go to the other ticket where that qbs issue is being worked on. It's fixed by upgrading to qtcreator 4.9, which is easy, but Marcus is probably just testing it out on all the different systems that need it.

So - we can close this "make write error" ticket, mouse?

comment:10 Changed 6 years ago by mouse07410 (Mouse)

I have several machines, and qbs problem showed up only once on one machines in my latest attempt to build. So I don't know how consistent it's likely to be. We can probably close this one - and if I get the same problem again, I'll re-open or create a new one.

Thanks

comment:11 in reply to:  10 Changed 6 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: worksforme
Status: assignedclosed

Replying to mouse07410:

We can probably close this one - and if I get the same problem again, I'll re-open or create a new one.

Closing with the permission of the original reporter.

comment:12 Changed 6 years ago by mouse07410 (Mouse)

Resolution: worksforme
Status: closedreopened

Sorry, the peace did not last long. Attempt to upgrade qt5-qtcreator to 4.9.0 on one of my machines brought that write error back:

$ sudo port selfupdate && sudo port upgrade outdated
. . . . .
--->  Computing dependencies for qt5-qtcreator
--->  Fetching archive for qt5-qtcreator
--->  Attempting to fetch qt5-qtcreator-4.9.0_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/qt5-qtcreator
--->  Attempting to fetch qt5-qtcreator-4.9.0_0.darwin_18.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/qt5-qtcreator
--->  Attempting to fetch qt5-qtcreator-4.9.0_0.darwin_18.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/qt5-qtcreator
--->  Fetching distfiles for qt5-qtcreator
--->  Attempting to fetch qt-creator-opensource-src-4.9.0.tar.gz from https://download.qt.io/official_releases/qtcreator/4.9/4.9.0/
--->  Verifying checksums for qt5-qtcreator                                          
--->  Extracting qt5-qtcreator
--->  Applying patches to qt5-qtcreator
--->  Configuring qt5-qtcreator
--->  Building qt5-qtcreator
Error: Failed to build qt5-qtcreator: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
$

And in the main.log:

. . . . .
:info:build /opt/local/libexec/qt5/bin/moc -D'RELATIVE_PLUGIN_PATH="../PlugIns"' -D'RELATIVE_LIBEXEC_PATH="../Resources"' -D'RELATIVE_DATA_PATH="../Resources"' -D'RELATIVE_DOC_PATH="../Resources/doc"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /opt/local/var/macports//Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -Os -std=gnu++1y  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -Wall -W -fPIC -D'RELATIVE_PLUGIN_PATH="../PlugIns"' -D'RELATIVE_LIBEXEC_PATH="../Resources"' -D'RELATIVE_DATA_PATH="../Resources"' -D'RELATIVE_DOC_PATH="../Resources/doc"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_/opt/local/libexec/qt5/bin/moc -D'RELATIVE_PLUGIN_PATH="../PlugIns"' -D'RELATIVE_LIBEXEC_PATH="../Resources"' -D'RELATIVE_DATA_PATH="../Resources"' -D'RELATIVE_DOC_PATH="../Resources/doc"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050900 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /opt/local/var/macports//Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -stdlib=libc++ -Os -std=gnu++1y  -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -Wall -W -fPIC -D'RELATIVE_PLUGIN_PATH="../PlugIns"' -D'RELATIVE_LIBEXEC_PATH="../Resources"' -D'RELATIVE_DATA_PATH="../Resources"' -D'RELATIVE_DOC_PATH="../Resources/doc"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../ -headerpad_max_install_names  -arch x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.14 -Wl,-rpath,@executable_path/../Frameworks -o ../../bin/Qt\ Creator.app/Contents/MacOS/Qt\ Creator .obj/release-shared/qtsingleapplication.o .obj/release-shared/make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.9.0/src/app'
:info:build make[2]: write error
:info:build make[1]: *** [sub-app-all-ordered] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.9.0/src'
:info:build make: *** [sub-src-all-ordered] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.9.0'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.9.0" && /usr/bin/make -w all 
:info:build Exit code: 2
:error:build Failed to build qt5-qtcreator: command execution failed
:debug:build Error code: CHILDSTATUS 90816 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/main.log for details.
$

Attaching the complete log as main2.log

Changed 6 years ago by mouse07410 (Mouse)

Attachment: main2.log added

for 4.9.0: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/main.log

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

hmmm -- in your last log...

:info:build sh: cannot create temp file for here document: Operation not permitted

comment:14 Changed 6 years ago by mouse07410 (Mouse)

hmmm -- in your last log... ...sh: cannot create temp file for here document: Operation not permitted, like 1373.

I cannot figure what directory it talks about. In the vicinity of that error message I see:

$ pwd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_qt5-qtcreator/qt5-qtcreator/work/qt-creator-opensource-src-4.9.0/src
$ ll
total 216
drwxr-xr-x  15 macports  wheel    480 May  3 14:07 ./
drwxr-xr-x  26 macports  wheel    832 May  3 14:07 ../
-rw-r--r--   1 macports  wheel  84227 May  3 14:07 Makefile
drwxr-xr-x  18 macports  wheel    576 May  3 14:19 app/
drwxr-xr-x  23 macports  wheel    736 May  3 14:07 libs/
drwxr-xr-x  72 macports  wheel   2304 Apr 11 08:49 plugins/
-rw-r--r--   1 macports  wheel    774 Apr 11 08:49 qtcreatorlibrary.pri
-rw-r--r--   1 macports  wheel   3289 Apr 11 08:49 qtcreatorplugin.pri
-rw-r--r--   1 macports  wheel    578 Apr 11 08:49 qtcreatortool.pri
-rw-r--r--   1 macports  wheel    548 Apr 11 08:49 rpath.pri
drwxr-xr-x   4 macports  wheel    128 Apr 11 08:49 share/
drwxr-xr-x  19 macports  wheel    608 May  3 14:07 shared/
-rw-r--r--   1 macports  wheel    311 Apr 11 08:49 src.pro
-rw-r--r--   1 macports  wheel   1466 Apr 11 08:49 src.qbs
drwxr-xr-x  31 macports  wheel    992 Apr 11 08:49 tools/
$ ll app
total 512
drwxr-xr-x  18 macports  wheel     576 May  3 14:19 ./
drwxr-xr-x  15 macports  wheel     480 May  3 14:07 ../
drwxr-xr-x   3 macports  wheel      96 May  3 14:19 .moc/
drwxr-xr-x   3 macports  wheel      96 May  3 14:19 .obj/
-rw-r--r--   1 macports  wheel    7964 May  3 14:19 Info.plist
-rw-r--r--   1 macports  wheel   54892 May  3 14:19 Makefile
-rw-r--r--   1 macports  wheel    8009 Apr 11 08:49 app-Info.plist
-rw-r--r--   1 macports  wheel    2032 Apr 11 08:49 app.pro
-rw-r--r--   1 macports  wheel    3215 Apr 11 08:49 app.qbs
-rw-r--r--   1 macports  wheel    2643 May  3 14:19 app_version.h
-rw-r--r--   1 macports  wheel    2933 Apr 11 08:49 app_version.h.in
-rw-r--r--   1 macports  wheel    2795 Apr 11 08:49 app_version_header.qbs
-rw-r--r--   1 macports  wheel     302 May  3 14:19 asset_catalog_compiler.Info.plist
-rw-r--r--   1 macports  wheel   25604 Apr 11 08:49 main.cpp
-rw-r--r--   1 macports  wheel  128904 Apr 11 08:49 qtcreator.ico
-rw-r--r--   1 macports  wheel    1200 Apr 11 08:49 qtcreator.rc
drwxr-xr-x   4 macports  wheel     128 Apr 11 08:49 qtcreator.xcassets/
drwxr-xr-x  51 macports  wheel    1632 Apr 11 08:49 winicons/
$ 

Ownership and access rights appear good.

And despite its claims, it *did* create Qt Creator binary as -o ../../bin/Qt\ Creator.app/Contents/MacOS/Qt\ Creator:

$ ll ../../bin/Qt\ Creator.app/Contents/MacOS/
total 232
drwxr-xr-x  3 macports  wheel      96 May  3 14:19 ./
drwxr-xr-x  7 macports  wheel     224 May  3 14:19 ../
-rwxr-xr-x  1 macports  wheel  116924 May  3 14:19 Qt Creator*
$ 

Also, build succeeded on another machine. Here's the difference. On the "succeeding" machine:

$ port installed | grep qt5
  cmake @3.14.3_0+gui+qt5 (active)
  qt5-qtbase @5.12.3_0+openssl (active)
  qt5-qtcreator @4.9.0_0 (active)
  qt5-qtdeclarative @5.12.3_0 (active)
  qt5-qtgraphicaleffects @5.12.3_0 (active)
  qt5-qtmacextras @5.12.3_0 (active)
  qt5-qtquickcontrols @5.12.3_0 (active)
  qt5-qtscript @5.12.3_0 (active)
  qt5-qtsvg @5.12.3_0 (active)
  qt5-qttools @5.12.3_0 (active)
  qt5-qtxmlpatterns @5.12.3_0 (active)
$ port installed | grep qt5 | wc -l
      11
$ 

On the "failing" (consistently) machine:

$ port installed | grep qt5
  cmake @3.14.3_0+gui+qt5 (active)
  qt5-qtbase @5.12.3_0+openssl (active)
  qt5-qtdeclarative @5.12.3_0 (active)
  qt5-qtgraphicaleffects @5.12.3_0 (active)
  qt5-qtmacextras @5.12.3_0 (active)
  qt5-qtnetworkauth @5.12.3_0 (active)
  qt5-qtquickcontrols @5.12.3_0 (active)
  qt5-qtscript @5.12.3_0 (active)
  qt5-qtserialbus @5.12.3_0 (active)
  qt5-qtserialport @5.12.3_0 (active)
  qt5-qtsvg @5.12.3_0 (active)
  qt5-qttools @5.12.3_0 (active)
  qt5-qtwebsockets @5.12.3_0 (active)
  qt5-qtxmlpatterns @5.12.3_0 (active)
$ port installed | grep qt5 | wc -l
      14
$ 

Overall, the "failing" machine has about 60 ports more installed.

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

if you have one machine that fails consistently, and it's the only machine that does so, go into the build directory of macports and nuke it completely -- very carefully though -- and then try again:

/opt/local/var/macports/build

comment:16 Changed 6 years ago by mouse07410 (Mouse)

if you have one machine that fails consistently, and it's the only machine that does so

I do not know yet. One machine succeeded, another one failed. On the failing one I did cd /opt/local/....<wherever that port source is>; sudo bash; make all install, and it's still running. I have at least three more machines that need to go through this exercise later on.

nuke it completely -- very carefully though --

Could you please be more specific: nuke what, and more importantly - exactly how? Like, do I need to be in a specific directory for nuking? For building? If you could show the actual commands, it would be outstanding.

Last edited 6 years ago by mouse07410 (Mouse) (previous) (diff)

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

well ... who knows what going into the source directory any running make all install might get you. But it is extremely unlikely that would match what sudo port build would get you. I couldn't recommend doing that, at least not if you're working with MacPorts...

to clean up the build directory, just cd into /opt/local/var/macports/build and sudo rm -rf *.*.

but be very careful or disaster.

Last edited 6 years ago by kencu (Ken) (previous) (diff)

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

be careful with that, if you do it. practice 10 times. measure twice, cut once, etc, etc.

do not && those commands.

Last edited 6 years ago by kencu (Ken) (previous) (diff)

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

actually...maybe that's too aggressive to recommend. If it doesn't seem obvious to you, don't do it. I can't shoulder the responsibility if you erase the photos of your child's first steps by accident...

comment:20 Changed 6 years ago by mouse07410 (Mouse)

Thanks!

sudo rm -rf *.*

Do I need to remove all the existing builds? Or can I constrain myself to removing only specific ones (like qt5-qtcreator)?

By "try again" you mean sudo port install qt5-qtcreator, or something else? Sorry for being so pedantic, but I want to make sure I'll be doing the right thing. ;-)

comment:21 Changed 6 years ago by mouse07410 (Mouse)

If it doesn't seem obvious to you, don't do it

Well, some things do seem obvious (more or less ;), but not all of them.

I am confident enough to avoid erasing something outside of /opt/local/var/macports/build, but it is not obvious to me whether there is something in that directory that I may not want to erase, or what consequences (if any) erasure of those things would have.

Perhaps I should do sudo port clean --all before going into that directory and doing surgery there?

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

If a heredoc can't be created that probably means the ownership or permissions on /tmp or your $TMPDIR are wrong.

comment:23 Changed 6 years ago by mouse07410 (Mouse)

If a heredoc can't be created that probably means the ownership or permissions on /tmp or your $TMPDIR are wrong.

I hear you, but /tmp permissions are "drwxrwxrwt" owned by "root wheel". I do not set TMPDIR explicitly, but that env var does appear to be set to /var/folders/c6/lnc_....... (truly long random crap) with permissions "drwx------" owned by me, with extended attribute "rootless". If that's wrong - what should it be set to?

Good news: on one machine (the biggest/fastest) rebuild from the sources succeeded, on other machines (where it used to fail) it just pulled the pre-built binary.

So, this ticket is resolved by Macports providing pre-compiled binary of qt5-qtcreator.

Last edited 6 years ago by mouse07410 (Mouse) (previous) (diff)

comment:24 in reply to:  23 Changed 6 years ago by jmroot (Joshua Root)

Replying to mouse07410:

If a heredoc can't be created that probably means the ownership or permissions on /tmp or your $TMPDIR are wrong.

I hear you, but /tmp permissions are "drwxrwxrwt" owned by "root wheel".

Normally /tmp is a symlink to /private/tmp, is that the case for you or are those the permissions on /tmp itself? What about /var/tmp (I'm not sure which one bash uses)? TMPDIR is actually probably not relevant since MacPorts sets it to something inside $workpath.

comment:25 Changed 6 years ago by mouse07410 (Mouse)

Normally /tmp is a symlink to /private/tmp, is that the case for you

Yes it is.

What about /var/tmp

$ ll -d /var/tmp
drwxrwxrwt  9 root  wheel  288 May  6 10:47 /var/tmp/
$ 

comment:26 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

I am sorry, but I do not see a way forward on this ticket.
I cannot reproduce the error.
Unless we can come up with a new angle to explore, we might have to close this ticket as "works for me."

comment:27 Changed 5 years ago by mouse07410 (Mouse)

Marcus, yes - let us close this ticket. Everything at this point seems to work. If it breaks again, we'll just create a new one.

comment:28 Changed 5 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: worksforme
Status: reopenedclosed
Note: See TracTickets for help on using tickets.