source: general/prog/nasm.xml@ 436860d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 436860d was 436860d, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

GCC 8 fixes

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20144 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.0 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[efdd9de]7 <!ENTITY nasm-download-http "http://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;.tar.xz">
8 <!ENTITY nasm-download-ftp " ">
[ccc19e1b]9 <!ENTITY nasm-md5sum "d5ca2ad7121ccbae69dd606b1038532c">
[e024fe4]10 <!ENTITY nasm-size "788 KB">
[ccc19e1b]11 <!ENTITY nasm-buildsize "27 MB" >
[42aba059]12 <!ENTITY nasm-time "0.2 SBU">
[52d29f7]13]>
14
[efdd9de]15<sect1 id="nasm" xreflabel="NASM-&nasm-version;">
16 <?dbhtml filename="nasm.html" ?>
[5eaa687]17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[efdd9de]23 <title>NASM-&nasm-version;</title>
[5eaa687]24
[efdd9de]25 <indexterm zone="nasm">
[5eaa687]26 <primary sortas="a-NASM">NASM</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to NASM</title>
31
[7cd76d62]32 <para><application>NASM</application> (Netwide Assembler)
33 is an 80x86 assembler designed for portability and modularity. It includes a
[5eaa687]34 disassembler as well.</para>
35
[952c2494]36 &lfs82_checked;
[a9e90a5]37
[5eaa687]38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
[efdd9de]41 <para>Download (HTTP): <ulink url="&nasm-download-http;"/></para>
[5eaa687]42 </listitem>
43 <listitem>
[efdd9de]44 <para>Download (FTP): <ulink url="&nasm-download-ftp;"/></para>
[5eaa687]45 </listitem>
46 <listitem>
[efdd9de]47 <para>Download MD5 sum: &nasm-md5sum;</para>
[5eaa687]48 </listitem>
49 <listitem>
[efdd9de]50 <para>Download size: &nasm-size;</para>
[5eaa687]51 </listitem>
52 <listitem>
[efdd9de]53 <para>Estimated disk space required: &nasm-buildsize;</para>
[5eaa687]54 </listitem>
55 <listitem>
[efdd9de]56 <para>Estimated build time: &nasm-time;</para>
[5eaa687]57 </listitem>
58 </itemizedlist>
[e31502b]59
[60791bf]60 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
61 <itemizedlist spacing="compact">
[bccbdaea]62 <listitem>
[e31502b]63 <para>Optional documentation: <ulink
[efdd9de]64 url="http://www.nasm.us/pub/nasm/releasebuilds/&nasm-version;/nasm-&nasm-version;-xdoc.tar.xz"/></para>
[60791bf]65 </listitem>
66 </itemizedlist>
[e31502b]67
[1039de3]68 <para condition="html" role="usernotes">User Notes:
69 <ulink url="&blfs-wiki;/nasm"/></para>
70
[5eaa687]71 </sect2>
72
73 <sect2 role="installation">
74 <title>Installation of NASM</title>
75
[436860d]76 <para>First, fix an issue when building with gcc 8:</para>
77
78<screen><userinput>sed -i '/seg_init/s/pure_func//' include/nasmlib.h</userinput></screen>
79
[0d7900a]80 <para>If you downloaded the optional documentation, put it into the
[e31502b]81 source tree:</para>
82
[efdd9de]83<screen><userinput>tar -xf ../nasm-&nasm-version;-xdoc.tar.xz --strip-components=1</userinput></screen>
[e31502b]84
[0590db71]85 <para>
86 Apply some upstream fixes, which are needed for compiling with gcc-8.1:
87 </para>
88
89<screen><userinput>sed -e '/seg_init/d' \
90 -e 's/pure_func seg_alloc/seg_alloc/' \
91 -i include/nasmlib.h</userinput></screen>
92
[7cd76d62]93 <para>Install <application>NASM</application> by running
[5eaa687]94 the following commands:</para>
95
[61db33a]96<screen><userinput>./configure --prefix=/usr &amp;&amp;
[e31502b]97make</userinput></screen>
98
[5eaa687]99 <para>This package does not come with a test suite.</para>
[87053af]100
[5eaa687]101 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[bd23186f]102
[efdd9de]103<!-- dev note: make INSTALLROOT=<DESTDIR> install -->
104
[e31502b]105<screen role="root"><userinput>make install</userinput></screen>
106
107 <para>If you downloaded the optional documentation, install it with the
108 following instructions as the <systemitem
109 class="username">root</systemitem> user:</para>
110
[efdd9de]111<screen role="root"><userinput>install -m755 -d /usr/share/doc/nasm-&nasm-version;/html &amp;&amp;
112cp -v doc/html/*.html /usr/share/doc/nasm-&nasm-version;/html &amp;&amp;
[42aba059]113cp -v doc/*.{txt,ps,pdf} /usr/share/doc/nasm-&nasm-version;</userinput></screen>
[92b0b42]114
[5eaa687]115 </sect2>
116
117 <sect2 role="content">
118 <title>Contents</title>
119
120 <segmentedlist>
121 <segtitle>Installed Programs</segtitle>
[c3c56b2]122 <segtitle>Installed Libraries</segtitle>
[92b0b42]123 <segtitle>Installed Directory</segtitle>
[5eaa687]124
125 <seglistitem>
[62e5e8f]126 <seg>nasm and ndisasm</seg>
[c3c56b2]127 <seg>None</seg>
[efdd9de]128 <seg>/usr/share/doc/nasm-&nasm-version;</seg>
[5eaa687]129 </seglistitem>
130 </segmentedlist>
131
132 <variablelist>
133 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
134 <?dbfo list-presentation="list"?>
135 <?dbhtml list-presentation="table"?>
136
137 <varlistentry id="nasm-prog">
138 <term><command>nasm</command></term>
139 <listitem>
140 <para>is a portable 80x86 assembler.</para>
[efdd9de]141 <indexterm zone="nasm nasm-prog">
[5eaa687]142 <primary sortas="b-nasm">nasm</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="ndisasm">
148 <term><command>ndisasm</command></term>
149 <listitem>
150 <para>is an 80x86 binary file disassembler.</para>
[efdd9de]151 <indexterm zone="nasm ndisasm">
[5eaa687]152 <primary sortas="b-ndisasm">ndisasm</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 </variablelist>
158
159 </sect2>
[284d8e17]160
161</sect1>
Note: See TracBrowser for help on using the repository browser.