Sign in Join

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

Mailing lists / lazarus / 2003-12

Failed to create pipe

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

A.J. Venter
to Vincent Snijders: The used compiler is definitely the cause of your problem. The 1.9.x fpc compilers are…

Okay, installed 1.0.10, recompiled lazarus, that fixed these problems.

Now the only problem is that whenever I try to build a project originally created earlier, it says
"Fatal: Can't find unit interfaces"

I checked the FAQ entry on it, to no avail.

New projects work fine, but I have some projects from earlier dates that I vitally need to be able to work on again.

They used to work fine anyway.
I deleted all the .ppu and .o files from the directory, no luck whatever is wrong is somewhere in the .lpi's or .lrs's.

Any suggestions ?

Ciao
A.J.

Vincent Snijders wrote 87 lines
The used compiler is definitely the cause of your problem. The 1.9.x fpc compilers are beta's for the coming 2.0 version, and beta's ought to have some bugs in them. ;-) There are four options for you. 1. Use fpc 1.0.10, which you can download from http://www.freepascal.nl/down-linux-i386.html. 2. You can upgrade your compiler to 1.9.1 by downloading a snapshot from http://www.freepascal.org/develop.html#snapshots. 3. You can get the latest 1.9.1 using cvs. For instructions see: http://www.freepascal.org/develop.html#cvs. 4. You can get until a new 1.9.x compiler is released. I don't know when this will happen, but this could take another month. HTH, Vincent. > -----Oorspronkelijk bericht----- > Van: A.J. Venter > ppc386 -h reveals: > Free Pascal Compiler version 1.9.0 [2003/11/05] for i386 > > > Which is the latest I could find on the freepascal website. > The reason I downloaded from there and not from the lazarus > site is that lazarus site only has RPMS, I am on slackware, > and the fpc rpms are notoriously incompatible with rpm2tgz > (as I learned from experience) so I downloaded the "one big > tar file" - picking the latest one I could find. > > Ciao > A.J. > > On Mon, 2003-12-22 at 10:04, Vincent Snijders wrote: > > > -----Oorspronkelijk bericht----- > > > Van: A.J. Venter > > > Right, I fixed the prior crashed by upgrading FPC. > > > > > > Now I have a new problem Lazarus refuses to compile anything, > > > neither old project code nor projects recently created using > > > the new project dialog. > > > > > > In all cases there is exactly the same message: > > > "Failed to create pipe" > > > No further information is forthcoming. > > > > > > I did notice these messages near the top of the lazarus output: > > > NOTE: editor options config file not found - using defaults > > > NOTE: miscellaneous options file not found - using defaults > > > NOTE: codetools config file not found - using defaults > > > ERROR: TDefinePool.CreateFPCTemplate: Failed to create pipe. > > > > > > NOTE: Could not create Define Template for Free Pascal Compiler > > > > > > > > > Any ideas what I'm doing wrong this time ? > > Fpc 1.9.0 has some problems ("Failed to create pipe"), and some fpc > > 1.9.1 from last week, cannot read xml files. > > > > What version (and date) of fpc are you using? > > > > HTH, > > Vincent. > > > > _________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.lazarus.freepascal.org/mailarchives > -- > "The reason Santa is so jolly is > because he knows where all the bad girls live." > > A.J. Venter > DireqLearn Tech Guru > www.direqlearn.org > www.silentcoder.cjb.net (personal site) > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
"The reason Santa is so jolly is because he knows where all the bad girls live." A.J. Venter DireqLearn Tech Guru www.direqlearn.org www.silentcoder.cjb.net (personal site)

Reply by email

Vincent Snijders

Solved in private mail comminucation.
Forwarded to list in the hope the will end up in a searchable archive once.

-----Oorspronkelijk bericht-----
Van: A.J. Venter
Verzonden: maandag 22 december 2003 14:39

Great !
That fixed it thanks.

Ciao
A.J.

Vincent Snijders wrote 50 lines
In Lazarus open the project inspector (menu Project, Project Inspector). Check if the LCL is in the required packages list. If not add it, by pressing on Add Button. In the second tab of the opened dialog, select the LCL in the package name combobox. HTH, Vincent. > -----Oorspronkelijk bericht----- > Van: A.J. Venter > Verzonden: maandag 22 december 2003 14:18 > Aan: > Onderwerp: RE: [lazarus] Failed to create pipe > > > Okay, installed 1.0.10, recompiled lazarus, that fixed these > problems. > > Now the only problem is that whenever I try to build a > project originally created earlier, it says > "Fatal: Can't find unit interfaces" > > I checked the FAQ entry on it, to no avail. > > New projects work fine, but I have some projects from earlier > dates that I vitally need to be able to work on again. > > They used to work fine anyway. > I deleted all the .ppu and .o files from the directory, no > luck whatever is wrong is somewhere in the .lpi's or .lrs's. > > Any suggestions ? > > Ciao > A.J. > On Mon, 2003-12-22 at 10:39, Vincent Snijders wrote: > > The used compiler is definitely the cause of your problem. > The 1.9.x > > fpc compilers are beta's for the coming 2.0 version, and > beta's ought > > to have some bugs in them. ;-) > > > > There are four options for you. > > 1. Use fpc 1.0.10, which you can download from > > http://www.freepascal.nl/down-linux-i386.html. > > 2. You can upgrade your compiler to 1.9.1 by downloading a

snapshot

> > from http://www.freepascal.org/develop.html#snapshots. > > 3. You can get the latest 1.9.1 using cvs. For instructions see: > > http://www.freepascal.org/develop.html#cvs. > > 4. You can get until a new 1.9.x compiler is released. I don't

know

Show quoted text 74 lines
> > when this will happen, but this could take another month. > > > > HTH, > > Vincent. > > > > > -----Oorspronkelijk bericht----- > > > Van: A.J. Venter ppc386 -h > > > reveals: Free Pascal Compiler version 1.9.0 [2003/11/05] for > > > i386 > > > > > > > > > Which is the latest I could find on the freepascal website. The > > > reason I downloaded from there and not from the lazarus site is > > > that lazarus site only has RPMS, I am on slackware, and the fpc > > > rpms are notoriously incompatible with rpm2tgz (as I learned > > > from experience) so I downloaded the "one big tar file" - > > > picking the latest one I could find. > > > > > > Ciao > > > A.J. > > > > > > On Mon, 2003-12-22 at 10:04, Vincent Snijders wrote: > > > > > -----Oorspronkelijk bericht----- > > > > > Van: A.J. Venter > Right, I fixed > > > > > the prior crashed by upgrading FPC. > > > > > > > > > > Now I have a new problem Lazarus refuses to compile > > > > > anything, > > > > > neither old project code nor projects recently > created using the > > > > > new project dialog. > > > > > > > > > > In all cases there is exactly the same message: "Failed to > > > > > create pipe" No further information is forthcoming. > > > > > > > > > > I did notice these messages near the top of the > lazarus output: > > > > > NOTE: editor options config file not found - using defaults > > > > > NOTE: miscellaneous options file not found - using defaults > > > > > NOTE: codetools config file not found - using defaults > > > > > ERROR: TDefinePool.CreateFPCTemplate: Failed to create pipe. > > > > > > > > > > NOTE: Could not create Define Template for Free > Pascal Compiler > > > > > > > > > > > > > > > Any ideas what I'm doing wrong this time ? > > > > Fpc 1.9.0 has some problems ("Failed to create pipe"), and > > > > some > > > > fpc > > > > 1.9.1 from last week, cannot read xml files. > > > > > > > > What version (and date) of fpc are you using? > > > > > > > > HTH, > > > > Vincent. > > > > > > > > > _________________________________________________________________ > > > > To unsubscribe: mail with > > > > "unsubscribe" as the Subject > > > > archives at http://www.lazarus.freepascal.org/mailarchives > > > -- > > > "The reason Santa is so jolly is > > > because he knows where all the bad girls live." > > > > > > A.J. Venter > > > DireqLearn Tech Guru > > > www.direqlearn.org > > > www.silentcoder.cjb.net (personal site) > > > > > >

_________________________________________________________________

Show quoted text 23 lines
> > > To unsubscribe: mail with > > > "unsubscribe" as the Subject > > > archives at http://www.lazarus.freepascal.org/mailarchives > > > > > > > _________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.lazarus.freepascal.org/mailarchives > -- > "The reason Santa is so jolly is > because he knows where all the bad girls live." > > A.J. Venter > DireqLearn Tech Guru > www.direqlearn.org > www.silentcoder.cjb.net (personal site) > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives >
How many people can read HEX if only you and dead people can read HEX ? Answer: 57006 A.J. Venter DireqLearn Tech Guru www.direqlearn.org www.silentcoder.cjb.net (personal site)

Reply by email

A.J. Venter
to Vincent Snijders: Fpc 1.9.0 has some problems ("Failed to create pipe"), and some fpc 1.9.1 from last week,…

ppc386 -h reveals:
Free Pascal Compiler version 1.9.0 [2003/11/05] for i386

Which is the latest I could find on the freepascal website. The reason I downloaded from there and not from the lazarus site is that lazarus site only has RPMS, I am on slackware, and the fpc rpms are notoriously incompatible with rpm2tgz (as I learned from experience) so I downloaded the "one big tar file" - picking the latest one I could find.

Ciao
A.J.

Vincent Snijders wrote 34 lines
> -----Oorspronkelijk bericht----- > Van: A.J. Venter > Right, I fixed the prior crashed by upgrading FPC. > > Now I have a new problem Lazarus refuses to compile anything, > neither old project code nor projects recently created using > the new project dialog. > > In all cases there is exactly the same message: > "Failed to create pipe" > No further information is forthcoming. > > I did notice these messages near the top of the lazarus output: > NOTE: editor options config file not found - using defaults > NOTE: miscellaneous options file not found - using defaults > NOTE: codetools config file not found - using defaults > ERROR: TDefinePool.CreateFPCTemplate: Failed to create pipe. > > NOTE: Could not create Define Template for Free Pascal Compiler > > > Any ideas what I'm doing wrong this time ? Fpc 1.9.0 has some problems ("Failed to create pipe"), and some fpc 1.9.1 from last week, cannot read xml files. What version (and date) of fpc are you using? HTH, Vincent. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
"The reason Santa is so jolly is because he knows where all the bad girls live." A.J. Venter DireqLearn Tech Guru www.direqlearn.org www.silentcoder.cjb.net (personal site)

Reply by email

Vincent Snijders

The used compiler is definitely the cause of your problem. The 1.9.x fpc compilers are beta's for the coming 2.0 version, and beta's ought to have some bugs in them. ;-)

There are four options for you.
1. Use fpc 1.0.10, which you can download from
http://www.freepascal.nl/down-linux-i386.html.
2. You can upgrade your compiler to 1.9.1 by downloading a snapshot from http://www.freepascal.org/develop.html#snapshots.
3. You can get the latest 1.9.1 using cvs. For instructions see: http://www.freepascal.org/develop.html#cvs.
4. You can get until a new 1.9.x compiler is released. I don't know when this will happen, but this could take another month.

HTH,
Vincent.

Show quoted text 65 lines
-----Oorspronkelijk bericht----- Van: A.J. Venter ppc386 -h reveals: Free Pascal Compiler version 1.9.0 [2003/11/05] for i386 Which is the latest I could find on the freepascal website. The reason I downloaded from there and not from the lazarus site is that lazarus site only has RPMS, I am on slackware, and the fpc rpms are notoriously incompatible with rpm2tgz (as I learned from experience) so I downloaded the "one big tar file" - picking the latest one I could find. Ciao A.J. On Mon, 2003-12-22 at 10:04, Vincent Snijders wrote: > > -----Oorspronkelijk bericht----- > > Van: A.J. Venter > > Right, I fixed the prior crashed by upgrading FPC. > > > > Now I have a new problem Lazarus refuses to compile anything, > > neither old project code nor projects recently created using > > the new project dialog. > > > > In all cases there is exactly the same message: > > "Failed to create pipe" > > No further information is forthcoming. > > > > I did notice these messages near the top of the lazarus output: > > NOTE: editor options config file not found - using defaults > > NOTE: miscellaneous options file not found - using defaults > > NOTE: codetools config file not found - using defaults > > ERROR: TDefinePool.CreateFPCTemplate: Failed to create pipe. > > > > NOTE: Could not create Define Template for Free Pascal Compiler > > > > > > Any ideas what I'm doing wrong this time ? > Fpc 1.9.0 has some problems ("Failed to create pipe"), and some fpc > 1.9.1 from last week, cannot read xml files. > > What version (and date) of fpc are you using? > > HTH, > Vincent. > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives -- "The reason Santa is so jolly is because he knows where all the bad girls live." A.J. Venter DireqLearn Tech Guru www.direqlearn.org www.silentcoder.cjb.net (personal site) _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Vincent Snijders
Show quoted text 22 lines
-----Oorspronkelijk bericht----- Van: A.J. Venter Right, I fixed the prior crashed by upgrading FPC. Now I have a new problem Lazarus refuses to compile anything, neither old project code nor projects recently created using the new project dialog. In all cases there is exactly the same message: "Failed to create pipe" No further information is forthcoming. I did notice these messages near the top of the lazarus output: NOTE: editor options config file not found - using defaults NOTE: miscellaneous options file not found - using defaults NOTE: codetools config file not found - using defaults ERROR: TDefinePool.CreateFPCTemplate: Failed to create pipe. NOTE: Could not create Define Template for Free Pascal Compiler Any ideas what I'm doing wrong this time ?

Fpc 1.9.0 has some problems ("Failed to create pipe"), and some fpc 1.9.1 from last week, cannot read xml files.

What version (and date) of fpc are you using?

HTH,
Vincent.

Reply by email

Mattias Gaertner
to Vincent Snijders: Solved in private mail comminucation. Forwarded to list in the hope the will end up in a…
Show quoted text 9 lines
Hi all, thanks for all the help with the previous issues. Now a new issue has reared it's ugly head. When I am working on buttons already in the existing code, I can modify their OnClick methods no problem. However, I cannot add any buttons. I add a button, I go to events, double click in OnClick and get a message: Cannot find method. The message window shows: Unit not found objpas.

FYI: The reason, why the codetools can find your existing onclick, but not the objpas, is that they do not compile like fpc. They parse and search units on the fly. This feature is important for speed and to work with code under construction.

This is equally true of new buttons in existing and new forms. Any idea what is causing this or how to fix it ?

- Maybe the IDE didn't notice, that you updated your fpc. Try Environment -> Rescan fpc source dir.
- If this does not work, check if the IDE actually found the objpas unit. There are quite a lot of fpc units, so the easiest way is to grep in ~/.lazarus/inputhistory.xml for objpas.
For fpc 1.9 there should be a line

objpas <your fpc src path>/rtl/objpas/objpas.pp

Is it there?

Mattias

Reply by email

A.J. Venter
to Vincent Snijders: Solved in private mail comminucation. Forwarded to list in the hope the will end up in a…

Hi all, thanks for all the help with the previous issues.

Now a new issue has reared it's ugly head.

When I am working on buttons already in the existing code, I can modify their OnClick methods no problem.
However, I cannot add any buttons. I add a button, I go to events, double click in OnClick and get a message: Cannot find method. The message window shows: Unit not found objpas.

This is equally true of new buttons in existing and new forms.

Any idea what is causing this or how to fix it ?

How many people can read HEX if only you and dead people can read HEX ? Answer: 57006 A.J. Venter DireqLearn Tech Guru www.direqlearn.org www.silentcoder.cjb.net (personal site)

Reply by email

Mattias Gaertner
to Vincent Snijders: Solved in private mail comminucation. Forwarded to list in the hope the will end up in a…
Show quoted text 34 lines
> > Any idea what is causing this or how to fix it ? > > - Maybe the IDE didn't notice, that you updated your fpc. Try > Environment -> Rescan fpc source dir. Did that several times, I was thinking along the same lines. I also did make clean all && make Just in case. > - If this does not work, check if the IDE actually found the objpas > unit. There are quite a lot of fpc units, so the easiest way is to grep > in~/.lazarus/inputhistory.xml for objpas. > For fpc 1.9 there should be a line > > objpas <your fpc src path>/rtl/objpas/objpas.pp > > Is it there? Well I use 1.0.10 ok cd ~/.lazarus cat inputhistory.xml | grep objpas <FileDialog Width="441" Height="469" InitialDir="/usr/src/fpc/rtl/objpas/"> <Item1 Value="/usr/src/fpc/rtl/objpas/"/> objpas /usr/src/fpc/rtl/$(#TargetOS)/objpas.pp typinfo /usr/src/fpc/rtl/objpas/typinfo.pp math /usr/src/fpc/rtl/objpas/math.pp objpas /usr/src/fpc/rtl/$(#TargetOS)/objpas.pp typinfo /usr/src/fpc/rtl/objpas/typinfo.pp math /usr/src/fpc/rtl/objpas/math.pp So several lines reference the name, some the directory and one the actual objpas.pp file The /usr/src/fpc bit should be correct, it is actually a symlink to /usr/src/fpc-1.0.10 I led me do some more checking, TargetOS must obviously be linux

right

so I checked /usr/src/fpc/rtl/linux There is no objpas.pp there !!

And there should not be. But once it was there.
So, either the rescan did not work (which I doubt, but to make sure, check the file date), or the heuristic found something there. Can you give me a
find /usr/src/fpc/ | grep objpas.p

Show quoted text 14 lines
Yet /usr/src/fpc/rtl/objpas does exist. This source directory exists as extracted from the "one big tarball" download's setup script. I then proceeded to dig into the tarbal itself and can confirm that the file does not exist there either. I did some further grepping in the .lazarus directory, found this refference in environmentoptions.xml <OpenFiles Max="10" Count="1"> <Item1 Value="/usr/src/fpc/rtl/objpas/objpas.pp"/> </OpenFiles>

This is the recent file list.

Show quoted text 5 lines
No other reference in that file, and this one does have the right path. Finally, not being able to figure out where the wrong path was set from, or how it got there, I tried a little hack - I symlinked all the files from /usr/src/fpc/rtl/objpas/ INTO /usr/src/fpc/rtl/linux

:(

Everything seems to work now, but I am rather less than happy about it, somewhere something is still looking for the file in the wrong place, I now tricked it into finding it - but I would obviously prefer to just fix it.

No problem. As soon as I found out, what confused the search algorithm. The current 1.0.11 works fine. Do you know the date of your tarball?

Mattias

Reply by email

A.J. Venter
to Vincent Snijders: Solved in private mail comminucation. Forwarded to list in the hope the will end up in a…
> Any idea what is causing this or how to fix it ? - Maybe the IDE didn't notice, that you updated your fpc. Try Environment -> Rescan fpc source dir.

Did that several times, I was thinking along the same lines. I also did make clean all && make
Just in case.

Show quoted text 8 lines
- If this does not work, check if the IDE actually found the objpas unit. There are quite a lot of fpc units, so the easiest way is to grep in ~/.lazarus/inputhistory.xml for objpas. For fpc 1.9 there should be a line objpas <your fpc src path>/rtl/objpas/objpas.pp Is it there?

Well I use 1.0.10
ok cd ~/.lazarus
cat inputhistory.xml | grep objpas
<FileDialog Width="441" Height="469"
InitialDir="/usr/src/fpc/rtl/objpas/">
<Item1 Value="/usr/src/fpc/rtl/objpas/"/>
objpas /usr/src/fpc/rtl/$(#TargetOS)/objpas.pp
typinfo /usr/src/fpc/rtl/objpas/typinfo.pp
math /usr/src/fpc/rtl/objpas/math.pp
objpas /usr/src/fpc/rtl/$(#TargetOS)/objpas.pp
typinfo /usr/src/fpc/rtl/objpas/typinfo.pp
math /usr/src/fpc/rtl/objpas/math.pp

So several lines reference the name, some the directory and one the actual objpas.pp file

The /usr/src/fpc bit should be correct, it is actually a symlink to /usr/src/fpc-1.0.10
I led me do some more checking, TargetOS must obviously be linux so I checked /usr/src/fpc/rtl/linux
There is no objpas.pp there !!

Yet /usr/src/fpc/rtl/objpas does exist.

This source directory exists as extracted from the "one big tarball" download's setup script.

I then proceeded to dig into the tarbal itself and can confirm that the file does not exist there either.

I did some further grepping in the .lazarus directory, found this refference in environmentoptions.xml

<OpenFiles Max="10" Count="1">
<Item1 Value="/usr/src/fpc/rtl/objpas/objpas.pp"/> </OpenFiles>

No other reference in that file, and this one does have the right path.

Finally, not being able to figure out where the wrong path was set from, or how it got there, I tried a little hack - I symlinked all the files from /usr/src/fpc/rtl/objpas/ INTO /usr/src/fpc/rtl/linux

Everything seems to work now, but I am rather less than happy about it, somewhere something is still looking for the file in the wrong place, I now tricked it into finding it - but I would obviously prefer to just fix it.

Ciao
A.J.

How many people can read HEX if only you and
dead people can read HEX ?

Answer: 57006
A.J. Venter
DireqLearn Tech Guru
www.direqlearn.org
www.silentcoder.cjb.net (personal site)

Reply by email