Subject: Re: old /usr/bin/as forces me not to upgrade avifile-devel
To: Frederick Bruckman <fredb@immanent.net>
From: Tomasz Luchowski <zuntum@netbsd.org>
List: tech-pkg
Date: 09/05/2001 21:33:21
On Tue, Sep 04, 2001 at 10:03:18AM -0500, Frederick Bruckman wrote:
> On Mon, 3 Sep 2001, Tomasz Luchowski wrote:
> 
> > NetBSD 1.5.1/i386. I get this error:
> >
> > {standard input}: Assembler messages:
> > {standard input}:158: Error: no such 386 instruction: `femms'
> > {standard input}:256: Error: no such 386 instruction: `femms'
> >
> > I have GNU assembler version 2.9.1 (i386--netbsd), using BFD
> > version 2.9.1. Replacing /usr/bin/as with 2.11 one makes it
> > compile. 2.11 binary was provided by Sergey Svishchev
> > <svs@ropnet.ru>, because mplayer package has the same problem and
> > wants new gas.
> 
> You shouldn't have to replace the binary to in /usr/bin/ to use the
> new gas, if you have it. Adding -B/new_path/ to ${CFLAGS} is supposed
> to work.

This doesn't seem to work:

gcc -c -I/mem/graphics/mplayer/work.i386/.buildlink/include -O2 -B/usr/pkg/bin -pipe -march=pentiumpro -mcpu=pentiumpro -B/usr/pkg/bin -pipe -march=pentiumpro -mcpu=pentiumpro -I. -I../libvo -I.. -I/usr/pkg/include -DMPG12PLAY -o idct_mmx.o idct_mmx.c
{standard input}: Assembler messages:
{standard input}:404: Error: no such 386 instruction: `pshufw'
gcc: file path prefix `/usr/pkg/bin' never used
gmake[1]: *** [idct_mmx.o] Error 1
gmake[1]: Leaving directory `/mem/graphics/mplayer/work.i386/MPlayer-0.18pre5/libmpeg2'
gmake: *** [libmpeg2/libmpeg2.a] Error 2
*** Error code 2

21:24 zuntum@zunpc:~> ls -l /usr/pkg/bin/as
-rwxr-x---  1 root  wheel  442264 Sep  5 09:38 /usr/pkg/bin/as*

Am I missing something? The package I am testing -B on compiles clearly when I replace /usr/bin/as
with the new version.

PS. When I added "PATH = /usr/pkg/bin:/usr/bin" to the front of the Makefile, it worked fine.
Is it acceptable way to deal with this?

-- 
/* Tomasz Luchowski <zuntum@netbsd.org> */