This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

as regression: "file truncated" error Linux/PPC 2.6 with CVS trunk


Hi,

As reported in http://bugs.debian.org/211668, gas refuses to assemble
util.s from the Linux/PPC 2.6 tree.  This is a regression, I've
reproduced the error with binutils CVS trunk (2003-09-20) but it works
with Debian 2.14.90.0.5 (but not Debian 2.14.90.0.6).  More details
below.  The utils.s file and full straces (working, broken, diff) are
available from:

  http://people.debian.org/~troup/binutils/

Please let me know if I can provide any more information and/or should
have done something differently etc.

-- 
James

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

| troup@bruckner:~/binutils$ ./src/gas/as-new -o util.o util.s 
| util.o: File truncated
| arch/ppc/boot/common/util.S: Assembler messages:
| arch/ppc/boot/common/util.S:281: FATAL: Can't write util.o: File truncated
| troup@bruckner:~/binutils$ 

Tail end of an strace looks like this:

| mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30016000
| _llseek(3, 0, [0], SEEK_SET)            = 0
| read(3, "", 1928)                       = 0
| _llseek(3, 1928, [1928], SEEK_CUR)      = 0
| write(3, "\0arch/ppc/boot/common/util.S\0inc"..., 400) = 400
| _llseek(3, 0, [0], SEEK_SET)            = 0
| read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 2328
| _llseek(3, -2276, [52], SEEK_CUR)       = 0
| write(3, "9\0 @}\0\1$9\0\0\0}\30\203\246}\31\203\246}\32\203\246"..., 512) = 512
| _llseek(3, 18446744073709547520, 0x7ffff2c8, SEEK_SET) = -1 EINVAL (Invalid argument)
| write(2, "util.o: File truncated\n", 23) = 23

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Other info as suggested by the documentation:

troup@bruckner:~/binutils$ uname -a
Linux bruckner 2.4.21 #1 Don Aug 28 15:18:52 CEST 2003 ppc GNU/Linux
troup@bruckner:~/binutils$ cat /proc/cpuinfo 
cpu             : 604r
clock           : ???
revision        : 49.2 (pvr 0009 3102)
bogomips        : 299.00
machine         : PReP Utah (Powerstack II Pro4000)
l2 cache        : 512KiB, parity disabled SRAM:synchronous, pipelined, no parity
troup@bruckner:~/binutils$ ./src/gas/as-new --version
GNU assembler 2.14.90 20030920
troup@bruckner:~/binutils$ gcc --version
gcc (GCC) 3.3.2 20030908 (Debian prerelease)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]