Opened 7 years ago

Closed 6 years ago

#55027 closed defect (invalid)

darktable configuration error

Reported by: breadncup Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc: ctreleaven (Craig Treleaven)
Port: darktable

Description

While running "sudo port install darktable +quartz", I got the configuration error. The error log is attached.

Attachments (6)

main.log (227.4 KB) - added by breadncup 7 years ago.
darktable configuration error
CMakeError.log (1.1 KB) - added by breadncup 7 years ago.
CMakeError.log
CMakeOutput.log (1.1 KB) - added by breadncup 7 years ago.
CMakeOutput.log
main-2017-1118.log (449.1 KB) - added by breadncup 6 years ago.
main.log for the today's darktable installation error
main-2017-1121.log (229.3 KB) - added by breadncup 6 years ago.
main 11/21/2017 log
port-diagnose-output.txt (4.3 KB) - added by breadncup 6 years ago.
port diagnose output

Download all attachments as: .zip

Change History (26)

Changed 7 years ago by breadncup

Attachment: main.log added

darktable configuration error

comment:1 Changed 7 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven added
Keywords: darktable removed
Port: darktable added

I see this is on High Sierra with XCode 9. Are you sure you have the Command Line Tools installed (it is separate from the base XCode 9 install)?

I'm closing a house sale this week so it is very unlikely that I'll be able to work on this in the next little while.

comment:2 Changed 7 years ago by breadncup

Yes, I've installed it.

~ $ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

and, congrats on selling a house.

Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Could you also attach these two files mentioned in the log:

:info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_darktable/darktable/work/build/CMakeFiles/CMakeOutput.log".
:info:configure See also "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_darktable/darktable/work/build/CMakeFiles/CMakeError.log".

Changed 7 years ago by breadncup

Attachment: CMakeError.log added

CMakeError.log

Changed 7 years ago by breadncup

Attachment: CMakeOutput.log added

CMakeOutput.log

comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: quartz removed

Hmm, not much else in those logs. Can you show us what version of the command line tools are installed, by running:

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

comment:5 Changed 7 years ago by breadncup

~ $ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 9.0.0.0.1.1504363082
volume: /
location: /
install-time: 1507247622
groups: com.apple.FindSystemFiles.pkg-group
Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:6 Changed 6 years ago by ctreleaven (Craig Treleaven)

Sorry for the delay. The log says:

make: error: unable to find utility "make", not a developer tool or in PATH

What happens if you run 'make --version'?

comment:7 Changed 6 years ago by ctreleaven (Craig Treleaven)

Owner: set to ctreleaven
Status: newaccepted

comment:8 in reply to:  6 Changed 6 years ago by breadncup

Replying to ctreleaven:

Sorry for the delay. The log says:

make: error: unable to find utility "make", not a developer tool or in PATH

What happens if you run 'make --version'?

$ make --version

GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This program built for i386-apple-darwin11.3.0

comment:9 Changed 6 years ago by ctreleaven (Craig Treleaven)

That is very odd and unfortunately I still don't have a High Sierra environment to duplicate. Would you mind just trying again?

sudo port clean darktable
sudo port selfupdate
sudo port upgrade outdated
sudo port install darktable

CMake has been updated since you filed this report. Perhaps the latest version will cure this?

I think Xcode was also updated to 9.1 in the interim. Might as well update that too.

comment:10 in reply to:  9 Changed 6 years ago by breadncup

I followed, but I got an error:

--->  Fetching archive for darktable
Error: Failed to archivefetch darktable: gtk3 must be installed with +quartz.
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_darktable/darktable/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port darktable failed

I will try to clean and uninstall gtk3 and install gtk3 with +quartz, but should "sudo port install darktable" handle it automatically?

Replying to ctreleaven:

That is very odd and unfortunately I still don't have a High Sierra environment to duplicate. Would you mind just trying again?

sudo port clean darktable
sudo port selfupdate
sudo port upgrade outdated
sudo port install darktable

CMake has been updated since you filed this report. Perhaps the latest version will cure this?

I think Xcode was also updated to 9.1 in the interim. Might as well update that too.

Changed 6 years ago by breadncup

Attachment: main-2017-1118.log added

main.log for the today's darktable installation error

comment:11 Changed 6 years ago by breadncup

I did this

sudo port install darktable +quartz

, but today's result is as same as before. It comes to the error with the cmake as well.

The main.log ( main-2017-1118.log ) has been attached as well.

Last edited 6 years ago by breadncup (previous) (diff)

comment:12 Changed 6 years ago by ctreleaven (Craig Treleaven)

Could you please run

port diagnose --quiet

and report the output.

Also, the log main-2017-1118.log does not appear to be from a clean install. Please make sure that each of the four commands is run in order.

Re gtk3, the port defaults to +x11 which conflicts with +quartz. Therefore the user has to specifiy 'sudo port install gtk3 +quartz'.

Changed 6 years ago by breadncup

Attachment: main-2017-1121.log added

main 11/21/2017 log

Changed 6 years ago by breadncup

Attachment: port-diagnose-output.txt added

port diagnose output

comment:13 in reply to:  12 Changed 6 years ago by breadncup

I did again and attached the logs.

Replying to ctreleaven:

Could you please run

port diagnose --quiet

and report the output.

Also, the log main-2017-1118.log does not appear to be from a clean install. Please make sure that each of the four commands is run in order.

Re gtk3, the port defaults to +x11 which conflicts with +quartz. Therefore the user has to specifiy 'sudo port install gtk3 +quartz'.

comment:14 Changed 6 years ago by ctreleaven (Craig Treleaven)

Whatever you have installed in /usr/local seems to be causing problems. As port diagnose says, " We'd recommend you remove them."

comment:15 in reply to:  14 Changed 6 years ago by breadncup

I removed /usr/local/lib and /usr/local/include as the diagnose says, but the result is same.

I think the main issue by looking at the log is

info:configure   Run Build Command:"/usr/bin/make" "cmTC_c9336/fast"
:info:configure   /SDKs/Xcode.app/Contents/Developer/usr/bin/make -f
:info:configure   CMakeFiles/cmTC_c9336.dir/build.make CMakeFiles/cmTC_c9336.dir/build
:info:configure   Building CXX object CMakeFiles/cmTC_c9336.dir/testCXXCompiler.cxx.o
:info:configure   /opt/local/bin/clang++-mp-3.9 -pipe -Os -stdlib=libc++ -arch x86_64
:info:configure   -mmacosx-version-min=10.13 -o
:info:configure   CMakeFiles/cmTC_c9336.dir/testCXXCompiler.cxx.o -c
:info:configure   /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_darktable/darktable/work/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
:info:configure   Linking CXX executable cmTC_c9336
:info:configure   /opt/local/bin/cmake -E cmake_link_script
:info:configure   CMakeFiles/cmTC_c9336.dir/link.txt --verbose=1
:info:configure   /opt/local/bin/clang++-mp-3.9 -pipe -Os -stdlib=libc++ -arch x86_64
:info:configure   -mmacosx-version-min=10.13 -Wl,-search_paths_first
:info:configure   -Wl,-headerpad_max_install_names -L/opt/local/lib
:info:configure   -Wl,-headerpad_max_install_names
:info:configure   CMakeFiles/cmTC_c9336.dir/testCXXCompiler.cxx.o -o cmTC_c9336
:info:configure   ld: unexpected token: !tapi-tbd-v2 file '/usr/lib/libc++.tbd' for
:info:configure   architecture x86_64
:info:configure   clang: error: unable to execute command: Segmentation fault: 11
:info:configure   clang: error: linker command failed due to signal (use -v to see
:info:configure   invocation)

I wonder why there is "Segmentation fault: 11". If we know the reason, it would make easier to solve this issue.

Replying to ctreleaven:

Whatever you have installed in /usr/local seems to be causing problems. As port diagnose says, " We'd recommend you remove them."

comment:16 Changed 6 years ago by ctreleaven (Craig Treleaven)

After clearing out /usr/local/, did you re-run port diagnose?

Please confirm that you ran sudo port clean darktable before attempting to install again. Otherwise, MacPorts will try to pick up from the point of the previous failure which is likely to not end well. Please attach another clean log.

comment:17 in reply to:  16 Changed 6 years ago by breadncup

Yes, I did port diagnose and checked the previous warning for /usr/loca/* was gone.

I tried again, but it gives same segmentation error.

Replying to ctreleaven:

After clearing out /usr/local/, did you re-run port diagnose?

Please confirm that you ran sudo port clean darktable before attempting to install again. Otherwise, MacPorts will try to pick up from the point of the previous failure which is likely to not end well. Please attach another clean log.

comment:18 Changed 6 years ago by ctreleaven (Craig Treleaven)

Please attach a new clean log.

Which version of Xcode do you have installed?

I'm not sure but the operating system may be capturing crash reports from these crashes. Please check the Console app -- either User or System Diagnostic Reports. Attach the latest one, if there are any.

Otherwise, I hope to set up a High Sierra VM for some other work and then I can test building in that environment. This is likely to take several days, however, so if anyone else can take a stab at this, it would be welcome.

comment:19 in reply to:  18 Changed 6 years ago by breadncup

Hi Craig,

I re-installed the High Sierra, and this issue is gone, finally.

However, there is a compile error.

So, I want to close this ticket since the original this issue is gone by re-installing High Sierra, and want to work with the new ticket for the compile issue: https://trac.macports.org/ticket/55380

Thanks for your help.

Replying to ctreleaven:

Please attach a new clean log.

Which version of Xcode do you have installed?

I'm not sure but the operating system may be capturing crash reports from these crashes. Please check the Console app -- either User or System Diagnostic Reports. Attach the latest one, if there are any.

Otherwise, I hope to set up a High Sierra VM for some other work and then I can test building in that environment. This is likely to take several days, however, so if anyone else can take a stab at this, it would be welcome.

comment:20 Changed 6 years ago by ctreleaven (Craig Treleaven)

Resolution: invalid
Status: acceptedclosed
Note: See TracTickets for help on using tickets.