csprof

Error compiling C++ files on Ubuntu 9

Discussion created by csprof on Mar 17, 2010
Latest reply on Mar 25, 2010 by santosh.zanjurne
open64 fails to compile header files

 

Cheers,

I tried to compile a C++ project with open64 on AMD 64 Ubuntu 9 - and got tons of errors in the standard include files (attached).

What am I doing wrong?



In file included from /usr/include/stdio.h:911, from SquareMatrix.cpp:11: /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*, ...)': /usr/include/bits/stdio2.h:174: error: '__builtin_va_arg_pack' was not declared in this scope /usr/include/bits/stdio2.h: In function 'int obstack_printf(obstack*, const char*, ...)': /usr/include/bits/stdio2.h:182: error: '__builtin_va_arg_pack' was not declared in this scope In file included from SquareMatrix.h:14, from SquareMatrix.cpp:12: /usr/include/string.h: In function 'void* memchr(void*, int, size_t)': /usr/include/string.h:83: error: '__builtin_memchr' was not declared in this scope /usr/include/string.h: In function 'const void* memchr(const void*, int, size_t)': /usr/include/string.h:89: error: '__builtin_memchr' was not declared in this scope .......

Outcomes