[C++-sig] Re: "The filename or extension is too long"

David Abrahams dave at boost-consulting.com
Fri Sep 5 22:56:48 CEST 2003


David Abrahams <dave at boost-consulting.com> writes:

> "Mike Thompson" <mike.thompson at day8.com.au> writes:
>
>> I'm attempting to set up a Boost.Python project outside the Boost.Python tree.
>> I'm working with a modified version of the jam files provided in
>> boost\libs\python\example\project.zip (see end of post)
>>
>> Everything appears to be working perfectly EXCEPT that bjam is attempting to
>> create a folder whose path is longer than 255 characters long which, on XP,
>> causes the whole process to fall over with the message "The filename or
>> extension is too long. "
>>
>> Other than this one small problem, I believe my configuration works because
>> I've done "bjam -n -oBUILD.BAT" , hand-modified the folder names in BUILD.BAT
>> to something shorter than 255 characters and successfully built a useable
>> '.pyd'.
>>
>> So. What can I do about these enormous paths? Here is an example:
>>
>> bin\getting_started1.pyd\msvc-stlport\release\debug-symbols-on\exception-handli
>> ng-on\inlining-off\optimization-off\rtti-on\runtime-build-debug\runtime-link-dy
>> namic\stlport-cstd-namespace-std\stlport-iostream-on\stlport-version-4.5.3\thre
>> ading-single
>>
>> I've googled and found one mention of this problem in 2002, but there was no
>> resolution or workaround mentioned, simply a comment that it needed to be
>> fixed.
>
> I don't know, man.  Something's seriously wrong that all of these
> properties which already match their default values are showing up in
> the subvariant path.  Rene, can I impose upon you to look into this?

Mike,

Try the enclosed patch and let me know if it works out

-------------- next part --------------
A non-text attachment was scrubbed...
Name: boost-base.patch
Type: text/x-patch
Size: 1924 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030905/81d29dbf/attachment.bin>
-------------- next part --------------

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


More information about the Cplusplus-sig mailing list