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

Reply via email to