cc1 error: /path_to_dest_dir/lib/gcc/i686-cm-linux/4.1.2/include: Permission denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux