[Lazarus] Can't build fpc trunk x64 win32/64

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
Hi guys. I need your help.

I try build trunk compiler x64 for windows. I was extract stable release
fpc_x64 form lazarus-2.0.8-fpc-3.0.4-win64.exe installer and put it to
separate folder fpc_stable_x64. Also I put into fpc_stable_x64 folder
bingw64 folder and fixed the file fpc.cfg as follows:

--- code --
     # searchpath for tools
-FDD:\Archive\development\fpc_stable_x64/bin/$FPCTARGET

     # it's doesn't work!
     -FDD:\Archive\development\fpc_stable_x64/binw64/
--- code ---

Then I run the bat-file as follows:

--- code ---
     set FPC_source={<fpc trunk root directory path>}
     set FPC_binutils={<fpc trunk root directory path>}\bin\x86_64-win64
     set FPC_stable_binutils={fpc_stable_x64 root directory
path}\bin\x86_64-win64

     :: so it works!
     set binw64_path={fpc_stable_x64 root directory path}/binw64
     set path=<bla-bla-bla>;%path%

     ...
     cd /d %FPC_source%
     make clean all install INSTALL_PREFIX=%FPC_source%
PP=%FPC_stable_binutils%\ppcx64.exe DATA2INC=%FPC_source%\utils\data2inc.exe
     ...
--- code ---

During compilation I get an error:

--- code ---
     ...
d:/Archive/development/fpc_stable_x64/bin/x86_64-win64/mv.exe -f
x86_64/bin/x86_64-win64/pp.exe ppcx64.exe
     make[5]: Leaving directory
`d:/Archive/development/fpc_331_r44725_x64/compiler'
     make echotime
     make[5]: Entering directory
`d:/Archive/development/fpc_331_r44725_x64/compiler'
     process_begin: CreateProcess((null), echo Start now 19:52:42, ...)
failed.
     make (e=2): Не удается найти указанный файл. <english translation:
The system cannot find the file specified>
     make[5]: *** [echotime] Error 2
     make[5]: Leaving directory
`d:/Archive/development/fpc_331_r44725_x64/compiler'
     make[4]: *** [next] Error 2
     make[4]: Leaving directory
`d:/Archive/development/fpc_331_r44725_x64/compiler'
     make[3]: *** [ppc1.exe] Error 2
     make[3]: Leaving directory
`d:/Archive/development/fpc_331_r44725_x64/compiler'
     make[2]: *** [cycle] Error 2
     make[2]: Leaving directory
`d:/Archive/development/fpc_331_r44725_x64/compiler'
     make[1]: *** [compiler_cycle] Error 2
     make[1]: Leaving directory `d:/Archive/development/fpc_331_r44725_x64'
     make: *** [build-stamp.x86_64-win64] Error 2
     ...
--- code ---


What am I doing wrong?  Can someone tell me a link to a detailed manual?

--

with best regards, Zoltanleo aka Док

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
Am 20.04.2020 um 22:56 schrieb leyba bronstain via lazarus:

> Hi guys. I need your help.
>
> I try build trunk compiler x64 for windows. I was extract stable
> release fpc_x64 form lazarus-2.0.8-fpc-3.0.4-win64.exe installer and
> put it to separate folder fpc_stable_x64. Also I put into
> fpc_stable_x64 folder bingw64 folder and fixed the file fpc.cfg as
> follows:
>
> --- code --
>     # searchpath for tools
> -FDD:\Archive\development\fpc_stable_x64/bin/$FPCTARGET
>
>     # it's doesn't work!
>     -FDD:\Archive\development\fpc_stable_x64/binw64/
> --- code ---
>
> Then I run the bat-file as follows:
>
> --- code ---
>     set FPC_source={<fpc trunk root directory path>}
>     set FPC_binutils={<fpc trunk root directory path>}\bin\x86_64-win64
>     set FPC_stable_binutils={fpc_stable_x64 root directory
> path}\bin\x86_64-win64
>
>     :: so it works!
>     set binw64_path={fpc_stable_x64 root directory path}/binw64
>     set path=<bla-bla-bla>;%path%
>
>     ...
>     cd /d %FPC_source%
>     make clean all install INSTALL_PREFIX=%FPC_source%
> PP=%FPC_stable_binutils%\ppcx64.exe
> DATA2INC=%FPC_source%\utils\data2inc.exe
>     ...
> --- code ---
>
> During compilation I get an error:
>
> --- code ---
>     ...
> d:/Archive/development/fpc_stable_x64/bin/x86_64-win64/mv.exe -f
> x86_64/bin/x86_64-win64/pp.exe ppcx64.exe
>     make[5]: Leaving directory
> `d:/Archive/development/fpc_331_r44725_x64/compiler'
>     make echotime
>     make[5]: Entering directory
> `d:/Archive/development/fpc_331_r44725_x64/compiler'
>     process_begin: CreateProcess((null), echo Start now 19:52:42, ...)
> failed.
>     make (e=2): Не удается найти указанный файл. <english translation:
> The system cannot find the file specified>
>     make[5]: *** [echotime] Error 2
>     make[5]: Leaving directory
> `d:/Archive/development/fpc_331_r44725_x64/compiler'
>     make[4]: *** [next] Error 2
>     make[4]: Leaving directory
> `d:/Archive/development/fpc_331_r44725_x64/compiler'
>     make[3]: *** [ppc1.exe] Error 2
>     make[3]: Leaving directory
> `d:/Archive/development/fpc_331_r44725_x64/compiler'
>     make[2]: *** [cycle] Error 2
>     make[2]: Leaving directory
> `d:/Archive/development/fpc_331_r44725_x64/compiler'
>     make[1]: *** [compiler_cycle] Error 2
>     make[1]: Leaving directory
> `d:/Archive/development/fpc_331_r44725_x64'
>     make: *** [build-stamp.x86_64-win64] Error 2
>     ...
> --- code ---
>
>
> What am I doing wrong?  Can someone tell me a link to a detailed manual?
>

As I have written on the forum there seems to be some problem with
"echo" as this is the line the makefile intends to execute:

echotime:
     @echo Start $(STARTTIME) now $(ENDTIME)

Would you please go to the compiler directory and manually execute "make
echotime" to see whether this works in principle?

Regards,
Sven
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
30.04.2020 8:30, Sven Barth via lazarus пишет:

> As I have written on the forum there seems to be some problem with
> "echo" as this is the line the makefile intends to execute:
>
> echotime:
>     @echo Start $(STARTTIME) now $(ENDTIME)
>
> Would you please go to the compiler directory and manually execute
> "make echotime" to see whether this works in principle?
>
> Regards,
> Sven

Hi Sven.

Thank U for te answer.

I tried using your advice. Here's what I got (the compiler revision
number is specified in the paths)

d:\Archive\development\fpc_331_r45198>set path=<path to make.exe x64
file>;%path%

d:\Archive\development\fpc_331_r45198>@echo Start $(STARTTIME) now
$(ENDTIME)
Start $(STARTTIME) now $(ENDTIME)

d:\Archive\development\fpc_331_r45198>make echotime
make: *** No rule to make target `echotime'.  Stop.

--
with best regards, Zoltanleo aka Док

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
leyba bronstain via lazarus <[hidden email]> schrieb am Do., 30. Apr. 2020, 23:22:
30.04.2020 8:30, Sven Barth via lazarus пишет:
> As I have written on the forum there seems to be some problem with
> "echo" as this is the line the makefile intends to execute:
>
> echotime:
>     @echo Start $(STARTTIME) now $(ENDTIME)
>
> Would you please go to the compiler directory and manually execute
> "make echotime" to see whether this works in principle?
>
> Regards,
> Sven

Hi Sven.

Thank U for te answer.

I tried using your advice. Here's what I got (the compiler revision
number is specified in the paths)

d:\Archive\development\fpc_331_r45198>set path=<path to make.exe x64
file>;%path%

d:\Archive\development\fpc_331_r45198>@echo Start $(STARTTIME) now
$(ENDTIME)
Start $(STARTTIME) now $(ENDTIME)

d:\Archive\development\fpc_331_r45198>make echotime
make: *** No rule to make target `echotime'.  Stop.

You did read the part where I said "go to the compiler directory"? ;) 

Regards, 
Sven 

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list

01.05.2020 0:25, Sven Barth via lazarus пишет:
> You did read the part where I said "go to the compiler directory"? ;)
>
> Regards,
> Sven
>
>
Hi Sven.

In a previous post, I went to the root directory of the compiler
trunk(d:\Archive\development\fpc_331_r45198) and called "make echotime".
Perhaps I misinterpreted your words :)

OK. Now I went to the root directory of the stable version of the x64
compiler (d:\Archive\development\fpc_stable_x64\bin\x86_64-win64) and
got the same error:

C:\Users\leyba>cd /d d:\Archive\development\fpc_stable_x64\bin\x86_64-win64

d:\Archive\development\fpc_stable_x64\bin\x86_64-win64>make echotime
make: *** No rule to make target `echotime'.  Stop.


I'm sorry, again, something I misunderstood?

--
with best regards, Zoltanleo aka Док

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
Am 30.04.2020 um 23:40 schrieb leyba bronstain via lazarus:

>
> 01.05.2020 0:25, Sven Barth via lazarus пишет:
>> You did read the part where I said "go to the compiler directory"? ;)
>>
>> Regards,
>> Sven
>>
>>
> Hi Sven.
>
> In a previous post, I went to the root directory of the compiler
> trunk(d:\Archive\development\fpc_331_r45198) and called "make
> echotime". Perhaps I misinterpreted your words :)
>
> OK. Now I went to the root directory of the stable version of the x64
> compiler (d:\Archive\development\fpc_stable_x64\bin\x86_64-win64) and
> got the same error:
>
> C:\Users\leyba>cd /d
> d:\Archive\development\fpc_stable_x64\bin\x86_64-win64
>
> d:\Archive\development\fpc_stable_x64\bin\x86_64-win64>make echotime
> make: *** No rule to make target `echotime'.  Stop.
>
>
> I'm sorry, again, something I misunderstood?
>

I meant the literal "compiler" directory.

Regards,
Sven
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
01.05.2020 0:46, Sven Barth via lazarus пишет:
> I meant the literal "compiler" directory.
>
> Regards,
> Sven

Directory d:\Archive\development\fpc_stable_x64\bin\x86_64-win64 is the
compiler directory where fpc and ppcx4 are located.

Let's leave it until better times. Apparently I'm just an impassable
dumbass :)

--
with best regards, Zoltanleo aka Док

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
On 01/05/2020 00:06, leyba bronstain via lazarus wrote:

> 01.05.2020 0:46, Sven Barth via lazarus пишет:
>> I meant the literal "compiler" directory.
>>
>> Regards,
>> Sven
>
> Directory d:\Archive\development\fpc_stable_x64\bin\x86_64-win64 is
> the compiler directory where fpc and ppcx4 are located.
>
> Let's leave it until better times. Apparently I'm just an impassable
> dumbass :)
>
in your svn checkout dir, is a sub-directory called /compiler
It has the sources for the compiler.

And you should run that particular make command in that dir.
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
01.05.2020 1:45, Martin Frb via lazarus пишет:
> in your svn checkout dir, is a sub-directory called /compiler
> It has the sources for the compiler.
>
> And you should run that particular make command in that dir.

OMG! I thank you for the detailed explanation. Forgive me my
misunderstanding. I don't really distinguish the subtleties of English
¯\_(ツ)_/¯

So:

C:\Users\leyba>set
path=d:\Archive\development\fpc_stable_x64\bin\x86_64-win64;%path%
C:\Users\leyba>cd /d d:\Archive\development\fpc_331_r45198\compiler
d:\Archive\development\fpc_331_r45198\compiler>make echotime
process_begin: CreateProcess((null), echo Start 02:10:01 now 02:10:01,
...) failed.
make (e=2): Не удается найти указанный файл. (eng: can't find the file
specified////)
make: *** [echotime] Error 2

I start compiler building like this

make clean all install INSTALL_PREFIX=%FPC_source%
PP=%FPC_stable_binutils%\ppcx64.exe DATA2INC=%FPC_source%\utils\data2inc.exe

Probably the build options should be different. I looked at the command
line fpcupdeluxe. It applies the patch for Makefile
(fpcpatch_all_makesearchpath_stable_3_0_4.patch)  and the command line
options look something like this:

[2020-05-01 01:42:30.296 Info] FPCNativeInstaller (CleanModule: FPC):
Execute: C:\fpcup\fpcbootstrap\make.exe. Params:
--jobs=1,FPC=C:\fpcup\fpcbootstrap\ppcx64.exe,--directory=C:\fpcup\fpcsrc,FPCMAKE=C:\fpcup\fpc\bin\x86_64-win64\fpcmake.exe,PPUMOVE=C:\fpcup\fpc\bin\x86_64-win64\ppumove.exe,FPCDIR=C:\fpcup\fpcsrc,PREFIX=C:\fpcup\fpc,INSTALL_PREFIX=C:\fpcup\fpc,UPXPROG=echo,COPYTREE=echo,CPU_SOURCE=x86_64,OS_SOURCE=win64,CPU_TARGET=x86_64,OS_TARGET=win64,distclean

I might experiment with command line options.

--
with best regards, Zoltanleo aka Док

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
On 01/05/2020 01:30, leyba bronstain via lazarus wrote:

> I start compiler building like this
>
> make clean all install INSTALL_PREFIX=%FPC_source%
> PP=%FPC_stable_binutils%\ppcx64.exe
> DATA2INC=%FPC_source%\utils\data2inc.exe
>
> Probably the build options should be different. I looked at the
> command line fpcupdeluxe. It applies the patch for Makefile
> (fpcpatch_all_makesearchpath_stable_3_0_4.patch)  and the command line
> options look something like this:

I am not too much of an expert on this. And probably Sven (or others)
will have more advice.

But when I build, I add the appropriate path from within the build svn
https://svn.freepascal.org/svn/fpcbuild/trunk (or fixes_....)
something like  (on windows)
PATH=<build_svn>\install\binw64;%PATH%;
or
PATH=<build_svn>\install\binw32;%PATH%;

No idea, if that is related to your problem.
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
Am 01.05.2020 um 01:30 schrieb leyba bronstain via lazarus:
> 01.05.2020 1:45, Martin Frb via lazarus пишет:
>> in your svn checkout dir, is a sub-directory called /compiler
>> It has the sources for the compiler.
>>
>> And you should run that particular make command in that dir.
>
> OMG! I thank you for the detailed explanation. Forgive me my
> misunderstanding. I don't really distinguish the subtleties of English
> ¯\_(ツ)_/¯

Sorry for being unclear here...

>
> So:
>
> C:\Users\leyba>set
> path=d:\Archive\development\fpc_stable_x64\bin\x86_64-win64;%path%
> C:\Users\leyba>cd /d d:\Archive\development\fpc_331_r45198\compiler
> d:\Archive\development\fpc_331_r45198\compiler>make echotime
> process_begin: CreateProcess((null), echo Start 02:10:01 now 02:10:01,
> ...) failed.
> make (e=2): Не удается найти указанный файл. (eng: can't find the file
> specified////)
> make: *** [echotime] Error 2
>
> I start compiler building like this
>
> make clean all install INSTALL_PREFIX=%FPC_source%
> PP=%FPC_stable_binutils%\ppcx64.exe
> DATA2INC=%FPC_source%\utils\data2inc.exe
>
> Probably the build options should be different. I looked at the
> command line fpcupdeluxe. It applies the patch for Makefile
> (fpcpatch_all_makesearchpath_stable_3_0_4.patch)  and the command line
> options look something like this:
>
> [2020-05-01 01:42:30.296 Info] FPCNativeInstaller (CleanModule: FPC):
> Execute: C:\fpcup\fpcbootstrap\make.exe. Params:
> --jobs=1,FPC=C:\fpcup\fpcbootstrap\ppcx64.exe,--directory=C:\fpcup\fpcsrc,FPCMAKE=C:\fpcup\fpc\bin\x86_64-win64\fpcmake.exe,PPUMOVE=C:\fpcup\fpc\bin\x86_64-win64\ppumove.exe,FPCDIR=C:\fpcup\fpcsrc,PREFIX=C:\fpcup\fpc,INSTALL_PREFIX=C:\fpcup\fpc,UPXPROG=echo,COPYTREE=echo,CPU_SOURCE=x86_64,OS_SOURCE=win64,CPU_TARGET=x86_64,OS_TARGET=win64,distclean
>
> I might experiment with command line options.
>

Can you please try to execute "make echotime" (in the
"fpc_331_r45198\compiler" directory ;) ) without any changes to the PATH
variable?

You also said that when compiling for i386 this worked correctly. Would
you please "echo %PATH%" before executing "make" in the directory with
the source for both variants (i386 and x86_64)?

Regards,
Sven
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
Hi Sven.

01.05.2020 17:10, Sven Barth via lazarus пишет:
> Can you please try to execute "make echotime" (in the
> "fpc_331_r45198\compiler" directory ;) ) without any changes to the
> PATH variable?
>
C:\Users\leyba>cd /d d:\Archive\development\fpc_331_r45227_x64\compiler

d:\Archive\development\fpc_331_r45227_x64\compiler>make echotime
"make" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
(ENG: 'make' is not recognized as an internal or external
command, operable program or batch file)


> You also said that when compiling for i386 this worked correctly.
> Would you please "echo %PATH%" before executing "make" in the
> directory with the source for both variants (i386 and x86_64)?
>
> Regards,
> Sven

for x32

C:\Users\leyba>echo %path%
c:\;d:\;C:\Program
Files\Pandoc\;C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl;c:\Program
Files\TortoiseSVN\bin;c:\Windows\System32\;c:\Program Files\Git\bin\

C:\Users\leyba>cd /d d:\Archive\development\fpc_331_r45227_x32\compiler

d:\Archive\development\fpc_331_r45227_x32\compiler>make echotime
"make" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
(ENG: 'make' is not recognized as an internal or external
command, operable program or batch file)

d:\Archive\development\fpc_331_r45227_x32\compiler>path=d:\Archive\development\fpc_stable_x32\bin\i386-win32;%path%
d:\Archive\development\fpc_331_r45227_x32\compiler>echo %path%
d:\Archive\development\fpc_stable_x32\bin\i386-win32;c:\;d:\;C:\Program
Files\Pandoc\;C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl;c:\Program
Files\TortoiseSVN\bin;c:\Windows\System32\;c:\Program Files\Git\bin\

d:\Archive\development\fpc_331_r45227_x32\compiler>make echotime
Start 22:52:28 now 22:52:28

----------------------------------------------------------------

for x64
C:\Users\leyba>echo %path%
c:\;d:\;C:\Program
Files\Pandoc\;C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl;c:\Program
Files\TortoiseSVN\bin;c:\Windows\System32\;c:\Program Files\Git\bin\

C:\Users\leyba>cd /d d:\Archive\development\fpc_331_r45227_x64\compiler

d:\Archive\development\fpc_331_r45227_x64\compiler>make echotime
"make" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.

d:\Archive\development\fpc_331_r45227_x64\compiler>path=d:\Archive\development\fpc_stable_x64\bin\x86_64-win64;%path%

d:\Archive\development\fpc_331_r45227_x64\compiler>echo %path%
d:\Archive\development\fpc_stable_x64\bin\x86_64-win64;c:\;d:\;C:\Program
Files\Pandoc\;C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl;c:\Program
Files\TortoiseSVN\bin;c:\Windows\System32\;c:\Program Files\Git\bin\


d:\Archive\development\fpc_331_r45227_x64\compiler>make echotime
process_begin: CreateProcess((null), echo Start 22:55:53 now 22:55:53,
...) failed.
make (e=2): Не удается найти указанный файл.
make: *** [echotime] Error 2


--
with best regards, Zoltanleo aka Док

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
Am 02.05.2020 um 22:05 schrieb leyba bronstain via lazarus:

> for x32
>
> d:\Archive\development\fpc_331_r45227_x32\compiler>path=d:\Archive\development\fpc_stable_x32\bin\i386-win32;%path%
>
> d:\Archive\development\fpc_331_r45227_x32\compiler>echo %path%
> d:\Archive\development\fpc_stable_x32\bin\i386-win32;c:\;d:\;C:\Program
> Files\Pandoc\;C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl;c:\Program
> Files\TortoiseSVN\bin;c:\Windows\System32\;c:\Program Files\Git\bin\

[snip]

> for x64
>
> d:\Archive\development\fpc_331_r45227_x64\compiler>path=d:\Archive\development\fpc_stable_x64\bin\x86_64-win64;%path%
>
>
> d:\Archive\development\fpc_331_r45227_x64\compiler>echo %path%
> d:\Archive\development\fpc_stable_x64\bin\x86_64-win64;c:\;d:\;C:\Program
> Files\Pandoc\;C:\Users\Public\Documents\Embarcadero\Studio\20.0\Bpl;c:\Program
> Files\TortoiseSVN\bin;c:\Windows\System32\;c:\Program Files\Git\bin\

Would you please provide a directory listing (using "dir" should be
enough) of the fpc_stable_x32\bin\i386-win32 and
fpc_stable_x64\bin\x86_64-win64 directories? I have the feeling that
something in there leads to this difference as that is the only thing
you add to PATH.

Regards,
Sven
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list

03.05.2020 0:05, Sven Barth пишет:
> Would you please provide a directory listing (using "dir" should be
> enough) of the fpc_stable_x32\bin\i386-win32 and
> fpc_stable_x64\bin\x86_64-win64 directories? I have the feeling that
> something in there leads to this difference as that is the only thing
> you add to PATH.
>
> Regards,
> Sven

Hi Sven.

I have attached the result in two files, so that it is convenient for
you to compare.

--
with best regards, Zoltanleo aka Док


--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus

file_list_fpc_stable_x32.txt (6K) Download Attachment
file_list_fpc_stable_x64.txt (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
03.05.2020 0:05, Sven Barth пишет:
> Would you please provide a directory listing (using "dir" should be
> enough) of the fpc_stable_x32\bin\i386-win32 and
> fpc_stable_x64\bin\x86_64-win64 directories? I have the feeling that
> something in there leads to this difference as that is the only thing
> you add to PATH.
>
> Regards,
> Sven

Do I understand correctly that the ppcx64 files and other files of the
stable release of the x64 compiler are built from the stable release of
the x32 compiler and other utilities of the binw64 folder?

Maybe you will tell me the right way, how can I build stable binutils
x64 using stable binutils x32?

--

with best regards, Zoltanleo aka Док

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
Am 02.05.2020 um 23:51 schrieb leyba bronstain:

>
> 03.05.2020 0:05, Sven Barth пишет:
>> Would you please provide a directory listing (using "dir" should be
>> enough) of the fpc_stable_x32\bin\i386-win32 and
>> fpc_stable_x64\bin\x86_64-win64 directories? I have the feeling that
>> something in there leads to this difference as that is the only thing
>> you add to PATH.
>>
>> Regards,
>> Sven
>
> Hi Sven.
>
> I have attached the result in two files, so that it is convenient for
> you to compare.

 From what I can see you should be able to simply use the
fpc_stable_x32\bin\i386-win32 directory for building the 64-bit trunk
version as it contains a ppcrossx64.exe and the binutils (though they
aren't used by FPC on Windows anyway).

Regards,
Sven
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
Am 03.05.2020 um 00:53 schrieb leyba bronstain:

> 03.05.2020 0:05, Sven Barth пишет:
>> Would you please provide a directory listing (using "dir" should be
>> enough) of the fpc_stable_x32\bin\i386-win32 and
>> fpc_stable_x64\bin\x86_64-win64 directories? I have the feeling that
>> something in there leads to this difference as that is the only thing
>> you add to PATH.
>>
>> Regards,
>> Sven
>
> Do I understand correctly that the ppcx64 files and other files of the
> stable release of the x64 compiler are built from the stable release
> of the x32 compiler and other utilities of the binw64 folder?
>
> Maybe you will tell me the right way, how can I build stable binutils
> x64 using stable binutils x32?

FPC only provides a 32-bit -> 64-bit cross compiler as installer and
that is indeed made using the 32-bit compiler. Lazarus however ships
with a native 64-bit compiler.

I don't know how you created your fpc_stable_x64\bin\x86_64-win64
directory, but maybe that some utilities have different versions than
the ones in the fpc_stable_x32\bin\i386-win32 directory might explain
the problems you experience.

Regards,
Sven
--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Can't build fpc trunk x64 win32/64

Free Pascal - Lazarus mailing list
03.05.2020 19:23, Sven Barth пишет:
FPC only provides a 32-bit -> 64-bit cross compiler as installer and that is indeed made using the 32-bit compiler. Lazarus however ships with a native 64-bit compiler.

I don't know how you created your fpc_stable_x64\bin\x86_64-win64 directory, but maybe that some utilities have different versions than the ones in the fpc_stable_x32\bin\i386-win32 directory might explain the problems you experience.

Regards,
Sven

Hi Sven.

I tried to get a ready-made stable version of fpc 3.0.4 x64 in different ways (this could be the Lazarus 2.0.8 installer or fpcupdeluxe). This was not a success.

After your assumptions, I decided to use only the compiler sources from the standard x32 package and the cross-compilation package. As a result, I followed several steps and managed to get a positive result. I have done the following:

1. I ran fpc-3.0.4.i386-win32.exe and fpc-3.0.4.i386-win32.cross.android.exe and installed the compiler sources and binutils

2. I executed the following commands in cmd:

set path=d:\Archive\development\fpc_stable\3.0.4\bin\i386-win32;%path%

make install OS_TARGET=win64 CPU_TARGET=x86_64 CPU_SOURCE=x86_64 OS_SOURCE=win64 INSTALL_PREFIX=d:\Archive\development\fpc_trunk_x64 PP=d:\Archive\development\fpc_stable\3.0.4\bin\i386-win32\ppcrossx64.exe DATA2INC=d:\Archive\development\fpc_trunk_x64\utils\data2inc.exe

fpcmkcfg -d basepath=d:\Archive\development\fpc_trunk_x64 -o .\bin\x86_64-win64\fpc.cfg

replace d:\Archive\development\fpc_stable\3.0.4\binw64\*.* d:\Archive\development\fpc_trunk_x64\bin\x86_64-win64 /a

3. Congratulation! Now I have a live compiler trunk revision. :)


Do I used the command line switches for the make command correctly? Tell me pls...

--

with best regards, Zoltanleo aka Док



--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus