Sign in Join

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

Mailing lists / fpc-pascal / 2012-10

Make distclean for X64 windows?

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Reinier Olislagers

Hi list,

After r22621 I decided to test make distclean.

In my fpc directory, I have both i386_win32 and x64_win64 ppu units. Using make distclean, the i386 ppus seemed to have been cleared up nicely (dir *.ppu /s | grep 386)

However, I can't get rid of the x64 ppus (e.g.
C:\Development\fpctrunk\units\x86_64-win64\zlib\zlib.ppu).

I tried:
rem Cross compile:
make distclean OS_TARGET=win64 CPU_TARGET=x86_64

rem Looked at make file, OS_SOURCE seemed likely:
make distclean OS_SOURCE=win64 CPU_SOURCE=x86_64

rem More a wild guess:
make distclean FPCTARGET=x86_64-win64

rem The kitchen sink with explicit x64 compiler:
make distclean FPC=c:\development\fpcbootstrap64\ppcx64.exe PP=c:\development\fpcbootstrap64\ppcx64.exe OS_TARGET=win64 CPU_TARGET=x86_64 OS_SOURCE=win64 CPU_SOURCE=x86_64

What have I overlooked?

Reply by email

Jonas Maebe
to Reinier Olislagers
Reinier Olislagers wrote 6 lines
In my fpc directory, I have both i386_win32 and x64_win64 ppu units. Using make distclean, the i386 ppus seemed to have been cleared up nicely (dir *.ppu /s | grep 386) However, I can't get rid of the x64 ppus (e.g. C:\Development\fpctrunk\units\x86_64-win64\zlib\zlib.ppu).

Those units should never exist in the first place. They are probably the result of a "make install", and "make distclean" was never intended to clean the result "make install", because you're not suppose to perform a "make install" with as destination the source directory itself. "make distclean" is only supposed to clean up all files generated in the source directory by any form of "make all".

Additionally, that fix is only for the utils subdirectory and most problems are with the packages directory.

Jonas

Reply by email

Reinier Olislagers
to Jonas Maebe: Those units should never exist in the first place. They are probably the result of a…
Jonas Maebe wrote 11 lines
On 13 Oct 2012, at 11:42, Reinier Olislagers wrote: > In my fpc directory, I have both i386_win32 and x64_win64 ppu units. > Using make distclean, the i386 ppus seemed to have been cleared up > nicely (dir *.ppu /s | grep 386) > > However, I can't get rid of the x64 ppus (e.g. > C:\Development\fpctrunk\units\x86_64-win64\zlib\zlib.ppu). Those units should never exist in the first place. They are probably the result of a "make install", and "make distclean" was never intended to clean the result "make install", because you're not suppose to perform a "make install" with as destination the source directory itself. "make distclean" is only supposed to clean up all files generated in the source directory by any form of "make all".

Completely correct, they were generated by make install.

Additionally, that fix is only for the utils subdirectory and most problems are with the packages directory.

Got it. I'll just keep on using fpcup...

Thanks,
Reinier

Reply by email