Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Dec 2017 18:33:22 +0100
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Alexey Dokuchaev <danfe@FreeBSD.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, clusteradm@FreeBSD.org
Subject:   Re: svn commit: r456402 - in head/lang/ocaml: . files
Message-ID:  <d13f-kial-wny@FreeBSD.org>
In-Reply-To: <20171215170122.GA55820@FreeBSD.org> (Alexey Dokuchaev's message of "Fri, 15 Dec 2017 17:01:22 %2B0000")
References:  <201712151531.vBFFV86t045131@repo.freebsd.org> <20171215170122.GA55820@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexey Dokuchaev <danfe@FreeBSD.org> writes:

> On Fri, Dec 15, 2017 at 03:31:08PM +0000, Alexey Dokuchaev wrote:
>
>> New Revision: 456402
>> URL: https://svnweb.freebsd.org/changeset/ports/456402
>> 
>> Log:
>>   First step to unbreak `lang/ocaml' on aarch64: teach configure script that
>>   the architecture exists on FreeBSD.  Unfortunately, this is not enough for
>>   build to succeed, it now complains that as(1) is not found:
>>   
>>     ../boot/ocamlrun ../ocamlopt -strict-sequence -w +33..39 -g -warn-error A
>>     -bin-annot -nostdlib -safe-string `./Compflags camlinternalFormatBasics.cmx`
>>     -c camlinternalFormatBasics.ml
>>     sh: as: not found
>>     File "camlinternalFormatBasics.ml", line 1:
>>     Error: Assembler error, input left in file /tmp/camlasm4329ae.s
>>     gmake[7]: *** [Makefile.shared:84: camlinternalFormatBasics.cmx] Error 2
>
> I don't know why as(1), as /usr/bin/as typically, is not installed on
> ref11-aarch64.freebsd.org.  If that is by design, how assembler is called
> on FreeBSD/aarch64?  If it's not installed by default on aarch64, may
> I ask clusteradm@ (CC'ed) to install `devel/binutils' on ref11-aarch64 so
> I can proceed with porting `lang/ocaml' there?

FreeBSD aarch64 uses integrated assembler from Clang. If asm files are
compatible you can s/${AS} ${ASFLAGS}/${CC} -Wa,${ASFLAGS:ts,}/
However, I'm surprised you're testing in a dirty environment instead of:

  # -x (native-xtools) before FreeBSD 12.0 requires /usr/src to match jail
  $ svn checkout https://svn.freebsd.org/base/releng/11.1 /usr/src
  $ poudriere jail -cxj 111aarch64 -a arm64.aarch64 -v 11.1-RELEASE
  $ poudriere bulk -Ctj 111aarch64 lang/ocaml

or

  $ poudriere jail -cxj head-aarch64 -a arm64.aarch64 -v head -m svn+https
  $ poudriere bulk -Ctj head-aarch64 lang/ocaml



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d13f-kial-wny>