Opened 3 years ago

Closed 3 years ago

#64711 closed defect (invalid)

inkscape: installation failure to version 1.1.2

Reported by: githubbjs (BJS) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: githubbjs (BJS), evanmiller (Evan Miller)
Port: inkscape

Description

inkscape fails to build.

After cleaning and uninstallation of Inkscape @0.92.5 I tried to install the recent version 1.1.2 (on High Sierra 10.13.6).

Build log attached

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-1.1.2/src/display/cairo-utils.cpp:775:20: error: no matching function for call to 'isnan'
:info:build                 if(std::isnan(arc->initialAngle()) || std::isnan(arc->finalAngle())) {
:info:build                    ^~~~~~~~~~
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/math.h:505:1: note: candidate template ignored: requirement 'std::is_floating_point<Angle>::value' was not satisfied [with _A1 = Geom::Angle]
:info:build isnan(_A1 __lcpp_x) _NOEXCEPT
:info:build ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/math.h:513:1: note: candidate template ignored: requirement 'std::is_integral<Angle>::value' was not satisfied [with _A1 = Geom::Angle]
:info:build isnan(_A1) _NOEXCEPT
:info:build ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-1.1.2/src/display/cairo-utils.cpp:775:55: error: no matching function for call to 'isnan'
:info:build                 if(std::isnan(arc->initialAngle()) || std::isnan(arc->finalAngle())) {
:info:build                                                       ^~~~~~~~~~
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/math.h:505:1: note: candidate template ignored: requirement 'std::is_floating_point<Angle>::value' was not satisfied [with _A1 = Geom::Angle]
:info:build isnan(_A1 __lcpp_x) _NOEXCEPT
:info:build ^
:info:build /Library/Developer/CommandLineTools/usr/include/c++/v1/math.h:513:1: note: candidate template ignored: requirement 'std::is_integral<Angle>::value' was not satisfied [with _A1 = Geom::Angle]
:info:build isnan(_A1) _NOEXCEPT
:info:build ^
:info:build 2 errors generated.



:info:build ninja: build stopped: subcommand failed.
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/build" && ninja -j8 all -j8 -v 
:info:build Exit code: 1
:error:build Failed to build inkscape: command execution failed
:debug:build Error code: CHILDSTATUS 78764 1
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback 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_release_tarballs_ports_graphics_inkscape/inkscape/main.log for details.


Attachments (1)

inkscape1.1.2.main.log (3.2 MB) - added by githubbjs (BJS) 3 years ago.
main.log

Change History (16)

comment:1 Changed 3 years ago by githubbjs (BJS)

Cc: githubbjs added

comment:2 Changed 3 years ago by jmroot (Joshua Root)

Owner: set to mascguy
Status: newassigned

comment:3 Changed 3 years ago by evanmiller (Evan Miller)

Cc: evanmiller added

comment:4 Changed 3 years ago by evanmiller (Evan Miller)

Hi, can you see if inkscape-devel solves this problem? (It is a 1.2.0 pre-release.)

comment:5 Changed 3 years ago by evanmiller (Evan Miller)

Also, it would help if you attached the entire build log. The only thing I can think of off the top of my head is it's not using the right lib2geom headers, but that could be irrelevant.

Changed 3 years ago by githubbjs (BJS)

Attachment: inkscape1.1.2.main.log added

main.log

comment:6 Changed 3 years ago by githubbjs (BJS)

I also tried Inkscape-devel @1.2.0 without success (same error).

comment:7 Changed 3 years ago by evanmiller (Evan Miller)

Hmm. It's building fine on High Sierra on the build bots. It looks like you have the latest Xcode, but the Clang version (10.0.0.10001044) may be slightly out of date. Looking at this thread:

https://developer.apple.com/forums/thread/120456

It appears that the Clang in Xcode 10.1 is actually newer than the Clang that comes with Command Line Tools 10.1. So maybe you can use xcode-select to switch to Xcode's clang. This page has some details:

https://developer.apple.com/library/archive/technotes/tn2339/_index.html#//apple_ref/doc/uid/DTS40014588-CH1-HOW_DO_I_SELECT_THE_DEFAULT_VERSION_OF_XCODE_TO_USE_FOR_MY_COMMAND_LINE_TOOLS_

Hopefully that will solve it, but the issue is probably worth reporting upstream since Inkscape is supposed to support 10.13.

comment:8 Changed 3 years ago by githubbjs (BJS)

@evanmiller: thx a lot for the hints.

Changing clang version with sudo xcode-select -switch /Library/Developer/CommandLineTools/ compiles now Inkscape but nothing happened after calling it from terminal.

-rwxr-xr-x 1 root 93788 Feb 22 16:02 /opt/local/bin/inkscape

comment:9 Changed 3 years ago by evanmiller (Evan Miller)

Hmm. Well, building is a good step, but obviously not enough. Are there any messages in the system log? Does inkscape exit or just hang with nothing on screen? Is X11 started?

comment:10 Changed 3 years ago by githubbjs (BJS)

it just hang with nothing started. No X11 is activated. I also tried a clean Inkscape-devel installation (with same result) and I have also changed variants (I tried +quartz and +universal each deactivated +x11) without success.

comment:11 Changed 3 years ago by githubbjs (BJS)

What system logs are needed?

comment:12 Changed 3 years ago by evanmiller (Evan Miller)

Usually /var/log/system.log will have some info.

comment:13 Changed 3 years ago by githubbjs (BJS)

after rebooting and new installation both variants +x11 as well as +quartz are working now (but the resolution is not the best which is not related to this ticket). /var/log/system.log had no relevant messages. Thx again @evanmiller.

comment:14 Changed 3 years ago by evanmiller (Evan Miller)

Strange that rebooting fixed it, but I'm very glad to hear it's working now! Please open a new ticket if anything in Inkscape 1.1.2 isn't functioning as expected and might be a MacPorts issue (e.g. missing Python libraries). I did some basic testing but nothing too thorough.

comment:15 Changed 3 years ago by reneeotten (Renee Otten)

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