From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1141 invoked by alias); 21 May 2013 08:32:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1129 invoked by uid 89); 21 May 2013 08:32:15 -0000 X-Spam-SWARE-Status: No, score=2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_NEUTRAL,TW_BQ,URI_HEX autolearn=no version=3.3.1 Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 21 May 2013 08:32:14 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1UehzQ-0002ml-KH for gcc-bugs@gcc.gnu.org; Tue, 21 May 2013 01:32:12 -0700 Date: Tue, 21 May 2013 08:32:00 -0000 From: "tulio.portilho" To: gcc-bugs@gcc.gnu.org Message-ID: <1369125132537-939843.post@n5.nabble.com> Subject: Could not open source file "limits.h" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2013-05/txt/msg01396.txt.bz2 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 ^ 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 #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.