ocaml won't compile/install {Scanned}

HENRY HOLLENBERG hgh at rcwm.com
Sun Nov 18 16:21:33 PST 2007


That seemed to get it.  Now lets see if unison will compile....:

sh-3.2# port install ocaml
Portfile changed since last build; discarding previous state.
--->  Fetching ocaml
--->  Verifying checksum(s) for ocaml
--->  Extracting ocaml
--->  Configuring ocaml
--->  Building ocaml with target world.opt
--->  Staging ocaml into destroot
--->  Installing ocaml 3.10.0_0+darwin_9
--->  Activating ocaml 3.10.0_0+darwin_9
--->  Cleaning ocaml
sh-3.2# exit
exit
opie:RECORDINGS hgh$ which ocaml
/opt/local/bin/ocaml

Thanks Brent,
Henry Hollenberg


Brent Fulgham wrote:
>
> On Nov 18, 2007, at 1:03 PM, HENRY HOLLENBERG wrote:
>
>> Commented out the:
>>
>> # platform darwin_9
>> #   macosx_deployment_target 10.4
>> # }
>>
>> as requested and got a bit farther.....all the way to where I got 
>> stuck when I tried to
>> compile the sources without macports, looks like something called stk 
>> is missing it's definition:
>>
>> gcc -I../byterun -DCAML_NAME_SPACE -DNATIVE_CODE -DTARGET_i386 
>> -DSYS_macosx  -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -c -o 
>> globroots.o globroots.c
>> ln -s ../byterun/signals.c signals.c
>> gcc -I../byterun -DCAML_NAME_SPACE -DNATIVE_CODE -DTARGET_i386 
>> -DSYS_macosx  -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -c -o 
>> signals.o signals.c
>> gcc -I../byterun -DCAML_NAME_SPACE -DNATIVE_CODE -DTARGET_i386 
>> -DSYS_macosx  -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT   -c -o 
>> signals_asm.o signals_asm.c
>> signals_asm.c: In function 'segv_handler':
>> signals_asm.c:193: error: dereferencing pointer to incomplete type
>> signals_asm.c:193: error: dereferencing pointer to incomplete type
>> signals_asm.c: In function 'caml_init_signals':
>> signals_asm.c:241: error: storage size of 'stk' isn't known
>> signals_asm.c:241: warning: unused variable 'stk'
>> make[1]: *** [signals_asm.o] Error 1
>> make: *** [runtimeopt] Error 2
>
> Right -- this is exactly the kind of error you get when the UNIX03 
> signals stuff is used with OCaml.  This is why you need to use the 
> three commands described earlier.  Something like the following should 
> work:
>
> platform darwin 9 {
>         # In DP 1.6...
>         #    macosx_deployment_target 10.4
>
>         # For now, specify manually to build with Tiger-style:
>         configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4
>         build.env-append MACOSX_DEPLOYMENT_TARGET=10.4
>         destroot.env-append MACOSX_DEPLOYMENT_TARGET=10.4
> }
>
> -Brent
>
>


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the macports-users mailing list