Opened 3 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)

unison.log (82.7 KB) - added by trebitzki (Timm Rebitzki) 3 years ago.
main.log for the unison installtion

Download all attachments as: .zip

Change History (13)

Changed 3 years ago by trebitzki (Timm Rebitzki)

Attachment: unison.log added

main.log for the unison installtion

comment:1 Changed 3 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 3 years ago by kencu (Ken)

Description: modified (diff)
Port: 2.51.2 removed

comment:3 Changed 3 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 3 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, the version here is not likely to build.

I see a version on the github releases page:

https://github.com/bcpierce00/unison/releases/download/v2.51.3/unison-v2.51.3+ocaml-4.10.1+x86_64.macos-10.15.tar.gz

The gtk version 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).

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

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

Owner: set to ryandesign
Status: newaccepted
Summary: unison 2.51.2 build error on Catalina 10.15.6, MacPorts 2.6.4 clean installunison @2.51.2: ocamlopt: OCaml has been configured with -force-safe-string: -unsafe-string is not available.

comment:6 Changed 3 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 3 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:11 Changed 3 years ago by someuser12

Cc: someuser12 added

comment:12 Changed 3 years ago by someuser12

In 13c698d942a7066edddcde6188efb71fa0f71e7a/macports-ports (master):

unison: update to 2.51.4

See: #62572

Note: See TracTickets for help on using tickets.