In the last episode (Jul 08), web@stripped said:
> >Description:
> --enable-assembler fails for freebsd 2.2.7 with the following:
>
> Warning: Using /usr/local/src/mysql-3.22.25/mit-pthreads/obj as object directory
> instead of canonical /usr/obj/usr/local/src/mysql-3.22.25/mit-pthreads
> Making all in strings
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../mit-pthreads/include -I./../include
> -I../include -O6 -DDBUG_OFF -c strings.s
> assertion "c != ' '" failed: file "/usr/src/gnu/usr.bin/as/read.c", line 395
> gcc: Internal compiler error: program as got fatal signal 6
2.2.7's as is pretty old (1.92.3); 4.0's as (2.9.1) prints the following:
cc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I../include -O2 -pipe -march=i486
-mcpu=i686 -DDBUG_OFF -c strings.s
strings.s: Assembler messages:
strings.s:96: Error: Bad expression
strings.s:96: Error: Missing ')' assumed
strings.s:96: Error: Ignoring junk 'edi)/End of string' after expression
Line 96 is:
sa_99: movb $0,(%edi) / End of string
which should read instead:
sa_99: movb $0,(%edi) /* End of string */
This fixes it for 3.0 and up, but 2.2.* spits out so many errors
(unrecognized opcodes std, movsb, cld, stosl, stosb, clrl, and more)
that it's probably not worth trying to fix it.
Installing a newer copy of as might help.
-Dan Nelson
dnelson@stripped