LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-19-2012, 10:04 AM   #1
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Rep: Reputation: Disabled
GCC Ain't Searchn' Default Include Directories!


Im using make to compile something... (gcc 4.6.3)
When I type 'make' it all goes ok until it gets to a point where:
bid_decimal_globals.c can't find fenv.h!
I know very well that fenv.h and features.h are in /usr/include (along with stdio.h). I really don't want to have to go through all of the .h's needed by libgcc and hard-code the paths.
Is there a way to get it to see that include directory?

The most frustrating part of this is that I built this fine a few weeks ago...
 
Old 04-20-2012, 12:02 AM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 666

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by Zssfssz View Post
Im using make to compile something... (gcc 4.6.3)
When I type 'make' it all goes ok until it gets to a point where:
bid_decimal_globals.c can't find fenv.h!
I know very well that fenv.h and features.h are in /usr/include (along with stdio.h). I really don't want to have to go through all of the .h's needed by libgcc and hard-code the paths.
Is there a way to get it to see that include directory?

The most frustrating part of this is that I built this fine a few weeks ago...
Could you provide exact command used to compile bid_decimal_globals.c?

Also how fenv,h is included in bid_decimal_globals.c, with "" or with <>?
 
Old 04-20-2012, 12:33 AM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 13,024

Rep: Reputation: 1739Reputation: 1739Reputation: 1739Reputation: 1739Reputation: 1739Reputation: 1739Reputation: 1739Reputation: 1739Reputation: 1739Reputation: 1739Reputation: 1739
and to add becides the above

did you add "fenv.h" and "features.h"
in an include ?
Code:
#include <fenv.h>
#include <features.h>
there are a BUNCH of programs that do not yet build in gcc 4.6 or 4.7 ( or for that matter 4.5 )

the name of these
Quote:
make to compile something...
would help
if they are over a year old they might need to be updated to build in gcc4.6

Last edited by John VV; 04-20-2012 at 02:15 PM.
 
Old 04-20-2012, 10:03 AM   #4
Zssfssz
Member
 
Registered: Sep 2011
Location: Las Vegas!
Distribution: Ubuntu n' Flavors, ReactOS, MINIX3, FreeDOS, Arch
Posts: 339

Original Poster
Rep: Reputation: Disabled
Command Used: make
Compileing: GCC 4.7.0 (Now, Same Problem Shows)
Include With: <>
I didn't change anything! I am useing the LFS book as a general guide on how to build it, but im not acctualy building a lfs system.
Binutils compiled fine. Once I found it (The Makefile for the thing that was giving me problems) I added -I/usr/include too it. It compiled fine. I still cant get glibc to compile but thats for a different reason.
 
  


Reply

Tags
gcc, include, libgcc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Recursively include headers in include option for gcc kvm1983 Linux - Newbie 5 09-04-2012 03:21 PM
Does gcc with different version include some different default header files? cplus Programming 5 07-10-2011 05:09 AM
Makefiles and include directories ruysch Programming 3 02-06-2010 08:31 AM
changing include directories - /usr/local/include quep_fly Linux - Newbie 6 08-12-2007 04:36 PM
How to include library directories? davee Programming 7 04-05-2004 05:41 AM


All times are GMT -5. The time now is 12:06 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration