This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/11967] New: cross build using sysroot fails when headers not in $prefix/$target/include


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: cross build using sysroot fails when headers not in
                    $prefix/$target/include
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dhazeghi at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: sparc-sun-solaris2.8
OtherBugsDependingO 11890
             nThis:

This report is to track the progress of the first in issue of PR11890. When configuring a cross-
compiler using --with-sysroot=... for some reason it is assumed that headers are in $prefix/
$TARGET/include, even when one explicitly indicates otherwise.

Building 3.3 branch (on i686-linux) with ../gcc/configure --target=sparc-sun-solaris2.8 --
prefix=/tmp/dara/sparc-sun-solaris2.8/sysroot fails with:

/tmp/objdir/gcc/xgcc -B/tmp/objdir/gcc/ -B/tmp/dara/sparc-sun-solaris2.8//sparc-sun-
solaris2.8/bin/ -B/tmp/dara/sparc-sun-solaris2.8//sparc-sun-solaris2.8/lib/ -isystem /tmp/
dara/sparc-sun-solaris2.8//sparc-sun-solaris2.8/include -DIN_GCC -DCROSS_COMPILE   -W -
Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include  -I. -I. -I../../
gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include  \
        -c ../../gcc/gcc/config/sparc/gmon-sol2.c -o gmon.o
In file included from ../../gcc/gcc/config/sparc/gmon-sol2.c:36:
../../gcc/gcc/system.h:45:19: stdio.h: No such file or directory
../../gcc/gcc/system.h:107:23: sys/types.h: No such file or directory
../../gcc/gcc/system.h:109:19: errno.h: No such file or directory
../../gcc/gcc/system.h:116:21: string.h: No such file or directory
../../gcc/gcc/system.h:117:22: strings.h: No such file or directory
../../gcc/gcc/system.h:129:21: stdlib.h: No such file or directory
../../gcc/gcc/system.h:152:21: unistd.h: No such file or directory
../../gcc/gcc/system.h:156:24: sys/param.h: No such file or directory
../../gcc/gcc/system.h:195:23: sys/time.h: No such file or directory
../../gcc/gcc/system.h:196:19: time.h: No such file or directory
../../gcc/gcc/system.h:208:20: fcntl.h: No such file or directory
../../gcc/gcc/system.h:246:22: sys/wait.h: No such file or directory
../../gcc/gcc/system.h:313:20: malloc.h: No such file or directory
../../gcc/gcc/system.h:382:23: sys/stat.h: No such file or directory
../../gcc/gcc/config/sparc/gmon-sol2.c: In function `monstartup':

Observer that the -isystem is include $prefix/$target/include, not $prefix/sysroot/include as the 
documentation indicates should happen. While I've only seen this on sparc-sun-solaris2.8 target, 
this appears to be a generic cross-build bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]