Bug 31195 - Missing meta-simulator in mmix port
Summary: Missing meta-simulator in mmix port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: keith
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 15:40 UTC by Florian Schrack
Modified: 2001-11-23 03:54 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Schrack 2001-10-10 15:40:00 UTC
Prof. Knuth's MMIX tarball, which is used in the mmix port, contains the
sources for a program called mmmix (a meta-simulator for MMIX).
At my machine, this program is successfully compiled during 'make' but not
installed during 'make install'.
I think this is just an unintentional mistake because the program can be
run without problems and the port maintainer has just forgotten to include
the installation command for the mmmix binary in the Makefile.

Fix: Add one line to the Makefile. Here is a patch:

--- begin of patch ---


An additional suggestion is to upgrade to the newest version of MMIX
from Prof. Knuth's homepage as some details in the simulator might have
changed.--Rno5ItwllsOyB915h7dwWWr1cb8wrFaC2gxWm2IkGwO7W0Xs
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

*** Makefile.orig       Wed Oct 10 15:59:14 2001
--- Makefile    Wed Oct 10 16:00:02 2001
***************
*** 23,28 ****
--- 23,29 ----
 	${INSTALL_PROGRAM} ${WRKSRC}/mmix ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/mmixal ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/mmotype ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/mmmix ${PREFIX}/bin
 	@${MKDIR} ${MMIXDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${MMIXDIR}
 	${INSTALL_DATA} ${WRKSRC}/*.mmconfig ${MMIXDIR}
--- end of patch ---
How-To-Repeat: Type 'make' in /usr/ports/lang/mmix. Watch mmmix being successfully
compiled.
To see that the mmmix binary actually works change to the directory where it
was compiled (usually /usr/ports/lang/mmix/work) and type the following:

./mmixal primes.mms
./mmix -Dprimes.mmb primes
./mmmix plain.mmconfig primes.mmb

At the now appearing prompt ('mmmix>') type '1000000' and watch a list of
500 primes being generated. Exit the simulator with 'q'. No error should
appear, so the mmmix program seems ready for inclusion in the port.
Comment 1 Mario Sergio Fujikawa Ferreira freebsd_committer freebsd_triage 2001-10-10 18:59:16 UTC
Responsible Changed
From-To: freebsd-ports->keith

Over to maintainer
Comment 2 Ying-Chieh Liao freebsd_committer freebsd_triage 2001-11-23 03:53:09 UTC
State Changed
From-To: open->closed

committed, thanks