This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
cc1 error: /path_to_dest_dir/lib/gcc/i686-cm-linux/4.1.2/include: Permission denied
- From: kshen <kshen at cisco dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 05 Nov 2009 11:13:37 -0800
- Subject: cc1 error: /path_to_dest_dir/lib/gcc/i686-cm-linux/4.1.2/include: Permission denied
- Authentication-results: sj-iport-4.cisco.com; dkim=neutral (message not signed) header.i=none
Hi,
I¹m trying to build a gcc cross-compiler. The native system is a Fedora 10
machine with gcc 4.3.2. The target system is another i386 based system and
the toolchain I¹m trying to compile is gcc 4.1.2.
The compilation went through fine. I built and installed in
/path_to_dest_dir. If I run gcc using ³/path_to_dest_dir/gcc², it works
fine. But after I deploy it to another machine in a different install dir,
for example in the /path_to_install_dir, and run gcc, I go the following
error:
cc1 error: /path_to_dest_dir/lib/gcc/i686-cm-linux/4.1.2/include: Permission
denied
Shouldn¹t the search path to be relative if I copied the whole tree over?
The configure command I have is
./configure --prefix=$BUILD_DEST --target=$TARGET \
--with-cpu=i686 --with-arch=i686 --with-tune=i686 \
--disable-multilib --with-sysroot=$BUILD_DEST \
--disable-nls --enable-shared --enable-languages=c,c++ \
--enable-__cxa_atexit --enable-c99 \
--enable-long-long --enable-threads=posix
where $BUILD_DEST is set to the /path_to_dest_dir directory.
So the bottom line is, if I always install in the /path_to_dest_dir
directory, it works fine. But if I try to install into a different
directory, it breaks.
Any idea how I can fix this?
Thanks,
Ke