8-STABLE broken on amd64

by Oliver Lehmannon 2009-12-06T14:48:59+00:00
Hi,
I've cvsuped my 8-STABLE yesterday und successfully upgraded my i386
machines.
Now I tried to upgrade my amd64 system but it failes with:
/usr/local/libexec/ccache/world-cc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1.c
{standard input}: Assembler messages:
{standard input}:27: Error: suffix or operands invalid for `mov'
*** Error code 1
Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1
Is this known or has it already been fixed?
I also tried /usr/bin/cc if someone might think that ccache could
have caused this - same error.
Line 24-30 of crt1.s
movl (%rsp), %ebx
leaq 8(%rsp), %r12
#APP
movl %edx,%rdi
#NO_APP
movslq %ebx,%rax
testl %ebx, %ebx
--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Re: 8-STABLE broken on amd64

by Oliver Lehmannon 2009-12-06T14:53:54+00:00.
Oliver Lehmann wrote:
> /usr/local/libexec/ccache/world-cc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1.c
> {standard input}: Assembler messages:
> {standard input}:27: Error: suffix or operands invalid for `mov'
> *** Error code 1
Compiling without any optimization (removing -O2) makes the error
go away by the way....
Then the asm part gets to:
#APP
movl %edx,-8(%rbp)
--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Re: 8-STABLE broken on amd64

by Jeremy Chadwickon 2009-12-06T15:11:54+00:00.
On Sun, Dec 06, 2009 at 04:52:57PM +0100, Oliver Lehmann wrote:
> Oliver Lehmann wrote:
>
> > /usr/local/libexec/ccache/world-cc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/lib/csu/i386-elf/crt1.c
> > {standard input}: Assembler messages:
> > {standard input}:27: Error: suffix or operands invalid for `mov'
> > *** Error code 1
>
> Compiling without any optimization (removing -O2) makes the error
> go away by the way....
>
> Then the asm part gets to:
>
> #APP
> movl %edx,-8(%rbp)
Does this happen if you remove ccache from the picture, and/or remove
/usr/obj/* prior to building?
--
| Jeremy Chadwick jdc@parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, USA |
| Making life hard for others since 1977. PGP: 4BD6C0CB |
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Re: 8-STABLE broken on amd64

by Oliver Lehmannon 2009-12-06T16:06:15+00:00.
Hi,
Jeremy Chadwick writes:
> On Sun, Dec 06, 2009 at 04:52:57PM +0100, Oliver Lehmann wrote:
>> Compiling without any optimization (removing -O2) makes the error
>> go away by the way....
>>
>> Then the asm part gets to:
>>
>> #APP
>> movl %edx,-8(%rbp)
>
> Does this happen if you remove ccache from the picture, and/or remove
> /usr/obj/* prior to building?
As said in my intial posting, using base cc causes the same error.
Except when I remove -O2 - then both, ccache and base-cc works. And since
the error is in the generated asm code I'm not sure how anything in
/usr/obj would affect this.... It seems to be just gcc's optimizer which
creates invalid ASM code here... for whatever reason.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Re: 8-STABLE broken on amd64

by Oliver Lehmannon 2009-12-06T18:43:58+00:00.
One more....
/usr/local/libexec/ccache/world-cc -O2 -pipe -I/usr/src/lib/libc/include
-I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 -DNLS
-D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6
-I/usr/obj/lib32/usr/src/lib/libc -I/usr/src/lib/libc/resolv
-D_ACL_PRIVATE -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale -DBROKEN_DES
-DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING
-DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers -Werror
-Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c fork.S
fork.S: Assembler messages:
fork.S:3: Error: invalid character '_' in mnemonic
*** Error code 1
Stop in /usr/src/lib/libc.
Is maybe
WITH_LIB32= yes
in my make.cfg causing this? I have it a long time in it and it worked
at least with 7....
--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

Re: 8-STABLE broken on amd64

by Oliver Lehmannon 2009-12-07T04:27:27+00:00.
Oliver Lehmann wrote:
> {standard input}: Assembler messages:
> {standard input}:27: Error: suffix or operands invalid for `mov'
> *** Error code 1
>
> Stop in /usr/src/lib/csu/i386-elf.
> *** Error code 1
I deinstalled ccache, ran a make clean cleandepend, removed any .o file
below /usr/src, ran a new cvsup and now the error is gone.
--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"