[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#481592: -g and compiling via assembly fails on IA64



Package: gcc-4.3
Version: 4.3.0-4
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

when debugging a build failure of gtk2hs on ia64, I observed some
strange problems with building via an assembler file and the "-g" flag.
You can observe the problem with this minimal example:

echo -e '#include "test2.h"\nint main (int argc, char** argv) {callme(); return 1;}' > test2.c
echo 'int callme() {}' > test2.h
gcc -S -g test2.c -o test2.s; gcc test2.s -o test2 -g

The last command fails:

$ gcc -S -g test2.c -o test2.s; gcc test2.s -o test2 -g
test2.s: Assembler messages:
test2.s:38: Error: file number 2 already allocated

It works though in these combinations:

$ gcc -S -g test2.c -o test2.s; gcc test2.s -o test2 
$ gcc -S  test2.c -o test2.s; gcc test2.s -o test2 -g
$ gcc -S  test2.c -o test2.s; gcc test2.s -o test2
$ gcc test2.c -o test2


This can be reproduced on merulo.debian.org in the sid chroot.

Thanks, 
Joachim


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFILqEE9ijrk0dDIGwRAgcoAJ9eJW5zJbQwFwAgj5UaGlLOlVJP5ACeNEGd
PhmPNbHPeV7kuTpl/Bx6K+U=
=8DFo
-----END PGP SIGNATURE-----



Reply to: