ocaml won't compile/install {Scanned}
Hey gang, I am trying to install ocaml so I can compile unison which depends on ocaml so I can synchronize my files between my MacBookPro and AMD64 Ubuntu box. Had to get the latest unison (2.27.10) I could find to overcome a 64 bit integer bug which was crashing file transfers. Since then Unison has worked flawlessly between MBP 10.4 and Ubuntu-AMD64. Then I did the leopard upgrade. Wrecked apple mail, now using Thunderbird and I can't get my old version of ocaml (3.10.0) to compile. It compiled fine on 10.4. So I downloaded MacPorts to get that version of ocaml: sh-3.2# port search ocaml ocaml lang/ocaml 3.10.0 Objective Caml is an implementation of the ML language ocaml-mode.el lang/ocaml-mode.el 3.05 An EMACS major mode for editing OCaml programs. ocamlduce lang/ocamlduce 3.08.4pl3 Objective Caml extensions for manipulating XML But when I try to install I get: sh-3.2# port install ocaml Error: Error executing darwin_9: invalid command name "macosx_deployment_target" Error: Unable to open port: Error evaluating variants I don't think it is a bad install of MacPorts as I have loaded several packages succesfully: sh-3.2# port installed The following ports are currently installed: expat @2.0.1_0 (active) gettext @0.17_0 (active) libiconv @1.11_6 (active) py-chart @1.37_0 (active) python24 @2.4.4_1+darwin_9 (active) python25 @2.5.1_2+darwin_9 (active) Is their some way I can edit the sources on ocaml to get it to compile? If not, How long do these type things usually take to get fixed in MacPorts? ie when should I check back....daily, weekly, monthly??? Thanks, Henry Hollenberg -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Le 18 nov. 07 à 14:47, HENRY HOLLENBERG a écrit :
Hey gang,
I am trying to install ocaml so I can compile unison which depends on ocaml so I can synchronize my files between my MacBookPro and AMD64 Ubuntu box. Had to get the latest unison (2.27.10) I could find to overcome a 64 bit integer bug which was crashing file transfers.
Since then Unison has worked flawlessly between MBP 10.4 and Ubuntu- AMD64.
Then I did the leopard upgrade. Wrecked apple mail, now using Thunderbird and I can't get my old version of ocaml (3.10.0) to compile. It compiled fine on 10.4.
So I downloaded MacPorts to get that version of ocaml:
sh-3.2# port search ocaml ocaml lang/ocaml 3.10.0 Objective Caml is an implementation of the ML language ocaml-mode.el lang/ocaml-mode.el 3.05 An EMACS major mode for editing OCaml programs. ocamlduce lang/ocamlduce 3.08.4pl3 Objective Caml extensions for manipulating XML
But when I try to install I get:
sh-3.2# port install ocaml Error: Error executing darwin_9: invalid command name "macosx_deployment_target" Error: Unable to open port: Error evaluating variants
I don't think it is a bad install of MacPorts as I have loaded several packages succesfully:
sh-3.2# port installed The following ports are currently installed: expat @2.0.1_0 (active) gettext @0.17_0 (active) libiconv @1.11_6 (active) py-chart @1.37_0 (active) python24 @2.4.4_1+darwin_9 (active) python25 @2.5.1_2+darwin_9 (active)
Is their some way I can edit the sources on ocaml to get it to compile?
If not, How long do these type things usually take to get fixed in MacPorts? ie when should I check back....daily, weekly, monthly???
Depends on the port, the problem and the availability of the maintainer :) I am the maintainer of ocaml, but I don't have Leopard and I have been vaguely inactive lately, especially when the following lines were added to ocaml Portfile: platform darwin 9 { macosx_deployment_target 10.4 } This is what breaks on your system. Judging from the Changelog, this command hasn't been released yet, and this is why it breaks. I guess you can either: - get the latest development version of MacPorts (or the 1.6 RC, if it includes this command) - replace it with something that should work on the previous release of MacPorts, such as: configure.env MACOSX_DEPLOYMENT_TARGET=10.4 I'm Ccing Kevin who might have a clue. Paul
I recommend grabbing MacPorts trunk. It's certainly the easiest solution. If you don't want to do that, then yes, you need to rip out that line and add in configure.env-append MACOSX_DEPLOYMENT_TARGET=10.4 build.env-append MACOSX_DEPLOYMENT_TARGET=10.4 destroot.env-append MACOSX_DEPLOYMENT_TARGET=10.4 I don't actually know if all 3 of those are required, but since I don't know which ones are (and the macosx_deployment_target command actually sets the env var on every single target executed), doing those 3 should work. -Kevin Ballard On Nov 18, 2007, at 10:16 AM, Paul Guyot wrote:
Le 18 nov. 07 à 14:47, HENRY HOLLENBERG a écrit :
Hey gang,
I am trying to install ocaml so I can compile unison which depends on ocaml so I can synchronize my files between my MacBookPro and AMD64 Ubuntu box. Had to get the latest unison (2.27.10) I could find to overcome a 64 bit integer bug which was crashing file transfers.
Since then Unison has worked flawlessly between MBP 10.4 and Ubuntu- AMD64.
Then I did the leopard upgrade. Wrecked apple mail, now using Thunderbird and I can't get my old version of ocaml (3.10.0) to compile. It compiled fine on 10.4.
So I downloaded MacPorts to get that version of ocaml:
sh-3.2# port search ocaml ocaml lang/ocaml 3.10.0 Objective Caml is an implementation of the ML language ocaml-mode.el lang/ocaml-mode.el 3.05 An EMACS major mode for editing OCaml programs. ocamlduce lang/ocamlduce 3.08.4pl3 Objective Caml extensions for manipulating XML
But when I try to install I get:
sh-3.2# port install ocaml Error: Error executing darwin_9: invalid command name "macosx_deployment_target" Error: Unable to open port: Error evaluating variants
I don't think it is a bad install of MacPorts as I have loaded several packages succesfully:
sh-3.2# port installed The following ports are currently installed: expat @2.0.1_0 (active) gettext @0.17_0 (active) libiconv @1.11_6 (active) py-chart @1.37_0 (active) python24 @2.4.4_1+darwin_9 (active) python25 @2.5.1_2+darwin_9 (active)
Is their some way I can edit the sources on ocaml to get it to compile?
If not, How long do these type things usually take to get fixed in MacPorts? ie when should I check back....daily, weekly, monthly???
Depends on the port, the problem and the availability of the maintainer :) I am the maintainer of ocaml, but I don't have Leopard and I have been vaguely inactive lately, especially when the following lines were added to ocaml Portfile:
platform darwin 9 { macosx_deployment_target 10.4 }
This is what breaks on your system. Judging from the Changelog, this command hasn't been released yet, and this is why it breaks. I guess you can either: - get the latest development version of MacPorts (or the 1.6 RC, if it includes this command) - replace it with something that should work on the previous release of MacPorts, such as: configure.env MACOSX_DEPLOYMENT_TARGET=10.4
I'm Ccing Kevin who might have a clue.
Paul
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
On Nov 18, 2007, at 10:16 AM, Paul Guyot wrote:
Le 18 nov. 07 à 14:47, HENRY HOLLENBERG a écrit :
Hey gang,
I am trying to install ocaml so I can compile unison which depends on ocaml so I can synchronize my files between my MacBookPro and AMD64 Ubuntu box. Had to get the latest unison (2.27.10) I could find to overcome a 64 bit integer bug which was crashing file transfers.
Since then Unison has worked flawlessly between MBP 10.4 and Ubuntu- AMD64.
Then I did the leopard upgrade. Wrecked apple mail, now using Thunderbird and I can't get my old version of ocaml (3.10.0) to compile. It compiled fine on 10.4.
So I downloaded MacPorts to get that version of ocaml:
sh-3.2# port search ocaml ocaml lang/ocaml 3.10.0 Objective Caml is an implementation of the ML language ocaml-mode.el lang/ocaml-mode.el 3.05 An EMACS major mode for editing OCaml programs. ocamlduce lang/ocamlduce 3.08.4pl3 Objective Caml extensions for manipulating XML
But when I try to install I get:
sh-3.2# port install ocaml Error: Error executing darwin_9: invalid command name "macosx_deployment_target" Error: Unable to open port: Error evaluating variants
I don't think it is a bad install of MacPorts as I have loaded several packages succesfully:
sh-3.2# port installed The following ports are currently installed: expat @2.0.1_0 (active) gettext @0.17_0 (active) libiconv @1.11_6 (active) py-chart @1.37_0 (active) python24 @2.4.4_1+darwin_9 (active) python25 @2.5.1_2+darwin_9 (active)
Is their some way I can edit the sources on ocaml to get it to compile?
If not, How long do these type things usually take to get fixed in MacPorts? ie when should I check back....daily, weekly, monthly???
Depends on the port, the problem and the availability of the maintainer :) I am the maintainer of ocaml, but I don't have Leopard and I have been vaguely inactive lately, especially when the following lines were added to ocaml Portfile:
platform darwin 9 { macosx_deployment_target 10.4 }
This is what breaks on your system. Judging from the Changelog, this command hasn't been released yet, and this is why it breaks. I guess you can either: - get the latest development version of MacPorts (or the 1.6 RC, if it includes this command) - replace it with something that should work on the previous release of MacPorts, such as: configure.env MACOSX_DEPLOYMENT_TARGET=10.4
I'm Ccing Kevin who might have a clue.
Paul
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
I reported this a week ago --http://trac.macports.org/projects/macports/ticket/13236 also if this *was* valid should it not be = 10.5 for darwin_9 not 10.4 as shown in portfile @ Henry sudo port edit ocaml will let you edit the port file (assuming you have env value EDITOR defined) try adding # at the begining of those three lines # platform darwin_9 # macosx_deployment_target 10.4 # } Then try again. Note: this change will go away the next time you do sudo port selfupdate, but that doesnt matter if the software installed it will stay installed. William Davis frstanATbellsouthDOTnet Mac OS X.5.1 Darwin 9.1.0 Xquartz-1.2a11 Mac Mini Intel Duo @ 1.86 GHz Mundus vult decepi, ego non
No, it's 10.4 for a reason. That version of ocaml won't install on 10.5 stock because 10.5 now conforms to UNIX03, which means there are some non-backwards-compatible changes with 10.4. By setting the deployment target to 10.4 we are saying "use the old 10.4 APIs, not the new UNIX03-compliant APIs", which means it once again compiles. On Nov 18, 2007, at 12:03 PM, William Davis wrote:
I reported this a week ago --http://trac.macports.org/projects/macports/ticket/13236 also if this *was* valid should it not be = 10.5 for darwin_9 not 10.4 as shown in portfile
@ Henry sudo port edit ocaml will let you edit the port file (assuming you have env value EDITOR defined) try adding # at the begining of those three lines
# platform darwin_9 # macosx_deployment_target 10.4 # }
Then try again. Note: this change will go away the next time you do sudo port selfupdate, but that doesnt matter if the software installed it will stay installed.
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
On Nov 18, 2007, at 12:06 PM, Kevin Ballard wrote:
No, it's 10.4 for a reason. That version of ocaml won't install on 10.5 stock because 10.5 now conforms to UNIX03, which means there are some non-backwards-compatible changes with 10.4. By setting the deployment target to 10.4 we are saying "use the old 10.4 APIs, not the new UNIX03-compliant APIs", which means it once again compiles.
On Nov 18, 2007, at 12:03 PM, William Davis wrote:
I reported this a week ago --http://trac.macports.org/projects/macports/ticket/13236 also if this *was* valid should it not be = 10.5 for darwin_9 not 10.4 as shown in portfile
@ Henry sudo port edit ocaml will let you edit the port file (assuming you have env value EDITOR defined) try adding # at the begining of those three lines
# platform darwin_9 # macosx_deployment_target 10.4 # }
Then try again. Note: this change will go away the next time you do sudo port selfupdate, but that doesnt matter if the software installed it will stay installed.
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
Kevin, thanks for explaining that. William Davis frstanATbellsouthDOTnet Mac OS X.5.1 Darwin 9.1.0 Xquartz-1.2a11 Mac Mini Intel Duo @ 1.86 GHz Mundus vult decepi, ego non
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 Error: Status 1 encountered during processing. Henry Hollenberg. William Davis wrote:
On Nov 18, 2007, at 10:16 AM, Paul Guyot wrote:
Le 18 nov. 07 à 14:47, HENRY HOLLENBERG a écrit :
Hey gang,
I am trying to install ocaml so I can compile unison which depends on ocaml so I can synchronize my files between my MacBookPro and AMD64 Ubuntu box. Had to get the latest unison (2.27.10) I could find to overcome a 64 bit integer bug which was crashing file transfers.
Since then Unison has worked flawlessly between MBP 10.4 and Ubuntu-AMD64.
Then I did the leopard upgrade. Wrecked apple mail, now using Thunderbird and I can't get my old version of ocaml (3.10.0) to compile. It compiled fine on 10.4.
So I downloaded MacPorts to get that version of ocaml:
sh-3.2# port search ocaml ocaml lang/ocaml 3.10.0 Objective Caml is an implementation of the ML language ocaml-mode.el lang/ocaml-mode.el 3.05 An EMACS major mode for editing OCaml programs. ocamlduce lang/ocamlduce 3.08.4pl3 Objective Caml extensions for manipulating XML
But when I try to install I get:
sh-3.2# port install ocaml Error: Error executing darwin_9: invalid command name "macosx_deployment_target" Error: Unable to open port: Error evaluating variants
I don't think it is a bad install of MacPorts as I have loaded several packages succesfully:
sh-3.2# port installed The following ports are currently installed: expat @2.0.1_0 (active) gettext @0.17_0 (active) libiconv @1.11_6 (active) py-chart @1.37_0 (active) python24 @2.4.4_1+darwin_9 (active) python25 @2.5.1_2+darwin_9 (active)
Is their some way I can edit the sources on ocaml to get it to compile?
If not, How long do these type things usually take to get fixed in MacPorts? ie when should I check back....daily, weekly, monthly???
Depends on the port, the problem and the availability of the maintainer :) I am the maintainer of ocaml, but I don't have Leopard and I have been vaguely inactive lately, especially when the following lines were added to ocaml Portfile:
platform darwin 9 { macosx_deployment_target 10.4 }
This is what breaks on your system. Judging from the Changelog, this command hasn't been released yet, and this is why it breaks. I guess you can either: - get the latest development version of MacPorts (or the 1.6 RC, if it includes this command) - replace it with something that should work on the previous release of MacPorts, such as: configure.env MACOSX_DEPLOYMENT_TARGET=10.4
I'm Ccing Kevin who might have a clue.
Paul
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
I reported this a week ago --http://trac.macports.org/projects/macports/ticket/13236 also if this *was* valid should it not be = 10.5 for darwin_9 not 10.4 as shown in portfile
@ Henry sudo port edit ocaml will let you edit the port file (assuming you have env value EDITOR defined) try adding # at the begining of those three lines
# platform darwin_9 # macosx_deployment_target 10.4 # }
Then try again. Note: this change will go away the next time you do sudo port selfupdate, but that doesnt matter if the software installed it will stay installed.
William Davis frstanATbellsouthDOTnet Mac OS X.5.1 Darwin 9.1.0 Xquartz-1.2a11 Mac Mini Intel Duo @ 1.86 GHz
Mundus vult decepi, ego non
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
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
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.
participants (5)
-
Brent Fulgham
-
HENRY HOLLENBERG
-
Kevin Ballard
-
Paul Guyot
-
William Davis