Устанавливаю nasm-0.98.08-alt1.src.rpm Исполняю(%prep): /bin/sh -e /var/tmp/rpm-tmp.41448 + umask 022 + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf nasm-0.98.08 + /bin/bzip2 -dc /usr/src/RPM/SOURCES/nasm-0.98.08.tar.bz2 + /bin/tar -xf - + STATUS=0 + \'[\' 0 -ne 0 \']\' + cd nasm-0.98.08 ++ /usr/bin/id -u + \'[\' 501 = 0 \']\' ++ /usr/bin/id -u + \'[\' 501 = 0 \']\' + /bin/chmod -Rf a+rX,g-w,o-w . + exit 0 Исполняю(%build): /bin/sh -e /var/tmp/rpm-tmp.23823 + umask 022 + cd /usr/src/RPM/BUILD + cd nasm-0.98.08 + chmod 0755 ./configure + CFLAGS=-pipe -Wall -O2 -fexpensive-optimizations -march=athlon + export CFLAGS + CXXFLAGS=-pipe -Wall -O2 -fexpensive-optimizations -march=athlon + export CXXFLAGS + FFLAGS=-pipe -Wall -O2 -fexpensive-optimizations -march=athlon + export FFLAGS + \'[\' -f configure.in \']\' + libtoolize --copy --force Remember to add `AC_PROG_LIBTOOL\' to `configure.in\'. You should add the contents of `/usr/share/aclocal/libtool.m4\' to `aclocal.m4\'. + ./configure athlon-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --without-included-gettext loading cache ./config.cache checking for gcc... (cached) gcc checking whether the C compiler (gcc -pipe -Wall -O2 -fexpensive-optimizations -march=athlon ) works... yes checking whether the C compiler (gcc -pipe -Wall -O2 -fexpensive-optimizations -march=athlon ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking whether ln -s works... (cached) yes checking whether make sets ${MAKE}... (cached) yes checking for a BSD compatible install... (cached) /usr/bin/ginstall -c checking for nroff... (cached) nroff checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking for limits.h... (cached) yes checking for working const... (cached) yes checking for size_t... (cached) yes checking for vprintf... (cached) yes checking for strcspn... (cached) yes checking for strspn... (cached) yes updating cache ./config.cache creating ./config.status creating Makefile creating rdoff/Makefile creating doc/Makefile + make everything perl ./insns.pl -i ./insns.dat Reading insns.dat... Writing insnsi.h... Done: 1534 instructions gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o nasm.o nasm.c nasm.c: In function `process_arg\': nasm.c:446: warning: string length `816\' is greater than the minimum length `509\' ISO C89 is required to support perl ./insns.pl -n ./insns.dat Reading insns.dat... Writing insnsn.c... Done: 1534 instructions gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o nasmlib.o nasmlib.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o float.o float.c perl ./insns.pl -a ./insns.dat Reading insns.dat... Writing insnsa.c... Done: 1534 instructions gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o insnsa.o insnsa.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o assemble.o assemble.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o labels.o labels.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o parser.o parser.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outform.o outform.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outbin.o outbin.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outaout.o outaout.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outcoff.o outcoff.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outelf.o outelf.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outobj.o outobj.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outas86.o outas86.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outrdf.o outrdf.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outrdf2.o outrdf2.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o outdbg.o outdbg.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o zoutieee.o zoutieee.c perl ./macros.pl ./standard.mac gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o preproc.o preproc.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o listing.o listing.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o eval.o eval.c gcc -o nasm nasm.o nasmlib.o float.o insnsa.o assemble.o labels.o parser.o outform.o outbin.o outaout.o outcoff.o outelf.o outobj.o outas86.o outrdf.o outrdf2.o outdbg.o zoutieee.o preproc.o listing.o eval.o gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o ndisasm.o ndisasm.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o disasm.o disasm.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o sync.o sync.c perl ./insns.pl -d ./insns.dat Reading insns.dat... Writing insnsd.c... Done: 1534 instructions gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I. -o insnsd.o insnsd.c gcc -o ndisasm ndisasm.o disasm.o sync.o nasmlib.o insnsd.o cd rdoff; make all make[1]: Entering directory `/usr/src/RPM/BUILD/nasm-0.98.08/rdoff\' gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. rdfdump.c gcc -o rdfdump rdfdump.o gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. ldrdf.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. rdoff.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. ../nasmlib.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. symtab.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. collectn.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. rdlib.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. segtab.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. hash.c gcc -o ldrdf ldrdf.o rdoff.o nasmlib.o symtab.o collectn.o rdlib.o segtab.o hash.o gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. rdx.c gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. rdfload.c rdfload.c: In function `rdf_relocate\': rdfload.c:171: warning: implicit declaration of function `strlen\' rdfload.c:175: warning: implicit declaration of function `strcpy\' gcc -o rdx rdx.o rdoff.o rdfload.o symtab.o collectn.o hash.o gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. rdflib.c rdflib.c: In function `copybytes\': rdflib.c:72: warning: implicit declaration of function `exit\' gcc -o rdflib rdflib.o gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. rdf2bin.c gcc -o rdf2bin rdf2bin.o rdoff.o rdfload.o symtab.o collectn.o hash.o nasmlib.o rm -f rdf2com && ln -s rdf2bin rdf2com gcc -c -pipe -Wall -O2 -fexpensive-optimizations -march=athlon -Wall -ansi -pedantic -I. -I.. rdf2ihx.c gcc -o rdf2ihx rdf2ihx.o rdoff.o rdfload.o symtab.o collectn.o hash.o nasmlib.o make[1]: Leaving directory `/usr/src/RPM/BUILD/nasm-0.98.08/rdoff\' cd doc && make all make[1]: Entering directory `/usr/src/RPM/BUILD/nasm-0.98.08/doc\' mkdir -p html perl ./rdsrc.pl < nasmdoc.src Reading input...done. Fixing up cross-references...done. Sorting index tags...done. Producing text output: writing file...code line longer than 68 chars: PINSRW mmxreg,reg16,immediate ;0F,C4,/r,ib [KATMAI,MMX,SB,AR2] code line longer than 68 chars: PINSRW mmxreg,reg32,immediate ; ?? [KATMAI,MMX,SB,AR2,ND] code line longer than 68 chars: PINSRW mmxreg,memory,immediate ; ?? [KATMAI,MMX,SB,AR2] done. Producing HTML output: writing contents file...writing chapter files... writing index file...done. Producing PostScript output: line-breaks...building contents...page-breaks... fixing up contents...building index...writing file...done. Producing Texinfo output: writing file...code line longer than 68 chars: PINSRW mmxreg,reg16,immediate ;0F,C4,/r,ib [KATMAI,MMX,SB,AR2] code line longer than 68 chars: PINSRW mmxreg,reg32,immediate ; ?? [KATMAI,MMX,SB,AR2,ND] code line longer than 68 chars: PINSRW mmxreg,memory,immediate ; ?? [KATMAI,MMX,SB,AR2] done. Producing WinHelp output: building index entries...writing .hpj file... writing .rtf file...code line longer than 68 chars: PINSRW mmxreg,reg16,immediate ;0F,C4,/r,ib [KATMAI,MMX,SB,AR2] code line longer than 68 chars: PINSRW mmxreg,reg32,immediate ; ?? [KATMAI,MMX,SB,AR2,ND] code line longer than 68 chars: PINSRW mmxreg,memory,immediate ; ?? [KATMAI,MMX,SB,AR2] done. mv -f *.html html mkdir -p info makeinfo nasmdoc.texi mv -f *.info *.info-* info make[1]: Leaving directory `/usr/src/RPM/BUILD/nasm-0.98.08/doc\' cd rdoff && make make[1]: Entering directory `/usr/src/RPM/BUILD/nasm-0.98.08/rdoff\' make[1]: Nothing to be done for `all\'. make[1]: Leaving directory `/usr/src/RPM/BUILD/nasm-0.98.08/rdoff\' + exit 0 Исполняю(%install): /bin/sh -e /var/tmp/rpm-tmp.18451 + umask 022 + cd /usr/src/RPM/BUILD + /bin/rm -rf /var/tmp/nasm-buildroot + cd nasm-0.98.08 + mkdir -p /var/tmp/nasm-buildroot//usr/bin /var/tmp/nasm-buildroot//usr/share/info /var/tmp/nasm-buildroot//usr/share/man/man1 + make INSTALLROOT=/var/tmp/nasm-buildroot install /usr/bin/ginstall -c nasm /var/tmp/nasm-buildroot/usr/bin/nasm make: /usr/bin/ginstall: Command not found make: *** [install] Error 127 Неверный код возврата из /var/tmp/rpm-tmp.18451 (%install) По команде configure радостно пытается использоваться config.cache, имеющий смысл только в каждой отдельно взятой системе. К сожалению, не было времени расследовать, откуда он взялся в архиве исходников. Как вариант у себя подправил spec: --- nasm.spec.ORIG Wed Dec 5 13:46:23 2001 +++ nasm.spec Tue Jan 1 16:11:51 2002 @@ -36,6 +36,7 @@ %prep %setup -q #%patch -p1 +rm -rf config.cache %build chmod 0755 ./configure --- ---