[mercury-users] mercury-10.04.1 bootstrap failing (under parallel make)

Keri Harris keri at gentoo.org
Mon Sep 13 19:09:18 AEST 2010


Hi folks.

I've run into a hitch when bootstrapping mercury-10.04.1 on a linux-sparc box. 
I'm attempting to bootstrap with mercury-10.04 where all C files need to be 
rebuilt; I'm running a parallel compile with 32 submakes (it's a fast machine 
:-)). It looks like building mercury_compile is failing due to race between 
mmc generating .mih files and mgnuc compiling .c files that include the .mih 
files.

>From './configure':

looking for an already installed Mercury compiler to bootstrap with...
checking for mmc... /usr/bin/mmc
checking whether the above mmc works and is sufficiently recent... yes
...
checking whether any C files need to be rebuilt...
there are no existing Mercury-generated C files

>From 'make':

/usr/bin/mmc --compile-to-c --grade hlc.gc      --mercury-linkage static --
flags COMP_FLAGS      transform_hlds.term_constr_data > 
transform_hlds.term_constr_data.err 2>&1
/usr/bin/mmc --compile-to-c --grade hlc.gc      --mercury-linkage static --
flags COMP_FLAGS      transform_hlds.term_constr_main > 
transform_hlds.term_constr_main.err 2>&1
/usr/bin/mmc --compile-to-c --grade hlc.gc      --mercury-linkage static --
flags COMP_FLAGS      transform_hlds.term_errors > 
transform_hlds.term_errors.err 2>&1
...
../scripts/mgnuc --grade hlc.gc        --      -c analysis.c -o analysis.o
analysis.c:116:47: error: transform_hlds.term_constr_data.mih: No such file or 
directory
analysis.c:118:47: error: transform_hlds.term_constr_main.mih: No such file or 
directory
analysis.c:119:42: error: transform_hlds.term_errors.mih: No such file or 
directory
....

Without dialing things down to -j1, is there much I can do to workaround this 
problem?


Thanks

Keri


--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list