Re: Header search order problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Not sure if this is actually a header search order problem. The line:

> /net/simdata/Hudson_OpenSourceLibs/Boost/stdc-predef.h: Input/output error

Is... interesting. Check and see if you can actually read the contents
of that file from a text editor. I wonder if it is corrupted on the
remote file system.

On 9/18/19 5:06 AM, David Aldrich wrote:
> Hi
> One of our Ubuntu 16.04 systems has started failing a compilation today.
> This compilation has succeeded previously.  The failure is:
> 
> $ g++ -c -std=c++14 -Wall -pedantic -m64 -march=native -I../Kernel
> -I/net/simdata/Hudson_OpenSourceLibs/Boost/ -fpic -O3
> ../StarLibs/StdStars/ArithmeticCoding.cpp -o _gnuRelease/ArithmeticCoding.o
> cc1plus: fatal error:
> /net/simdata/Hudson_OpenSourceLibs/Boost/stdc-predef.h: Input/output error
> compilation terminated.
> 
> If I exclude the  -I/net/simdata ... (which is a mounted drive) the
> compilation succeeds without failure.
> 
> For the failure case, the search order is:
> 
> ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/5"
> ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
> ignoring nonexistent directory
> "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"
> #include "..." search starts here:
> #include <...> search starts here:
>  ../Kernel
>  /net/simdata/Hudson_OpenSourceLibs/Boost/
>  /usr/include/c++/5
>  /usr/include/x86_64-linux-gnu/c++/5
>  /usr/include/c++/5/backward
>  /usr/lib/gcc/x86_64-linux-gnu/5/include
>  /usr/local/include
>  /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed
>  /usr/include/x86_64-linux-gnu
>  /usr/include
> End of search list.
> 
> And the file in question is indeed found at:
> 
> $ ls /usr/include/stdc-predef.h
> /usr/include/stdc-predef.h
> 
> The mount seems to be working ok:
> 
> $ ls /net/simdata/Hudson_OpenSourceLibs/Boost/rel-1.69.0/boost/
> accumulators             dll.hpp                       make_unique.hpp
>            random.hpp
> align                    dynamic_bitset                math
>           range
> etc.
> 
> I don't understand why gcc is complaining that  stdc-predef.h is not found
> on the mounted drive and is failing to find it in /usr/include.
> 
> Can you help please?
> 
> Best regards
> 
> David
> 

-- 

Josh Scoggins
Software Engineer
Parasoft Corporation

101 E. Huntington Drive
Monrovia, CA 91016, USA

phone: 888-305-0041
mobile: 888-305-0041
email: Josh.Scoggins@xxxxxxxxxxxx
www.parasoft.com





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux