public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Could not open source file "limits.h"
@ 2013-05-21  8:32 tulio.portilho
  0 siblings, 0 replies; 2+ messages in thread
From: tulio.portilho @ 2013-05-21  8:32 UTC (permalink / raw)
  To: gcc-bugs

Hi,

I work at an engineering company. Here, we use a Linux host where are
installed licenses of an engineering commercial software, called Abaqus. 

Abaqus has a "make" procedure, that makes executable programs using a user
soubroutine source code, or the correspondent object file. Here, Abaqus
makes use of icpc/ifort compiler to compile C/Fortran codes. 

So, I have an object file, and tried to 'make' it. The problem is that,
apparently, during the make procedure, Abaqus needs to compile an internal
source code, in C language, and icpc gives this error: /Could not open
source file "limits.h"/ . Here goes a copy of the terminal:

*/
tm@master1:/data/users/tm> abaqus make job=abqmain.o
Abaqus JOB abqmain
Begin Compiling User Post-Processing Program
Fri 03 May 2013 02:47:38 PM CEST
Compiling: /data/users/tm/main_6425.C
icpc: Command line warning: ignoring option '-c'; no argument required
/usr/include/limits.h(125): catastrophic error: could not open source file
"limits.h"
  # include_next <limits.h>
                           ^
compilation aborted for /data/users/tm/main_6425.C (code 4)
Abaqus Error: Problem during compilation - /data/users/tm/main_6425.C
The Abaqus Make execution procedure exited with errors/*

According to the error message, the */usr/include/limits.h* file tries to
include another *limits.h* file, but doesn't find it next in the search
path. According to what I read, there should be another file at
*/usr/lib/gcc/*/*/include/limits.h*, and both really try to include each
other.

I searched for this other file, and what I found was
*/usr/lib64/gcc/x86_64-suse-linux/4.5/include-fixed/limits.h*.

I am not experienced in C programming, so... From the commentaries in both
limits.h files, I didn't understand firstly why icpc tries to include the
limits.h file in gcc library. This is present at the
*/usr/include/limits.h*:

#if defined __GNUC__ && !defined _GCC_LIMITS_H_
/* `_GCC_LIMITS_H_' is what GCC's file defines.  */
# include_next <limits.h>
#endif

If I am using icpc, why is *defined __GNUC__* true? 

Also, supposing it is right, why it doesn't find the other limits.h file?

Thank you



--
View this message in context: http://gcc.1065356.n5.nabble.com/Could-not-open-source-file-limits-h-tp939843.html
Sent from the gcc - bugs mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Could not open source file "limits.h"
@ 2013-05-21  8:40 Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2013-05-21  8:40 UTC (permalink / raw)
  To: tulio.portilho, gcc-bugs

This mailing list is for automated emails from our Bugzilla database,
I suggest you send your mail to the gcc-help list instead.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-21  8:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21  8:32 Could not open source file "limits.h" tulio.portilho
2013-05-21  8:40 Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).