Sign in Join

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

Mailing lists / fpc-pascal / 2010-11

make fpc

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Brian Winfrey

What version should fpc display (Revision: 16393).

When I get latest and make /usr/bin/fpc is at version 2.4.2.

fpc -vut dummy.pas
...
Compiler: /usr/lib/fpc/2.4.2/ppc386
Using executable path: /usr/lib/fpc/2.4.2/
Using unit path: /usr/lib/fpc/2.4.2/units/i386-linux/rtl/ ...

The output indicates that 2.4.3 directories are created and 2.4.3 compiler is used.

I run
make clean build && make install INSTALL_PREFIX="/usr"

I also tried
make clean FPC=/usr/lib/fpc/2.4.3/ppc386 build.

The output of "make install" is attached.

Is this wrong?

Reply by email

Brian Winfrey
to Brian Winfrey

I also tried "make cycle" as outlined in programmers guide, but results are the same.

Brian Winfrey wrote 24 lines
What version should fpc display (Revision: 16393). When I get latest and make /usr/bin/fpc is at version 2.4.2. fpc -vut dummy.pas ... Compiler: /usr/lib/fpc/2.4.2/ppc386 Using executable path: /usr/lib/fpc/2.4.2/ Using unit path: /usr/lib/fpc/2.4.2/units/i386-linux/rtl/ ... The output indicates that 2.4.3 directories are created and 2.4.3 compiler is used. I run  make clean build && make install INSTALL_PREFIX="/usr" I also tried  make clean FPC=/usr/lib/fpc/2.4.3/ppc386 build. The output of "make install" is attached. Is this wrong?

Reply by email

Jonas Maebe
to Brian Winfrey: What version should fpc display (Revision: 16393). When I get latest and make…
Brian Winfrey wrote 16 lines
What version should fpc display (Revision: 16393). When I get latest and make /usr/bin/fpc is at version 2.4.2. fpc -vut dummy.pas ... Compiler: /usr/lib/fpc/2.4.2/ppc386 Using executable path: /usr/lib/fpc/2.4.2/ Using unit path: /usr/lib/fpc/2.4.2/units/i386-linux/rtl/ ... The output indicates that 2.4.3 directories are created and 2.4.3 compiler is used. I run make clean build && make install INSTALL_PREFIX="/usr"

There are two separate things: the installed FPC versions, and the default FPC version. The default FPC version is determined by the symbolic links /usr/bin/ppc386, /usr/bin/ppcx64 etc (or /usr/local/bin/ ppc386 etc on non-Linux). A "make install" will add a new FPC version, but it does not make it the default. If you want to do that, change the symlinks to point to the new compiler version. The "fpc" utility is only a wrapper that calls through to ppc386/ppcx64/... and has no version itself.

Jonas

Reply by email

Brian Winfrey
to Jonas Maebe
Jonas Maebe wrote 34 lines
On 21 Nov 2010, at 19:03, Brian Winfrey wrote: > What version should fpc display (Revision: 16393). > > When I get latest and make /usr/bin/fpc is at version 2.4.2. > > fpc -vut dummy.pas > ... > Compiler: /usr/lib/fpc/2.4.2/ppc386 > Using executable path: /usr/lib/fpc/2.4.2/ > Using unit path: /usr/lib/fpc/2.4.2/units/i386-linux/rtl/ > ... > > The output indicates that 2.4.3 directories are created and 2.4.3 > compiler is used. > > I run >  make clean build && make install INSTALL_PREFIX="/usr" There are two separate things: the installed FPC versions, and the default FPC version. The default FPC version is determined by the symbolic links /usr/bin/ppc386, /usr/bin/ppcx64 etc (or /usr/local/bin/ppc386 etc on non-Linux). A "make install" will add a new FPC version, but it does not make it the default. If you want to do that, change the symlinks to point to the new compiler version. The "fpc" utility is only a wrapper that calls through to ppc386/ppcx64/... and has no version itself. Jonas _______________________________________________ fpc-pascal maillist  -   http://lists.freepascal.org/mailman/listinfo/fpc-pascal

I thought there was a sym link involved, but I mis-remembered it being fpc. That clears it up thanks.

Brian

Reply by email