[Unison-hackers] Building Unison GUI on OSX 10.6

Lukas Reichlin lukas.reichlin at gmail.com
Sun Jul 17 09:54:09 EDT 2011


On 17.07.2011, at 11:10, Alan Schmitt wrote:

> On Sun, Jul 17, 2011 at 8:54 AM, Lukas Reichlin
> <lukas.reichlin at gmail.com> wrote:
>> I'm experiencing the same problem. UISTYLE=text works flawlessly but macnew and macnew09 don't. The error messages are at the end of this mail. My machine is a Core i5 iMac running Mac OS X 10.6.8. I installed Ocaml 3.12.1 from MacPorts and XCode 3.2.6. Help would be much appreciated!
> 
> This is a different problem, probably related to this bug:
> http://caml.inria.fr/mantis/view.php?id=5247
> 
> You need to find where libcamlstr.a is, and symlink libstr.a to
> libcamlstr.a in the same directory.
> 
> Hope this helps,
> 
> Alan

Thanks for your quick reply, Alan. I adapted the line
sudo ln /usr/local/lib/ocaml/libcamlstr.a /usr/local/lib/ocaml/libstr.a
to
sudo ln /opt/local/lib/ocaml/libcamlstr.a /opt/local/lib/ocaml/libstr.a
in order to reflect MacPorts' location.

Now I'm getting another error message:

Ld build/Default/Unison.app/Contents/MacOS/Unison normal i386
    cd /Users/lukas/Desktop/unison-2.40.63/uimacnew
    setenv MACOSX_DEPLOYMENT_TARGET 10.5
    /Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/Users/lukas/Desktop/unison-2.40.63/uimacnew/build/Default -F/Users/lukas/Desktop/unison-2.40.63/uimacnew/build/Default -F/Users/lukas/Desktop/unison-2.40.63/uimacnew -filelist /Users/lukas/Desktop/unison-2.40.63/uimacnew/build/uimacnew.build/Default/uimac.build/Objects-normal/i386/Unison.LinkFileList -mmacosx-version-min=10.5 -L/opt/local/lib/ocaml -lunix -lthreadsnat -lstr -lbigarray -lasmrun -framework Cocoa -framework Security -framework Growl -framework ExceptionHandling /Users/lukas/Desktop/unison-2.40.63/uimacnew/../unison-blob.o -o /Users/lukas/Desktop/unison-2.40.63/uimacnew/build/Default/Unison.app/Contents/MacOS/Unison

ld: warning: in /opt/local/lib/ocaml/libunix.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/ocaml/libthreadsnat.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/ocaml/libstr.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/ocaml/libbigarray.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/ocaml/libasmrun.a, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /Users/lukas/Desktop/unison-2.40.63/uimacnew/../unison-blob.o, file was built for unsupported file format which is not the architecture being linked (i386)
Undefined symbols:
  "_caml_callback2_exn", referenced from:
      _bridgeThreadWait in Bridge.o
      _bridgeThreadWait in Bridge.o
  "_caml_remove_global_root", referenced from:
      -[OCamlValue dealloc] in Bridge.o
  "_caml_startup", referenced from:
      -[Bridge _ocamlStartup:] in Bridge.o
  "_caml_callback_exn", referenced from:
      -[Bridge _ocamlStartup:] in Bridge.o
      _bridgeThreadWait in Bridge.o
      _bridgeThreadWait in Bridge.o
  "_caml_callback", referenced from:
      _bridgeThreadWait in Bridge.o
  "_caml_local_roots", referenced from:
      _caml_local_roots$non_lazy_ptr in Bridge.o
     (maybe you meant: _caml_local_roots$non_lazy_ptr)
  "_caml_callback3_exn", referenced from:
      _bridgeThreadWait in Bridge.o
      _bridgeThreadWait in Bridge.o
  "_caml_enter_blocking_section", referenced from:
      _bridgeThreadWait in Bridge.o
  "_caml_copy_string", referenced from:
      _bridgeThreadWait in Bridge.o
  "_caml_alloc_tuple", referenced from:
      _bridgeThreadWait in Bridge.o
  "_caml_modify", referenced from:
      _bridgeThreadWait in Bridge.o
      _bridgeThreadWait in Bridge.o
  "_caml_named_value", referenced from:
      -[Bridge _ocamlStartup:] in Bridge.o
      _bridgeThreadWait in Bridge.o
      _bridgeThreadWait in Bridge.o
  "_caml_leave_blocking_section", referenced from:
      _bridgeThreadWait in Bridge.o
  "_caml_register_global_root", referenced from:
      -[OCamlValue initWithValue:] in Bridge.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
PBXCp build/Default/Unison.app/Contents/Frameworks/Growl.framework Growl.framework
    cd /Users/lukas/Desktop/unison-2.40.63/uimacnew
    /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -strip-debug-symbols -resolve-src-symlinks /Users/lukas/Desktop/unison-2.40.63/uimacnew/Growl.framework /Users/lukas/Desktop/unison-2.40.63/uimacnew/build/Default/Unison.app/Contents/Frameworks

** BUILD FAILED **


The following build commands failed:
uimac:
	Ld /Users/lukas/Desktop/unison-2.40.63/uimacnew/build/Default/Unison.app/Contents/MacOS/Unison normal i386
(1 failure)

make: *** [macexecutable] Error 1

Do I need a different OCaml build?

Best regards,
Lukas




More information about the Unison-hackers mailing list