Recent

Author Topic: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch  (Read 13978 times)

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #15 on: January 28, 2015, 01:28:54 pm »
You need 2.6.4 from here: http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/
After installation, type
Code: [Select]
fpc -iV to console. It should prompt
Code: [Select]
2.6.4Then you can continue with SVN trunk (3.0.1) and Lazarus.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

jshand2010

  • Full Member
  • ***
  • Posts: 236
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #16 on: January 28, 2015, 09:23:11 pm »
hi blaazen,

i've tried this also and everything seems to compile completely and then stops because of this error:

when i use the ./create_fpc_rpm.sh script i get this error:

Executing(%install): /bin/sh -e /home/jshand/rpm/tmp/rpm-tmp.VpTW8R
+ umask 022
+ cd /home/jshand/rpm/BUILD
+ cd fpc
+ rm -rf /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64
++ pwd
+ FPCMAKE=/home/jshand/rpm/BUILD/fpc/utils/fpcm/fpcmake
++ pwd
+ DATA2INC=/home/jshand/rpm/BUILD/fpc/utils/data2inc
++ pwd
+ NEWPP=/home/jshand/rpm/BUILD/fpc/compiler/ppcx64
++ /home/jshand/rpm/BUILD/fpc/compiler/ppcx64 -iV
+ FPCVERSION=3.0.1
++ /home/jshand/rpm/BUILD/fpc/compiler/ppcx64 -iW
+ FPCFULLVERSION=3.0.1
+ INSTALLOPTS='FPC=/home/jshand/rpm/BUILD/fpc/compiler/ppcx64 FPCMAKE=/home/jshand/rpm/BUILD/fpc/utils/fpcm/fpcmake DATA2INC=/home/jshand/rpm/BUILD/fpc/utils/data2inc                 INSTALL_PREFIX=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr                 INSTALL_LIBDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64                 INSTALL_BASEDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1                 CODPATH=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/lexyacc                 INSTALL_DOCDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/share/doc/packages/fpc-3.0.1                 INSTALL_BINDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/bin
                INSTALL_EXAMPLEDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/share/doc/packages/fpc-3.0.1/examples'
+ make compiler_install FPC=/home/jshand/rpm/BUILD/fpc/compiler/ppcx64 FPCMAKE=/home/jshand/rpm/BUILD/fpc/utils/fpcm/fpcmake DATA2INC=/home/jshand/rpm/BUILD/fpc/utils/data2inc INSTALL_PREFIX=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr INSTALL_LIBDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64 INSTALL_BASEDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1 CODPATH=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/lexyacc INSTALL_DOCDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/share/doc/packages/fpc-3.0.1 INSTALL_BINDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/bin INSTALL_EXAMPLEDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/share/doc/packages/fpc-3.0.1/examples
make -C compiler install
make[1]: Entering directory `/home/jshand/rpm/BUILD/fpc/compiler'
make -C utils install
make[2]: Entering directory `/home/jshand/rpm/BUILD/fpc/compiler/utils'
/usr/bin/install -m 755 -d /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/bin
/usr/bin/install -c -m 755 fpc ppufiles ppudump ppumove mkarmins mkx86ins /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/bin
make[2]: Leaving directory `/home/jshand/rpm/BUILD/fpc/compiler/utils'
/usr/bin/install -m 755 -d /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1
/usr/bin/install -c -m 755 ppcx64 /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1/ppcx64
/usr/bin/install -m 755 -d /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1
/usr/bin/install -c -m 755 utils/samplecfg /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1/samplecfg
/usr/bin/install -m 755 -d /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1/msg
/usr/bin/install -c -m 644 msg/errorid.msg msg/errorpl.msg msg/errorru.msg msg/errorf.msg msg/errorues.msg msg/errorpt.msg msg/errorda.msg msg/errord.msg msg/errorhe.msg msg/errorn.msg msg/errorptu.msg msg/errorr.msg msg/errore.msg msg/errores.msg msg/errorfi.msg msg/errordu.msg msg/errorct.msg msg/errorpli.msg msg/erroriu.msg msg/errorheu.msg /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1/msg
make[1]: Leaving directory `/home/jshand/rpm/BUILD/fpc/compiler'
+ make rtl_install FPC=/home/jshand/rpm/BUILD/fpc/compiler/ppcx64 FPCMAKE=/home/jshand/rpm/BUILD/fpc/utils/fpcm/fpcmake DATA2INC=/home/jshand/rpm/BUILD/fpc/utils/data2inc INSTALL_PREFIX=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr INSTALL_LIBDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64 INSTALL_BASEDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/3.0.1 CODPATH=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/lib64/fpc/lexyacc INSTALL_DOCDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/share/doc/packages/fpc-3.0.1 INSTALL_BINDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/bin INSTALL_EXAMPLEDIR=/home/jshand/rpm/BUILDROOT/fpc-3.0.1-150129.x86_64/usr/share/doc/packages/fpc-3.0.1/examples
make -C rtl install
make[1]: Entering directory `/home/jshand/rpm/BUILD/fpc/rtl'
make -C linux all
make[2]: Entering directory `/home/jshand/rpm/BUILD/fpc/rtl/linux'
make[2]: Leaving directory `/home/jshand/rpm/BUILD/fpc/rtl/linux'
/home/jshand/rpm/BUILD/fpc/utils/fpcm/fpcmake -p -Tx86_64-linux Makefile.fpc
make[1]: /home/jshand/rpm/BUILD/fpc/utils/fpcm/fpcmake: Command not found
make[1]: *** [fpc_install] Error 127
make[1]: Leaving directory `/home/jshand/rpm/BUILD/fpc/rtl'
make: *** [rtl_install] Error 2
error: Bad exit status from /home/jshand/rpm/tmp/rpm-tmp.VpTW8R (%install)


RPM build errors:
    bogus date in %changelog: Tue Jul 28 2005 Joost van der Sluis <joost@cnoc.nl> 2.0.0-1
    bogus date in %changelog: Sat Jun 5 2005 Joost van der Sluis <joost@cnoc.nl> 2.0.0-0.5
    Bad exit status from /home/jshand/rpm/tmp/rpm-tmp.VpTW8R (%install)
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #17 on: January 28, 2015, 10:21:27 pm »
I always installed fpc trunk directly to system.
Code: [Select]
make distclean
...
make all
...
su
make install
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

jshand2010

  • Full Member
  • ***
  • Posts: 236
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #18 on: January 28, 2015, 10:37:29 pm »
just tried that and i don't think it installed with my system.  the version i compiled with is still the same version. 
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #19 on: January 28, 2015, 10:49:40 pm »
There is one more step: go to /usr/local/bin and change the symlink ppcx64. It must point to:
Code: [Select]
/usr/local/lib/fpc/3.1.1/ppcx64Then try in console
Code: [Select]
fpc -iVand it should prompt
Code: [Select]
3.1.1If you will compile the trunk next time, you must temporarily switch back to 2.6.4.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

jshand2010

  • Full Member
  • ***
  • Posts: 236
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #20 on: January 28, 2015, 10:58:35 pm »
if i am using the 3.0.1 fixes branch, do i still need to revert back to 2.6.4??
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #21 on: January 29, 2015, 12:16:08 am »
You need 2.6.4 to compile 3.1.1.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

jshand2010

  • Full Member
  • ***
  • Posts: 236
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #22 on: January 29, 2015, 03:47:57 am »
hey, thanks for all your help.  however after much frustration i still get the error:

make[1]: /home/jshand/rpm/BUILD/fpc/utils/fpcm/fpcmake: Command not found

this still happen after compiling fpc 3.0.1 with fpc 2.6.4.  i even downloaded lazarus 1.4 (fixes).  nothing works.

IT IS NOT WORKING GUYS!!!  THIS NEEDS TO BE FIXED!!!  This is a scripting issue in regards to ./create_fpc_rpm.sh ~/fpc/ in the lazarus/tools/install directory of any lazarus version
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #23 on: January 29, 2015, 08:57:23 am »
hey, thanks for all your help.  however after much frustration i still get the error:

make[1]: /home/jshand/rpm/BUILD/fpc/utils/fpcm/fpcmake: Command not found

this still happen after compiling fpc 3.0.1 with fpc 2.6.4.  i even downloaded lazarus 1.4 (fixes).  nothing works.

IT IS NOT WORKING GUYS!!!  THIS NEEDS TO BE FIXED!!!  This is a scripting issue in regards to ./create_fpc_rpm.sh ~/fpc/ in the lazarus/tools/install directory of any lazarus version
Your installation that needs to be fixed. If you cannot execute these executables (some of them are new to 3.X.X series):
Code: [Select]
bin2obj
chmcmd
chmls
cldrparser
data2inc
delp
fd2pascal
fp
fpc
fpcjres
fpclasschart
fpcmake
fpcmkcfg
fpcres
fpcsubst
fpdoc
fppkg
fprcp
fptime
fpc
fpcjres
fpclasschart
fpcmake
fpcmkcfg
fpcres
fpcsubst
fpcjres
fpclasschart
fpcmake
fpcmkcfg
fpcres
fpcsubst
fpdoc
fppkg
fprcp
fptime
grab_vcsa
h2pas
h2paspp
h2paspp
instantfpc
makeskel
mkarmins
mkinsadd
mkx86ins
pas2fpm
pas2jni
pas2ut
plex
postw32
ppdep
ppudump
ppufiles
ppumove
ptop
pyacc
rmcvsdir
rstconv
unihelper
unitdiff
then you don't have a truly working installation.

jshand2010

  • Full Member
  • ***
  • Posts: 236
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #24 on: January 29, 2015, 09:13:59 am »
i have absolutely no idea what those applications are.  i even downloaded the rpm from freepascal fpc 2.6.4.  from what you are saying, it doesn't seem to have everything installed.  i've wasted a whole day with this.

i do need someone to look through the ./create_fpc_rpm.sh file and the make files.  the configuration is not working
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #25 on: January 29, 2015, 10:26:13 am »
i do need someone to look through the ./create_fpc_rpm.sh file and the make files.  the configuration is not working
As long as you can't even ensure your installation is fine, it's useless to check those files. Fix your installation first, at least ensure fpcmake is callable and working.

FYI, I just test the script and it works just fine. Some adjustments required in the fpc.spec.template, namely:
Quote
# 81-82
NEWFPDOC=`pwd`/utils/fpdoc/bin/%{_arch}-%{_os}/fpdoc
DATA2INC=`pwd`/utils/bin/%{_arch}-%{_os}/data2inc

# 91-92
FPCMAKE=`pwd`/utils/fpcm/bin/%{_arch}-%{_os}/fpcmake
DATA2INC=`pwd`/utils/bin/%{_arch}-%{_os}/data2inc
Note that depending on your Linux distro version and RPM version, you might also need to replace:
%{_lib} with lib
%{_libdir} with %{_exec_prefix}/lib
This is because recently 64-bit is considered mainstream enough and thus lib contains 64-bit libraries by default and lib32 contains 32-bit ones. Contrary to previous convention where lib contains 32-bit libraries and lib64 contains 64-bit ones.
« Last Edit: January 29, 2015, 12:27:30 pm by Leledumbo »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11382
  • FPC developer.
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #26 on: January 29, 2015, 12:18:47 pm »
It might be related on his insistence to use the create_rpm.sh script.  That might try to call the just generated fpcmake or so.

First start to control make all snapshot build, and only then move on to rpm and deb (that are more for release managers)

goodname

  • Sr. Member
  • ****
  • Posts: 297
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #27 on: January 29, 2015, 04:35:59 pm »
I recently did something similar with the Debian package script and it works. With fpc_2.6.4-140420_i386.deb installed.
Code: [Select]
$svn checkout http://svn.freepascal.org/svn/fpc/branches/fixes_2_6 fpcfixes2_6
$cd /usr/share/lazarus/1.2.6/tools/install
#./create_fpc_deb.sh fpc notemp /home/goodname/fpc/fpcfixes2_6/
Root access is required for the create script. Then install the resulting fpc_2.6.5-150121_i386.deb. Check occasionally for updates using svn update fpcfixes2_6/ and if there are any then downgrade to 2.6.4 and repeat.
« Last Edit: January 29, 2015, 04:42:40 pm by goodname »

jshand2010

  • Full Member
  • ***
  • Posts: 236
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #28 on: January 30, 2015, 02:17:13 am »
Well done guys.  thanks heaps.  now i have another problem as there seems to be files missing from packages

Processing files: fpc-3.0.1-150130.x86_64
Provides: fpc = 3.0.1-150130 fpc(x86-64) = 3.0.1-150130
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Processing files: fpc-src-3.0.1-150130.x86_64
Provides: fpc-src = 3.0.1-150130 fpc-src(x86-64) = 3.0.1-150130
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/bash /bin/sh /usr/bin/env
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150130.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/lib/fpc/lexyacc/yylex.cod
   /usr/lib/fpc/lexyacc/yyparse.cod
   /usr/share/doc/fpc-3.0.1/symbolic/optimization.txt
   /usr/share/doc/fpc-3.0.1/symbolic/symbolic.txt


RPM build errors:
    bogus date in %changelog: Tue Jul 28 2005 Joost van der Sluis <joost@cnoc.nl> 2.0.0-1
    bogus date in %changelog: Sat Jun 5 2005 Joost van der Sluis <joost@cnoc.nl> 2.0.0-0.5
    Installed (but unpackaged) file(s) found:
   /usr/lib/fpc/lexyacc/yylex.cod
   /usr/lib/fpc/lexyacc/yyparse.cod
   /usr/share/doc/fpc-3.0.1/symbolic/optimization.txt
   /usr/share/doc/fpc-3.0.1/symbolic/symbolic.txt
OpenSUSE Tumbleweed x86_64, Lazarus 2.2.0RC2 fixes branch, fpc 3.2.3 fixes branch

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: FPC 2.6.5 issues with compiling FPC 3.0.1 fixes branch
« Reply #29 on: January 30, 2015, 05:56:15 am »
Well done guys.  thanks heaps.  now i have another problem as there seems to be files missing from packages

Processing files: fpc-3.0.1-150130.x86_64
Provides: fpc = 3.0.1-150130 fpc(x86-64) = 3.0.1-150130
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Requires(post): /bin/sh
Processing files: fpc-src-3.0.1-150130.x86_64
Provides: fpc-src = 3.0.1-150130 fpc-src(x86-64) = 3.0.1-150130
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/bash /bin/sh /usr/bin/env
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/jshand/rpm/BUILDROOT/fpc-3.0.1-150130.x86_64
error: Installed (but unpackaged) file(s) found:
   /usr/lib/fpc/lexyacc/yylex.cod
   /usr/lib/fpc/lexyacc/yyparse.cod
   /usr/share/doc/fpc-3.0.1/symbolic/optimization.txt
   /usr/share/doc/fpc-3.0.1/symbolic/symbolic.txt


RPM build errors:
    bogus date in %changelog: Tue Jul 28 2005 Joost van der Sluis <joost@cnoc.nl> 2.0.0-1
    bogus date in %changelog: Sat Jun 5 2005 Joost van der Sluis <joost@cnoc.nl> 2.0.0-0.5
    Installed (but unpackaged) file(s) found:
   /usr/lib/fpc/lexyacc/yylex.cod
   /usr/lib/fpc/lexyacc/yyparse.cod
   /usr/share/doc/fpc-3.0.1/symbolic/optimization.txt
   /usr/share/doc/fpc-3.0.1/symbolic/symbolic.txt
Fix %files section, some of the references are no longer valid and there are new files (/usr/share/doc/fpc-3.0.1/symbolic instead of /usr/share/doc/fpc-symbolic-*). lexyacc is in /usr/lib64 as well, so use above macro fix.

 

TinyPortal © 2005-2018