[m-dev.] Can't run configure on ceres

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Feb 11 11:44:29 AEDT 2004


On 11-Feb-2004, Ralph Becket <rafe at cs.mu.OZ.AU> wrote:
> checking whether the above mmc works and is sufficiently recent...
> configure: error: You need a working Mercury compiler to bootstrap with
> no
...
> /home/ceres/public/mercury-latest/i686-pc-linux-gnu/bin/mmc --record-term-sizes-as-words --compile-to-c conftest
...
> mercury_compile: term size profiling is incompatible with high level code
>
> This is rather unfortunate!

Fixed by the patch below.

Estimated hours taken: 0.25
Branches: main

configure.in:
	When checking the `--record-term-sizes-as-words' option,
	explicitly select an LLDS grade, to avoid failing this
	test on systems where the default grade is hlc.gc.

Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: configure.in
===================================================================
RCS file: /home/mercury1/repository/mercury/configure.in,v
retrieving revision 1.385
diff -u -d -r1.385 configure.in
--- configure.in	5 Feb 2004 09:26:32 -0000	1.385
+++ configure.in	11 Feb 2004 00:40:23 -0000
@@ -219,9 +219,14 @@
 			--halt-at-warn $link_static_opt conftest \
 			</dev/null >&AC_FD_CC 2>&1 &&
 		test "`./conftest 2>&1 | tr -d '\015'`" = "Hello, world" &&
+		# Test for the --record-term-sizes-as-words option.
+		# Note that we need to set --grade to an LLDS grade
+		# when doing this test because term size profiling
+		# requires an LLDS grade.
 		$BOOTSTRAP_MC \
+			--grade none.gc \
 			--record-term-sizes-as-words \
-			--compile-to-c conftest \
+			--output-grade-string \
 			</dev/null >&AC_FD_CC 2>&1
 	then
 		AC_MSG_RESULT(yes)
-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list