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

Compiling on NetBSD/PowerPC fails #4116

Closed
vicuna opened this issue Sep 18, 2006 · 1 comment
Closed

Compiling on NetBSD/PowerPC fails #4116

vicuna opened this issue Sep 18, 2006 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 18, 2006

Original bug ID: 4116
Reporter: spiralvoice
Status: closed (set by @xavierleroy on 2006-09-20T17:45:21Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.09.3
Category: ~DO NOT USE (was: OCaml general)

Bug description

apfelkorn# make world
cd byterun; make all
cp byterun/ocamlrun boot/ocamlrun
cd yacc; make all
cp yacc/ocamlyacc boot/ocamlyacc
cd stdlib; make COMPILER=../boot/ocamlc all
cd stdlib; cp stdlib.cma std_exit.cmo *.cmi camlheader ../boot
if test -f boot/libcamlrun.a; then :; else ln -s ../byterun/libcamlrun.a boot/libcamlrun.a; fi

if test -d stdlib/caml; then :; else ln -s ../byterun stdlib/caml; fi
cd byterun; make all
if test -f stdlib/libcamlrun.a; then :; else ln -s ../byterun/libcamlrun.a stdlib/libcamlrun.a; fi
cd yacc; make all
cd lex; make all
cd tools; make all
cd stdlib; make all
for i in unix str num dynlink bigarray systhreads threads dbm; do (cd otherlibs/$i; make RUNTIME= all) || exit $?; done
cd camlp4; make all
set -e; for i in odyl camlp4 meta lib etc top ocpp man; do cd $i; make all; cd ..; done
cd debugger; make all
cd ocamldoc && make all
make manpages
apfelkorn# make opt
cd asmrun; make all
make: don't know how to make power-bsd.o. Stop

make: stopped in /usr/src/self/ocaml/ocaml-3.09.3/asmrun
*** Error code 2

Stop.
make: stopped in /usr/src/self/ocaml/ocaml-3.09.3

Additional information

This issue is known to NetBSD ports maintainers:
http://cvsweb.de.netbsd.org/cgi-bin/cvsweb.cgi/pkgsrc/lang/ocaml/Makefile.common?rev=1.15;content-type=text%2Fplain

.PHONY: cp-power-bsd
cp-power-bsd:
@${CP} ${WRKSRC:Q}/asmrun/power-elf.S ${WRKSRC:Q}/asmrun/power-bsd.S

A user on the MLDonkey IRC channel reported another fix:

[10:01] [19:43:32] error tracked donw
[10:01] [19:43:41] powerpc--linux) arch=power; model=ppc; system=elf;;
[10:01] [19:43:41] powerpc--netbsd) arch=power; model=ppc; system=bsd;;
[10:01] [19:43:47] thats from the configure script
[10:01] [19:45:12] either it really needs a power-bsd file or system needs to be set to either elf or rhapsody

So changing

[10:01] [19:43:41] powerpc--netbsd) arch=power; model=ppc; system=bsd;;

to system=elf would be another fix.

@vicuna
Copy link
Author

vicuna commented Sep 20, 2006

Comment author: @xavierleroy

Tentative fix in development branch (trunk): in configure, just set system=elf for PowerPC/BSD (sounds reasonable).

@vicuna vicuna closed this as completed Sep 20, 2006
@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