milli.S and 0xd's
make[2]: Entering directory `/linux/linux/arch/parisc/lib'
gcc -D__KERNEL__ -I/linux/linux/include -D__ASSEMBLY__ -traditional -c milli.S -o milli.o milli.S: Assembler messages:
milli.S:16: Error: Rest of line ignored. First ignored character valued 0xd. milli.S:19: Error: Rest of line ignored. First ignored character valued 0xd. milli.S:21: Error: Rest of line ignored. First ignored character valued 0xd.
...
I stripped the ^M characters out of the file and it compiles. Could others explain how they got past this error message? Could the gcc I'm using be the wrong one?
thanks,
grant
Quoted 10 lines · Grant Grundler
make[2]: Entering directory `/linux/linux/arch/parisc/lib'
gcc -D__KERNEL__ -I/linux/linux/include -D__ASSEMBLY__ -traditional -cmilli.S-o milli.omilli.S: Assembler messages:
milli.S:16: Error: Rest of line ignored. First ignored character valued0xd. milli.S:19: Error: Rest of line ignored. First ignored character valued0xd. milli.S:21: Error: Rest of line ignored. First ignored character valued0xd.
...
Quoted 3 lines
I stripped the ^M characters out of the file and it compiles. Could others explain how they got past this error message? Could the gcc I'm using be the wrong one?
I just did the exact same thing and didn't get this error. You are correct that the file has 0xd's in it... I wonder if it's which assembler your gcc has found? Try appending the `-v' flag to the end of the gcc line and see what you get:
Reading specs from /opt/depot/egcs-puffin/lib/gcc-lib/hppa1.0-hp-hpux11.00/egcs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
/opt/depot/egcs-puffin/lib/gcc-lib/hppa1.0-hp-hpux11.00/egcs-2.91.60/cpp -lang-asm -v -I/linux/linux/include -undef -$ -Dhppa -Dhp9000s800 -D__hp9000s800 -Dhp9k8 -DPWB -Dhpux -Dunix -D__hppa__ -D__hp9000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__ -D__hppa -D__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem(unix) -Asystem(hpux) -Acpu(hppa) -Amachine(hppa) -D__ASSEMBLER__ -traditional -D_HPUX_SOURCE -D_HIUX_SOURCE -D__KERNEL__ -D__ASSEMBLY__ milli.S /var/tmp/ccrVZimC.s
GNU CPP version egcs-2.91.60 19981201 (egcs-1.1.1 release) (hppa)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/opt/depot/egcs-puffin/hppa1.0-hp-hpux11.00/include
/opt/depot/egcs-puffin/lib/gcc-lib/hppa1.0-hp-hpux11.00/egcs-2.91.60/include
/usr/include
End of search list.
as -o milli.o /var/tmp/ccrVZimC.s
bash-2.03$ which as
/export/willy/bin/as
(at some stage, someone needs to clean up all those default #defines. But not right now.)
Signature · 4 lines
Matthew Wilcox <[email protected]> "Windows and MacOS are products, contrived by engineers in the service of specific companies. Unix, by contrast, is not so much a product as it is a painstakingly compiled oral history of the hacker subculture." - N Stephenson
Matthew Wilcox wrote:
...
Quoted 3 lines
I just did the exact same thing and didn't get this error. You are correct that the file has 0xd's in it... I wonder if it's which assembler your gcc has found?
Yes. jackpot. I'm picking up the "ninstall" tool set and not the set distributed from puffin.external.hp.com. Let's see how painful it is to get the newer toolset working...
grundler <427>as --version
GNU assembler 2.8.1
...
Quoted 2 lines
Try appending the `-v' flag to the end of the gcc line and see
what you get:
make[2]: Entering directory `/linux/linux/arch/parisc/lib'
gcc -D__KERNEL__ -I/linux/linux/include -D__ASSEMBLY__ -traditional -c -v milli.S -o milli.o Reading specs from /opt/GNU/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.8.1/specs
gcc version 2.8.1
...
vs.
Quoted 3 lines
Reading specs from
/opt/depot/egcs-puffin/lib/gcc-lib/hppa1.0-hp-hpux11.00/eg
cs-2.91.60/specs
gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
BTW, I noticed "hppa1.0-hp-hpux11.00". Has anyone verified "hpux10.2O" gcc tools produce the same output as "hpux11.00" flavor tools? (I know they "should" but wouldn't even think of betting on it.)
I have access to several idle 11.X machines and will take another look at using them. I didn't consider using them before because they didn't have 10.20 installed.
thanks Matthew,
grant
Grant Grundler
Communications Infrastructure Computer Operations
+1.408.447.7253