Re: Architecture specific header files

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

 



Dne 25.6.2013 15:41, Vít Ondruch napsal(a):
Hi,

Is there some common practice, where to place architecture specific header files? From output of the following command, I can't see any such place.


$ `gcc -print-prog-name=cc1` -v
ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.8.1/include-fixed" ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../x86_64-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc/x86_64-redhat-linux/4.8.1/include
 /usr/local/include
 /usr/include
End of search list.



Actually, the "ignoring nonexistent directory "/usr/lib/gcc/x86_64-redhat-linux/4.8.1/../../../../x86_64-redhat-linux/include"" might be usable, but is it allowed to use it? Does it conform to FHS (don't think so). Shouldn't it be configured differently?

The point is, that compilation of this simple program:


$ cat > rt.c
#include "ruby.h"

int main(int argc, char **argv)
{
  return 0;
}
^D



fails:


$ gcc rt.c
In file included from /usr/include/ruby.h:33:0,
                 from rt.c:1:
/usr/include/ruby/ruby.h:24:25: fatal error: ruby/config.h: No such file or directory
 #include "ruby/config.h"
                         ^
compilation terminated.


This should work out of the box IMO, without any configuration or specification of additional paths etc. The problem is, that Ruby ships architecture specific config.h header which is not available in GCC's default search path and I am wondering how to make this work.


Thanks



Vít

Since it seems that this is quite common issue and there are more packages needing to workaround this issue (Python is not mentioned in this thread yet), I took the liberty to open RFE at GCC:

https://bugzilla.redhat.com/show_bug.cgi?id=979403


Vít
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux