MantisBT - GCC-XML
View Issue Details
0009185GCC-XMLpublic2009-06-19 13:372009-06-19 14:57
Matt McCormick 
Brad King 
normalmajoralways
closedfixed 
0009185: patch to work with gcc 4.3.3, undeclared __builtin_va_arg_pack
There was a similar patch applied for gcc 4.3, but maybe this is for gcc-4.3.3

Errors like this are produced
$> gccxml foo.h
In file included from /usr/include/stdio.h:906,
                 from foo.h:1:
/usr/include/bits/stdio2.h: In function 'int sprintf(char*, const char*, ...)':
/usr/include/bits/stdio2.h:35: error: '__builtin_va_arg_pack' was not declared in this scope
/usr/include/bits/stdio2.h: In function 'int snprintf(char*, size_t, const char*, ...)':
/usr/include/bits/stdio2.h:66: error: '__builtin_va_arg_pack' was not declared in this scope
/usr/include/bits/stdio2.h: In function 'int fprintf(FILE*, const char*, ...)':
/usr/include/bits/stdio2.h:99: error: '__builtin_va_arg_pack' was not declared in this scope
/usr/include/bits/stdio2.h: In function 'int printf(const char*, ...)':
/usr/include/bits/stdio2.h:105: error: '__builtin_va_arg_pack' was not declared in this scope
/usr/include/bits/stdio2.h: In function 'int asprintf(char**, const char*, ...)':
/usr/include/bits/stdio2.h:159: error: '__builtin_va_arg_pack' was not declared in this scope
/usr/include/bits/stdio2.h: In function 'int __asprintf(char**, const char*, ...)':
/usr/include/bits/stdio2.h:167: error: '__builtin_va_arg_pack' was not declared in this scope
/usr/include/bits/stdio2.h: In function 'int dprintf(int, const char*, ...)':
No tags attached.
patch 0001-newer-gcc-4.3-fix.patch (738) 2009-06-19 13:37
https://public.kitware.com/Bug/file/2336/0001-newer-gcc-4.3-fix.patch
Issue History
2009-06-19 13:37Matt McCormickNew Issue
2009-06-19 13:37Matt McCormickFile Added: 0001-newer-gcc-4.3-fix.patch
2009-06-19 14:40Brad KingStatusnew => assigned
2009-06-19 14:40Brad KingAssigned To => Brad King
2009-06-19 14:40Brad KingNote Added: 0016744
2009-06-19 14:49Matt McCormickNote Added: 0016745
2009-06-19 14:54Matt McCormickNote Added: 0016746
2009-06-19 14:56Brad KingNote Added: 0016747
2009-06-19 14:56Brad KingStatusassigned => closed
2009-06-19 14:57Brad KingResolutionopen => fixed

Notes
(0016744)
Brad King   
2009-06-19 14:40   
The patch looks good, but I can't produce the original problem. What is the content of "foo.h" in your example?
(0016745)
Matt McCormick   
2009-06-19 14:49   
That segment was scraped from
https://bugs.launchpad.net/ubuntu/+source/gccxml/+bug/293807 [^]

I had a similar issue trying compile with WrapITK

They reference a CVS patch there, but I do not see that last line in HEAD.
(0016746)
Matt McCormick   
2009-06-19 14:54   
Using gcc-4.3.3-r2 on gentoo
(0016747)
Brad King   
2009-06-19 14:56   
Okay, perhaps this is an interaction exposed only by Ubuntu's combination of libc6-dev and gcc packages. Thanks for the patch!

BUG: Add missing gcc 4.3 builtin
/cvsroot/GCC_XML/gccxml/GCC_XML/Support/GCC/4.3/gccxml_builtins.h,v <-- GCC_XML/Support/GCC/4.3/gccxml_builtins.h
new revision: 1.3; previous revision: 1.2