Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCaml doesn't work on HP UX #2558

Closed
vicuna opened this issue May 6, 2004 · 2 comments
Closed

OCaml doesn't work on HP UX #2558

vicuna opened this issue May 6, 2004 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented May 6, 2004

Original bug ID: 2558
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Connelly Barnes
Version: ocaml-3.07
OS: HP UX
Submission from: c-67-168-252-23.client.comcast.net (67.168.252.23)

I tried to install OCaml on HP UX.

No binaries.

Built from source with a variety of options, most similar to:

./configure -host hppa2.0w-hp-hpux11.11 -no-tk -prefix ~

The host option is necessary because the configure code autodetects that it is
on a Sun Solaris system, when this is actually an HP UX server. (The Sun
Solaris build fails too, btw).

Tried to "make world".

The last 20 or so lines of the Make output are:

cp odyl_config.ml odyl_config.ppo
../../../ocamlcomp.sh -warn-error A -I ../../../otherlibs/dynlink -c -impl
odyl_config.ppo
rm -f odyl_config.ppo
cp odyl_main.mli odyl_main.ppi
../../../ocamlcomp.sh -warn-error A -I ../../../otherlibs/dynlink -c -intf
odyl_main.ppi
rm -f odyl_main.ppi
cp odyl_main.ml odyl_main.ppo
../../../ocamlcomp.sh -warn-error A -I ../../../otherlibs/dynlink -c -impl
odyl_main.ppo
rm -f odyl_main.ppo
../../../ocamlcomp.sh -I ../../../otherlibs/dynlink dynlink.cma odyl_config.cmo
odyl_main.cmo -a -o odyl.cma
cp odyl.ml odyl.ppo
../../../ocamlcomp.sh -warn-error A -I ../../../otherlibs/dynlink -c -impl
odyl.ppo
rm -f odyl.ppo
../../../ocamlcomp.sh odyl.cma odyl.cmo -o odyl
Bad directory
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

The last command (../../../ocamlcomp.sh odyl.cma odyl.cmo -o odyl) executes fine
within a shell, so the "Bad directory" error is caused by something else.

@vicuna
Copy link
Author

vicuna commented May 6, 2004

Comment author: administrator

connellybarnes@yahoo.com wrote/écrivait (Thu, May 06, 2004 at 04:20:06AM +0200):

Full_Name: Connelly Barnes
Version: ocaml-3.07
OS: HP UX
Submission from: c-67-168-252-23.client.comcast.net (67.168.252.23)

I tried to install OCaml on HP UX.

No binaries.

Built from source with a variety of options, most similar to:

./configure -host hppa2.0w-hp-hpux11.11 -no-tk -prefix ~

../../../ocamlcomp.sh -warn-error A -I ../../../otherlibs/dynlink -c -impl
odyl.ppo
rm -f odyl.ppo
../../../ocamlcomp.sh odyl.cma odyl.cmo -o odyl
Bad directory
*** Error exit code 1

The last command (../../../ocamlcomp.sh odyl.cma odyl.cmo -o odyl) executes fine
within a shell, so the "Bad directory" error is caused by something
else.

Right: the "Bad directory" error comes from tests in
camlp4/config/Makefile (and originally fromca mlp4/config/Makefile.tpl).

The tests are like this:

@if test `basename $<` != $<; then echo "Bad directory"; exit 1; fi

but I don't know why they fail in your attempt.

You may try to change those test lines into:

@if test `basename $<` != $<; then echo "Bad directory:	`basename $<` differs from $<"; fi

in camlp4/config/Makefile.tpl, and rerun configure and make world.

If it works, please send me the 'Bad directory' messages: I'll see if
I can do something about that.

Sincerely,

-- Michel

@vicuna
Copy link
Author

vicuna commented May 6, 2004

Comment author: administrator

OK, this was my fault.

I was using 'make', when I was supposed to be using
'gmake'.

The HP UX man command LIES, and says that 'make' is
the GNU make command.

You might want to include in the INSTALL file that HP
UX users might have to use 'gmake' instead of 'make'.

Thanks for your help!

--- Michel Mauny Michel.Mauny@inria.fr wrote:

connellybarnes@yahoo.com wrote/écrivait (Thu, May
06, 2004 at 04:20:06AM +0200):

Full_Name: Connelly Barnes
Version: ocaml-3.07
OS: HP UX
Submission from:
c-67-168-252-23.client.comcast.net (67.168.252.23)

I tried to install OCaml on HP UX.

No binaries.

Built from source with a variety of options, most
similar to:

./configure -host hppa2.0w-hp-hpux11.11 -no-tk
-prefix ~

../../../ocamlcomp.sh -warn-error A -I
../../../otherlibs/dynlink -c -impl
odyl.ppo
rm -f odyl.ppo
../../../ocamlcomp.sh odyl.cma odyl.cmo -o odyl
Bad directory
*** Error exit code 1

The last command (../../../ocamlcomp.sh odyl.cma
odyl.cmo -o odyl) executes fine
within a shell, so the "Bad directory" error is
caused by something
else.

Right: the "Bad directory" error comes from tests in
camlp4/config/Makefile (and originally fromca
mlp4/config/Makefile.tpl).

The tests are like this:

@if test basename $< != $<; then echo "Bad
directory"; exit 1; fi

but I don't know why they fail in your attempt.

You may try to change those test lines into:

@if test basename $< != $<; then echo "Bad
directory: basename $< differs from $<"; fi

in camlp4/config/Makefile.tpl, and rerun configure
and make world.

If it works, please send me the 'Bad directory'
messages: I'll see if
I can do something about that.

Sincerely,

-- Michel


Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

@vicuna vicuna closed this as completed May 12, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant