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 preprocessor/36328] New: system headers not found if exec_prefix != prefix


gcc 4.3.0 was configured with an explicit exec-prefix (different from prefix):

  $ ../configure --target=powerpc-rtems --prefix=/opt/rtems-head//host
--exec-prefix=/opt/rtems-head//host/i386_linux26/gcc-4.3.0
--mandir=/opt/rtems-head//doc/man --infodir=/opt/rtems-head//doc/info
--enable-languages=c,c++ --with-gnu-as --with-gnu-ld --with-newlib --verbose
--with-system-zlib --disable-nls --enable-version-specific-runtime-libs
--enable-threads=rtems

The cross-compiler was installed (along with newlib) but then failed to locate
newlib headers.

Setting of 'gcc_tooldir' has changed in 4.3.0 and this patch fixes
the issue for me:

   NOTE: need to run 'autoconf' after applying patch.

*** gcc-4.3.0/gcc/configure.ac.orig 2008-03-10 11:56:05.899271819 -0800
--- gcc-4.3.0/gcc/configure.ac  2008-03-10 11:57:20.442080560 -0800
***************
*** 3689,3695 ****
  fi
  echo "source ${srcdir}/gdbinit.in" >> .gdbinit

! gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
  AC_SUBST(gcc_tooldir)
  AC_SUBST(dollar)

--- 3689,3695 ----
  fi
  echo "source ${srcdir}/gdbinit.in" >> .gdbinit

!
gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(prefix_to_exec_prefix)$(target_noncanonical)'
  AC_SUBST(gcc_tooldir)
  AC_SUBST(dollar)


-- 
           Summary: system headers not found if exec_prefix != prefix
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: strauman at slac dot stanford dot edu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: powerpc-unknown-rtems


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


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