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
Wrong ASPPFLAGS on HPUX #3937
Comments
Comment author: anonymous Aehmm... I should use gcc... |
Comment author: anonymous gcc and gnu-as (2.15): make opt.opt fails: Warning Y: unused variable bp. |
Comment author: anonymous get segfaults (e.g. ocamlfind with some options) on HPUX :-(( |
Comment author: Christoph Bauer BTW, ocaml-3.08.3 runs fine. cb@snoopy:/home/users/bauer: gdb Program received signal SIGSEGV, Segmentation fault. |
Comment author: @xavierleroy The HPPA port of OCaml has always been very sensitive to the toolchain |
Comment author: Christoph Bauer Ok then I try to activate support for dynamic linking. config/Makefile config/s.h $ make install $ nm |
Comment author: anonymous No success with gcc-3.4.5 :-( The optimized build (e.g. "$ ocaml") leads to an segmention fault. |
Comment author: Christoph Bauer The native ocaml compiler looks quite good. I could succesfully compile a larger program with ocamlopt.opt. |
Comment author: Christoph Bauer I tested ocaml-3.08.2 again. It has the segmentation problems like ocaml-3.09.0 |
Comment author: Christoph Bauer (Next round with OCaml-3.09.2 and gcc-4.1.0) The assembler error message (label address to large) disappears /usr/ccs/bin/ld: Target of unconditional branch is out of range |
Comment author: Christoph Bauer Good news: the ld error disappears, if everything (camlp4+stdlib) is compiled with -compact -inline 0. |
Comment author: @xavierleroy To summarize: all problems but one go away with an appropriate choice of toolchain. The remaining problem (branches out of range for large function definitions) is an ocamlopt problem, and would need to be addressed like we did in the PowerPC code generator. However, lack of access to an HPPA machine (and of general interest for this architecture) means that this will probably never be done. I'm therefore closing this PR. |
Original bug ID: 3937
Reporter: abergou
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2006-08-30T11:29:33Z)
Resolution: won't fix
Priority: normal
Severity: minor
Version: 3.09.0
Category: ~DO NOT USE (was: OCaml general)
Monitored by: "Christoph Bauer"
Bug description
On HPUX OCaml sets in config/Makefile
ASPPFLAGS="-traditional -c -DSYS_hpux"
Then compilation fails, see additional information.
ASPPFLAGS=" -c -DSYS_hpux"
seems to work.
Christoph Bauer
Additional information
cc -O -traditional -c -DSYS_hpux -o hppa.o hppa.S ||
{ echo "If your assembler produced syntax errors, it is probably unhappy with the"; echo "preprocessor. Check your assembler, or try producing hppa.o by hand."; exit 2; }
cc: error 1400: Option t usage: -t c,name where c may be 1 or more of pc0al.
If your assembler produced syntax errors, it is probably unhappy with the
preprocessor. Check your assembler, or try producing hppa.o by hand.
make[1]: *** [hppa.o] Error 2
make[1]: Leaving directory `/projekte/backup/tools/unix/build/ocaml/ocaml-3.09.0/asmrun'
File attachments
The text was updated successfully, but these errors were encountered: