Bug 1413414 - /usr/include/bits/errno.h:24:26: linux/errno.h: no such file or directory
Summary: /usr/include/bits/errno.h:24:26: linux/errno.h: no such file or directory
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 25
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-15 22:48 UTC by Brenton Horne
Modified: 2017-01-15 23:28 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-15 23:28:03 UTC
Type: Bug


Attachments (Terms of Use)

Description Brenton Horne 2017-01-15 22:48:24 UTC
Description of problem:
When compiling a C++ program using the iostream header (i.e., with the #include <iostream> directive) the error message (where in the following error message simple-pendulum.cpp is the name of the file where on line 6 the #include <iostream> directive exists):

In file included from /usr/include/errno.h:35:0,
                 from /usr/include/c++/6.3.1/cerrno:42,
                 from /usr/include/c++/6.3.1/ext/string_conversions.h:44,
                 from /usr/include/c++/6.3.1/bits/basic_string.h:5402,
                 from /usr/include/c++/6.3.1/string:52,
                 from /usr/include/c++/6.3.1/bits/locale_classes.h:40,
                 from /usr/include/c++/6.3.1/bits/ios_base.h:41,
                 from /usr/include/c++/6.3.1/ios:42,
                 from /usr/include/c++/6.3.1/ostream:38,
                 from /usr/include/c++/6.3.1/iostream:39,
                 from simple-pendulum.cpp:6:
/usr/include/bits/errno.h:24:26: fatal error: linux/errno.h: No such file or directory
 # include <linux/errno.h>
                          ^
compilation terminated.
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 1


Version-Release number of selected component (if applicable):
2.24-4.fc25

How reproducible:
Very.

Steps to Reproduce:
1. Compile a program that with the #include <iostream> preprocessor directive.

for a specific example run:

git clone https://github.com/fusion809/CPP-Math-Projects
cd CPP-Math-Projects/Simple-Pendulum
make

and you should get the previously mentioned error message.

Comment 1 Brenton Horne 2017-01-15 22:58:54 UTC
Oops sorry, didn't realize kernel-headers was required to provide /usr/include/linux/errno.h.


Note You need to log in before you can comment on or make changes to this bug.