Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-11

FPC mysteriously fails to find a specified path.

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bruce Tulloch

I have a project in the directory:

/home/bruce/project

which has sub-directories:

src
lib

Both are specified in Lazarus' Other Unit Files:

src;lib

but verbose message when attempting to compile the project produces the following excerpt:

Handling option "-Fu/home/bruce/project/src"
interpreting option "-Fu/home/bruce/project/src"
Path "./src/" not found
Handling option "-Fu/home/bruce/project/lib"
interpreting option "-Fu/home/bruce/project/lib"
Using unit path: ./lib/

That is, FPC fails to find the "src" directory but succeeds to find the "lib" directory. Both directories exist and are in all respects except their names identical. Something is blocking FPC from finding "src" because it's called "src".

I've tried other directory names and some work and others don't. I've detected a pattern to it yet.

This problem occurs using the Ubuntu 11.10 (Unity) packaged versions of FPC and Lazarus. If I use Lazarus SVN trunk on a Debian Squeeze machine (with FPC 2.4.2) it all works fine.

Is this an FPC 2.4.4 bug or some sort of error on my part?

Cheers, Bruce.

Bruce Tulloch
to Bruce Tulloch

Okay, worked it out, main project directory was remotely mounted (from a CIFS share) and there's clearly some sort of problem in the Ubuntu case with I/O (Debian seems to be okay when the same share is mounted there, hmm). -b

Bruce Tulloch wrote 39 lines
I have a project in the directory: /home/bruce/project which has sub-directories: src lib Both are specified in Lazarus' Other Unit Files: src;lib but verbose message when attempting to compile the project produces the following excerpt: Handling option "-Fu/home/bruce/project/src" interpreting option "-Fu/home/bruce/project/src" Path "./src/" not found Handling option "-Fu/home/bruce/project/lib" interpreting option "-Fu/home/bruce/project/lib" Using unit path: ./lib/ That is, FPC fails to find the "src" directory but succeeds to find the "lib" directory. Both directories exist and are in all respects except their names identical. Something is blocking FPC from finding "src" because it's called "src". I've tried other directory names and some work and others don't. I've detected a pattern to it yet. This problem occurs using the Ubuntu 11.10 (Unity) packaged versions of FPC and Lazarus. If I use Lazarus SVN trunk on a Debian Squeeze machine (with FPC 2.4.2) it all works fine. Is this an FPC 2.4.4 bug or some sort of error on my part? Cheers, Bruce.