Opened 4 years ago
Last modified 3 years ago
#62572 accepted defect
unison @2.51.2: ocamlopt: OCaml has been configured with -force-safe-string: -unsafe-string is not available.
Reported by: | trebitzki (Timm Rebitzki) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | Cc: | thetrial (alabay), tehcog (tehcog), someuser12 | |
Port: | unison |
Description (last modified by kencu (Ken))
This is my first bug report.
Seems to bork on line 1039 of main.log:
:info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_unison/unison/work/unison-2.51.2" && /usr/bin/make -w all UISTYLE=gtk2 THREADS=true
Both paths are correct.
Attachments (1)
Change History (13)
Changed 4 years ago by trebitzki (Timm Rebitzki)
Attachment: | unison.log added |
---|
comment:1 Changed 4 years ago by kencu (Ken)
It looks like the error is this:
827 :info:build ocamlopt -g -unsafe-string -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -ccopt -mmacosx-version-min=10.15 -I /opt/local/lib/ocaml/site-lib/lablgtk2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_unison/unison/work/bcpierce00-unison-0176188/src/ubase/rx.mli 828 :info:build ocamlopt: OCaml has been configured with -force-safe-string: -unsafe-string is not available.
comment:2 Changed 4 years ago by kencu (Ken)
Description: | modified (diff) |
---|---|
Port: | 2.51.2 removed |
comment:3 Changed 4 years ago by trebitzki (Timm Rebitzki)
Thanks for your help Kencu! How can I resolve the issue? Should I reinstall ocaml? I have no idea how MacPorts works, I'm just a user...
comment:4 Changed 4 years ago by kencu (Ken)
I'm afraid the version of unison we offer is not happy with the version of ocaml in use. I am not fluent in camel-speak, so until some kind soul comes along, you are SOL for this one here.
I see the gtk version on the github releases page:
Is hardcoded to homebrew's parts:
% otool -L unison-gtk2 unison-gtk2: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 23.0.0) /usr/local/opt/gtk+/lib/libgtk-quartz-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.32.0) /usr/local/opt/gtk+/lib/libgdk-quartz-2.0.0.dylib (compatibility version 2401.0.0, current version 2401.32.0) /usr/local/opt/pango/lib/libpangocairo-1.0.0.dylib (compatibility version 4601.0.0, current version 4601.2.0) /usr/local/opt/pango/lib/libpango-1.0.0.dylib (compatibility version 4601.0.0, current version 4601.2.0) /usr/local/opt/harfbuzz/lib/libharfbuzz.0.dylib (compatibility version 20702.0.0, current version 20702.0.0) /usr/local/opt/atk/lib/libatk-1.0.0.dylib (compatibility version 23610.0.0, current version 23610.1.0) /usr/local/opt/cairo/lib/libcairo.2.dylib (compatibility version 11603.0.0, current version 11603.0.0) /usr/local/opt/gdk-pixbuf/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 4001.0.0, current version 4001.0.0) /usr/local/opt/glib/lib/libgio-2.0.0.dylib (compatibility version 6601.0.0, current version 6601.1.0) /usr/local/opt/glib/lib/libgobject-2.0.0.dylib (compatibility version 6601.0.0, current version 6601.1.0) /usr/local/opt/glib/lib/libglib-2.0.0.dylib (compatibility version 6601.0.0, current version 6601.1.0) /usr/local/opt/gettext/lib/libintl.8.dylib (compatibility version 11.0.0, current version 11.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
but the plain version is not:
% otool -L unison unison: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1) % ./unison Usage: unison [options] or unison root1 root2 [options] or unison profilename [options] For a list of options, type "unison -help". For a tutorial on basic usage, type "unison -doc tutorial". For other documentation, type "unison -doc topics".
So the plain version works, if you download it from that (or one of the 20 other links with different versions).
comment:5 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to ryandesign |
---|---|
Status: | new → accepted |
Summary: | unison 2.51.2 build error on Catalina 10.15.6, MacPorts 2.6.4 clean install → unison @2.51.2: ocamlopt: OCaml has been configured with -force-safe-string: -unsafe-string is not available. |
comment:6 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)
Updating unison to 2.51.3 may help, which I've started to try to do, but I'm blocked by #62576.
comment:7 Changed 4 years ago by thetrial (alabay)
Cc: | thetrial added |
---|
comment:8 Changed 3 years ago by tehcog (tehcog)
Similar issue here with Mavericks and no Homebrew:
Port Upgrade:
-> sudo port upgrade unison Password: ---> Computing dependencies for unison ---> Fetching archive for unison ---> Attempting to fetch unison-2.51.2_4+gtk.darwin_13.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/unison ---> Attempting to fetch unison-2.51.2_4+gtk.darwin_13.x86_64.tbz2 from https://mse.uk.packages.macports.org/unison ---> Attempting to fetch unison-2.51.2_4+gtk.darwin_13.x86_64.tbz2 from https://cph.dk.packages.macports.org/unison ---> Fetching distfiles for unison ---> Verifying checksums for unison ---> Extracting unison ---> Applying patches to unison ---> Configuring unison ---> Building unison Error: Failed to build unison: command execution failed Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_unison/unison/main.log for details. Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Log:
:info:build ocamlopt: ubase/rx.mli ---> ubase/rx.cmi :info:build ocamlopt -g -unsafe-string -I lwt -I ubase -I system -I fsmonitor -I fsmonitor/linux -I fsmonitor/windows -I system/generic -I lwt/generic -ccopt -mmacosx-version-min=10.9 -I /opt/local/lib/ocaml/site-lib/lablgtk2 -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_unison/unison/work/bcpierce00-unison-0176188/src/ubase/rx.mli :info:build ocamlopt: OCaml has been configured with -force-safe-string: -unsafe-string is not available. :info:build Usage: ocamlopt <options> <files>
ocaml:
The following ports are currently installed: ocaml @4.12.0_1 (active)
comment:9 Changed 3 years ago by tehcog (tehcog)
Cc: | tehcog added |
---|
comment:10 Changed 3 years ago by someuser12
Please see a tentative fix in https://github.com/macports/macports-ports/pull/12437 (if https://github.com/macports/macports-ports/pull/12436 is accepted).
comment:11 Changed 3 years ago by someuser12
Cc: | someuser12 added |
---|
main.log for the unison installtion