[mercury-users] Errors while building rpm for Fedora

Peter Lemenkov lemenkov at gmail.com
Tue Aug 19 21:35:03 AEST 2008


Hello All!
I'm interested in Mercury after reading some online articles
describing it. In order to do this in a comfortable way (and,
probably, help those who also interested in) I decided to to make rpm
for Fedora/RHEL compatible distributives.  Unfortunately, I
encountered strange build errors while building using Fedora Build
Infrastructure:

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

gmake[2]: Entering directory
`/home/petro/rpmbuild/BUILD/mercury-compiler-rotd-2008-08-16/install_grade_dir.hlc.gc/library'
../Mmake.common:455: warning: undefined variable `mer_std.mhs'
../Mmake.common:458: warning: undefined variable `mer_std.mhs'
../Mmake.common:464: warning: undefined variable `mer_std.os'
/tmp/mmake.DmtkoZ:964: warning: undefined variable `mer_std.trans_opts'
/tmp/mmake.DmtkoZ:968: warning: undefined variable `mer_std.ms'
/tmp/mmake.DmtkoZ:976: warning: undefined variable `mer_std.ms'
/tmp/mmake.DmtkoZ:996: warning: undefined variable `mer_std.os'
/tmp/mmake.DmtkoZ:997: warning: undefined variable `mer_std.cs'
/tmp/mmake.DmtkoZ:998: warning: undefined variable `mer_std.ss'
/tmp/mmake.DmtkoZ:999: warning: undefined variable `mer_std.pic_ss'
/tmp/mmake.DmtkoZ:1000: warning: undefined variable `mer_std.ils'
/tmp/mmake.DmtkoZ:1001: warning: undefined variable `mer_std.javas'
/tmp/mmake.DmtkoZ:1157: warning: undefined variable `mer_std.os'
mmc --generate-dependencies --grade hlc.gc      --mercury-linkage
shared --flags LIB_FLAGS   --flags INTER_FLAGS
-R/usr/lib/mercury/lib/hlc.gc -R/usr/lib/mercury/lib
--no-warn-nothing-exported --no-warn-unused-imports   mer_std

*** Mercury runtime: caught segmentation violation ***
cause: address not mapped to object
address involved: (nil)
This may have been caused by a stack overflow, due to unbounded recursion.
exiting from signal handler
gmake[2]: *** [mer_std.depend] Error 1
gmake[2]: Leaving directory
`/home/petro/rpmbuild/BUILD/mercury-compiler-rotd-2008-08-16/install_grade_dir.hlc.gc/library'
To clean up from failed install, remove
/home/petro/rpmbuild/BUILD/mercury-compiler-rotd-2008-08-16/install_grade_dir.hlc.gc
gmake[1]: *** [install_grades] Error 1
gmake[1]: Leaving directory
`/home/petro/rpmbuild/BUILD/mercury-compiler-rotd-2008-08-16'
make: *** [install] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.43682 (%install)

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

See full build log for further details:

http://peter.fedorapeople.org/mercury-build.log
http://peter.fedorapeople.org/mercury-build-rotd-2008-08-16.log

I tried both 0.13.1 (stable) and rotd versions but w/o luck. It stucks
at %install stage where I invoked itin the following way (see build
log):

+ make install INSTALL_BINDIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/bin
\
INSTALL_LIBDIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/lib/mercury
\
INSTALL_ELISP_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/lib/mercury/elisp
\
INSTALL_MERC_BIN_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/bin
\
INSTALL_INFO_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/share/info
\
INSTALL_HTML_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/share/doc/html
\
INSTALL_DVI_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/share/doc/dvi
\
INSTALL_TEXT_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/share/doc
\
INSTALL_PS_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/share/doc/ps
\
INSTALL_PDF_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/share/doc/pdf
\
INSTALL_MAN_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/share/man/man1
\
INSTALL_MDB_DOC_DIR=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/share/doc
\
MERCURY_COMPILER=/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro/usr/bin/mercury_compile

Please note that strange
"/var/tmp/mercury-0.13.1-0.1.rotd_2008_08_16.fc9-root-petro" prefix is
just a substitution of %RPM_BUILD_ROOT variable used in our
buildsystem.

What should I add/change in order to successfully rebuild mercury?
-- 
With best regards!
--------------------------------------------------------------------------
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