public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/29504]  New: target header files are refrenced (or installed) in wrong location.
@ 2006-10-18 18:01 jhanley at REDCOM dot com
  2006-10-26 12:07 ` [Bug other/29504] " jhanley at REDCOM dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jhanley at REDCOM dot com @ 2006-10-18 18:01 UTC (permalink / raw)
  To: gcc-bugs

With newlib-1.13.0

TOOLDIR := /some/path/tools
HOSTARCH := $(shell uname -p)-$(shell uname -s)
TOOLARCHDIR := $(TOOLDIR)/arch/$(HOSTARCH)

# On os-x TOOLARCHDIR == /some/patch/tools/arch/powerpc-Darwin
# On linux TOOLARCHDIR == /some/patch/tools/arch/i686-Linux
# On solaris TOOLARCHDIR == /some/patch/tools/arch/sparc-SunOS

configure --with-newlib --enable-languages=c \
   --prefix=$(TOOLDIR) --exec-prefix=$(TOOLARCHDIR) --target=ppc-elf \
   --with-included-gettext \
   --with-cpu=860 --enable-cxx-flags=-mcpu=860

after compiling things seem to work except when trying to compile a file for
the target (no matter what the host) a file containing:
#include <setjmp.h>
the header is not found and when using the target cpp -v I find that the
following warnings.
ignoring nonexistent directory
"/some/path/tools/arch/i686-Linux/lib/gcc/ppc-elf/3.4.6/../../../../../ppc-elf/sys-include"
ignoring nonexistent directory
"/some/path/tools/arch/i686-Linux/lib/gcc/ppc-elf/3.4.6/../../../../../ppc-elf/include"

This would looks for the headers in arch.. but they are actually in
arch/i686-Linux

When I rolled back and did not use exec-prefix (just prefix) I found that the
target cpp -v gave me:
ignoring nonexistent directory
"/some/path/tools/lib/gcc/ppc-elf/3.4.6/../../../../ppc-elf/sys-include"
this missing path seems to cause no issues, or at least none that I can find.

Another point... in the first case above it is looking in tools/arch/ppc-elf,
when in fact the headers are installed in tools/arch/i686-Linux/ppc-elf..
shouldn't these be installed in tools/ppc-elf, since they should be the same
for all host systems (Linux/Solaris/Darwin) since it's really the target
(ppc-elf) that makes a diffrence?


-- 
           Summary: target header files are refrenced (or installed) in
                    wrong location.
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jhanley at REDCOM dot com
  GCC host triplet: SunOS 5.10 sun4u, Linux 2.6.17-1.2157_FC5smp i686,
                    Darwin 8.8.0
GCC target triplet: 860 ppc elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29504


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug other/29504] target header files are refrenced (or installed) in wrong location.
  2006-10-18 18:01 [Bug other/29504] New: target header files are refrenced (or installed) in wrong location jhanley at REDCOM dot com
@ 2006-10-26 12:07 ` jhanley at REDCOM dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jhanley at REDCOM dot com @ 2006-10-26 12:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jhanley at REDCOM dot com  2006-10-26 12:07 -------
I beleive that this issue is actaully a duplicate or at least related to 22479.


-- 

jhanley at REDCOM dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |22479


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29504


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-26 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-18 18:01 [Bug other/29504] New: target header files are refrenced (or installed) in wrong location jhanley at REDCOM dot com
2006-10-26 12:07 ` [Bug other/29504] " jhanley at REDCOM dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).