Sign in Join

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

Mailing lists / fpc-pascal / 2015-04

fpcup fails on Linux

10 messages · 6 people · –

Reply by email Subscribe to this list Your subscription

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

Juha Manninen

I tried installing FPC using fpcup on some Linux systems, now on XUbuntu. Both "fixes" and "trunk" give an error with fpjson. On Windows I can install both without problems. Do I need another package from Ubuntu repos?

Here "fixes" is set to branch fixes_3_0 :

./fpcup_linux_x86 --fpcURL="fixes"
--only="FPCcleanonly,FPCgetonly,FPCbuildonly" --verbose

...
The installer encountered the following error:
External command "/home/juha/development/fpc/compiler/ppc386 -Tlinux -FEbin/i386-linux -FUunits/i386-linux/
-Fu/home/juha/development/fpc/rtl/units/i386-linux/ -Fu/home/juha/development/fpc/units/i386-linux/fcl-base -Fu/home/juha/development/fpc/units/i386-linux/paszlib -Fu/home/juha/development/fpc/units/i386-linux/hash -Fu/home/juha/development/fpc/units/i386-linux/rtl-extra -Ur -Xs -O2 -n -Fu/home/juha/development/fpc/rtl/units/i386-linux -Fu/home/juha/development/fpc/packages/paszlib/units/i386-linux -Fu/home/juha/development/fpc/packages/fcl-process/units/i386-linux -Fu/home/juha/development/fpc/packages/hash/units/i386-linux -Fu/home/juha/development/fpc/packages/libtar/units/i386-linux -Fu/home/juha/development/fpc/packages/fpmkunit/units/i386-linux -Fu/home/juha/development/fpc/packages/fcl-json/units/i386-linux -di386 -dRELEASE -viq rstconv.pp" failed with exit code 256. Console output:
Target OS: Linux for i386
Compiling rstconv.pp
Fatal: Can't find unit variants used by fpjson
Fatal: Compilation aborted

Juha Manninen
to Juha Manninen

I found a similar error from last December, experienced by Waldo Kitty :

but there was no solution.

Why it happens only with rstconv.pp? Many units were already compiled before that.
My test system is a fresh XUbuntu, 32-bit. No FPC was installed before using fpcup.

Can everybody else build FPC on Linux?

Juha

Stéphane Aulery
to Juha Manninen
Juha Manninen wrote 10 lines
I found a similar error from last December, experienced by Waldo Kitty : but there was no solution. Why it happens only with rstconv.pp? Many units were already compiled before that. My test system is a fresh XUbuntu, 32-bit. No FPC was installed before using fpcup. Can everybody else build FPC on Linux?

I have build fpc directly form trunk Wednesday on Debian testing amd64, all rights!.

Stéphane Aulery
Michael Van Canneyt
to Juha Manninen: I found a similar error from last December, experienced by Waldo Kitty : but there was no…
Juha Manninen wrote 10 lines
I found a similar error from last December, experienced by Waldo Kitty : but there was no solution. Why it happens only with rstconv.pp? Many units were already compiled before that. My test system is a fresh XUbuntu, 32-bit. No FPC was installed before using fpcup. Can everybody else build FPC on Linux?

Yes, I can (but I do not use fpcup).

I did a small fix, added a dependency on rtl-objpas, where the variants unit is located. Rev 30618.

Can you please test if this fixes the issue for you ?

Michael.

Juha Manninen
to Michael Van Canneyt
Michael Van Canneyt wrote 5 lines
I did a small fix, added a dependency on rtl-objpas, where the variants unit is located. Rev 30618. Can you please test if this fixes the issue for you ?

Using "trunk" now in the command.
It looks different but still fails.
I really wonder what makes the difference because fpcup takes pretty much the same steps that a person would do.

...
Start compiling package utils-fpdoc for target i386-linux. Compiling fpdoc/BuildUnit_utils_fpdoc.pp
Compiling fpdoc/dglobals.pp
The installer encountered the following error:
External command "/home/juha/development/fpc/compiler/ppc386 -Tlinux -FUfpdoc/units/i386-linux/
-Fu/home/juha/development/fpc/rtl/units/i386-linux/ -Fu/home/juha/development/fpc/units/i386-linux/fcl-base -Fu/home/juha/development/fpc/units/i386-linux/fcl-xml -Fu/home/juha/development/fpc/units/i386-linux/fcl-passrc -Fu/home/juha/development/fpc/units/i386-linux/fcl-process -Fu/home/juha/development/fpc/units/i386-linux/chm -Ur -Xs -O2 -n -Fu/home/juha/development/fpc/rtl/units/i386-linux -Fu/home/juha/development/fpc/packages/paszlib/units/i386-linux -Fu/home/juha/development/fpc/packages/fcl-process/units/i386-linux -Fu/home/juha/development/fpc/packages/hash/units/i386-linux -Fu/home/juha/development/fpc/packages/libtar/units/i386-linux -Fu/home/juha/development/fpc/packages/fpmkunit/units/i386-linux -Fu/home/juha/development/fpc/packages/fcl-json/units/i386-linux -di386 -dRELEASE -S2h -viq fpdoc/BuildUnit_utils_fpdoc.pp" failed with exit code 256. Console output:
Target OS: Linux for i386
Compiling fpdoc/BuildUnit_utils_fpdoc.pp
Compiling fpdoc/dglobals.pp
dglobals.pp(26,38) Fatal: Can't find unit StrUtils used by dGlobals Fatal: Compilation aborted

Michael Van Canneyt
to Juha Manninen
Juha Manninen wrote 26 lines
On Fri, Apr 17, 2015 at 3:27 PM, Michael Van Canneyt wrote: > I did a small fix, added a dependency on rtl-objpas, where the variants unit > is located. > Rev 30618. > > Can you please test if this fixes the issue for you ? Using "trunk" now in the command. It looks different but still fails. I really wonder what makes the difference because fpcup takes pretty much the same steps that a person would do. ... Start compiling package utils-fpdoc for target i386-linux. Compiling fpdoc/BuildUnit_utils_fpdoc.pp Compiling fpdoc/dglobals.pp The installer encountered the following error: External command "/home/juha/development/fpc/compiler/ppc386 -Tlinux -FUfpdoc/units/i386-linux/ -Fu/home/juha/development/fpc/rtl/units/i386-linux/ -Fu/home/juha/development/fpc/units/i386-linux/fcl-base -Fu/home/juha/development/fpc/units/i386-linux/fcl-xml -Fu/home/juha/development/fpc/units/i386-linux/fcl-passrc -Fu/home/juha/development/fpc/units/i386-linux/fcl-process -Fu/home/juha/development/fpc/units/i386-linux/chm -Ur -Xs -O2 -n

These paths are not correct.
They should be
-Fu/home/juha/development/fpc/packages/fcl-base/units/i386-linux etc.

I also do not see the rtl-objpas path appearing ?

Michael.

David B Copeland
to Stéphane Aulery: I have build fpc directly form trunk Wednesday on Debian testing amd64, all rights!.…

I also successfully built trunk (3.1.1) on Suse 13.1 from the fpcbuild.zip, last Thursday (I think).

Stéphane Aulery wrote 13 lines
Le vendredi 17 avril 2015 à 01:39:40, Juha Manninen a écrit : > I found a similar error from last December, experienced by Waldo Kitty : > > but there was no solution. > > Why it happens only with rstconv.pp? Many units were already compiled > before that. > My test system is a fresh XUbuntu, 32-bit. No FPC was installed before > using fpcup. > > Can everybody else build FPC on Linux? I have build fpc directly form trunk Wednesday on Debian testing amd64, all rights!.
Juha Manninen
to David B Copeland

Thanks for everybody for testing.
I could finally install FPC trunk in my development machine, Mint Linux 64-bit, using fpcup. I remember it failed also there earlier for some reason.
I still don't know what caused the errors in the fresh XUbuntu and other Linux distros in virtual machines. I hope fpcup will be maintained again soon, it is a nice tool when it works.

Juha

Marco van de Voort
to Juha Manninen

In our previous episode, Juha Manninen said:

Show quoted text 7 lines
Thanks for everybody for testing. I could finally install FPC trunk in my development machine, Mint Linux 64-bit, using fpcup. I remember it failed also there earlier for some reason. I still don't know what caused the errors in the fresh XUbuntu and other Linux distros in virtual machines. I hope fpcup will be maintained again soon, it is a nice tool when it works.

Does fpcup recycle checkouts with multiple attempts? If so kill fpmake.exe and let it regenerate ?

Paul Breneman
to Juha Manninen: Thanks for everybody for testing. I could finally install FPC trunk in my development…
Juha Manninen wrote 7 lines
Thanks for everybody for testing. I could finally install FPC trunk in my development machine, Mint Linux 64-bit, using fpcup. I remember it failed also there earlier for some reason. I still don't know what caused the errors in the fresh XUbuntu and other Linux distros in virtual machines. I hope fpcup will be maintained again soon, it is a nice tool when it works.

I have some goals for fpcup. Last week I left notes on the Lazarus forum about making small VMs with Debian Jessie RC2 *and* ReactOS (Win32): http://forum.lazarus.freepascal.org/index.php/topic,26315.0.html

One goal is to have simple Linux and Win32 VMs that fpcup works in. That should help with testing things, and also help people get started.

Comments welcomed!