|
From: Andrew F. <af...@ap...> - 2010-09-10 21:35:27
|
I have more data on this issue. It looks like it may be a combination of _ and - in the path. This seams really strange, but maybe it is a bug in a regular expression?
I was able to reproduce the failure in the edk2.
In MdeModulePkg/Include I added a T_EST directory. I then added eth and eth-phy subdirs to T_EST. In eth-phy I added ethphy.h. I then updated HelloWorld.c:
#include <T_EST/eth-phy/ethphy.h>
I built the UnixPkg and I got the following error:
build.py...
: error 0001: File open failure
/Users/fish/work/edk2/MdeModulePkg/Include/T_EST/eth
[Errno 21] Is a directory
This is the error I was seeing in my private tree.
I also tried on Windows XP and it looks like I get the same issue, with a slightly different error message.
build...
: error 0001: File open failure
c:\work\edk2tot\MdeModulePkg\Include\T_EST\eth
[Errno 13] Permission denied: 'c:\\work\\edk2tot\\MdeModulePkg\\Include\\T_EST\\eth'
- Failed -
14:27:19, Sep.10 2010 [00:25]
Andrew Fish
On Sep 9, 2010, at 8:40 PM, Huang, Qing wrote:
> Andrew,
>
> Our build spec does allow to use "-" in the name of our path. I tried renaming a module's path in my windows environment and it does work.
>
> Can you please let me know your python trace stack for me to diagnose?
>
> Best regards,
> Huang, Qing
>
> -----Original Message-----
> From: Andrew Fish [mailto:af...@ap...]
> Sent: Friday, September 10, 2010 3:07 AM
> To: edk...@li...
> Cc: edk...@li...
> Subject: [edk2-buildtools] Build system puts out crazy error if a file name contains a -
>
> I noticed the code in GetDependencyList() (GenMake.py) will generate a strange error if a file path has a '-' in it.
>
> build.py...
> : error 0001: File open failure
> /Users/fish/work/edk2/XPkg/pci
> [Errno 21] Is a directory
>
> When the file name is really /Users/fish/work/edk2/XPkg/pci-test/PciTest.h
>
> I was having this issue on OS X. I had to add lots of prints to the python to track this down as my issue was not as obvious as the example.
>
> Andrew Fish
>
> PS This is a big chunk of 3rd party code we ported to edk2, so we don't really what to change the paths and file names since we may need to diff against another code base in the future.
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> edk2-buildtools-devel mailing list
> edk...@li...
> https://lists.sourceforge.net/lists/listinfo/edk2-buildtools-devel
|