Recent

Author Topic: Fpcupdeluxe  (Read 330809 times)

jacmoe

  • Sr. Member
  • ****
  • Posts: 261
    • Jacmoe's Cyber SoapBox
Re: Fpcupdeluxe - command line option?
« Reply #420 on: March 02, 2017, 10:27:42 pm »
I am trying out fpcdeluxe on  Linux system and it has been hanging every time.. I have to kill it using the command line and when I do that X Windows fails completely and I have to restart the computer.
I think I have an idea of what's wrong

No, my issue was because I've installed the onlinepackagemanager (from trunk) into my Lazarus/FPC fixes installation. And that broke the Fpcupdeluxe update method.
So, don't do that.
Or, uninstall that package before updating.
« Last Edit: March 03, 2017, 10:49:02 pm by jacmoe »
more signal - less noise

vfclists

  • Hero Member
  • *****
  • Posts: 824
    • HowTos Considered Harmful?
Re: Fpcupdeluxe - fault in fpc.cfg?
« Reply #421 on: March 04, 2017, 02:02:58 pm »
I am looking at the fpc.cfg file created by fpcupdeluxe and I see this block which looks faulty to me.

Code: Pascal  [Select]
  1. # path to the gcclib
  2. #ifdef cpui386
  3. -Fl/usr/lib/gcc/x86_64-linux-gnu/4.9
  4. #endif
  5. #ifdef cpux86_64
  6. -Fl/usr/lib/gcc/x86_64-linux-gnu/4.9
  7. #endif
  8.  

Shouldn't the #ifdef cpui386 option map to -Fl/usr/lib/gcc/i386-linux-gnu/4.9 or perhaps -Fl/usr/lib/gcc/i586-linux-gnu/4.9 ?
« Last Edit: March 05, 2017, 02:20:13 pm by vfclists »
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

dogriz

  • Jr. Member
  • **
  • Posts: 96
    • Tech blog - Delphi, Lazarus, Firebird, Windows, Linux, Android...
Re: Fpcupdeluxe
« Reply #422 on: March 04, 2017, 04:31:11 pm »
I think that library paths are not the same on different linux distros.
FPC 3.0.3
Lazarus 1.6.5
Debian x86_64, arm

vfclists

  • Hero Member
  • *****
  • Posts: 824
    • HowTos Considered Harmful?
Re: Fpcupdeluxe
« Reply #423 on: March 04, 2017, 06:15:31 pm »
I think that library paths are not the same on different linux distros.

The problem is that both cpui386 and cpux86_64 point to the same location
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6993
Re: Fpcupdeluxe - fault in fpc.cfg?
« Reply #424 on: March 04, 2017, 08:24:33 pm »

Shouldn't the #ifdef cpui386 option map to -Fl/usr/lib/gcc/i386-linux-gnu/4.9 or perhaps -Fl/usr/lib/gcc/i386-linux-gnu/4.9 ?

If it is there, yes.

vfclists

  • Hero Member
  • *****
  • Posts: 824
    • HowTos Considered Harmful?
Re: Fpcupdeluxe - fault in fpc.cfg?
« Reply #425 on: March 05, 2017, 02:26:04 pm »

Shouldn't the #ifdef cpui386 option map to -Fl/usr/lib/gcc/i386-linux-gnu/4.9 or perhaps -Fl/usr/lib/gcc/i386-linux-gnu/4.9 ?

If it is there, yes.

When I check my /usr/lib/gcc directory I see i586, and x86_64. Shouldn't i386 be there as well, or does GCC target only the i586 architecture when it comes to i386?
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1087
Re: Fpcupdeluxe
« Reply #426 on: March 05, 2017, 03:02:28 pm »
I am working on some off the issues reported here.

@vfclists
The fpc.cfg snippet you posted, does not seem to be created by fpcupdeluxe.
At least, I cannot find the code that should generate these settings.
Was it located in the fpcupdeluxe install-dir ?
Fpcupdeluxe only touched the install-dir. Nothing more, nothing less.

Richard

  • New member
  • *
  • Posts: 12
Re: Fpcupdeluxe
« Reply #427 on: March 08, 2017, 03:20:05 am »
Thanks Don Alfredo,

Tonight ran fpcupdeluxe V1.2.0I for x86_64
on MX Linux x64, Jessie stable base,
choosing 32 bit fpc (since I need to build for 32 bit). Completed successfully. So nice to have the help installed without having to search for how-to.

Compiled Lazarus with Normal IDE.

Congratulations for the great work on fpcupdeluxe!

Saludos,
Richard.
MX-16_x64 Xfce, sysvinit via systemd-shim.
Lazarus 1.6-0.1 & FPC 3.0.0.
=Louisiana en Venezuela=

vfclists

  • Hero Member
  • *****
  • Posts: 824
    • HowTos Considered Harmful?
Re: Fpcupdeluxe
« Reply #428 on: March 10, 2017, 01:29:37 pm »
I am working on some off the issues reported here.

@vfclists
The fpc.cfg snippet you posted, does not seem to be created by fpcupdeluxe.
At least, I cannot find the code that should generate these settings.
Was it located in the fpcupdeluxe install-dir ?
Fpcupdeluxe only touched the install-dir. Nothing more, nothing less.

Take a look at this - http://pastebin.com/99PY3i4D - around 172.

 Is there a template in the FPC or fpcupdeluxe that the fpc.cfg is generated from, and the parameters it is generated from?
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1087
Re: Fpcupdeluxe
« Reply #429 on: March 10, 2017, 01:41:44 pm »
Fpcupdeluxe just uses fpcmkcfg to generate a fpc.cfg. With only a single parameter:
-d basepath=ExcludeTrailingPathDelimiter(FInstallDirectory)

But the fpc.cfg you posted is touched-/made- by fpcupdeluxe.
So: strange error.

Will look into it and try to reproduce.

vfclists

  • Hero Member
  • *****
  • Posts: 824
    • HowTos Considered Harmful?
Re: Fpcupdeluxe
« Reply #430 on: March 10, 2017, 01:56:17 pm »
Fpcupdeluxe just uses fpcmkcfg to generate a fpc.cfg. With only a single parameter:
-d basepath=ExcludeTrailingPathDelimiter(FInstallDirectory)

But the fpc.cfg you posted is touched-/made- by fpcupdeluxe.
So: strange error.

Will look into it and try to reproduce.

Dpes fpcmkcfg use a template which is built into its own executable itself or is there a file in the FPC source code is uses as a template?
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

vfclists

  • Hero Member
  • *****
  • Posts: 824
    • HowTos Considered Harmful?
Re: Fpcupdeluxe - recipe for target 'prt0.o' failed
« Reply #431 on: March 12, 2017, 02:33:41 pm »
I am trying to build a 64bit version of Lazarus and this error keeps coming up.

Code: Pascal  [Select]
  1. Makefile:3449: recipe for target 'prt0.o' failed

Here is more detail leading up to the error. It appears to be an error from the as assembler.

Code: Pascal  [Select]
  1. make -C linux clean
  2. make[7]: Entering directory '{BUILD_DIR}/fpcsrc/rtl/linux'
  3. /bin/rm -f {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/prt0.o {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/dllprt0.o {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cprt0.o {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/gprt0.o
  4. /bin/rm -f {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/system.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/fpintres.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/si_prc.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/si_c.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/si_g.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/si_dll.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/uuchar.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/unixtype.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/ctypes.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/baseunix.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/strings.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/objpas.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/macpas.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/iso7185.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/syscall.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/unixutil.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/heaptrc.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/lineinfo.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/lnfodwrf.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/termio.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/unix.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/linux.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/initc.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cmem.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/x86.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/ports.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cpu.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/linuxvcs.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/sysutils.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/typinfo.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/math.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/charset.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cpall.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/character.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/unixcp.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/getopts.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/errors.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/dl.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/dynlibs.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/types.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/sysconst.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/fpwidestring.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cthreads.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/classes.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/fgl.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/rtlconsts.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/dos.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cwstring.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/fpcylix.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/exeinfo.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1250.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1251.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1252.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1253.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1254.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1255.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1256.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1257.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp1258.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp437.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp646.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp850.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp856.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp866.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp874.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp8859_1.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp8859_5.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp8859_2.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/cp852.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/unicodedata.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/unicodenumtable.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/syslinux.ppu {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/linux.ppu
  5. /bin/rm -f {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/math.rst {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/typinfo.rst {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/sysconst.rst {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/rtlconsts.rst
  6. /bin/rm -f fpcmade.x86_64-linux Package.fpc ./ppas.sh script.res link.res  
  7. /bin/rm -f *.s *_ppas.sh
  8. make[7]: Leaving directory '{BUILD_DIR}/fpcsrc/rtl/linux'
  9. make[6]: Leaving directory '{BUILD_DIR}/fpcsrc/rtl'
  10. make -C {BUILD_DIR}/fpcsrc/rtl 'OPT=-Sg -vi-n-h-  ' all
  11. make[6]: Entering directory '{BUILD_DIR}/fpcsrc/rtl'
  12. make -C linux all
  13. make[7]: Entering directory '{BUILD_DIR}/fpcsrc/rtl/linux'
  14. /bin/mkdir -p {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux
  15. as --64 -o {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/prt0.o x86_64/prt0.as
  16. Assembler messages:
  17. Fatal error: can't create {BUILD_DIR}/fpcsrc/rtl/units/x86_64-linux/prt0.o: No such file or directory
  18. Makefile:3449: recipe for target 'prt0.o' failed
  19. make[7]: *** [prt0.o] Error 1
  20. make[7]: *** Waiting for unfinished jobs....
  21.  

32bit build are working without problem. Is the problem likely to be the result of some missing Linux libraries or is it due to fpcupdeluxe itself?
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

speller

  • Newbie
  • Posts: 4
Re: Fpcupdeluxe
« Reply #432 on: March 12, 2017, 06:44:32 pm »
How to build the android-i386 crosscompiler? Needed to debug apps in fast x86 emulator. ARM emulator is too slow to work with.
« Last Edit: March 12, 2017, 07:03:08 pm by speller »

josh

  • Hero Member
  • *****
  • Posts: 732
Re: Fpcupdeluxe
« Reply #433 on: March 13, 2017, 01:40:11 pm »
Thought I would check the state of the Cocoa-64 trunk.

Downloaded new fpcupdeluxe cocoa x64 1.2.0m and attempted install in new folder.

It am getting a error, and am unable to slelect and copy the log data, a ths causes an app crash.
The error how ever is
lazutils/utf8process.pp(171,23) incompatible type for arg 1 got pchar expect pcint

I will try cocoa-32 in new folder and test if this works; suspect changes in trunk is causing issues.

Tested on Cocoa 32, fresh folder same error.

Tested on Carbon, fresh folder same error.

So looks like lates trunk on osx non working.
« Last Edit: March 13, 2017, 02:10:19 pm by josh »
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1087
Re: Fpcupdeluxe
« Reply #434 on: March 13, 2017, 02:21:46 pm »
Already reported:
http://bugs.freepascal.org/view.php?id=31525

Please use FPC 3.0.2: works very well with Lazarus trunk for now.