Skip to contentSkip to conversation

entry.S Invalid operands

parisc-linux Grant Grundler 2 participants 6 messages Sep 5, 2000 – Sep 6, 2000

lore
Share & tools
lore
#0 lore raw

Hi all,
my parisc-linux kernel builds now get:
hppa-linux-gcc -I/linux/test6/linux-2.3/include -D__KERNEL__ -I/linux/test6/linux-2.3/include -c -o entry.o entry.S
entry.S: Assembler messages:
entry.S:828: Error: Invalid operands
entry.S:829: Error: Invalid operands
entry.S:830: Error: Invalid operands
...

The preceding line (826) has:

	.level 2.0

I've rebuilt my XC using "recipe.linux -R -u".
How get the hppa-linux toolchain to accept ".level 2.0" stuff? Or must I use hppa64-linux and force narrow mode builds somehow?

I want to continue testing on the A180 for now...

thanks,
grant

#1 lore raw
Quoted 7 lines · Grant Grundler

Hi all,
my parisc-linux kernel builds now get:
hppa-linux-gcc -I/linux/test6/linux-2.3/include -D__KERNEL__ -I/linux/test6/linux-2.3/include -c -o entry.o entry.S
entry.S: Assembler messages:
entry.S:828: Error: Invalid operands
entry.S:829: Error: Invalid operands
entry.S:830: Error: Invalid operands

My guess is that you need to update your assembler. The lines in question use register aliases instead of %r<num>:
depd pte,8,7,prot

pehc CVS before 2000-08-23 won't accept register aliases on all instructions.

Alan Modra

Signature · 1 line
Linuxcare.  Support for the Revolution.
#2 lore raw
Quoted 6 lines · Alan Modra

My guess is that you need to update your assembler. The lines in question use register aliases instead of %r<num>:
depd pte,8,7,prot

pehc CVS before 2000-08-23 won't accept register aliases on all instructions.

Alan,

I had just updated gcc/binutils and rebuilt them today. [ See build-tools/recipe.linux.
"-u" forces an update and "-R" wipes out the build directories before building everything again. ]

I might be picking up "as" from someplace else...let me double check. I am. My PATH is set to /opt/puffin/bin expecting linux-2.3/Makefile to set CROSS_COMPILE to hppa-linux...so I end up with *native* toolchain. arrrgggh.

thanks,
grant

Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253

#3 lore raw
In reply to Alan Modra
Quoted 6 lines · Alan Modra

My guess is that you need to update your assembler. The lines in question use register aliases instead of %r<num>:
depd pte,8,7,prot

pehc CVS before 2000-08-23 won't accept register aliases on all instructions.

Good guess...I sent the previous reply too quickly. Setting CROSS_COMPILE didn't help. So I went to binutils-2.10 and ran cvs update manually. To my surprise a bunch of files were updated.

Something's fishy with the "-u" option of recipe.linux.

thanks,
grant

Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253

#4 lore raw
Quoted 3 lines · Grant Grundler

Setting CROSS_COMPILE didn't help. So I went to binutils-2.10 and ran cvs update manually. To my surprise a bunch of files were updated.

Well, some should have updated as I did another merge a few hours ago. The previous merge was at a bad time, with some configure files broken.

The other likely possibility is that objects aren't being rebuilt even when source files are newer. Dependency information in binutils might be wrong, or your version of make broken.

Alan Modra

Signature · 1 line
Linuxcare.  Support for the Revolution.
#5 lore raw
Quoted 4 lines · Alan Modra

On Tue, 5 Sep 2000, Grant Grundler wrote:
Well, some should have updated as I did another merge a few hours ago. The previous merge was at a bad time, with some configure files broken.

More than about 30-50 files?
I didn't count but it was far more than my 24 line screen.

After rebuilding the binutils/gcc for XC, I can now build kernels again.

Quoted 3 lines

The other likely possibility is that objects aren't being rebuilt even when source files are newer. Dependency information in binutils might be wrong, or your version of make broken.

The former is possible though I had rebuilt from scratch.

I had to upgrade make to a newer version since gcc or binutils config stops if make isn't at least version 3.78. I have 3.78.1. Did that a few days ago...after dhd pointed out the obvious config error.

thanks!
grant

Grant Grundler
Unix Systems Enablement Lab
+1.408.447.7253