stdarg.h files

stdarg.h files

I am starting a new thread on this.

I get the error

compilation aborted for (code4)
/usr/include/libio.h(53): catastrophic error: canot open source file "stdarg.h"
#include

If there is anything in the Intel lit about this? if sothen direct me to it. Iguess that icc header files do not include

stdarg.h.

I did a search and yesit is not Intel Cilk++. .

However, I never explicitly called for stdarg.h like I did math.h

#include

It is looking for stdarg.h anyway. I mustemploy a work around.I am unsure how to do it.

I know in my /usr/include/libio.h (53)

There is a file libio.h in /usr/include/ that calls stdarg.h on line 53.

That does not bother gcc at all, but itis catastrophic for icc.

How do I deal with this?

I am using Ubuntu 11.04 , gcc 4.2.4 and icc 12.0.0 with Intel Cilk++.

Any help appreciated.

Newport_j

7 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Brandon Hewitt (Intel)'s picture

As I've stated in other threads, try upgrading to update 6 or later and see if that helps with this.

Brandon Hewitt Technical Consulting Engineer Tools Knowledge Base: "http://software.intel.com/en-us/articles/tools" Software Product Support info: "http://www.intel.com/software/support"

Quoting newport_j...
compilation aborted for (code4)
/usr/include/libio.h(53): catastrophic error: canot open source file "stdarg.h"
#include

[SergeyK] Is there any possibility that your development environment is corrupted? When did you
install the GCC compiler?

...
There is a file libio.h in /usr/include/ that calls stdarg.h on line 53.

[SergeyK] Could you attach a'libio.h' for areview?

That does not bother gcc at all, but itis catastrophic for icc.
...

Best regards,
Sergey

PS:

By the way, this isa content of'stdarg.h' file that I have and it has a very interesting comment:

/*
* This is just an RC_INVOKED guard for the real stdarg.h
* fixincluded in gcc system dir. One day we will delete this file.
*/
#ifndef RC_INVOKED
#include_next
#endif

There is nothing else in the header! My installation is about 6 years old.

What you say is true. I made a test program that prove that. It is called square.c (attached). Put in stdio.h as an include filecompile with gcc it does not complain. Compile with icc and get the error in question. Simple.

But what about all the icc example icccode with extension *.c that has a include file stdio.h in the include file section. I saw that and thought there must be something wrong.

It is there in icc c code. Explain.

Any help appreciated.

Newport_j

Try adding the -H option to your compilation command line. It will display the include files as they're brought in.

- Barry

Brandon Hewitt (Intel)'s picture

Again, I have to reiterate, you really need to upgrade to update 6. The 12.0 compiler was never tested on and does not support Ubuntu 11.04, and header problems like this are very typical when running the compiler on operating systems newer than what is supported. If you still see these problems with the 12.1 compiler that does support 11.04, then we can work from there. I strongly suspect though that these tests will work.

Brandon Hewitt Technical Consulting Engineer Tools Knowledge Base: "http://software.intel.com/en-us/articles/tools" Software Product Support info: "http://www.intel.com/software/support"

Quoting newport_j...
But what about all the icc example icccode with extension *.c that has a include file stdio.h in the include file section. I saw that and thought there must be something wrong.

It is there in icc c code. Explain.
...

I would follow aBarry's advise( Post #4 )"...adding the -H option to your compilation command line..."

Login to leave a comment.