On 2/18/2012 04:52, Kai Tietz wrote:
> 2012/2/17 KC <[email protected]>:
>>
>>
>> On Sat, Feb 18, 2012 at 4:37 AM, Kai Tietz <[email protected]> wrote:
>>>
>>> 2012/2/17 KC <[email protected]>:
>>>> Hi,
>>>>
>>>> I install mingw-w64-1.0-bin_x86_64-linux_20110822.tar.bz2 at CentOS 6.x.
>>>> I extract the tar file into /xmingw-w64/*
>>>> and set /xmingw-w64/bin as the first search path of $PATH.
>>>>
>>>> Now when I compile a simple hello.c as below:
>>>>
>>>> $ x86_64-w64-mingw32-gcc hello.c -o hello.exe
>>>>
>>>> I got error message:
>>>> cc1: error: /xmingw-w64/bin/../../root/usr/local/include: Permission
>>>> denied
>>>> cc1: error: /xmingw-w64/bin/../../root/mingw/include: Permission denied
>>>>
>>>> The permission denied is because /root/* can't be access by user on
>>>> CentOS
>>>> 6.x.
>>>> If I compile hello.c use super user ... it works !!
>>>>
>>>> What's the problem here ?
>>>> why cc1 try to access /root/usr/local/include instead of
>>>> /usr/local/include
>>>> ??
>>>>
>>>> Thanks a lot
>>>> KC
>>>
>>> Well, this is a known issue.  Before taring up the binary-package it
>>> is missed to change permissions in tree (chmod -R 0777)
>>>
>>> If you do so on tree after extracting, things should be fixed,
>>
>> Hi Kai,
>>
>> Thanks for reply, but "chmod -R 0777" doesn't solve the issue.
>> As I said, cc1 try to access "/root/usr/local/include" instead
>> of "/usr/local/include".  Only super user can access /root/*.
>>
>> Regards,
>> KC
> 
> Oh, I see.  Something to be fixed by our buildbot-makefile team.  To
> use here /root as directory name seems to be a "elaborate" idea ...
> 
> Any thoughts NightStrike, Mook, JonY, Ruben?
> 

Your install path, change it to something deeper, eg /usr/xmingw-w64/.
I'm not sure what's with the 0700 mode though.




Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to