Mercury Bugs - mercury
View Issue Details
0000164mercuryBugpublic2010-09-14 15:292010-09-14 15:29
Reporterjuliensf 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000164: problem with mmake -j32
Description
From keri@gentoo.org on mercury-users

===================

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
TagsNo tags attached.
Attached Files

There are no notes attached to this issue.

Issue History
2010-09-14 15:29juliensfNew Issue