FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 05-17-2008, 10:10 AM
Joachim Breitner
 
Default 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"
int 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)

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



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 07-10-2008, 09:33 AM
Matthias Klose
 
Default Bug#481592: -g and compiling via assembly fails on IA64

reassign 481592 binutils
thanks

see the comment from upstream in
http://sourceware.org/bugzilla/show_bug.cgi?id=6656#c4

so avoid using -g for both invocations.



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 12:41 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org