> Tom Verhoeff wrote:
> > I recently upgraded to 0.9.14 and started a project, whose code
> > is in a deeply nested directory tree with fairly long directory names,
> > where one of the directory names contains a space.
> >
> > When compiling from the ide, this fails at the assembler. It seems
> > to report a cut off path (the part with the space is included), though
> > this could only be in the message printed (and not in the argument that
> > it received).
> >
> > Does anyone have an idea what is the problem here?
Yes, I've had all sorts of path chopping issues. Especially it occurs if you
specify
the -o option to the compiler along with a -k option with some long paths
involved. The
FPC compiler uses almost all shortstrings to pass options to the linker. The
problem does
not occur until a total number of options add up to 255 - but it isn't as
simple as just
counting all your options and adding them up to 255 - rather some options are
passed to
the linker (such as -o) while others are sent other places, to for example the
search
functions that verify directory/file location of units in the uses clause. Some
limits
are not even 255 but rather 50. If you read the fpc-devel list you will see
what I mean
when I say that I've had the same issues.
It generally occurs on computers that have several hundred projects, because
when you
have this many projects you do use long paths - while most people out there
don't have
hundreds/thousands of projects on their drive so the bug never pops up - or
they just
learn to live with it - I had these issues since day one when I was a newbie to
FPC
and I was blaming it on myself since I thought it was a newbie issue of my own.
As more and more projects have been placed on my hard drive, the more the bug
has
popped up over and over again. Back when my hard drive was not as loaded, it
didn't occur much, but did occur.
It will require a lot of changes to the FPC source code since FPC source is
heavily
reliant on shortstrings, and the compiler will be slower. All testing for this
bug should
be done at the command line and the bug should be reported to FPC section
rather than
Lazarus section.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives