Sign in Join

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

Mailing lists / fpc-pascal / 2012-08

fpc no longer links

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

Hi,

Since yesterday fpc no longer links some programs, e.g. lazarus. It reports no error:

Assembling (pipe) ../units/i386-darwin/carbon/lazarus.s Compiling resource ../units/i386-darwin/carbon/lazarus.or Closing script ../ppas.sh
198 lines compiled, 8.2 sec

It does not link and does not create the executable.

It leaves ppas.sh and link.res. Executing ppas manually links without errors and creates the executable.
I tried uninstalling fpc and installing it again. No change.

fpc 2.6.0, OS X 10.4.

Has anyone seen this?
Maybe it happened by installing fpc 2.7.1, so I would like to uninstall fpc completely. Is there somewhere a list of files to delete?

Mattias

Reply by email

Jonas Maebe
to Mattias Gaertner
Mattias Gaertner wrote 17 lines
Since yesterday fpc no longer links some programs, e.g. lazarus. It reports no error: Assembling (pipe) ../units/i386-darwin/carbon/lazarus.s Compiling resource ../units/i386-darwin/carbon/lazarus.or Closing script ../ppas.sh 198 lines compiled, 8.2 sec It does not link and does not create the executable. It leaves ppas.sh and link.res. Executing ppas manually links without errors and creates the executable. I tried uninstalling fpc and installing it again. No change. fpc 2.6.0, OS X 10.4. Has anyone seen this?

No, never (unless the -Cn command line parameter is passed to the compiler)

Maybe it happened by installing fpc 2.7.1,

I can't see how that could happen, unless somehow your /etc/fpc.cfg got overwritten in the process. Do you have a recent /etc/fpc.bak?

so I would like to uninstall fpc completely. Is there somewhere a list of files to delete?

I thought there was one somewhere on the wiki, but I can't find it anymore. Deleting the following files and directories should do it: /usr/local/lib/fpc/
/usr/local/bin/fpcres
/usr/local/bin/fpcmkcfg
/usr/local/bin/fpcmake
/usr/local/bin/fpclasschart
/usr/local/bin/fpc
/usr/local/bin/fd2pascal
/usr/local/bin/delp
/usr/local/bin/data2inc
/usr/local/bin/chmls
/usr/local/bin/chmcmd
/usr/local/bin/bin2obj
/usr/local/bin/postw32
/usr/local/bin/plex
/usr/local/bin/mkx86ins
/usr/local/bin/mkarmins
/usr/local/bin/makeskel
/usr/local/bin/instantfpc
/usr/local/bin/h2paspp
/usr/local/bin/h2pas
/usr/local/bin/fprcp
/usr/local/bin/fppkg
/usr/local/bin/fpdoc
/usr/local/bin/fpcsubst
/usr/local/bin/fpcreslipo
/usr/local/bin/unitdiff
/usr/local/bin/rstconv
/usr/local/bin/rmcvsdir
/usr/local/bin/pyacc
/usr/local/bin/ptop
/usr/local/bin/ppumove
/usr/local/bin/ppufiles
/usr/local/bin/ppudump
/usr/local/bin/ppdep
/usr/local/bin/ppcx64
/usr/local/bin/ppcppc
/usr/local/bin/ppc386
/usr/local/bin/ppcarm
/usr/local/share/examples/fpc-*/
/usr/local/share/src/fpc-*/
/etc/fpc.cfg

Possibly also ~/.fpc.cfg

Jonas

Reply by email

Mattias Gaertner
to Jonas Maebe

Jonas Maebe hat am 12. August 2012 um 11:58
geschrieben:>

Show quoted text 23 lines
On 12 Aug 2012, at 11:16, Mattias Gaertner wrote: > Since yesterday fpc no longer links some programs, e.g. lazarus. It reports > no > error: > > Assembling (pipe) ../units/i386-darwin/carbon/lazarus.s > Compiling resource ../units/i386-darwin/carbon/lazarus.or > Closing script ../ppas.sh > 198 lines compiled, 8.2 sec > > It does not link and does not create the executable. > > It leaves ppas.sh and link.res. Executing ppas manually links without errors > and > creates the executable. > I tried uninstalling fpc and installing it again. No change. > > fpc 2.6.0, OS X 10.4. > > Has anyone seen this? No, never (unless the -Cn command line parameter is passed to the compiler)

No -Cn.

> Maybe it happened by installing fpc 2.7.1, I can't see how that could happen, unless somehow your /etc/fpc.cfg got overwritten in the process. Do you have a recent /etc/fpc.bak?

fpc uses /etc/fpc.cfg, which is the fpc.cfg from the dmg, which looks pretty normal to me.

Show quoted text 5 lines
> so I would like to uninstall fpc > completely. Is there somewhere a list of files to delete? I thought there was one somewhere on the wiki, but I can't find it anymore. Deleting the following files and directories should do it:

Thanks. I will try this list.

Show quoted text 43 lines
/usr/local/lib/fpc/ /usr/local/bin/fpcres /usr/local/bin/fpcmkcfg /usr/local/bin/fpcmake /usr/local/bin/fpclasschart /usr/local/bin/fpc /usr/local/bin/fd2pascal /usr/local/bin/delp /usr/local/bin/data2inc /usr/local/bin/chmls /usr/local/bin/chmcmd /usr/local/bin/bin2obj /usr/local/bin/postw32 /usr/local/bin/plex /usr/local/bin/mkx86ins /usr/local/bin/mkarmins /usr/local/bin/makeskel /usr/local/bin/instantfpc /usr/local/bin/h2paspp /usr/local/bin/h2pas /usr/local/bin/fprcp /usr/local/bin/fppkg /usr/local/bin/fpdoc /usr/local/bin/fpcsubst /usr/local/bin/fpcreslipo /usr/local/bin/unitdiff /usr/local/bin/rstconv /usr/local/bin/rmcvsdir /usr/local/bin/pyacc /usr/local/bin/ptop /usr/local/bin/ppumove /usr/local/bin/ppufiles /usr/local/bin/ppudump /usr/local/bin/ppdep /usr/local/bin/ppcx64 /usr/local/bin/ppcppc /usr/local/bin/ppc386 /usr/local/bin/ppcarm /usr/local/share/examples/fpc-*/ /usr/local/share/src/fpc-*/ /etc/fpc.cfg Possibly also ~/.fpc.cfg

Mattias

Reply by email

Jonas Maebe
Mattias Gaertner wrote 12 lines
Jonas Maebe hat am 12. August 2012 um 11:58 geschrieben:> > On 12 Aug 2012, at 11:16, Mattias Gaertner wrote: > > [...] > No, never (unless the -Cn command line parameter is passed to the compiler) I found it. An alias for -Cn is -E. I passed a flag, but forgot the 'd', so instead of -dEnableFeature I passed -EnableFeature. Can I create a feature request to let fpc give a warning or error message, when the -E flag has some "parameter"?

FPC now gives an error message in such situations.

Jonas

Reply by email

Mattias Gaertner
to Jonas Maebe

Jonas Maebe hat am 12. August 2012 um 15:30
geschrieben:>

Show quoted text 17 lines
On 12 Aug 2012, at 14:37, Mattias Gaertner wrote: > Jonas Maebe hat am 12. August 2012 um 11:58 > geschrieben:> >> On 12 Aug 2012, at 11:16, Mattias Gaertner wrote: >> >> [...] >> No, never (unless the -Cn command line parameter is passed to the compiler) > > I found it. An alias for -Cn is -E. I passed a flag, but forgot the 'd', so > instead of -dEnableFeature I passed -EnableFeature. > > Can I create a feature request to let fpc give a warning or error message, > when > the -E flag has some "parameter"? FPC now gives an error message in such situations.

Thank You.

Mattias

Reply by email