#42 root sys path interferes with installation in /usr/local

open-accepted
Other (13)
5
2010-11-16
2010-11-11
Lothar May
No

If the Linux binary release of mingw-w64 (e.g. mingw-w32-bin_i686-linux_20101014.tar.bz2) is installed to /usr/local, then errors occur when cross-compiling as non-root, because the directory "/root" is in the include path:

:~$ i686-w64-mingw32-g++ test.cpp -o test
cc1plus: error: /usr/bin/../../root/usr/local/include: Permission denied
cc1plus: error: /usr/bin/../../root/mingw/include: Permission denied

This situation could be improved, it would be great if paths which are required at build time for gcc would not interfere with paths on the target system. See also this forum thread:

http://sourceforge.net/projects/mingw-w64/forums/forum/723798/topic/3896642

Discussion

  • Lothar May

    Lothar May - 2010-11-11

    I meant that the error occurs if installed to /usr, not /usr/local, actually the workaround is to install to /usr/local...

     
  • NightStrike

    NightStrike - 2010-11-16
    • labels: --> Other
    • assigned_to: nobody --> nightstrike
     
  • NightStrike

    NightStrike - 2010-11-16
    • status: open --> open-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks