Sign in Join

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

Mailing lists / fpc-devel / 2026-01

rtl/darwin/Makefile.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.

Adriaan van Os

Trying to build some fpc-3.3.1 from git, I have some troubles with rtl/darwin/Makefile recreated from rtl/darwin/Makefile.fpc.

I tried both

cd rtl/darwin
fpcmake -w -Tall

and

cd rtl/darwin
fpcmake -w -Tx86_64-darwin,aarch64-darwin

But building the compiler (rtl) then results in

...
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C darwin all /bin/mkdir -p /Users/administrator/fpc-svn/source2/rtl/units/aarch64-darwin make[7]: *** No rule to make target `.ppu', needed by `sysinit.ppu'. Stop. make[6]: *** [darwin_all] Error 2
make[5]: *** [rtl] Error 2
make[4]: *** [next] Error 2
make[3]: *** [ppc1] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.aarch64-darwin] Error 2
logout

This doesn't happen when not recreating the Makefile. Is there a bug in rtl/darwin/Makefile.fpc ?

Regards,

Adriaan van Os

Reply by email

Pierre Muller
to Adriaan van Os

rtl Makefile's need to be regenerated with a special command line:

Try to use
cd rtl
./regenmakefiles.sh

This will call fpcmake with this command line:

fpcmake -T$TARGETS -q -x $RTLDIR/inc/Makefile.rtl

the "-x $RTLDIR/inc/Makefile.rtl" part is essential, as it contains many make rules.

Pierre

Le 23/01/2026 à 12:00, Adriaan van Os via fpc-devel a écrit :

Show quoted text 36 lines
Trying to build some fpc-3.3.1 from git, I have some troubles with rtl/darwin/Makefile recreated from rtl/darwin/Makefile.fpc. I tried both cd rtl/darwin fpcmake -w -Tall and cd rtl/darwin fpcmake -w -Tx86_64-darwin,aarch64-darwin But building the compiler (rtl) then results in ... /Applications/Xcode.app/Contents/Developer/usr/bin/make -C darwin all /bin/mkdir -p /Users/administrator/fpc-svn/source2/rtl/units/aarch64-darwin make[7]: *** No rule to make target `.ppu', needed by `sysinit.ppu'. Stop. make[6]: *** [darwin_all] Error 2 make[5]: *** [rtl] Error 2 make[4]: *** [next] Error 2 make[3]: *** [ppc1] Error 2 make[2]: *** [cycle] Error 2 make[1]: *** [compiler_cycle] Error 2 make: *** [build-stamp.aarch64-darwin] Error 2 logout This doesn't happen when not recreating the Makefile. Is there a bug in rtl/darwin/Makefile.fpc ? Regards, Adriaan van Os _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

Adriaan van Os
to Pierre Muller
Pierre Muller wrote 13 lines
rtl Makefile's need to be regenerated with a special command line: Try to use cd rtl ./regenmakefiles.sh This will call fpcmake with this command line: fpcmake -T$TARGETS -q -x $RTLDIR/inc/Makefile.rtl the "-x $RTLDIR/inc/Makefile.rtl" part is essential, as it contains many make rules.

Thanks ! That fixes the problem.

The fpcmake that comes with the bootstrapping 3.2.2 compiler doesn't seem to have -x. How is that handled ?

Regards,

Adriaan van Os

Reply by email

Pierre Muller
to Adriaan van Os

Le 23/01/2026 à 15:25, Adriaan van Os via fpc-devel a écrit :

Show quoted text 19 lines
Pierre Muller via fpc-devel wrote: > rtl Makefile's need to be regenerated with a special command line: > > Try to use > cd rtl > ./regenmakefiles.sh > > This will call fpcmake with this command line: > > fpcmake -T$TARGETS -q -x $RTLDIR/inc/Makefile.rtl > > > the "-x $RTLDIR/inc/Makefile.rtl" part is essential, > as it contains many make rules. Thanks ! That fixes the problem. The fpcmake that comes with the bootstrapping 3.2.2 compiler doesn't seem to have -x. How is that handled ?

Makefile's inside git repository should always stay in sync, meaning that they should be re-generated after changes made, either to utils/fpcm, to any Makefile.fpc or to rtl/inc/Makefile.rtl, and pushed to the repository.

You should never need to regenerate Makefile's unless you modify any of the files listed above.

You should use latest trunk fpcmake to regenerate any Makefile on trunk branch.

Pierre

Reply by email