Lazarus

Announcements => Third party => Topic started by: BigChimp on February 01, 2012, 08:58:27 am

Title: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 01, 2012, 08:58:27 am
Hi all,

Ludob and I have written an open source command line tool that downloads current FPC & Lazarus from SVN, compiles and installs it - separate from existing installs (snapshots, release builds, other SVNs).
It succesfully updates my FPC/Lazarus install.

Download Windows exe, Linux x86 and x64 binaries: https://bitbucket.org/reiniero/fpcup/downloads (https://bitbucket.org/reiniero/fpcup/downloads)
Source, bug/improvement idea tracker:
https://bitbucket.org/reiniero/fpcup (https://bitbucket.org/reiniero/fpcup/downloads)
Readme: https://bitbucket.org/reiniero/fpcup (https://bitbucket.org/reiniero/fpcup)
Wiki: http://wiki.lazarus.freepascal.org/fpcup

Features (of this first release; please check wiki page for updated information):

In development:

For more details on possible bugs/improvements, see the issue tracker mentioned above. You can also add your own issue/improvement suggestion/patch there ;)

Support/development thread:
http://lazarus.freepascal.org/index.php/topic,15701.0.html (http://lazarus.freepascal.org/index.php/topic,15701.0.html)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows
Post by: lainz on February 01, 2012, 09:16:39 pm
IN the meantime this will be the default Lazarus Setup  ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows
Post by: BigChimp on February 01, 2012, 10:07:48 pm
Thanks, hope it works well for you :D
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows
Post by: jmpessoa on February 01, 2012, 10:57:24 pm

Hi People!

When I tried to create a repository on https://bitbucket.org,   the "select box language" dont show Pascal or Object Pascal.... just Delphi.  Immediately, I send message to the forum requesting the inclusion of object pascal ... I think more folks would require... Delhi is a IDE.... Object Pascal is the language!

@BigChimp, Sorry I post this here ...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows
Post by: BigChimp on February 05, 2012, 02:45:02 pm
Thanks to Mattias Gaertner on the Lazarus mailing lists, I've finished bare metal install functionality. You should be able to download fpcup.exe on a plain windows machine, and it will download a Subversion client, bootstrap compiler, and binutils (make.exe, gdb.exe etc).
Then it will download FPC & Lazarus sources from SVN, compile and install them.

Next step: world dominance through support of Linux/OSX and getting offline help working out of the box.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows
Post by: BigChimp on February 07, 2012, 07:53:32 am
Note: due to Linux compatibility changes, the next release will change fpcup's default Lazarus primary config directory name from lazarusdev to lazarusdevsettings.

For existing fpcup users: you can run the new fpcup and then copy all files from your old primary config directory to the new one.

See the properties of the shortcut on your desktop to see where this directory is; on Vista/7 it will be something like C:\Users\<username>\AppData\Local\lazarusdevsettings

Sorry for the inconvenience.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows
Post by: BigChimp on February 10, 2012, 02:15:11 pm
New release with initial Linux support (both x86 and x64): you only need a subversion client, binutils and bunzip2 installed before using fpcup.

Windows, Linux x86 and Linux x64 binaries as well as source code avaible.

As mentioned above, the default primary config path fpcup will create has changed in this version.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows
Post by: JD on February 10, 2012, 02:32:48 pm
Very good BigChimp! Now you need to push for this to become the default method for updating Lazarus from SVN.  :D
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows
Post by: BigChimp on February 10, 2012, 02:48:46 pm
Thanks JD, but I'm thinking an OSX version, SVN download of help sources+compilation into CHM files, and a GUI with options (source URLs: stable, development; destination directories; etc) would be handy first.

Also, my software has been known not to be entirely bug-free, so I think it's prudent to wait to see if there need to be fixes  :)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 12, 2012, 03:26:17 pm
Ludob is now helping with fpcup development... which has lead to impressive improvements in functionality. New binaries released; feature list updated in first post.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 13, 2012, 07:49:48 am
Updated Linux binaries to recent repository version as that fixed some bugs causing Lazarus compilation to fail.

Thanks to Arny the TurboRascal for the bug report and ludob for the actual hard work  :D

If you used a previous Linux binary and had problems, please download the latest one and  try again. Sorry for the inconvenience.

Note that the new version has a confirmation prompt that allows you to review your options before continuing...

Now working on some issues with Windows and OSX versions... Seems fpcup won't compile Lazarus using FPC 2.6 fixes on Windows, but does work with FPC trunk. On the other hand, it could be an fpc.cfg issue...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: heeb on February 14, 2012, 12:47:01 am
WTH?!? I've been thinking about this! Wanted to write something similar, you beat me to it! Awesome. Thanx!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 14, 2012, 07:39:44 pm
Hi Matthew,

Great minds think alike ;)

Let me know how you like it, bug reports, improvement requests and patches welcome ;)
(I'm fighting with getting FPC 2.6+Lazarus to compile on Windows x86 while FPC trunk+Lazarus works - perhaps it's just my environment though).

BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 18, 2012, 08:47:39 am
ludob and I have been working hard and are proud to release a new version that adds documentation support (see updated feature list in first post).

When running fpcup on a new system, CHM help should be automatically set up for you in Lazarus.

Existing fpcup installs: running the new version should provide you with help as well. If you've manually edited the .chm help file location in Lazarus, change it to <lazarusdirectory>/docs/html

As always, comments, suggestions, patches and bug reports welcome...

Regards,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 20, 2012, 09:42:25 am
Temporarily pulled the Linux versions because of problems with running make bigide... working on a solution.

Sorry for the inconvenience.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 21, 2012, 06:44:10 pm
Just uploaded x86 Linux; when given a once over, the x64 version will also be uploaded.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 11, 2012, 12:47:52 pm
Uploaded new Linux x86, x64 and Windows versions. Thanks again to Ludo for developing and Miquel for testing.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 11, 2012, 01:39:06 pm
Uploaded OSX Intel version...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: goldenfox on March 20, 2012, 07:06:37 am
Congratulations for a job well done. One suggestion though, it will be cool if fcup will have a progress indicator when downloading stuff.  :D
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 20, 2012, 07:30:15 am
Thanks!

Good idea - would you know how you can tell the svn client to output this information so we could capture that?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CaptBill on March 20, 2012, 08:24:00 am
Hi BigChimp,

Thanks for this. Looks awesome... if I could just get it to execute!

I am obviously calling this wrong from the command line. It is a bash script correct?

I try:
<cd to directory> ./fpcup_linux_x86   ( I get: permission denied)
                               sudo su ./fpcup_linux_x86   (get: unknown id)
                               sudo su fpcup_linux_x86     (get: unknown id)

What am I doing wrong?

Thanks in advance
                           
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 20, 2012, 08:43:17 am
It's a compiled Lazarus application (command line only though)
what about doing
Code: [Select]
cd <wherever>
chmod u+rx fpcup_linux_x86
./fpcup_linux_x86 --help

Running as root is not needed... it will install fpc/lazarus into ~/fpc and ~/lazarus by default...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: patyi on March 20, 2012, 08:46:34 am
Hi !

I try to install Fpc and Lazarus on laptop (clean install - XUbuntu).
FpcUp is finished successful but when i start lazarus, in configure lazarus ide box haw an error message:
"Error: fpc.cfg is missing" !  I double check: fpc.dfg is there in ../fpc/bin/i386-linux/

What can I do to get it work ?  Thanks, Patyi.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 20, 2012, 08:58:40 am
Patyi,

Just to confirm: you did start lazarus with the ~/Lazarus_trunk link, didn't you?

The error message indicates the settings (environmentoptions.xml) that specify where fpc.cfg, the fpc compiler etc are are incorrect... Note that fpcup creates a separate --primary-config-path directory for you so it can coexist with existing systemwide Lazarus installs...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CaptBill on March 20, 2012, 09:09:49 am
Thanks,
I had to check the execution priveleges checkbox in the permissions tab. Duh!  :-[

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: patyi on March 20, 2012, 09:37:44 am
"Just to confirm: you did start lazarus with the ~/Lazarus_trunk link, didn't you?"

No I don't !   :-[
It works when I started with ~/Lazarus_trunk link !!!    :D

Thanks, Patyi
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CaptBill on April 16, 2012, 06:51:54 am
Hi,

I'm trying to use fpcup to get the trunk version of fpc (2.7.1) and am hitting a snag setting options (win32).

I have tried setting them in several ways

1. By running the fpcup.exe and setting the fpcURL option directly on the (YES/no) prompt like so:  fpcURL= http://svn.freepascal.org/svn/fpc/trunk

2. I set the same options in the fpcup.config file in the same directory as fpcup.exe (in the [general] section at the beginning)

None of these are setting the url correctly and it is downloading the default url instead.

Where am I going wrong here?

Thanks


Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 16, 2012, 09:28:25 am
CaptBill,
Thanks for reporting.

You'll have to specify the options on the command line, e.g. (untested, may differ):
Code: [Select]
fpcup --fpcurl=http://svn.freepascal.org/svn/fpc/trunk --fpcdir=c:\some\directory
See
Code: [Select]
fpcup --help for more details

Regards,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CaptBill on April 17, 2012, 12:07:11 am
Thanks Bigchimp,

That was indeed what I was doing wrong (sheesh, how did I miss that). Although I am only able to set one variable at a time on the command line it seems so I am unable to have a "trunk" and a "current release" both installed, sharing common directory structure(can only set fpcURL iow).

Also setting the variable in the fpcup.ini and specifying the configfile=fpcup.ini isn't working either. This would be the preferable way I would think and just keep several .ini files. Seems strange that this is not working. Doesn't the fpcup.exe use the fpcup.ini as it's way of setting the "stock" setup? According to the help file the fpcup.ini file is used by default (which I have modified with settings). This is not working and reverts to the standard "branches/fixes_2.6" config.

My work around was to simply start from scratch and just set the fpcURL variable from the command line to the "trunk" version. All goes well with the downloading, but something goes wrong with the compiling. Apparently the fpc.exe is not compiling. Stange thing is that the fp.exe (freepascal GUI) is compiling fine, just not the fpc.exe (?).

Thanks in advance.

Well anyway here is a dump of the log:
Quote
------------------------------------------------
4/16/2012 7:57:08: fpcup started.
Bootstrap compiler dir: C:\development\fpcbootstrap\
FPC URL:                http://svn.freepascal.org/svn/fpc/trunk
FPC options:           
FPC directory:          C:\development\fpc
Make/binutils path:     C:\development\fpcbootstrap\
External program path:  C:\development\fpcbootstrap\;C:\development\fpcbootstrap\;C:\development\fpcbootstrap\svn\;C:\development\fpc\bin\i386-win32
opment\fpcbootstrap\
External progError running fpcup. Technical details: error executing sequence fpc; line: 4, param: FPC
Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 3, param: fpc
4/16/2012 8:33:22: fpcup finished.
------------------------------------------------
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 17, 2012, 08:46:24 am
Yes, you can only set one fpcurl at the same time. You could call fpcup twice with different URL parameters but I'd think the source and compiled units will interfere with each other!??
What kind of structure are you trying to get? Perhaps we can modify the program.

fpcup.ini is ONLY used for "external modules" right now. See the readme file and the html file in the source distribution. Just place fpcup.ini in the same directory as fpcup.exe.
Could you confirm something like
Code: [Select]
fpcup --configfile=c:\windows\temp\fpcup.ini
doesn't work? Which version of fpcup? The binary win32 version?

Re: compile errors: you might want to try with the newest dev version. Note the list of bugs on the bugtracker though...

Edit: note: the log snippet you gave me doesn't really tell me what went wrong. You can increase detail by specifying --verbose; that might help... Thanks.

Thanks for your report & perseverance,

BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 17, 2012, 08:49:56 am
It is a really great tool!
I used it to set up 2 lazarus envorinmant on linux 64bit: 2.6 and development and all goes well.
Only one thing to note: in the second installation I used "lazlinkname=..." option to create an alternative link in desktop but this has not been created. Solved manually.

I would suggest to consider installation of some components ie: --components=Indy10,LazReport
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 17, 2012, 09:09:18 am
@NoMoreLogic: the components can be installed using fpcup.ini. See the readme and the html filein the source directory for details. If you need more directives/macros, please let us know...
I get e.g. synapse, tiopf along with documentation etc.

Re lazlinkname: what version of fpcup are you using? If the precompiled version, the compilation date that is shown when running fpcup --help indicates the version.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 17, 2012, 09:21:29 am
is a precompiled version, follow output of: fcpup --help

Quote
fpcup
An FPC/Lazarus downloader/updater/installer
Open source freeware (modified LGPL/BSD), see:
https://bitbucket.org/reiniero/fpcup

This program will download the FPC and Lazarus sources
from the source Subversion/SVN repositories,
compile, and install.
Result: you get a fresh, up-to-date Lazarus/FPC installation.
fpcup compiled on 2012/03/11 09:23:55 with FPC 2.6.0
for CPU: x86_64 on Linux

thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 17, 2012, 10:12:55 am
Hi logic,

You might want to try with the newest source code. That version does work with lazlinkname on my Windows version.
If it still doesn't work, let me know and I'll raise a bug and look into it.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 19, 2012, 10:15:49 am
hi BigChimp
looking at https://bitbucket.org/reiniero/fpcup/downloads
I find that fpcup_linux_x64 reports same version I used few days ago (2012-03-11)

downloading sources at
https://bitbucket.org/reiniero/fpcup/src
I'll have the newest release?

thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 19, 2012, 12:14:16 pm
That's right!

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 19, 2012, 08:04:33 pm
hi BigChimp
I've downloaded fpcup source, recompiled and executed

once launched with parameters, fpcup, ask to me for confirmation as follow:

Code: [Select]
fpcup
An FPC/Lazarus downloader/updater/installer
Open source freeware (modified LGPL/BSD), see:
https://bitbucket.org/reiniero/fpcup

This program will download the FPC and Lazarus sources
from the source Subversion/SVN repositories,
compile, and install.
Result: you get a fresh, up-to-date Lazarus/FPC installation.
fpcup compiled on 2012/04/19 12:32:43 with FPC 2.7.1
for CPU: x86_64 on Linux
Info: 19-4-12 12:45:18: fpcup started.
The "binutilsdir" parameter is not necessary or supported on this system.
The parameter will be ignored.Warning

Options:
Bootstrap compiler dir: /home/username/fpcbootstrap/
Lazarus shortcut name:  /home/username/Scrivania/lazarus_dev2
Shortcut fpcup name:    /home/username/Scrivania/lazarus_dev2_Update
FPC URL:                http://svn.freepascal.org/svn/fpc/trunk
FPC options:           
FPC directory:          /home/username/lazdev2/fpc
Lazarus directory:      /home/username/lazdev2/lazarus
Lazarus primary config path:
(Lazarus settings path) /home/username/.config/lazarusdevsettings
Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
Lazarus options:       
Keep local changes:     no
Parameter list:         --fpcdir="/home/username/lazdev2/fpc" --lazdir="/home/username/lazdev2/lazarus" --fpcURL="http://svn.freepascal.org/svn/fpc/trunk" --lazlinkname="/home/username/Scrivania/lazarus_dev2"



Continue (Y/n): Info: 19-4-12 12:45:20: fpcup finished.

then fpcup executes all steps and this is what I get on terminal:

Quote
Info: Module FPC: Getting/compiling FPC...
Info: /home/username/fpcbootstrap/x86_64-linux-ppcx64 is not a valid x86_64-linux-ppcx64 application (x86_64-linux-ppcx64 result code was: 1)
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Going to download /tmp/TMP00000.tmp from URL: ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2
Info: Going to move /tmp/TMP00000.tmp.out to /home/username/fpcbootstrap/x86_64-linux-ppcx64
Info: FPC: running make distclean before checkout/update:
Info: Checking out/updating FPC sources...
Info: FPC was at revision: -1
Info: No updates for FPC found.
Info: Running make all for FPC:
Info: Running make install for FPC:
Info: Created launcher script for FPC:/home/username/lazdev2/fpc/bin/x86_64-linux/fpc.sh
Info: Creating fpc.cfg:
Info: Module LAZARUS: Getting/compiling Lazarus...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Lazarus: running make distclean all:
Info: Checking out/updating Lazarus sources:
Info: Lazarus was at revision: -1
Info: No updates for Lazarus found.
Info: lazarus: running make all:
Info: Module LAZARUS: Getting/compiling Lazarus...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Lazarus: running make distclean bigideclean:
Info: BIGIDE: running make bigide:
Info: Module LAZARUS: Getting/compiling Lazarus...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Lazarus: running lazbuild to get IDE with user-specified packages:
Info: Lazarus: creating desktop shortcut:
Info: Getting module lhelp
Info: Building module lhelp
Info: HELPLAZARUS: initializing module...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: HELPLAZARUS: documentation directory: /home/username/lazdev2/lazarus/docs/html/
Info: Going to download /tmp/TMP00000.tmp.zip from URL: http://garr.dl.sourceforge.net/project/freepascal/Documentation/2.6.0/doc-chm.zip
Info: HELPLAZARUS: initializing module...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: HELPLAZARUS: documentation directory: /home/username/lazdev2/lazarus/docs/html/
Info: helplazarus: compiling build_lcl_docs help compiler:
Info: helplazarus: compiling chm help docs:
Info: helplazarus: moving lcl.chm to docs directory
Info: Getting module lazdatadesktop
Info: Building module lazdatadesktop
Info: Getting module doceditor
Info: Building module doceditor
Info: Getting module fpcdocs
Info: Building module fpcdocs
Info: Getting module lazres
Info: Building module lazres
Info: Getting module tiopf_source
Info: Building module tiopf_source
Info: Error running fpcup. Technical details: error executing sequence tiopf_source; line: 4, param: tiopf_source
Info: Error running fpcup. Technical details: error executing sequence tiopf; line: 2, param: tiopf_source
Info: Error running fpcup. Technical details: error executing sequence UniversalDefault; line: 7, param: tiopf
Info: Error running fpcup. Technical details: error executing sequence Default; line: 10, param: UniversalDefault
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- make sure the GNU binutils (make etc), windres, subversion client are installed
  e.g. on Debian/Ubuntu: aptitude install build-essential subversion
- try removing all intermediate files by running fpcup with the --uninstall option
- if that does not work: use the --uninstall option to remove all files (including your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 19-4-12 13:16:34: fpcup finished.
Info: Checking out/updating Lazarus sources:
Info: Lazarus was at revision: -1
Info: No updates for Lazarus found.
Info: lazarus: running make all:
Info: Module LAZARUS: Getting/compiling Lazarus...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Lazarus: running make distclean bigideclean:
Info: BIGIDE: running make bigide:
Info: Module LAZARUS: Getting/compiling Lazarus...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Lazarus: running lazbuild to get IDE with user-specified packages:
Info: Lazarus: creating desktop shortcut:
Info: Getting module lhelp
Info: Building module lhelp
Info: HELPLAZARUS: initializing module...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: HELPLAZARUS: documentation directory: /home/username/lazdev2/lazarus/docs/html/
Info: helplazarus: skipping docs download: FPC rtl.chm and fcl.chm already present in docs directory /home/username/lazdev2/lazarus/docs/html/
Info: HELPLAZARUS: initializing module...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: HELPLAZARUS: documentation directory: /home/username/lazdev2/lazarus/docs/html/
Info: helplazarus: compiling build_lcl_docs help compiler:
Info: helplazarus: not building LCL.chm as it is quite recent: 20120419
Info: Getting module lazdatadesktop
Info: Building module lazdatadesktop
Info: Getting module doceditor
Info: Building module doceditor
Info: Getting module fpcdocs
Info: Building module fpcdocs
Info: Getting module lazres
Info: Building module lazres
Info: Getting module tiopf_source
Info: Building module tiopf_source
Info: Error running fpcup. Technical details: error executing sequence tiopf_source; line: 4, param: tiopf_source
Info: Error running fpcup. Technical details: error executing sequence tiopf; line: 2, param: tiopf_source
Info: Error running fpcup. Technical details: error executing sequence UniversalDefault; line: 7, param: tiopf
Info: Error running fpcup. Technical details: error executing sequence Default; line: 10, param: UniversalDefault
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- make sure the GNU binutils (make etc), windres, subversion client are installed
  e.g. on Debian/Ubuntu: aptitude install build-essential subversion
- try removing all intermediate files by running fpcup with the --uninstall option
- if that does not work: use the --uninstall option to remove all files (including your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 19-4-12 13:20:48: fpcup finished.
Info: Checking out/updating FPC sources...

Info: FPC: WARNING: found modified files.
/home/username/lazdev2/fpc/utils/fpcmkcfg/fppkg.inc
Diff with last revision stored in /home/username/lazdev2/fpc/REV-1.diff
FPC: reverting before updating.

Info: FPC was at revision: -1
Info: No updates for FPC found.
Info: Running make all for FPC:
Info: Running make install for FPC:
Info: fpc.sh launcher script already exists (/home/username/lazdev2/fpc/bin/x86_64-linux/fpc.sh); trying to overwrite it.
Info: Created launcher script for FPC:/home/username/lazdev2/fpc/bin/x86_64-linux/fpc.sh
Info: fpc.cfg already exists; leaving it alone.
Info: Module LAZARUS: Getting/compiling Lazarus...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Lazarus: running make distclean all:
Info: Checking out/updating Lazarus sources:
Info: Lazarus was at revision: -1
Info: No updates for Lazarus found.
Info: lazarus: running make all:
Info: Module LAZARUS: Getting/compiling Lazarus...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Lazarus: running make distclean bigideclean:
Info: BIGIDE: running make bigide:
Info: Module LAZARUS: Getting/compiling Lazarus...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: Lazarus: running lazbuild to get IDE with user-specified packages:
Info: Lazarus: creating desktop shortcut:
Info: Getting module lhelp
Info: Building module lhelp
Info: HELPLAZARUS: initializing module...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: HELPLAZARUS: documentation directory: /home/username/lazdev2/lazarus/docs/html/
Info: helplazarus: skipping docs download: FPC rtl.chm and fcl.chm already present in docs directory /home/username/lazdev2/lazarus/docs/html/
Info: HELPLAZARUS: initializing module...
Info: Found valid unzip application.
Info: Found valid bunzip2 application.
Info: Found valid tar application.
Info: HELPLAZARUS: documentation directory: /home/username/lazdev2/lazarus/docs/html/
Info: helplazarus: compiling build_lcl_docs help compiler:
Info: helplazarus: not building LCL.chm as it is quite recent: 20120419
Info: Getting module lazdatadesktop
Info: Building module lazdatadesktop
Info: Getting module doceditor
Info: Building module doceditor
Info: Getting module fpcdocs
Info: Building module fpcdocs
Info: Getting module lazres
Info: Building module lazres
Info: Getting module tiopf_source
Info: Building module tiopf_source
Info: Error running fpcup. Technical details: error executing sequence tiopf_source; line: 4, param: tiopf_source
Info: Error running fpcup. Technical details: error executing sequence tiopf; line: 2, param: tiopf_source
Info: Error running fpcup. Technical details: error executing sequence UniversalDefault; line: 7, param: tiopf
Info: Error running fpcup. Technical details: error executing sequence Default; line: 10, param: UniversalDefault
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- make sure the GNU binutils (make etc), windres, subversion client are installed
  e.g. on Debian/Ubuntu: aptitude install build-essential subversion
- try removing all intermediate files by running fpcup with the --uninstall option
- if that does not work: use the --uninstall option to remove all files (including your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 19-4-12 13:27:23: fpcup finished.

with this release I've got some "Info: Error running fpcup" errors (but none of these with precompiled binary) but lazarus starts

other strange messages are:
- binutils: I have binutils installed
- windres: not installed (need to install and retry? with precompiled binary this error was not raised)
- svn client: is installed (and fpcup correctly checkout all sources)
-option --lazlinkname="/home/username/Scrivania/lazarus_dev2" creates a link (both lazarus_dev2 and lazarus_dev2_Update) but in the following path: /home/username/home/username/Scrivania

If you need more info I'm here :)

thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 20, 2012, 01:51:55 am
Hello! Downloaded fpcup for windows 7 64 and puted on a folder with no spaces on the path and runned it...leaved all options to defaults
No lazarus_trunk icon on desktop here is the log file

Code: [Select]
------------------------------------------------
19/04/2012 20:25:50: fpcup started.
Bootstrap compiler dir: C:\development\fpcbootstrap\
FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
FPC options:           
FPC directory:          C:\development\fpc
Make/binutils path:     C:\development\fpcbootstrap\
External program path:  C:\development\fpcbootstrap\;C:\development\fpcbootstrap\;;C:\development\fpc\bin\i386-win32
FPC: update succeeded at revision numLazarus directory:      C:\development\lazarus
Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
Lazarus options:       
External program path:  C:\development\fpc\bin\i386-win32\bin\i386-win32;C:\development\fpcbootstrap\;;C:\development\lazarus
ERROR running C:\development\fpcbootstrap\make.exe "FPC=C:\development\fpc\bin\i386-win32\fpc" "--directory=C:\development\lazarus" "FPCDIR=C:\development\fpc" "UPXPROG=echo" "COPYTREE=echo" "all"
Command returned non-zero ExitStatus: 2
Command path set to: C:\development\fpc\bin\i386-win32Error running fpcup. Technical details: error executing sequence lazarus; line: 4, param: lazarus
Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 4, param: lazarus
19/04/2012 20:42:21: fpcup finished.
------------------------------------------------
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 20, 2012, 01:57:50 pm
other strange messages are:
- binutils: I have binutils installed
- windres: not installed (need to install and retry? with precompiled binary this error was not raised)
- svn client: is installed (and fpcup correctly checkout all sources)
If you're referring to this:
Code: [Select]
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- make sure the GNU binutils (make etc), windres, subversion client are installed
  e.g. on Debian/Ubuntu: aptitude install build-essential subversion
- try removing all intermediate files by running fpcup with the --uninstall option
- if that does not work: use the --uninstall option to remove all files (including your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
... that's only possible troubleshooting steps. Not all of them will apply in all situations...
Yes, windres was added to the list; can be useful when compiling some projects/components... but probably not essential (if there are problems, you will get errors to do with resource compilation)
-option --lazlinkname="/home/username/Scrivania/lazarus_dev2" creates a link (both lazarus_dev2 and lazarus_dev2_Update) but in the following path: /home/username/home/username/Scrivania
IIRC, you can only specify the filename part of the link, not the full path.

... seems the installer is having trouble with tiopf... I'll have to look into that.
For now, you can disable tiopf in fpcup.ini, e.g. from:
Code: [Select]
[general]
; Users: you can override if a module is executed, e.g. to run the synapse module regardless of the fpcup maintainers settings below:
;Synapse=1
tiopf=1
to...
Code: [Select]
[general]
; Users: you can override if a module is executed, e.g. to run the synapse module regardless of the fpcup maintainers settings below:
;Synapse=1
tiopf=0
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 20, 2012, 02:00:31 pm
Hello! Downloaded fpcup for windows 7 64 and puted on a folder with no spaces on the path and runned it...leaved all options to defaults
No lazarus_trunk icon on desktop here is the log file

Thanks calebs, seems like Lazarus compilation failed, but I will need more detail to see what's going on. Use fpcup --verbose to show more info.
Also, please be aware there's a known bug in current fpcup source right now that will lead to errors in building the 64 bit LCL, leading to a failure message. If using that, you could try the binary download version...

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 20, 2012, 03:29:07 pm
Oh thanks bigchimp i didn't see that there was problems with 64 bit version of windows... anyway i don't mind usind 32 bits lazarus... in fact, i think i'm using binaries of 32 bits.
I'll try with --cputarget=i386 to generate a 32 bits lazarus... or is different?
Im installing it on linux 32 bits right now.
I'll see what happens
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 20, 2012, 03:57:39 pm
No luck with --cputarget=i386 on win 7 x64...
trying now with --cputarget=i386 --ostarget=win32 --verbose...
where do i post the log if it doesn't works? it seems to be extensive...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 20, 2012, 04:57:07 pm
No luck on debian x86 either...
runned "fpcup_linux_x86 --lazdir=/home/multisistema/lazarus-trunk"
(because lazarus dir existed with current lazarus)
and won't compile lazarus this is the last part of log
Code: [Select]
lclintf.inc(195,45) Warning: Symbol "FontCanUTF8" is deprecated
lclintf.inc(334,49) Warning: Symbol "IntfSendsUTF8KeyPress" is deprecated
rasterimage.inc(472,19) Warning: Function result variable does not seem to initialized
rasterimage.inc(759,3) Note: Local variable "x" not used
rasterimage.inc(759,6) Note: Local variable "y" not used
font.inc(1210,22) Warning: Symbol "FontCanUTF8" is deprecated
canvas.inc(706,3) Note: Local variable "lDestWidth" is assigned but never used
canvas.inc(706,15) Note: Local variable "lDestHeight" is assigned but never used
graphics.pp(726,5) Note: Private field "TRegion.RegionOperations" is never used
graphics.pp(727,5) Note: Private field "TRegion.SubRegions" is never used
intfgraphics.pas(823,14) Warning: Function result variable does not seem to initialized
intfgraphics.pas(841,14) Warning: Function result variable does not seem to initialized
intfgraphics.pas(849,14) Warning: Function result variable does not seem to initialized
Compiling controls.pp
Compiling imglist.pp
Compiling lclclasses.pp
Compiling ./widgetset/wslclclasses.pp
Compiling lclclasses.pp
Compiling ./widgetset/wsimglist.pp
Compiling ./widgetset/wsproc.pp
Compiling controls.pp
Compiling propertystorage.pas
Compiling menus.pp
Compiling actnlist.pas
Compiling ./widgetset/wsmenus.pp
Compiling ./widgetset/wsfactory.pas
Compiling forms.pp
Compiling customtimer.pas
Compiling clipbrd.pp
Compiling helpintfs.pas
Compiling controls.pp
Compiling ./widgetset/wscontrols.pp
Compiling ./widgetset/wsimglist.pp
Compiling ./widgetset/wsproc.pp
wsimglist.pp(176,14) Warning: Function result variable does not seem to initialized
Compiling forms.pp
Compiling ./widgetset/wsforms.pp
Compiling extctrls.pp
Compiling stdctrls.pp
Compiling extendedstrings.pas
Compiling textstrings.pas
Compiling ./widgetset/wsstdctrls.pp
Compiling popupnotifier.pas
Compiling ./widgetset/wsextctrls.pp
Compiling dialogs.pp
Compiling buttons.pp
Compiling imagelistcache.pas
Compiling ./widgetset/wsbuttons.pp
Compiling buttonpanel.pas
Compiling ./widgetset/wsdialogs.pp
Compiling checklst.pas
Compiling ./widgetset/wschecklst.pp
Compiling colorbox.pas
Compiling comctrls.pp
Compiling toolwin.pp
Compiling ./widgetset/wscomctrls.pp
Compiling ./widgetset/wstoolwin.pp
comctrls.pp(698,5) Note: Private field "TTabControl.FOnPaint" is never used
Compiling dbactns.pp
Compiling dbctrls.pp
Compiling maskedit.pp
Compiling calendar.pp
Compiling ./widgetset/wscalendar.pp
Compiling dbgrids.pas
Compiling grids.pas
Compiling dynamicarray.pas
Compiling ./widgetset/wsgrids.pp
Compiling defaulttranslator.pas
Compiling translations.pas
Compiling stringhashlist.pas
Compiling dynhasharray.pp
Compiling editbtn.pas
Compiling extdlgs.pas
Compiling ./widgetset/wsextdlgs.pp
extdlgs.pas(128,5) Note: Private field "TCalculatorDialog.FTitle" is never used
Compiling ./forms/calendarpopup.pas
Compiling extgraphics.pas
Compiling filectrl.pp
Compiling shellctrls.pas
Compiling graphutil.pp
Compiling inipropstorage.pas
Compiling lazhelphtml.pas
Compiling lazhelpintf.pas
Compiling lazlinkedlist.pas
Compiling lclmemmanager.pas
Compiling lclmessageglue.pas
Compiling ./nonwin32/messages.pp
Compiling lclunicodedata.pas
Compiling pairsplitter.pas
Compiling ./widgetset/wspairsplitter.pp
Compiling postscriptcanvas.pas
Compiling printers.pas
Compiling postscriptunicode.pas
Compiling postscriptprinter.pas
Compiling rubberband.pas
Compiling ./widgetset/wsdesigner.pp
Compiling spin.pp
Compiling ./widgetset/wsspin.pp
Compiling stdactns.pas
Compiling utrace.pp
Compiling xmlpropstorage.pas
Compiling ./widgetset/wsarrow.pp
Compiling arrow.pp
Compiling ./widgetset/wsarrow.pp
Compiling asyncprocess.pp
Compiling registerlcl.pas
Compiling valedit.pas
Compiling lazcanvas.pas
Compiling lazregions.pas
lazcanvas.pas(624,3) Note: Local variable "lx" not used
lazcanvas.pas(624,7) Note: Local variable "ly" not used
Compiling lazdialogs.pas
Compiling customdrawn_common.pas
Fatal: Can't find unit windows used by customdrawn_common
Fatal: Compilation aborted
Error: /home/multisistema/fpc/bin/i386-linux/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
make[1]: *** [alllclunits.ppu] Error 1
make[1]: se sale del directorio `/home/multisistema/lazarus-trunk/lcl'
make: *** [lazbuild] Error 2
make: se sale del directorio `/home/multisistema/lazarus-trunk'

Info: Error running fpcup. Technical details: error executing sequence lazarus; line: 4, param: lazarus
Info: Error running fpcup. Technical details: error executing sequence Default; line: 5, param: lazarus
fpcup failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- make sure the GNU binutils (make etc), windres, subversion client are installed
  e.g. on Debian/Ubuntu: aptitude install build-essential subversion
- try removing all intermediate files by running fpcup with the --uninstall option
- if that does not work: use the --uninstall option to remove all files (including your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
FPCUp finished.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on April 20, 2012, 05:01:17 pm
calebs,

i will try to install fpcup.exe now on my win7-64....

Cheers,
Miquel.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 20, 2012, 05:23:04 pm
Oh thanks bigchimp i didn't see that there was problems with 64 bit version of windows... anyway i don't mind usind 32 bits lazarus... in fact, i think i'm using binaries of 32 bits.
I'll try with --cputarget=i386 to generate a 32 bits lazarus... or is different?
Im installing it on linux 32 bits right now.
I'll see what happens
The problems should only occur when running fpcup on Windows when compiling the x64 LCL...
If on Windows, rather than using --cputarget=i386, you should probably use --skip=crosswin32-64 (see fpcup --help, in the list of all available modules)... see the bug report there...

Edit: FYI, if you build fpcup on Windows with the 64 bit compiler, IIRC, you should get a totally 64 bit environment, not 32.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 20, 2012, 05:31:08 pm
No luck on debian x86 either...
runned "fpcup_linux_x86 --lazdir=/home/multisistema/lazarus-trunk"
(because lazarus dir existed with current lazarus)
and won't compile lazarus this is the last part of log
Code: [Select]
Compiling lazdialogs.pas
Compiling customdrawn_common.pas
Fatal: Can't find unit windows used by customdrawn_common
Fatal: Compilation aborted
Error: /home/multisistema/fpc/bin/i386-linux/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
make[1]: *** [alllclunits.ppu] Error 1
make[1]: se sale del directorio `/home/multisistema/lazarus-trunk/lcl'
make: *** [lazbuild] Error 2
make: se sale del directorio `/home/multisistema/lazarus-trunk'
Interesting. Seems the Lazarus compile failed. Perhaps there's some problem with Lazarus trunk? To be able to test with a certain revision, you can use the --lazrevision option...
Note: fpcup calls make clean, make distclean etc which apparently does not always remove all .ppu, .o and .a files. You could try manually removing them or you can run fpcup with the --uninstall options to remove the entire directories and do a new subversion checkout...

Edit: just ran fpcup trunk on x64 Debian; also get
Code: [Select]
make[1]: Entering directory `/home/pascaldev/lazarus/lcl'
/bin/rm -f units/x86_64-linux/alllclunits.ppu
/home/pascaldev/fpc/bin/x86_64-linux/fpc.sh -gl  -Fu../packager/units/x86_64-linux -Fu../components/lazutils/lib/x86_64-linux -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fu/home/pascaldev/fpc/rtl/units/x86_64-linux -Fiinclude -FE. -FUunits/x86_64-linux -Cg -dx86_64 alllclunits.pp
Free Pascal Compiler version 2.6.1 [2012/04/20] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling alllclunits.pp
Compiling lclintf.pas
Compiling lclintf.pas
Compiling lclintf.pas
lclintf.inc(195,45) Warning: Symbol "FontCanUTF8" is deprecated
lclintf.inc(334,49) Warning: Symbol "IntfSendsUTF8KeyPress" is deprecated
Compiling customdrawn_common.pas
Fatal: Can't find unit windows used by customdrawn_common
Fatal: Compilation aborted
Error: /home/pascaldev/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on April 20, 2012, 06:28:03 pm
Hi calebs,

fpcup.exe has installed lazarus without trouble on my win7-64 box.

Open cmd.exe, go to fpcup.exe folder and execute fpcup.exe --verbose > fpcup-verbose.txt (enter)
then press letter y and then (enter)

You must wait for 20 minutes, more or less.

Send txt file to BigChimp in case you do not get a lazarus_trunk icon at your desktop when fpcup.exe
finishes.

Cheers,
Miquel.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 20, 2012, 07:08:54 pm
Instead of having to press y yourself, you can also pass --noconfirm... ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CaptBill on April 20, 2012, 11:11:47 pm
Hi BigChimp,

Just a follow up to my install. Everything went well with installing the current trunk version here. Got the latest FPC 2.7.x like I wanted.  Icon on desktop too...Hooray!

I wasn't able to set more than one command line option (as you are aware) and being able to set all options from the fpcup.ini will be sweet. I am sure you are hard at work with that. Looking great so far. Thanks for your hard work on this.

Had an idea that might help things go smoother for some (especially newbs to svn like me):

What I had issues with was that all of the repo was not downloaded. Looks like with such a large repo some units got skipped. Took me a while to figure what was happening. Had to keep trying until I got a perfect download

It might be a good idea to do an immediate 'svn update' inside of fpcup to check if everything went ok. Might catch this problem and fix it during the fpcup process for people with 'if-ey' net connections like mine seems at times.

Just a thought.

Thanks again
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 21, 2012, 12:01:21 am
Oh thanks bigchimp i didn't see that there was problems with 64 bit version of windows... anyway i don't mind usind 32 bits lazarus... in fact, i think i'm using binaries of 32 bits.
I'll try with --cputarget=i386 to generate a 32 bits lazarus... or is different?
Im installing it on linux 32 bits right now.
I'll see what happens
The problems should only occur when running fpcup on Windows when compiling the x64 LCL...
If on Windows, rather than using --cputarget=i386, you should probably use --skip=crosswin32-64 (see fpcup --help, in the list of all available modules)... see the bug report there...

Edit: FYI, if you build fpcup on Windows with the 64 bit compiler, IIRC, you should get a totally 64 bit environment, not 32.

Can build 32 bit lazarus in win 64 bits? I want to avoid 64 bits in all possible ways to run programs on old pc's
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 21, 2012, 12:03:07 am
No luck on debian x86 either...
runned "fpcup_linux_x86 --lazdir=/home/multisistema/lazarus-trunk"
(because lazarus dir existed with current lazarus)
and won't compile lazarus this is the last part of log
Code: [Select]
Compiling lazdialogs.pas
Compiling customdrawn_common.pas
Fatal: Can't find unit windows used by customdrawn_common
Fatal: Compilation aborted
Error: /home/multisistema/fpc/bin/i386-linux/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
make[1]: *** [alllclunits.ppu] Error 1
make[1]: se sale del directorio `/home/multisistema/lazarus-trunk/lcl'
make: *** [lazbuild] Error 2
make: se sale del directorio `/home/multisistema/lazarus-trunk'
Interesting. Seems the Lazarus compile failed. Perhaps there's some problem with Lazarus trunk? To be able to test with a certain revision, you can use the --lazrevision option...
Note: fpcup calls make clean, make distclean etc which apparently does not always remove all .ppu, .o and .a files. You could try manually removing them or you can run fpcup with the --uninstall options to remove the entire directories and do a new subversion checkout...

Edit: just ran fpcup trunk on x64 Debian; also get
Code: [Select]
make[1]: Entering directory `/home/pascaldev/lazarus/lcl'
/bin/rm -f units/x86_64-linux/alllclunits.ppu
/home/pascaldev/fpc/bin/x86_64-linux/fpc.sh -gl  -Fu../packager/units/x86_64-linux -Fu../components/lazutils/lib/x86_64-linux -Fu. -Funonwin32 -Fuforms -Fuwidgetset -Fu/home/pascaldev/fpc/rtl/units/x86_64-linux -Fiinclude -FE. -FUunits/x86_64-linux -Cg -dx86_64 alllclunits.pp
Free Pascal Compiler version 2.6.1 [2012/04/20] for x86_64
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling alllclunits.pp
Compiling lclintf.pas
Compiling lclintf.pas
Compiling lclintf.pas
lclintf.inc(195,45) Warning: Symbol "FontCanUTF8" is deprecated
lclintf.inc(334,49) Warning: Symbol "IntfSendsUTF8KeyPress" is deprecated
Compiling customdrawn_common.pas
Fatal: Can't find unit windows used by customdrawn_common
Fatal: Compilation aborted
Error: /home/pascaldev/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)

So you're saying that lazarus trunk is wrong? If then, should compile tomorrow or when somebody upload a fixed version?

And the first time i tried it was a blank directory... the errors im having are with clean folders like the first time for win and linux
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CaptBill on April 21, 2012, 12:42:00 am
Hi Caleb,

I bet you had a problem during the svn download process. Not everything downloaded is all. Just keep trying until you get a full update to take place. Took me about 5 tries for it to finally compile correctly.

My suspicion is that it is an integrity issue with svn missing or getting corrupted units, or in your case skipping whole directories.

I think if you try running fpcup again it will not try to download the full svn but detect it and just issue an 'svn update' and catch any missing directories/files from the previous try.

Keep re-running fpcup with the same settings until it finally gets all the files. Eventually it will compile I believe. That is what I ran into.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 21, 2012, 02:00:17 am
Well finally everything downloaded and compiled without errors in debian i386, but no shorcut on desktop to lazarus_trunk.
Doesn't matter to me, opened terminal, changed to lazarus_trunk directory and started with ./startlazarus, tells me that i already have a config file for lazarus in .lazarus on home folder so i started lazarus again with --pcp parameter pointing to lazarus_trunk folder.
Now. i have a window that gives me errors in two options and other ok but it's wrong.
So i correct them:
In lazarus tab, browsed to the new downloaded and compiled lazarus
/home/multisistema/lazarus_trunk  -- OK
fpc sources tab, browsed to
/home/multisistema/fpc -- ok
and in compiler tab suggest me the old fpc compiler (the one i was using, in /usr/bin/fpc) but i want to use the new downloaded FPC so i point to
/home/multisistema/fpc/bin/i386-linux/fpc
and tells me:
 Error: system.ppu not found. Check your fpc.cfg
I've watched fpc.cfg in /home/multisistema/fpc/bin/i386-linux/fpc but don't know if have to modify that or the next time i run fpcup will change it again.
What should i do with that?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 21, 2012, 08:43:54 am
So you're saying that lazarus trunk is wrong? If then, should compile tomorrow or when somebody upload a fixed version?

And the first time i tried it was a blank directory... the errors im having are with clean folders like the first time for win and linux
Yes, lazarus trunk could have been wrong. As I indicated in a previous post, you can use --lazrevision=xxx to pin fpcup to a specific SVN revision/commit number so you can check out a certain (older) version of Lazarus to see if that solves the problems.

Thanks for the info on the clean folders, so that can be eliminated as a cause for failures.

@CaptBill: yes, sometimes SVN wouldn't download stuff quite a while ago... a restrictive firewall setting at the server side caused problems with SVN & I introduced a workaround in fpcup for that, so a major cause for that should be fixed.
This could still happen, I suppose, but if the svn download reports an error, fpcup should abort.
If you have seen problematic svn downloads recently, could you confirm that, please? I might need to look into the possibility of further error detection.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 21, 2012, 08:52:11 am
Well finally everything downloaded and compiled without errors in debian i386, but no shorcut on desktop to lazarus_trunk.
Could you run fpcup --verbose --noconfirm > outputlog.txt for me to try again and paste outputlog.txt so I can try and see what's wrong? If you want to, you can also send it in a personal message.

Doesn't matter to me, opened terminal, changed to lazarus_trunk directory and started with ./startlazarus, tells me that i already have a config file for lazarus in .lazarus on home folder so i started lazarus again with --pcp parameter pointing to lazarus_trunk folder.
The pcp fpcup creates on my Debian Linux is ~/.config/lazarusdevsettings... try looking there.

and in compiler tab suggest me the old fpc compiler (the one i was using, in /usr/bin/fpc) but i want to use the new downloaded FPC so i point to
/home/multisistema/fpc/bin/i386-linux/fpc
Ok, you got very far.
The problem with fpc on Unix/Linux is that an already installed version of fpc can place fpc.cfg in /etc/, overruling the fpc.cfg you saw. Obviously, the /etc/fpc.cfg knows nothing about your newly installed version. While you could change /etc/fpc.cfg, you would need root rights for it and mess up your system wide fpc.
So ludob (and I) created a launcher script for fpc that forces only our own fpc.cfg to be used.
You will need to specify this as your fpc compiler; e.g. on my debian x64 system it is ~/fpc/bin/x86_64-linux/fpc.sh

Of course, fpcup does all this for you; I'd be very interesting in finding out the problem and fixing it for you/us.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ludob on April 21, 2012, 09:00:36 am
Well finally everything downloaded and compiled without errors in debian i386, but no shorcut on desktop to lazarus_trunk.
Could you run fpcup --verbose --noconfirm > outputlog.txt for me to try again and paste outputlog.txt so I can try and see what's wrong? If you want to, you can also send it in a personal message.
On Linux, fpcup does not create desktop icons but just shell scripts in the default directory or the directory specified. There is not one linux desktop but many incompatible desktops. Contributions for detecting the installed desktop(s) and adding icons are welcome  ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 21, 2012, 09:13:26 am
Oops, yes, forgot. Ludo is right, as usual.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 21, 2012, 01:54:12 pm
Latest trunk has a fix for fpcup failing on compiling tiopf on Linux. I had misspelt a tiopf*.lpk file... Linux is case-sensitive and couldn't find the file...

The problems should only occur when running fpcup on Windows when compiling the x64 LCL...
If on Windows, rather than using --cputarget=i386, you should probably use --skip=crosswin32-64 (see fpcup --help, in the list of all available modules)... see the bug report there...

Edit: FYI, if you build fpcup on Windows with the 64 bit compiler, IIRC, you should get a totally 64 bit environment, not 32.

Can build 32 bit lazarus in win 64 bits? I want to avoid 64 bits in all possible ways to run programs on old pc's
Just to clarify things:
fpcup x86 compiles x86 fpc+x64 cross compiler+x86 Lazarus+x64 LCL. You can use Lazarus to compile for 64 bit on 32 bit Windows.
You can disable the cross compiler/64 bit LCL with --skip=crosswin32-64 as mentioned above, for example if you want to work around problems in current trunk which I will have to fix sometime soon....

fpcup x64 requires 64 bit windows to run and will generate x64 compiler+x64 Lazarus.
You can quite easily run the 32 bit/x86 fpcup on x64 windows. In fact, I would recommend it, because there are several more database connectors available on x86.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 23, 2012, 11:01:16 pm
Well finally everything downloaded and compiled without errors in debian i386, but no shorcut on desktop to lazarus_trunk.
Could you run fpcup --verbose --noconfirm > outputlog.txt for me to try again and paste outputlog.txt so I can try and see what's wrong? If you want to, you can also send it in a personal message.
On Linux, fpcup does not create desktop icons but just shell scripts in the default directory or the directory specified. There is not one linux desktop but many incompatible desktops. Contributions for detecting the installed desktop(s) and adding icons are welcome  ;)

Where are the scripts? I cant find them neither in the lazarus generated folder or in the fpc generated folder of fpcup
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 24, 2012, 08:03:03 am
@calebs:
Have a look at the output fpcup generates before it asks you for confirmation (Lazarus shortcut name).
If that doesn't show paths, have a look in your user's home directory..
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 24, 2012, 07:49:42 pm
I have a strange situation in Lazarus
downloaded, compiled and launched as in attached log file
fcpup builds lazarus correctly: I can load and compile my existing projects
anyway if I add a button on a form and double click to get default event handler, I recevive follow error message on a dialog:
L'editor di componenti della classe "TDefaultComponentEditor" ha creato l'errore:
"Unable to find method. Please fix the error shown in the message window, which is normally below the source editor."

the IDE shows LCLClasses unit and, on messages windows, I found
/home/username/dev/lazfpc_trunk/lazarus/lcl/lclclasses.pp(32,10) Error: unit not found: Classes

I searched in this forum and I think I miss fpc sources.
Any idea to help me to fix?

thanks in advantage
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: calebs on April 24, 2012, 10:41:05 pm
@calebs:
Have a look at the output fpcup generates before it asks you for confirmation (Lazarus shortcut name).
If that doesn't show paths, have a look in your user's home directory..

Looks i need glasses... or look better... the shortcut was created but i didn't see it because it was called too like the folder...
er i give fpcup the order to install lazarus on lazarus_trunk and the script was called Lazarus-trunk (note the capital L).
It's working now... so long i've installed messagecomposer and lazreport and others components and all fine.
I'll tell you in a while how worked zeos

Greetings
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 25, 2012, 07:41:50 am
Ciao nomorelogic,

Hmmm. Strange. Noticed you're using the version where tiopf support was enabled in fpcup.ini (and referred to the wrong lpk).... but looking at the log, yes, your Lazarus compile seems to have worked ok.
I'd check if your paths are correct in Lazarus options (e.g. compiler pointing to the fpc.sh script mentioned earlier in this thread, source directory should be /home/username/dev/lazfpc_trunk/fpc in your case...)
Perhaps you could try again with the newest source code?

@calebs: no worries ;) Looking forward to hearing how you did with zeos. If you have any entries for fpcup.ini, let me know!

I'm working on getting support for adding packages from fpcup.ini (synapse, tiopf,...) to list of Lazarus packages....

Regards,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 25, 2012, 02:40:44 pm
I'd check if your paths are correct in Lazarus options (e.g. compiler pointing to the fpc.sh script mentioned earlier in this thread, source directory should be /home/username/dev/lazfpc_trunk/fpc in your case...)
Perhaps you could try again with the newest source code?

yes my source directory, teorically is: /home/username/dev/lazfpc_trunk/fpc
and this is the "ls -l" output

Code: [Select]
totale 124
-rw-r--r--   1 username username     0 2012-04-25 14:36 app.txt
drwxr-xr-x   3 username username  4096 2012-04-21 12:54 bin
-rw-r--r--   1 username username     6 2012-04-24 09:12 build-stamp.x86_64-linux
drwxr-xr-x  22 username username 12288 2012-04-24 09:10 compiler
drwxr-xr-x   6 username username  4096 2012-04-24 09:12 ide
drwxr-xr-x   4 username username  4096 2012-04-24 09:12 installer
drwxr-xr-x   3 username username  4096 2012-04-21 12:54 lib
-rw-r--r--   1 username username 65506 2012-04-21 12:51 Makefile
-rw-r--r--   1 username username  7032 2012-04-21 12:51 Makefile.fpc
drwxr-xr-x 117 username username  4096 2012-04-24 09:12 packages
drwxr-xr-x  51 username username  4096 2012-04-24 09:12 rtl
drwxr-xr-x   3 username username  4096 2012-04-21 12:54 share
drwxr-xr-x  11 username username  4096 2012-04-23 15:40 tests
lrwxrwxrwx   1 username username    55 2012-04-24 09:12 units -> /home/username/dev/lazfpc_trunk/fpc/lib/fpc/2.7.1/units
drwxr-xr-x  23 username username  4096 2012-04-24 09:11 utils

"units" is a link but no source found in destination...

I'll recompile a newest code and then I post the result
regards
nomorelogic
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 25, 2012, 11:47:06 pm
On Linux, fpcup does not create desktop icons but just shell scripts in the default directory or the directory specified. There is not one linux desktop but many incompatible desktops. Contributions for detecting the installed desktop(s) and adding icons are welcome  ;)

I use linuxmint 11 with gnome2
on this system (IMHO all gnome2 maybe gnome3) you can create a desktop icon using /usr/bin/xdg-desktop-icon

eg:
create a file called fpcup-lazarus_26.desktop and paste following content (for all options, use: xdg-desktop-icon --manual):
Code: [Select]
[Desktop Entry]
  Encoding=UTF-8
  Type=Application
  Exec=/home/username/dev/lazfpc_26/lazarus/lazarus --pcp="/home/username/.config/lazarusdevsettings"
  Name=Lazarus FPC26

note that command specifyed in "exec" is the launch script content generated by fcpup

now you can execute
Quote
xdg-desktop-icon install ./fpcup-lazarus_26.desktop

and a launch icon will appear on desktop

I think you can simply test xdg-desktop-icon presence in the same way you check unzip existence
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 26, 2012, 08:14:30 am
Grazie nomorelogic,

Just some questions to make sure (realize I could read the documentation as well but you probably know the answer right away):
Quote
create a file called fpcup-lazarus_26.desktop and paste following content
...
now you can execute
Quote
xdg-desktop-icon install ./fpcup-lazarus_26.desktop
... I suppose this fpcup-lazarus_26.desktop can be deleted after creating the desktop icon? If not, where is the normal location for these files?

Edit: tracking this as issue: https://bitbucket.org/reiniero/fpcup/issue/35/create-desktop-icons-shortcuts-on-linux (https://bitbucket.org/reiniero/fpcup/issue/35/create-desktop-icons-shortcuts-on-linux)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 26, 2012, 09:21:58 am
to be honest I assumed that you could safely delete the file, I googled around after your question but I haven't found an official answer: I'll try again.
However, in my case, the file (created in the same folder where I had launched fcpup) was deleted and the icon on the desktop still works.
Watching into desktop launcher properties there seem to be all the info needed to launch... IMHO it's a simple temporary input file.

Edit:
just a question: are you italian?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 26, 2012, 03:32:21 pm
Hi BigChimp I'm here again :D
this time for --primary-config-path option (used fpcup is compiled myself from source).

I need this option to build up my second lazarus/fpc environment compiled from trunk so, to avoid settings interferences, I use this option as

Code: [Select]
./fpcup --fpcdir=/home/username/dev/lazfpc_trunk/fpc --fpcURL=http://svn.freepascal.org/svn/fpc/trunk --fpcrevision=21031 --lazdir=/home/username/dev/lazfpc_trunk/lazarus --lazlinkname=lazarusfpc_trunk --primary-config-path=/home/username/.config/lazarusdevsettingstrunk --noconfirm --verbose >verbose.log

follow an extract of attached file verbose.log

Quote
Info: ERROR running /home/username/dev/lazfpc_trunk/lazarus/lazbuild "--pcp=/home/username/.config/lazarusdevsettingstrunk" "--build-ide="
Info: Error running fpcup. Technical details: error executing sequence USERIDE; line: 3, param: USERIDE
Info: Error running fpcup. Technical details: error executing sequence Default; line: 5, param: USERIDE
Info: ERROR running /home/username/dev/lazfpc_trunk/lazarus/lazbuild "--pcp=/home/username/.config/lazarusdevsettingstrunk" "--build-ide="
Info: Error running fpcup. Technical details: error executing sequence USERIDE; line: 3, param: USERIDE
Info: Error running fpcup. Technical details: error executing sequence Default; line: 5, param: USERIDE
Info: ERROR running /home/username/dev/lazfpc_trunk/lazarus/lazbuild "--pcp=/home/username/.config/lazarusdevsettingstrunk" "--build-ide="
Info: Error running fpcup. Technical details: error executing sequence USERIDE; line: 3, param: USERIDE
Info: Error running fpcup. Technical details: error executing sequence Default; line: 5, param: USERIDE

Is there something wrong at "--build-ide="?

thanks in advantage
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 26, 2012, 03:58:18 pm
@NoMoreLogic

Nope, I'm Dutch... just noticed your Italian log messages ;)

Re useride errors: there might be some problems with current or recent versions if your primary config path is empty. Try copying the contents of your existing config there and try again.
Meanwhile I'm investigating this issue.

Re deleting desktop file: yes, I would assume deleting is ok as well.

Also, ludob has implemented preliminary support for marking packages for installation.
Currently working on fpcup to fix some issues and perhaps let Lazarus rebuild after processing fpcup.ini so it builds your ide with the packages seleted in fpcup.ini... you might see some fixes coming in... or it may take longer due to bugs/real life ;)

Thanks for your bug reports, research and perseverance,

ciao,
BigChimp

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 27, 2012, 03:04:52 pm
Just updated fpcup sourcecode in bitbucket. Package compilation functionality via fpcup.ini can be tested.

Also, if fpcup (latest source code version) still fails on empty primary-config-path directories, please let me know.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 28, 2012, 10:40:47 am
I would suggest introducing two parameters (eg: --skip_fpc_svn and --skip_laz_svn) to avoid source downloading via svn.

this way I can prepare the folder (I'm referring to --fpcdir and --lazdir) downloading via ftp, svn or from a private local repository and proceed later to recompile everything with fcpup.

I think it can be very useful.
Edit: surely for me :D

thanks for attention
nomorelogic
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 28, 2012, 12:31:13 pm
Fixed the crash error in latest revision and Windows downloads.

--Edited to indicate why fpcup needs to set up its own fpc and Lazarus directories and why specifying --skip=fpc --only=lazarus on first checkout is a bad idea.--
Note: nomorelogic, this is in no way meant as an aggressive reaction towards your suggestions - you've always been very helpful and supportive - it's just that I wanted to let people know about the reasoning behind the way fpcup is set up and what you can do with it.

Linux/OSX downloads are should be unaffected as you must run both fpc and lazarus install (even if only with a fixed release SVN URL). Why? Because fpcup sets up its own fpc environment - needed because standard FPC on *nix doesn't support separation between system-wide and stand alone compiler.
(edited for clarity on why starting with a blank disk and --skip=fpc --only=lazarus is not a good idea)

@nomorelogic: have a look at --only=FPCBuildOnly,LazarusBuildOnly... haven't tested those in isolation though.

Also, you can copy over your fpc and lazarus directories, then use fpcup to check them out. IIRC, svn should recognize the files and not update files that are already up to date.

Finally, you can run --fpcrevision= .. to pin fpc to a certain svn revision; which means you will effectively not download newer versions. You can also use --fpcURL to specify a release revision instead of trunk or a fixes branch, which will also pin this revision down.
Likewise for Lazarus.

Of course, patches for more functionality are welcome... as long as that patch tests for proper functioning of the fpc compiler (and that the correct compiler is run - e.g. pay attention to any /etc/fpc.cfgs on *nix)... otherwise we'll get a lot more bug reports for.
I'm having a hard time seeing how using fpcup will help you if the options above are not good enough.
Of course, this is also a documentation issue, so any hints on how to improve fpcup documentation/command line switches are welcome.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on April 28, 2012, 05:30:21 pm
Also, if fpcup (latest source code version) still fails on empty primary-config-path directories, please let me know.

well, good news this time :)

fpcup compiled on 2012/04/28 11:00:30 with FPC 2.7.1 (source downloaded 2012-04-25: *not today*)
for CPU: x86_64 on Linux

primary-config-path works fine

there is still something strange on svn checkout, same as:
http://www.lazarus.freepascal.org/index.php/topic,15919.msg91340.html#msg91340 (http://www.lazarus.freepascal.org/index.php/topic,15919.msg91340.html#msg91340)
in other words, sometimes, all builds with success but launching lazarus... sources are missing  :o
fortunately easily solved launching fpcup again

Edit:
anyway, I have 3 separare and full working lazarus/freepascal installations :)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 29, 2012, 08:49:23 am
Ok nomorelogic, glad things are working ok... but very strange error.

So this is on svn checkout/the first fpcup run, not a subsequent run (svn update) right? IIRC, CaptBill described a similar problem.

In recent commits I did streamline the number of "make distclean" calls; that could perhaps fix the problem.. Perhaps you could try again with current trunk if it bothers you.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 07, 2012, 02:39:18 pm
I want to share my experiences using this installer on Win 7 64. I downloaded the 32 bits version of fpcup.

When I started I didn't have a previous Lazarus install and fpcup errored out while building module lhelp apparently because lazbuild can't find fpcsourcedirectory. Inspecting the settings directory after the error shows its empty.
After starting Lazarus it asks for me to set fpc compiler and fpc source directory and as far as I can see you don't set these values in the source code of fpcup which should probably be added in case these values are still empty.
Anyway starting Lazarus once fixed that problem at least for me.

After that I had some problems with svn. Seems svn has some problems especially for Lazarus as I had it stop prematurely several times with a notice that it was locked I needed to do svn cleanup, meaning fpcup retrying didn't help.
Next thing is that downloading modules from svn didn't work. My svn was downloaded by fpcup in a subdir of the fpcbootstrap dir and for modules you only look at the default locations but not there.
When I finally found the problem in the source I fixed it like this at the start of TInstaller.DownloadFromSVN:
Code: [Select]
  if not FileExists(FSVNClient.SvnExecutable) then
  begin
    if FSVNDirectory = '' then
      FSVNDirectory := IncludeTrailingPathDelimiter(FMakeDir) + 'svn' + DirectorySeparator;
    FindSVNSubDirs;
  end;

As a side note I do have svn installed but it's not in my path and not in a default location. A commandline parameter to set the location might be useful.

For the rest the only real problem I saw so far is that building the Lazarus lcl.chm fails with an exception.
Code: [Select]
(...)
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
exception at 004318B8:
Access violation.
276 Warnings hidden. Use --warnings to see them all.
Info: helplazarus: WARNING: E:\lazdev\lazarus\docs\html\lcl\lcl.chm was created but is empty. Lcl.chm may be out of date! Try running with --verbose to see build_lcl_docs error messages.

This is probably not a fpcup problem as the same thing happened when I tried running the batch file in the html directory.
That's all for now, keep up the good work :)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 07, 2012, 03:32:19 pm
Hi Jacobb,

Thanks for trying it & your feedback!

I want to share my experiences using this installer on Win 7 64. I downloaded the 32 bits version of fpcup.

When I started I didn't have a previous Lazarus install and fpcup errored out while building module lhelp apparently because lazbuild can't find fpcsourcedirectory. Inspecting the settings directory after the error shows its empty.
Ok. It probably errored out before it could create the primary config dir/settings directory.
I'll have a look at possible errors when doing a "bare metal" install.
You don't happen to have a log of the run right now? Is this repeatable/does fpcup work now?

After starting Lazarus it asks for me to set fpc compiler and fpc source directory and as far as I can see you don't set these values in the source code of fpcup which should probably be added in case these values are still empty.
No, those are set, but the error above didn't write the config so that's why you saw those Lazarus "where is fpc/where is the FPC source" dialogs.
See function TLazarusInstaller.ConfigModule(ModuleName:string): boolean; in installerlazarus.pas, e.g.:
Code: [Select]
      // FInstalledCompiler could be something like c:\bla\ppc386.exe, e.g.
      // the platform specific compiler. In order to be able to cross compile
      // we'd rather use fpc
      LazarusConfig.SetVariable(EnvironmentConfig,'EnvironmentOptions/CompilerFilename/Value',ExtractFilePath(FCompiler)+'fpc'+GetExeExt);
...
      // Source dir in stock Lazarus on windows is something like
      // $(LazarusDir)fpc\$(FPCVer)\source\
      LazarusConfig.SetVariable(EnvironmentConfig,'EnvironmentOptions/FPCSourceDirectory/Value',FFPCDir);

After that I had some problems with svn. Seems svn has some problems especially for Lazarus as I had it stop prematurely several times with a notice that it was locked I needed to do svn cleanup, meaning fpcup retrying didn't help.
Ok. You might need to upgrade your svn client. Could you confirm which svn client you were using at that time? Your own (which) or the one fpcup downloads?

Next thing is that downloading modules from svn didn't work. My svn was downloaded by fpcup in a subdir of the fpcbootstrap dir and for modules you only look at the default locations but not there.
If you are talking about downloading external modules/repositories using svn: that should end up under your fpc source dir.
Please make sure the fpcbootstrap dir is not in/under your fpc source dir to avoid possible downloading/overwriting of executables.
This may be the reason why fpcup failed earlier but I don't know.

On the other hand if you are talking about downloading the svn executable, yes, it is meant to go there and has worked before, so that must be a regression.

When I finally found the problem in the source I fixed it like this at the start of TInstaller.DownloadFromSVN:
Code: [Select]
  if not FileExists(FSVNClient.SvnExecutable) then
  begin
    if FSVNDirectory = '' then
      FSVNDirectory := IncludeTrailingPathDelimiter(FMakeDir) + 'svn' + DirectorySeparator;
    FindSVNSubDirs;
  end;
Mmmm. TInstaller.DownloadSVN in installercore.pas downloads the svn executable. It calls FindSVNSubdirs which sets the client.

On starting, TInstaller.CheckAndGetNeededExecutables also does this:
Code: [Select]
    // Try to look for SVN
    if FSVNClient.FindSVNExecutable = '' then
    begin
      {$IFDEF MSWINDOWS}
      // Make sure we have a sensible default.
      // Set it here so multiple calls will not redownload SVN all the time
      if FSVNDirectory = '' then
        FSVNDirectory := IncludeTrailingPathDelimiter(FMakeDir) + 'svn' + DirectorySeparator;
      {$ENDIF MSWINDOWS}
      // Look in or below FSVNDirectory; will set FSVNClient.SVNExecutable
      FindSVNSubDirs;
      {$IFDEF MSWINDOWS}
      // If it still can't be found, download it
      if FSVNClient.SVNExecutable = '' then
      begin
        infoln('Going to download SVN',info);
        // Download will look in and below FSVNDirectory
        // and set FSVNClient.SVNExecutable if succesful
        OperationSucceeded := DownloadSVN;
      end;
... so it should detect an svn.exe that was downloaded earlier.
I just tightened up the check for the svn client in the source (revision e4e6c6234e65); if fpcup downloads it but fails to find svn.exe in the directory it will report failure

As a side note I do have svn installed but it's not in my path and not in a default location. A commandline parameter to set the location might be useful.
Point taken; however, this is probably a niche use case - not that I'd refuse a patch ;)

For the rest the only real problem I saw so far is that building the Lazarus lcl.chm fails with an exception.
Code: [Select]
(...)
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
exception at 004318B8:
Access violation.
276 Warnings hidden. Use --warnings to see them all.
Info: helplazarus: WARNING: E:\lazdev\lazarus\docs\html\lcl\lcl.chm was created but is empty. Lcl.chm may be out of date! Try running with --verbose to see build_lcl_docs error messages.
You're probably building with FPC 2.6.1? The fpdoc.exe created by that version is pretty broken. fpcup uses a/the lazarus documentation tool which in turn runs fpdoc.
So nothing fpcup can do about that (note: running the 64 bit version may be better, copying/pasting an FPC trunk version may also work).
Unless somebody wants to get the devs to backport the new trunk fpdoc that is ;)

Thanks a lot for your comprehensive investigating & reporting
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: marcov on May 07, 2012, 05:41:30 pm
Trunk doesn't really generate quality chms. It stumbles on certain range expressions.

To my knowledge the fixes branch version was ok? What's the matter with?

When in doubt, revert to trunk r19903, which is afaik the one used for the release.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 07, 2012, 09:18:28 pm
@Marco, sometimes (in the last months) when fpc run <lazdir>/docs/html/build_lcl_docs.exe to generate a chm file, a 0 byte lcl.chm would be generated, or build_lcl_docs.exe/fpdoc would crash.

It can also take a long while to generate the lcl.chm (on Windows x86 and Linux x64; Linux x86 was fast).

FPC trunk's fpdoc seems to work much faster and crash less often (of course, it was patched a fair bit).

Just checked how things are working now by running the build_chm.bat file, which worked, and fpcup.. which gives a 0 byte lcl.chm
fpcup uses the --fpdoc= parameter to build-lcl instead of setting the path, and also asks build_lcl_docs/fpdoc to generate cross references to the rtl etc documentation.
It runs build_lcl_docs using TProcess:
Code: [Select]
      // Compile Lazarus LCL CHM help
      ProcessEx.Executable := FTargetDirectory+'build_lcl_docs'+GetExeExt;
      // Make sure directory switched to that of build_lcl_docs,
      // otherwise paths to source files will not work.
      ProcessEx.CurrentDirectory:=FTargetDirectory;
      ProcessEx.Parameters.Clear;
      // Instruct build_lcl_docs to cross-reference FPC documentation by specifying
      // the directory that contains the fcl and rtl .xct files:
      ProcessEx.Parameters.Add('--fpcdocs');
      ProcessEx.Parameters.Add(FTargetDirectory);
      // Let build_lcl_docs know which fpdoc application to use:
      ProcessEx.Parameters.Add('--fpdoc');
      { Use the fpdoc in ./utils/fpdoc/, as the compiler directory
      can be different between Unix+Windows }
      ProcessEx.Parameters.Add(IncludeTrailingPathDelimiter(FFPCDirectory)+
      'utils'+DirectorySeparator+
      'fpdoc'+DirectorySeparator+
      'fpdoc'+GetExeExt);
      ProcessEx.Parameters.Add('--outfmt');
      ProcessEx.Parameters.Add('chm');
      // Show application output if desired:
      if FVerbose then ProcessEx.OnOutput:=@DumpConsole;
      infoln(ModuleName+': compiling chm help docs:',info);
      { The CHM file gets output into <lazarusdir>/docs/html/lcl/lcl.chm
      Though that may work when adjusting the baseurl option in Lazarus for each
      CHM file, it's easier to move them to <lazarusdir>/docs/html,
      which is also suggested by the wiki.
      The generated .xct file is an index file for fpdoc cross file links,
      used if you want to link to the chm from other chms.}
      ProcessEx.Execute;
      if ProcessEx.ExitStatus <> 0 then
        OperationSucceeded := False;

If I emulate that from the command prompt:
Code: [Select]
cd /d C:\Development\lazarus\docs\html
C:\development\lazarus\docs\html\build_lcl_docs.exe --fpcdocs C:\development\lazarus\docs\html\ --fpdoc C:\development\fpc\utils\fpdoc\fpdoc.exe --outfmt chm
... surprisingly it works.

Perhaps it's my fault after all - or the moon phase, or something else?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 07, 2012, 11:02:30 pm
Ok. It probably errored out before it could create the primary config dir/settings directory.
I'll have a look at possible errors when doing a "bare metal" install.
You don't happen to have a log of the run right now? Is this repeatable/does fpcup work now?

Yes it is repeatable. I did a new testrun after building your latest source.
Code: [Select]
fpcup --lazdir=e:\lazdev\laztest --fpcdir=e:\lazdev\fpctest --binutilsdir=e:\lazdev\boottest --fpcbootstrapdir=e:\lazdev\boottest --fpcuplinkname= --lazlinkname= --primary-config-path=e:\lazdev\testsettings --verbose --noconfirm >fpcuptest.log
And saw that I forgot to mention 1 other problem I encountered:
Code: [Select]
E:\lazdev\boottest\make.exe: Leaving directory `E:/lazdev/fpctest'
ERROR: Error copying binutils: Unable to open file "E:\lazdev\boottestGoRC.exe"
Info: Error running fpcup. Technical details: error executing sequence fpc; line: 4, param: FPC
Info: Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 3, param: fpc
FPCUp failed.

Which I fixed in installerFpc line 308 by adding a backslash to FMakeDir:
Code: [Select]
        FileUtil.CopyFile(IncludeTrailingBackslash(FMakeDir)+FBinUtils[FileCounter], IncludeTrailingBackslash(BinPath)+FBinUtils[FileCounter]);

Next did a second run (but didn't empty the directories) and stops here:
Code: [Select]
Info: Getting module lhelp
Info: TUniversalInstaller: building module lhelp...

Info: TUniversalInstaller: building module lhelp using InstallExecute Name=lhelp
Enabled=1
Workingdir=$(lazarusdir)/components/chmhelp/lhelp
InstallExecute1=$(lazarusdir)/lazbuild --primary-config-path=$(LazarusPrimaryConfigPath) $(lazarusdir)/components/chmhelp/lhelp/lhelp.lpr
RegisterHelpViewer=$(Workingdir)/$(name)

Executing : E:\lazdev\laztest\lazbuild "--primary-config-path=e:\lazdev\testsettings" "E:\lazdev\laztest\components\chmhelp\lhelp\lhelp.lpr" (working dir: E:\lazdev\laztest\components\chmhelp\lhelp)
SetPrimaryConfigPath NewValue="e:\lazdev\testsettings" -> "E:\lazdev\testsettings"
primary config path: E:\lazdev\testsettings\
Error: invalid Lazarus directory "": directory lcl not found
Failed building E:\lazdev\laztest\components\chmhelp\lhelp\lhelp.lpr
Info: Error running fpcup. Technical details: error executing sequence lhelp; line: 4, param: lhelp
Info: Error running fpcup. Technical details: error executing sequence helplazarus; line: 3, param: lhelp
Info: Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 6, param: helplazarus
FPCUp failed.

Thus apparently the settings didn't get added (directory testsettings is empty).

Ok. You might need to upgrade your svn client. Could you confirm which svn client you were using at that time? Your own (which) or the one fpcup downloads?

I used the one downloaded by fpcup but my own is also version 1.7.3.

You're probably building with FPC 2.6.1? The fpdoc.exe created by that version is pretty broken. fpcup uses a/the lazarus documentation tool which in turn runs fpdoc.
So nothing fpcup can do about that (note: running the 64 bit version may be better, copying/pasting an FPC trunk version may also work).

I looked at the 64 bit build I did before too and seems that that one managed to compile lcl.chm.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 08, 2012, 08:04:29 am
Ok, thanks. Corrected installerfpc line 308
Prepared a new download.

Your command line options look ok.
lhelp failing is as you say a symptom of the settings dir not being created. The fact fpcup couldn't pick up the downloaded svn exe earlier also points at something going wrong earlier.
If you run with the new version could you run with --verbose --noconfirm > log.txt as you did last time and attach/PM the entire log?

Thanks.

As for the docs not being created: it might be some kind of timeout in TProcessEx.Execute, but I'm having trouble spotting the problem...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 08, 2012, 04:20:05 pm
lhelp failing is as you say a symptom of the settings dir not being created. The fact fpcup couldn't pick up the downloaded svn exe earlier also points at something going wrong earlier.
If you run with the new version could you run with --verbose --noconfirm > log.txt as you did last time and attach/PM the entire log?

Haven't updated yet but I think I found the problem last night (was too late to write a reply lol).
In installerLazarus in the sequences for standard lazarus you add Configmodule lazarus; in 2 places. However in the standard bigide build those are missing while this is the sequence that's triggered for me with my settings. Adding Configmodule lazarus; in the same places as for standard lazarus caused the config file to be written.

Edit: Forgot to say I also added  WriteConfig; in TUpdateLazConfig.Destroy; As I tried that before the above mentioned fix I'm not sure it is needed but I didn't see WriteConfig used anywhere else.

That run however stopped again at svn not being found for module fpdocs (same problem as in my first message). For some reason the svn file or directory name must have been reset before that. I can ofcourse fix that the same way I did before but it's probably better to find out why it happens.
If you still need the complete log of the old situation let me know. Here is the last part of the log with the current error:

Code: [Select]
Info: Getting module fpcdocs
Executing : info "E:\lazdev\fpctest\..\extras\fpcdocs" (working dir: )
Executing : status "--depth" "infinity" "E:\lazdev\fpctest\..\extras\fpcdocs" (working dir: )
Executing : info "E:\lazdev\fpctest\..\extras\fpcdocs" (working dir: )
Info: ERROR: repository URL in local directory and remote repository don't match.
Info: Local directory: E:\lazdev\fpctest\..\extras\fpcdocs
Info: Have you specified the wrong directory or a directory with an old SVN checkout?
Info: Error running fpcup. Technical details: error executing sequence FPCDOCS; line: 3, param: fpcdocs
Info: Error running fpcup. Technical details: error executing sequence UniversalDefault; line: 5, param: FPCDOCS
Info: Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 9, param: UniversalDefault
FPCUp failed.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 08, 2012, 04:57:31 pm
Thanks.

Re configlazarus: yes, it seems you're right. Added ConfigModule lazarus to sequences bigide and lazbuild (that gets called by useride).
Sorry, this code path is not much tested as I infrequently do "bare metal" tests.
Updated the source code (commit d3ddaa638403). Meanwhile, Ludo had also included some fixes there...

WriteConfig: yes, it doesn't seem to be used. However, the Save procedure is called if the config was changed, which should cover it.

The errors in the log do not indicate svn.exe is not being found.
"repository URL in local directory and remote repository don't match"=> E:\lazdev\fpctest\..\extras\fpcdocs is a repository with a source URL that is different to the one Fpcup is trying to download from.
Perhaps this can also be caused due to a corrupted svn download or something.
Try running svn info (IIRC) and see if the URLs match.
Otherwise, move out/delete the contents of that dir and try again.

Thanks for your perseverance!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 08, 2012, 11:56:34 pm
The errors in the log do not indicate svn.exe is not being found.
"repository URL in local directory and remote repository don't match"=> E:\lazdev\fpctest\..\extras\fpcdocs is a repository with a source URL that is different to the one Fpcup is trying to download from.
Perhaps this can also be caused due to a corrupted svn download or something.

Setting a breakpoint in Tsvnclient.LocalRepositoryExists on ExecuteCommand shows that at that time of doing fpdocs SVNExecutable is '' (empty). While before that it had the normal path. Then on return from the Execute it returns -2 in the error which is the same as what it also returns in case of the differing urls.
Note that shortly before I got to this breakpoint the debugger popped up twice also with the message that it couldn't execute command but I let it continue. It's too late now to look at that now or get the new code now, I'll see if I can look at it tomorrow.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 09, 2012, 07:50:08 am
Ok. Please post the complete log if you can; perhaps there are errors earlier on or conditions that other fpcup users don't have, which may trigger bugs in the code.

Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 09, 2012, 12:33:09 pm
I think I found the problem.
In TUniversalInstaller.InitModule the line that does CheckAndGetNeededExecutables is commented out but that's where the svn downloaded by fpcup is set.

Edit: With that line uncommented the installer finishes without errors.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 09, 2012, 02:30:36 pm
We just changed that line in the source today.

I'm still wondering though, it only masks the problem as the executable positions etc should be set before and be remembered. There must be something else going on in your case.
Could you post your fpcup command line - are you running all sequences (fpc, lazarus etc) or are you limiting it to e.g. only external modules using the universal installer?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 09, 2012, 03:18:43 pm
If I don't get any logs, I'll test myself ;)

Posting my own results for a bare metal install on Windows 2000 with a recent fpcup.

Shows issues with downloading via SVN as reported by others.
Code: [Select]
svn: E155004: Working copy 'D:\development\lazarus' locked.
svn: E155004: 'D:\development\lazarus' is already locked.
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
Perhaps we should check for E155004 in the output when running CheckOutOrUpdate and then try running
Code: [Select]
svn cleanup
svn update
[code]
.. instead of checkout which doesn't help...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 09, 2012, 06:39:40 pm
Things are going from bad to worse, now starting to reply to my own messages ;)

Committed a workaround for the "SVN E155004: Working copy locked." messages during both checkout and download. Just tested it on my Win2K test machine and fpcup completed, giving a working Lazarus compiler.

Perhaps those problems were due to a buggy svn client that fpcup downloads. If anybody has any suggestions for a free, stable svn client that fpcup can download and "install"/extract easily, which also works from Win2K onward (so no .msi file, preferably no setup.exe but a .zip), I'm all ears.

Also, for some weird reason, compiling lcl.chm help started working again for me with current Lazarus and fixes 2.6.. didn't see any obvious changes in the svn logs though..
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 09, 2012, 11:35:22 pm
No time to do a testrun tonight, I'll see about tomorrow.

One of the points I put a breakpoint on was Tsvnclient.Create and I think it's called for all modules and sets the svn executable to '' and then looks in the default locations but ofcourse not the one where fpcup downloads svn.

Might the svn lock not just be because the server is a bit flaky especially on a large repository like lazarus. The svn I have in mingw/bin is apparently from the same location as the one you download.

My commandline is still the same as before:
Code: [Select]
fpcup --lazdir=e:\lazdev\laztest --fpcdir=e:\lazdev\fpctest --binutilsdir=e:\lazdev\boottest --fpcbootstrapdir=e:\lazdev\boottest --fpcuplinkname= --lazlinkname= --primary-config-path=e:\lazdev\testsettings --verbose --noconfirm >fpcuptest.log
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 10, 2012, 07:28:23 am
No time to do a testrun tonight, I'll see about tomorrow.
No hurry...

One of the points I put a breakpoint on was Tsvnclient.Create and I think it's called for all modules and sets the svn executable to '' and then looks in the default locations but ofcourse not the one where fpcup downloads svn.
Yes, but IIRC the manager object should remember the correct svn client location and set the TSVNClient.SVNexe (or similar) property when initializing th install modules. So unless an error occurs, the svn client location is passed on.
If an error occurs (even though fpcup seems to recover from it), it doesn't. I think that's what happened in your case.

Might the svn lock not just be because the server is a bit flaky especially on a large repository like lazarus. The svn I have in mingw/bin is apparently from the same location as the one you download.
Yes, I think it might be a bit flaky. Still, that won't be a good excuse for my demanding user base ;)
I noticed there were some bugs in older svn clients, so perhaps it could also be the interaction between cleint and server.

My commandline is still the same as before:
Code: [Select]
fpcup --lazdir=e:\lazdev\laztest --fpcdir=e:\lazdev\fpctest --binutilsdir=e:\lazdev\boottest --fpcbootstrapdir=e:\lazdev\boottest --fpcuplinkname= --lazlinkname= --primary-config-path=e:\lazdev\testsettings --verbose --noconfirm >fpcuptest.log
Ok. Fair enough, but could you post fpcuptest.log next time, please?
That'll help look for errors/bugs...

Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 10, 2012, 02:34:07 pm
Ok. Fair enough, but could you post fpcuptest.log next time, please?
That'll help look for errors/bugs...

Downloaded the latest version of fpcup from today and deleted all directories except the one with binutils (boottest), however I did delete the svn subdir there. Ran fpcuptest.bat and it finished without errors (except lcl.chm being empty).
Still for reference I attached the logs.

Thanks for all the work on it :)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 10, 2012, 03:29:53 pm
 :D :D :D

Thanks a lot, also for including the log file!
Still irritated by that pesky lcl.chm... last night it was generated beautifully here... and before that, it wasn't, either.
Going to fiddle with it some more...

Ah, this part in your log gives a clue: fpdoc.exe, is giving an access violation (or perhaps build_lcl_docs when it gets control back from fpdoc.exe, who knows):
Code: [Select]
Executing : E:\lazdev\laztest\docs\html\build_lcl_docs.exe "--fpcdocs" "E:\lazdev\laztest\docs\html\" "--fpdoc" "E:\lazdev\fpctest\utils\fpdoc\fpdoc.exe" "--outfmt" "chm" (working dir: E:\lazdev\laztest\docs\html\)
FPDoc - Free Pascal Documentation Tool
Version 2.6.1 [2012/05/10]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, sg@freepascal.org

Writing 20077 pages...
Warning: Target ID of <link> is unknown: "#LCL.Forms.Menus.TGlyphShowMode"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TCollectionItem.GetDisplayName"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TCollectionItem.SetIndex"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TPersistent.GetOwner"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TStrings.Get"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TStrings.GetObject"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TStrings.Put"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TStrings.PutObject"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TStrings.SetUpdateState"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TPersistent.DefineProperties"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TCollectionItem.SetIndex"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TCollectionItem.GetDisplayName"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TCollection.Update"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TBasicActionLink.AssignClient"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TPersistent.AssignTo"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TPersistent.GetOwner"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.DefineProperties"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TPersistent.DefineProperties"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TPersistent.AssignTo"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.Notification"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.Notification"
Warning: Target ID of <link> is unknown: "TLazAccessibleRole"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.GetChildren"
Warning: Target ID of <link> is unknown: "#fcl.db.TDataLink.RecordChanged"
Warning: Target ID of <link> is unknown: "#fcl.db.TDataLink.DataSetChanged"
Warning: Target ID of <link> is unknown: "#fcl.db.TDataLink.ActiveChanged"
Warning: Target ID of <link> is unknown: "#fcl.db.TDataLink.LayoutChanged"
Warning: Target ID of <link> is unknown: "#fcl.db.TDataLink.DataSetScrolled"
Warning: Target ID of <link> is unknown: "#fcl.db.TDataLink.EditingChanged"
Warning: Target ID of <link> is unknown: "#fcl.db.TDataLink.UpdateData"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TCollectionItem.GetDisplayName"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TCollection.Update"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.Loaded"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.DefineProperties"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.GetChildren"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.Notification"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.GetChildren"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.Loaded"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TComponent.Notification"
Warning: Target ID of <link> is unknown: "#LCL.Forms.Menus.TGlyphShowMode"
[#lcl.Forms.RequireDerivedFormResource] Invalid description (illegal XML element: "#text")
[#lcl.Forms.RequireDerivedFormResource] Invalid description (illegal XML element: "#text")
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.Changed"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.DoAllocateResources"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.DoCopyProps"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.DoDeAllocateResources"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.SetFlags"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.SetFPColor"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomFont.SetName"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomFont.SetSize"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.DoAllocateResources"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.DoDeAllocateResources"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCanvasHelper.DoCopyProps"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TPersistent.DefineProperties"
Warning: Target ID of <link> is unknown: "#rtl.Classes.TPersistent.AssignTo"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoCreateDefaultFont"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoCreateDefaultPen"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoCreateDefaultBrush"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.SetColor"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.GetColor"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.SetHeight"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.GetHeight"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.SetWidth"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.GetWidth"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.SetPenPos"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoLockCanvas"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoUnlockCanvas"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoTextOut"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoGetTextSize"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoGetTextHeight"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoGetTextWidth"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoRectangle"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoRectangleFill"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoRectangleAndFill"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoEllipse"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoEllipseFill"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoEllipseAndFill"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoPolygon"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoPolygonFill"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoPolygonAndFill"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoPolyline"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoFloodFill"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoMoveTo"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoLineTo"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoLine"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoCopyRect"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.DoDraw"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.CheckHelper"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.GetClipRect"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.CreateBrush"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.CreatePen"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Create"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Destroy"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.CopyRect"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Draw"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.StretchDraw"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Ellipse"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.FloodFill"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.TextOut"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Brush"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Font"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Height"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Pen"
Warning: Target ID of <link> is unknown: "#fcl.FPCanvas.TFPCustomCanvas.Width"
Warning: Target ID of <link> is unknown: "#lcl.Forms.TCustomForm.Width"
Warning: Target ID of <link> is unknown: "#lcl.Forms.TCustomForm.Height"
Warning: Target ID of <link> is unknown: "#lcl.Forms.TCustomForm.Width"
Warning: Target ID of <link> is unknown: "#lcl.Forms.TCustomForm.Height"
Warning: Target ID of <link> is unknown: "#lcl.Forms.TCustomForm.ClientWidth"
Warning: Target ID of <link> is unknown: "#lcl.Forms.TCustomForm.ClientHeight"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
exception at 004318B8:
Access violation.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 10, 2012, 04:13:59 pm
Uploaded patch to keep build_lcl_docs from crashing and to output meaningful error messages. Won't fix the problems with not creating lcl.chm but at least it will give a clearer indication of what's wrong...
http://bugs.freepascal.org/view.php?id=22000 (http://bugs.freepascal.org/view.php?id=22000)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 11, 2012, 12:04:53 pm
Just a small remark about the Readme.
The link to the forum topic doesn't work and the bitbucket issue tracker says I don't have access to that.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 11, 2012, 12:40:32 pm
Forum link works for me?? I get "Simple FPC/Lazarus SVN downloader WIP - suggestions?"

Re bugtracker: you probably need to register.. Edit: found you can switch the issue tracker to public. Did that. Let's see how that goes...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: jacobb on May 11, 2012, 09:48:01 pm
Tracker is visible now and when copying the link to forum that worked too.
Previously for the forum I clicked the link shown in the Readme on bitbucket and apparently they escape the , in the link which makes the link fail.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: lainz on May 21, 2012, 03:09:38 am
Hi, i've downloaded both fpcup and fpcup64,

how I can get crosscompiler lazarus for windows x86 and x64 with this tool?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 21, 2012, 07:20:57 am
win32=>win64 crosscompiler is built in in the Windows x86 fpcup; for the rest, additional modules for fpcup need to be built (that check the proper binutils are there etc... see the readme and fpcup.html)...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: lainz on May 22, 2012, 05:29:18 am
Thanks.  :)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 02, 2012, 09:09:39 pm
The latest source code commits now use the recently introduced lazbuild --add-package functionality, which should make selecting and installing packages (e.g. those specified in fpcup.ini) more reliable.

Also made svn functionality more resilient: it keeps trying to run svn update until it receives no more files. Also runs svn update after initial checkout.
The effect is that the problems with partial repositories that some users reported (and I could replicate on a clean Win2K machine) should be fixed now.
If not, please let me know ;)

Uploaded new win32 version; sorry, the other versions are still the old ones; you can compile from source if you want to.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 03, 2012, 01:43:16 pm
Uploaded new win64 version; win32 version was also new.
Linux, OSX: please compile your own...

Thanks to all users who reported issues... and helped make fpcup better!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: tomek on June 05, 2012, 09:23:29 pm
I've some problems on Windows 7 64bit, output:
Code: [Select]
TFPCInstaller init:
Bootstrap compiler dir: C:\development\fpcbootstrap\
FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
FPC options:           
FPC directory:          C:\development\fpc
Make/binutils path:     C:\development\fpcbootstrap\
External program path:  C:\development\fpcbootstrap\;C:\development\fpcbootstrap\;C:\development\fpcbootstrap\svn\;C:\development\fpc\utils;C:\development\fpc\bin\x86_64-win64
External program path:  C:\developmenError running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
Error running fpcup. Technical details: error executing sequence Default; line: 2, param: fpc
2012-06-05 21:19:31: fpcup finished.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 06, 2012, 12:21:49 am
Thanks tomek. You might run with the --verbose switch and capture the output and the fpcup.log. Helps in troubleshooting.

That said, x64 FPCUP (compiling FPC trunk) isn't working for me either... I'm looking into it and will get back...

Code: [Select]
C:/development/fpcbootstrap64/make.exe -C compiler exampleinstall
make.exe[4]: Entering directory `C:/development/fpctrunk/ide/compiler'
make.exe[4]: Nothing to be done for `exampleinstall'.
make.exe[4]: Leaving directory `C:/development/fpctrunk/ide/compiler'
make.exe[3]: Leaving directory `C:/development/fpctrunk/ide'
make.exe[2]: Leaving directory `C:/development/fpctrunk'
make.exe[1]: Leaving directory `C:/development/fpctrunk'
C:\development\fpcbootstrap64\make.exe: Leaving directory `C:/development/fpctrunk'
Info: Error running fpcup. Technical details: error executing sequence fpc; line
: 5, param: FPC
Info: Error running fpcup. Technical details: error executing sequence Default;
line: 2, param: fpc
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 06, 2012, 09:55:07 am
I don't know why x64 windows fpcup (with is bombing on the fpc compilation. Perhaps an error in the sources (it does happen). If that is the case, specifying a specific (earlier) SVN revision will fix it.

Edit: note: only now remembered you're compiling FPC fixes 2.6, while I'm compiling FPC trunk. This would point at an error in FPCup, not the compiler sources.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: tomek on June 06, 2012, 01:40:31 pm
I get error:
Code: [Select]
LibGDB not found
LIBGDBFILE=
when build fpc, (make all)
That error occure when compiler start building FPC-IDE, if I build only compiler (make compiler_cycle) then it's ok
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 06, 2012, 01:48:21 pm
Ok, I'll look into whether gdb is downloaded etc... thanks for the investigation!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ludob on June 06, 2012, 01:50:31 pm
I get error:
Code: [Select]
LibGDB not found
LIBGDBFILE=
when build fpc, (make all)
That error occure when compiler start building FPC-IDE, if I build only compiler (make compiler_cycle) then it's ok
That is not an error. That just means FPC-IDE won't have an internal debugger. The normal build process will just continue. In case fpcup fails, you should have gotten another error message further down.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 07, 2012, 02:49:05 pm
New fpcup x64 Windows binary uploaded which seems to fix some errors. You might want to try again.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: tomek on June 08, 2012, 08:05:27 pm
New fpcup x64 Windows binary uploaded which seems to fix some errors. You might want to try again.

yep, with new fpcu64 everything ok  :)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: kenpem on June 11, 2012, 05:01:16 pm
I'm quite certain it's my own brain-failure, but when trying to override the FPC version, I can't get it to work...

Quote
C:\xxx>fpcup64.exe --fpcURL=http://svn.freepascal.org/svn/fpc/trunk

fpcup
An FPC/Lazarus downloader/updater/installer
Open source freeware (modified LGPL/BSD), see:
https://bitbucket.org/reiniero/fpcup

This program will download the FPC and Lazarus sources
from the source Subversion/SVN repositories,
compile, and install.
Result: you get a fresh, up-to-date Lazarus/FPC installation.
fpcup compiled on 2012/06/07 12:58:40 with FPC 2.6.0
for CPU: x86_64 on Win64
Info: 11/06/2012 15:54:25: fpcup started.

Options:
Binutils/make dir:      C:\development\fpcbootstrap\
Bootstrap compiler dir: C:\development\fpcbootstrap\
Lazarus shortcut name:  Lazarus_trunk
Shortcut fpcup name:    fpcup_update
FPC URL:                http://svn.freepascal.org/svn/fpc/trunk
FPC options:
FPC directory:          C:\development\fpc
Lazarus directory:      C:\development\lazarus
Lazarus primary config path:
(Lazarus settings path) C:\Users\kp\AppData\Local\lazarusdevsettings
Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
Lazarus options:
Keep local changes:     no
Parameter list:         --fpcURL="http://svn.freepascal.org/svn/fpc/trunk"
Make/binutils path:     C:\development\fpcbootstrap\



Continue (Y/n):
Info: C:\development\fpcbootstrap\ppcx64.exe is not a valid ppcx64.exe applicati
on. ppcx64.exe exists but shows no (Free Pascal Compiler) in its output.
Info: Make path C:\development\fpcbootstrap\ doesn't have binutils. Going to dow
nload binutils.
Info: Downloading: GoRC.exe into C:\development\fpcbootstrap\
Info: Going to download C:\development\fpcbootstrap\GoRC.exe from URL: http://sv
n.freepascal.org/svn/fpcbuild/tags/release_2_6_0/install/binw32/GoRC.exe
everything still seems to be looking at release_2_6_0. What did I get wrong?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: kenpem on June 11, 2012, 05:06:35 pm
A little more info...
Quote
C:\development\fpcbootstrap\ppcx64.exe is not a valid ppcx64.exe application. ppcx64.exe exists but shows no (Free Pascal Compiler) in its output.
C:\development\fpcbootstrap\ppcx64.exe does not exist.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ludob on June 11, 2012, 05:10:42 pm
Quote
fpcup compiled on 2012/06/07 12:58:40 with FPC 2.6.0
...
pcbuild/tags/release_2_6_0/install/binw32/GoRC.exe
That means fpcup was build with 2.6.0.
Next it will download a 2.6.0 bootstrap compiler and the corresponding binutils. The trunk versions of fpc and lazarus are only "guaranteed" to compile with the latest release version of fpc (2.6.0) or itself. Reason why everything starts with a 2.6.0 bootstrap environment.
Quote
C:\development\fpcbootstrap\ppcx64.exe does not exist
That is normal. There is no ppcx64 bootstrap compiler that can be downloaded for windows. Only a 32 bit version. The first thing fpcup does is to build one. If a previous execution of fpcup has already build one, it is re-used.
The message can probably be improved.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: kenpem on June 11, 2012, 05:14:28 pm
ahh OK, it all starts to make sense... in other words, grab a cuppa and take a smoke-break?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 11, 2012, 05:21:25 pm
Yep ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ludob on June 11, 2012, 05:21:35 pm
ahh OK, it all starts to make sense... in other words, grab a cuppa and take a smoke-break?
Or 2 cuppa's  ;)
Fpcup downloads 32 bit bootstrap compiler and binutils, builds 64 bit bootstrap compiler, downloads fpc sources, builds compiler, downloads lazarus sources, builds lazarus.  Run with --verbose if you prefer some movement on your screen.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 11, 2012, 05:23:57 pm
Don't forget it downloads/builds the documentation, Ludo ;) ....
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: kenpem on June 11, 2012, 05:25:01 pm
would I be better off just downloading a trunk FPC binary set and pointing my existing Laz at it? Or is it not that simple?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 11, 2012, 05:27:20 pm
Nah. This just takes some time. fpcup's design trades time for the ability to run on many systems (even without svn installed in the case of windows) and modularity (you can e.g. add a cross compiler module that will keep your cross compiler up to date, or specify some svn repositories that you want to let fpcup keep up to date and compile/install Lazarus packages when done).

Once you've got the initial setup going, you can shave off time by omitting some parts of the run (see fpcup --help).
Also, e.g. the documentation build takes a long time, but it is only built once per day, so the second run should go faster.

Fpcup is using svn to checkout fpc+Lazarus, then builds them.
On windows, it only adds to these building blocks.

On Linux/OSX we had to pull some tricks in order to enable strict separation between a system wide installed compiler (e.g. in /bin) and the fpcup one, typically in a user's home directory ~/fpc

So on windows, you can do a regular svn up after fpcup is done, do a make to compile fpc etc. If you want to, you can run fpcup after that to update and compile for you again.
In other words, the two methods don't interfere with each other.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ludob on June 11, 2012, 05:50:04 pm
It is also the first run that downloads all sources. Subsequent updates only download the modifications which is far less.
When you download snapshots you download everything all the time. You need also to pay more attention when upgrading one snapshot to another in order not to overwrite settings and not forget to rebuild lazarus to get your packages integrated again. The fpcup upgrade is in most cases much smoother.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: kenpem on June 11, 2012, 05:53:55 pm
I was thinking more from the POV of just getting an up-to-date FPC installed under my Lazarus so that I can finish off an urgent (small) project. Not even thinking about long-term updates at this point!

Now up to
Quote
Info: Checking out/updating Lazarus sources:
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: kenpem on June 11, 2012, 06:15:44 pm
aargh
Quote
Info: FPC: running make distclean:
Info: Checking out/updating FPC sources...
Info: FPC was at revision: -1
Info: FPC is now at revision: 21581
Info: TFPCInstaller: building module FPC...
Info: Running make cycle for FPC64:
Info: Running make all install for FPC:
Info: Creating fpc.cfg:
Info: Checking out/updating Lazarus sources:
Info: Lazarus was at revision: -1
Info: Lazarus is now at revision: 37618
Info: TLazarusNativeInstaller: building module BIGIDE...
Info: BIGIDE: running make bigide:
Info: Created Lazarus primary config directory: C:\Users\kp\AppData\Local\lazaru
sdevsettings
Info: Lazarus: creating desktop shortcut:
Info: Getting module lhelp
Info: TUniversalInstaller: building module lhelp...
Info: HELPLAZARUS: documentation directory: C:\development\lazarus\docs\html\
Info: Going to download C:\Users\kp\AppData\Local\Temp\TMP00000.tmp.zip from URL
: http://garr.dl.sourceforge.net/project/freepascal/Documentation/2.6.0/doc-chm.
zip
Info: HELPLAZARUS: documentation directory: C:\development\lazarus\docs\html\
Info: C:\development\lazarus\docs\html\build_lcl_docs.exe is not a valid build_l
cl_docs.exe application. build_lcl_docs.exe exists but shows no (build_lcl_docs)
 in its output.
Info: helplazarus: compiling build_lcl_docs help compiler:
Info: helplazarus: compiling chm help docs:
Info: helplazarus: moving lcl.chm to docs directory
Info: Getting module lazdatadesktop
Info: TUniversalInstaller: building module lazdatadesktop...
Info: Getting module doceditor
Info: TUniversalInstaller: building module doceditor...
Info: Getting module suggestedpackages
Info: TUniversalInstaller: building module suggestedpackages...
Info: Error running fpcup. Technical details: error executing sequence SUGGESTED
PACKAGES; line: 4, param: suggestedpackages
Info: Error running fpcup. Technical details: error executing sequence Universal
Default; line: 2, param: SUGGESTEDPACKAGES
Info: Error running fpcup. Technical details: error executing sequence Default;
line: 7, param: UniversalDefault
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- try removing all intermediate files by running fpcup with the --clean option
- if that does not work: use the --uninstall option to remove all files (includi
ng your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 11/06/2012 17:09:42: fpcup finished.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: kenpem on June 11, 2012, 06:37:48 pm
Apparently I do have SVN installed:

Quote
C:\development>svn --version
svn, version 1.6.17 (r1128011)
   compiled May 30 2011, 20:41:58

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.apache.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 11, 2012, 06:41:41 pm
Ok. the error you saw was in the external packages (see fpcup.ini). You can probably run Lazarus from the shortcut created on the desktop just fine, including development of database programs.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 11, 2012, 06:46:35 pm
You can avoid this error next time by adding --skip=suggestedpackages.

For further troubleshooting (if/when you have time enough): run fpcup --verbose --noconfirm > results.txt and please post results.txt.

Perhaps one of the packages in the suggestedpackages list could not be compiled due to a problem with the current source code (of the package, Lazarus or FPC)....
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: kenpem on June 11, 2012, 06:58:04 pm
Thanks to all for the help, I'm now actually working on my project rather than wresting with the tools. Have to focus on the job in hand right now, but I'll try to do some more investigation and post results here when I get some free time.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on June 25, 2012, 11:45:10 pm
Hi,

Please, help me with the following error:

Quote
25/06/2012 23:35:58: fpcup started.
TFPCInstaller init:
Bootstrap compiler dir: C:\development\fpcbootstrap\
FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
FPC options:           
FPC directory:          C:\development\fpc
Make/binutils path:     C:\development\fpcbootstrap\
External program path:  C:\development\fpcbootstrap\;C:\development\fpcbootstrap\;C:\development\fpcbootstrap\svn\;C:\development\fpc\utils;C:\development\fpc\bin\i386-win32
External program path:  C:\developmenError running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 2, param: fpc
25/06/2012 23:36:13: fpcup finished.

Cheers,
Miquel.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 26, 2012, 07:39:07 am
Hi Miquel,

I just run x86 FPCUP from latest source and it worked fine (using FPC fixes 2.6 as you are doing, and Lazarus trunk, the default).
The latest download also works fine here.

Which version are you using?
As it's running fine here, I'll need the --verbose output (and preferably the log) to help you.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on June 26, 2012, 09:02:05 am
I'm using  fpcup.exe 2012-06-02 from downloading page.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on June 27, 2012, 11:53:08 pm
Installed fpcup a few days ago (windows instance) and it works well.  (slow to fetch, but I have a slow dsl circuit)

Does running fpcup update fpcup?  If not, should it?

(Minor) Suggestion: 
create a --version option which shows the fpc, laz, fpcup, etc... version list.  Helpful / needed when opening a bug report or when posting on this forum.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 28, 2012, 07:44:01 am
@Miquel: I understand, but I tested with that one & it worked. I really need the logs etc... unless your problem has gone away (e.g. because the Lazarus source code was buggy which led to a failed compile, such as happened yesterday)

@IPGuy: running fpcup does not update fpcup itself. I'd be a bit hesitant in trying to do that though... (adds yet more complexity to the tool, can't mess with parameter behviour, and updating an updater seems just plain... neurotic ;) ) Perhaps once I've thought it over some more...

The --version idea is a good one. Unfortunately, most bug reports would require a full log anyway, but you're right, --version should still help with the easier cases... i.e. update fpcup :)
Added to the bug tracker as a feature request:
https://bitbucket.org/reiniero/fpcup/issues?status=new&status=open (https://bitbucket.org/reiniero/fpcup/issues?status=new&status=open)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on June 28, 2012, 09:16:12 am
Hi,

Here you are those files.

Cheers,
Miquel.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 28, 2012, 01:42:02 pm
Thanks for the details, Miquel.

That was an fpcup error handling problem. I made sure svn unlock is called during our checkout attempts whenever we get E155004 errors, even after another error - until our retry count has been reached.

I've uploaded a new 32 bit fpcup; if you want to, you could try again.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on June 28, 2012, 03:18:47 pm
I'm going to try immediately.

Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 28, 2012, 05:23:47 pm
(Minor) Suggestion: 
create a --version option which shows the fpc, laz, fpcup, etc... version list.  Helpful / needed when opening a bug report or when posting on this forum.
Your wish is my command - at least as far as minor suggestions are concerned ;)
--version command included with source and latest fpc x86 windows version.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on June 28, 2012, 05:29:38 pm
Got success! Thanks!!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 28, 2012, 05:36:54 pm
Glad it works, Miquel ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on June 28, 2012, 05:45:58 pm
BTW, great program. :)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on June 29, 2012, 03:17:21 am
re: --version
Thank you. 
I was expecting something slightly different (my fault for the incomplete request...)

When running fpcup, I've noticed that the output shows the Lazarus and fpc version information.  Would it be possible to capture those bits of output and save them to the Laz and fpc directories, then when the --version is run, grab those strings and incorporate them into the --version output with a string that looks something like:  Lazarus-<ver#>-12345-fpc-2.x.y-12345

example of the strings from a fpcup update:
Info: FPC is now at revision: 21732
Info: Lazarus is now at revision: 37816

With the above information, the string might be:
Lazarus-<ver#>-37816-fpc-<ver#>-21732

(Interestingly, the first line of fpcup says:
Info: Found bootstrap compiler version 2.6.0, but I know it is using 2.6.1.)

Code: [Select]
C:\development>fpcup --version
fpcup
An FPC/Lazarus downloader/updater/installer
Open source freeware (modified LGPL/BSD), see:
https://bitbucket.org/reiniero/fpcup

This program will download the FPC and Lazarus sources
from the source Subversion/SVN repositories,
compile, and install.
Result: you get a fresh, up-to-date Lazarus/FPC installation.

Version: based on commit 89f29320fee5
Build date: Thu Jun 28 15:29:19 2012 +0200
Compiled for CPU: i386 on Win32

Info: 6/28/2012 19:49:46: fpcup started.
Info: 6/28/2012 19:49:46: fpcup finished.

C:\development>

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 29, 2012, 07:21:24 am
Edit: thinking about it some more: it would probably require quite some changes (we'd need to change the flow of the program to get the output - we have to take into account any --lazdir and --fpcdir arguments from the users etc... I'll have a look but I'm not sure it would be easy to do./edit

Yep, IPGuy, sorry... we can add the FPC and Lazarus SVN version if present, as well.. Not that I really see much benefit in troubleshooting as you'd need some logs etc but well.
I'd rather dynamically retrieve them using svn though instead of storing them into the Lazarus/svn directories - after all, one can still do a manual svn up etc

(As for fpc 2.6.1: the fixes 2.6/2.6.1 compiler identifies itself as 2.6.0... nothing much we can do about it. Try running fpc -i yourself and see ;) )

@Miquel: thanks ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 01, 2012, 10:25:30 pm
Now that I have an up to date version of Laz installed, I want to set up some additional installations. 

1) add an instance with the current Laz and fpc 2.7.1.
2) an instance with a specific Laz / fpc 2.6.1 or 2.7.1 version.

Question:
Assuming that my initial instance is the default installation (windows = c:\development), is there a convention for adding additional laz/fpc sets?
Should I install them in the same c:\development directory or should I put them in a completely different directory tree?


Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 02, 2012, 10:37:21 am
Quote
is there a convention for adding additional laz/fpc sets?
Not as far as I could find out ;)
I personnally keep all fpcup-maintained instances under c:\development and give them more or less descriptive names (could be something like FPCTrunk, LazarusTrunk_FPC2.6.1 etc)

Fpcup will also add some extra repositories (see fpcup.ini) either by default (as distributed) or user-specified; possible repositories include fpspreadsheet, synapse, tiopf.
Fpcup.ini specifies these repos are in $(fpcdir)/../extras/, so in c:\development\extras in our case.

The downside: fpcup can/will compile Lazarus packages based on these repos. Having multiple laz installs under c:\development will mean that only the latest installed/updated Lazarus version will have properly compiled packages; using those packages in the other Lazarus instances will lead to a recompile (IIRC).

The advantage, on the other hand, is that the same repos aren't duplicated all over your hard disk ;)

Quote
Should I install them in the same c:\development directory or should I put them in a completely different directory tree?
I've chosen to keep them in the same tree, but given the above mentioned disadvantage, you might separate them.

I'm interested in hearing from other users what they've done...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 04, 2012, 06:28:01 am
I attempted to set up a 2nd instance using fpcup, which did not go all that well.
Any suggestions?

I have a working installation in the standard windows path (c:\development).
I used the following command string to set up another instance in a different directory.
Quote
fpcup
--lazdir=c:\lazA\lazarus
--fpcdir=c:\lazA\fpc
--fpcURL=http://svn.freepascal.org/svn/fpc/trunk
--lazlinkname=lazFPC-271
--primary-config-path=c:\lazA\
--binutilsdir=c:\lazA\boottest
--fpcbootstrapdir=c:\lazA\boottest
fpc appears to have installed correctly.
Interestingly, I was expecting v2.6.1, not 2.7.1.  Not sure why 2.7.1 was installed, but that is fine, as that was one of my end goals.
Quote
C:\lazA\fpc\bin\i386-win32>fpc -version
[0.010] Free Pascal Compiler version 2.7.1 [2012/07/03] for i386
[0.011] Copyright (c) 1993-2012 by Florian Klaempfl and others
[0.011] error: No source file name in command line
[0.012] error: Compilation aborted
Error: C:\lazA\fpc\bin\i386-win32\ppc386.exe returned an error exitcode
C:\lazA\fpc\bin\i386-win32>

The error I received was: (see the attached file for the full listing (non-verbose) of the fpcup run)
Quote
Compiling tatypes.pas
tatypes.pas(840,21) Error: Identifier not found "TCustomChartSource"
tatypes.pas(750,13) Error: Incompatible types: got "POINT" expected "SIZE"
tatypes.pas(752,44) Error: Operator is not overloaded: "SIZE" div "ShortInt"
tachartaxisutils.pas(719) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\lazA\fpc\bin\i386-win32\ppc386.exe returned an error exitcode
make.exe[2]: *** [tachartlazaruspkg.ppu] Error 1
make.exe[2]: Leaving directory `C:/lazA/lazarus/components/tachart'
make.exe[1]: *** [bigide] Error 2
make.exe[1]: Leaving directory `C:/lazA/lazarus/components'
C:\lazA\boottest\make.exe: *** [bigidecomponents] Error 2
C:\lazA\boottest\make.exe: Leaving directory `C:/lazA/lazarus'

Info: Error running fpcup. Technical details: error executing sequence BIGIDE; l
ine: 3, param: BIGIDE
Info: Error running fpcup. Technical details: error executing sequence DefaultWi
n32; line: 3, param: BIGIDE
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- try removing all intermediate files by running fpcup with the --clean option
- if that does not work: use the --uninstall option to remove all files (includi
ng your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 7/3/2012 23:13:26: fpcup finished.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 04, 2012, 08:38:06 am
Ipguy, thanks for the report.

If you were expecting FPC 2.6.1, you shouldn't have pointed fpcURL to the trunk (=2.7.1) FPC URL ;) (fpcup defaults to 2.6.1)

So far the easy part.

Personnally I'd specify a separate subdirectory for your primary config path: c:\lazA\settings instead of c:\laza... but that's almost more a personal preference.

In recent Lazarus revisions, I get errors building with FPC trunk as well.

Edit: fixed after an fpcup --clean:
Right now, my errors are in a different part:
Compiling lhelp.lpr
Compiling lhelpcore.pas
lhelpcore.pas(23,2) Note: User defined: You can add http capability to lhelp by
adding the lnetvisual package v0.6.3 or greater requirement to lhelp.
Compiling chmcontentprovider.pas
chmcontentprovider.pas(5,2) Note: User defined: Compiling lhelp with search support
chmcontentprovider.pas(12,2) Note: User defined: Compiling lhelp *with* binary index and toc support
PPU Loading lib\i386-win32\chmreader.ppu
PPU Source: chmreader.pas not found
Recompiling chmreader, checksum changed for System
chmcontentprovider.pas(25,53) Fatal: Can't find unit chmreader used by chmcontentprovider
Fatal: Compilation aborted
However, if I open Lazarus via the link on the desktop, and recompile the IDE from the GUI, that does work. (And might be a workaround)


Edit: The bug you're seeing (and I'm now seeing) almost certainly is in the combination FPCUP/Lazarus.
See here:
http://bugs.freepascal.org/view.php?id=22365 (http://bugs.freepascal.org/view.php?id=22365)
... so we'll have to wait for a fix or use the --fpcrevision or --lazrevision params to use a fixed known-working revision number.

I've just uploaded a new fpcup.exe binary edit: with a fix for fpcup --clean that might get you as far as me.... I'd suggest you try that one.

I'll have a look to see what I can do...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 05, 2012, 12:09:59 am
re: 2.6.1 vs 2.7.1 - thanks for the hint.  I've updated my hints file (which I'll share once I have a few clean installs done.)

So to get 2.6.1, I should have omitted the
--fpcURL=http://svn.freepascal.org/svn/fpc/trunk line altogether?
At some point I'm assuming that fpcup will move the default from 2.6.1 to 2.7.1 and trunk will deliver 2.8.1.  Does that mean you have to change your code for each of those transitions?

re: setting directory - I was expecting the fpcup.ini and .log files to show up in --primary-config-path=c:\lazA\.  The .ini / .log show up in c:\development.  Should the default version of fpcup create a c:\development\settings directory to hold those files?

re: bug.  sigh.  thanks for finding that.  I added a small note to it, just mentioning that the bug affects windows in addition to gtk2.  (Eventually I'll have a v2.7.1 laz instance installed so I can test the httpserver image problem I'm having.)

re: fpcup new version - I've grabbed it. 
Thanks again for the good utility.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 05, 2012, 08:11:49 am
So to get 2.6.1, I should have omitted the
--fpcURL=http://svn.freepascal.org/svn/fpc/trunk line altogether?
Indeed.

At some point I'm assuming that fpcup will move the default from 2.6.1 to 2.7.1 and trunk will deliver 2.8.1.  Does that mean you have to change your code for each of those transitions?
I'd think unstable/trunk will be 2.9.0/2.9.1 while stable will change to 2.8.0/2.8.1 going by past behaviour.
I'd have to change fpcup to modify the default URL, yes. Worth it though: stable FPC releases are not that frequenc... and if I forget, you can always specify the URL yourself ;)

re: setting directory - I was expecting the fpcup.ini and .log files to show up in --primary-config-path=c:\lazA\.  The .ini / .log show up in c:\development.  Should the default version of fpcup create a c:\development\settings directory to hold those files?
The logs show up in the directory where you executed fpcup, AFAIU. Keeping everyhting together seems like a good way to identify which fpcup version performed which action.
No plans to change this right now, but you could convince me (or submit a patch to add e.g. a --log= parameter) ;)

re: bug.  sigh.  thanks for finding that.  I added a small note to it, just mentioning that the bug affects windows in addition to gtk2.  (Eventually I'll have a v2.7.1 laz instance installed so I can test the httpserver image problem I'm having.)
Yep.

Thanks for the thoughtful comments/feedback.

Regards,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 05, 2012, 12:57:53 pm
The error I received was: (see the attached file for the full listing (non-verbose) of the fpcup run)
Quote
Compiling tatypes.pas
tatypes.pas(840,21) Error: Identifier not found "TCustomChartSource"
tatypes.pas(750,13) Error: Incompatible types: got "POINT" expected "SIZE"
tatypes.pas(752,44) Error: Operator is not overloaded: "SIZE" div "ShortInt"
tachartaxisutils.pas(719) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
Error: C:\lazA\fpc\bin\i386-win32\ppc386.exe returned an error exitcode
make.exe[2]: *** [tachartlazaruspkg.ppu] Error 1
make.exe[2]: Leaving directory `C:/lazA/lazarus/components/tachart'
make.exe[1]: *** [bigide] Error 2
make.exe[1]: Leaving directory `C:/lazA/lazarus/components'
C:\lazA\boottest\make.exe: *** [bigidecomponents] Error 2
C:\lazA\boottest\make.exe: Leaving directory `C:/lazA/lazarus'

Info: Error running fpcup. Technical details: error executing sequence BIGIDE; l
ine: 3, param: BIGIDE
Info: Error running fpcup. Technical details: error executing sequence DefaultWi
n32; line: 3, param: BIGIDE
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- try removing all intermediate files by running fpcup with the --clean option
- if that does not work: use the --uninstall option to remove all files (includi
ng your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 7/3/2012 23:13:26: fpcup finished.
The relevant Laz bug has been fixed; compiling Laz trunk r37868 with FPC trunk/2.7.1 r21787 works for me again.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: sylvanus67 on July 05, 2012, 06:02:58 pm
What is the matter with attachments?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ludob on July 05, 2012, 07:00:41 pm
The svn checkout got aborted and the working copy is locked. FPCUp tries to unlock it but I noticed a little bug that makes this fail. You'll have to open a console and run
Code: [Select]
C:\development\fpcbootstrap\svn\svn-win32-1.7.2\bin\svn.exe cleanup C:\development\fpcRun fpcup again and it will pick up the svn checkout where it left.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 05, 2012, 07:29:22 pm
Thanks for the fix Ludo... what a silly mistake  :-[

Edit: uploaded new windows x86, x64 binaries.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: sylvanus67 on July 05, 2012, 08:11:52 pm
Something help again...

(2 attachments)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 06, 2012, 07:18:08 am
It looks like you're still running with the version before Ludo's change yesterday. Due to problems during the svn run, the repository is again locked and fpcup tries to unlock it by giving svn cleanup commands... this part of the code has an error though in your version.

Please download a new fpc.exe and try again.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: sylvanus67 on July 06, 2012, 07:00:19 pm
A downloaded fpcup.exe again as yesterday did and now it is OK.
Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 08, 2012, 05:54:44 am
I downloaded a copy of fpcup.exe (not the 64 bit version) a few minutes ago to my w7-64 system and received errors during the installation process.  I did a fpcup --clean and tried again.  Same issue.  Below are the logs and the cli output from the second attempt.

The bin directory under c:\development\fpc\ was not created.

Thoughts / suggestions?  Should I run a --verbose?

Quote
7/7/2012 22:41:04: fpcup started.
TFPCInstaller init:
Bootstrap compiler dir: C:\development\fpcbootstrap\
FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
FPC options:           
FPC directory:          C:\development\fpc
Make/binutils path:     C:\development\fpcbootstrap\
External program path:  C:\development\fpcbootstrap\;C:\development\fpcbootstrap\;C:\development\fpcbootstrap\svn\;C:\development\fpc\utils;C:\development\fpc\bin\i386-win32
External program path:  C:\developmError running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 2, param: fpc
7/7/2012 22:42:25: fpcup finished.
------------------------------------------------

Quote
C:\development>fpcup
fpcup
... some stuff removed ...

Version: based on commit 355a7dd13102
Build date: Thu Jul 05 19:03:32 2012 +0200
Compiled for CPU: i386 on Win32

Info: 7/7/2012 22:44:37: fpcup started.

Options:
Binutils/make dir:      C:\development\fpcbootstrap\
Bootstrap compiler dir: C:\development\fpcbootstrap\
Lazarus shortcut name:  Lazarus_trunk
Shortcut fpcup name:    fpcup_update
FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
FPC options:
FPC directory:          C:\development\fpc
Lazarus directory:      C:\development\lazarus
Lazarus primary config path:
(Lazarus settings path) C:\Users\John\AppData\Local\lazarusdevsettings
Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
Lazarus options:
Keep local changes:     no
Parameter list:

Continue (Y/n):
Info: Found bootstrap compiler version 2.6.0
Info: FPC: running make distclean:
Info: Checking out/updating FPC sources...
Info: FPC was at revision: 21815
Info: No updates for FPC found.
Info: TFPCInstaller: building module FPC...
Info: Running make all install for FPC:
Info: Error running fpcup. Technical details: error executing sequence fpc; line
: 5, param: FPC
Info: Error running fpcup. Technical details: error executing sequence DefaultWi
n32; line: 2, param: fpc
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- try removing all intermediate files by running fpcup with the --clean option
- if that does not work: use the --uninstall option to remove all files (includi
ng your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 7/7/2012 22:45:55: fpcup finished.
C:\development>
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 08, 2012, 06:09:50 am
Attached is output from fpcup --verbose.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 08, 2012, 12:07:25 pm
IIRC, a permission-related error is mentioned in the Build FAQ regarding windows builds... but I think we're working around that one..

I don't have any bright ideas on this one...

Perhaps delete the entire c:\development\fpc directory and try again? (Should be similar to fpcup --uninstall --only=fpc, but I'm not completely sure).
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 11, 2012, 01:57:52 am
I just ran an update and saw the following message:
Quote
Info: helplazarus: WARNING: C:\development\lazarus\docs\html\lcl\lcl.chm was created but is empty. Lcl.chm may be out of date! Try running with --verbose to see  build_lcl_docs error messages.

it skipped rtl.chm and fcl.chm - they were already present, then started compiling the chm help doc's and that is when the above message appeared.

Any concerns?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 11, 2012, 03:37:33 pm
Not that I can fix. The chm building tools (fpdoc) apparently are buggy... or perhaps the fpdoc xml source is incorrect...
AFAIR, FPC trunk (2.7) fpdoc has been improved, so that may give better results.

If you want to, you can also copy over a downloaded lcl.chm and set it's read only attribute to true if you want to keep it....
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CristoferMartins on July 11, 2012, 08:12:39 pm
I'm running it on Win XP sp3 and its not working. Its close by itself. Its only compile FPC and is not even downloading Lazarus svn.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 11, 2012, 11:17:44 pm
CristoferMartins,

I'm assuming that you just executed fpcup.exe and accepted the defaults - correct?
win-XP - 32 bit version, I assume?
Can you reply and attach a copy of fcpup.log?
Does fpc run?  Can you go to your version of C:\development\fpc\bin\i386-win32 and do a fpc -version?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CristoferMartins on July 12, 2012, 03:31:50 am
CristoferMartins,

I'm assuming that you just executed fpcup.exe and accepted the defaults - correct?

Yes
Quote
win-XP - 32 bit version, I assume?
Yes.
Quote
Can you reply and attach a copy of fcpup.log?
Attached.

Quote
Does fpc run?  Can you go to your version of C:\development\fpc\bin\i386-win32 and do a fpc -version?

Its outputs:

Quote
C:\development\fpc\bin\i386-win32>fpc -version
[0.000] No source file name in command line
[0.000] Compilation aborted
Error: C:\development\fpc\bin\i386-win32\ppc386.exe returned an error exitcode (
normal if you did not specify a source file to be compiled)

Edit:
Its really strange. I deleted the bootstrap folder and executed the fpcup again. Its just work out. Now i can get the fpc version and the fpcup is downloading lazarus svn.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 12, 2012, 10:31:13 am
Thanks for the help, IPGuy, including using your crystall ball and asking for relevant details ;)

BTW: it's fpc -iW to get the version, surprisingly enough, not fpc --version...

@Cristofer: strange. The log just indicates failure in the fpc step... Did you also delete the C:\development\fpc by any chance before it started working?
It could have been an error with SVN not completely downloading the FPC source.
Also assuming you're using the latest version because the log doesn't show this information yet... I'll add the information to the log.

If you run into trouble again, could you post the log as you did and also output.txt from
Code: [Select]
fpcup --verbose --noconfirm > upout.txt
Thanks.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on July 12, 2012, 05:41:34 pm
BigChimp:

svn number in about box is ommited.

Cheers,
Miquel.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 12, 2012, 06:05:50 pm
Hi Miquel: don't quite understand what you mean...
Do you mean that Lazarus shows nothing instead of the SVN revision number in the Help... About box?
What fpcup version are you using?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 12, 2012, 11:20:15 pm
See the attached Laz splash screen for my fpcup installation.
As compared to the snapshot Laz installation, this splash screen does not show the Laz svn #.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on July 12, 2012, 11:30:18 pm
That's it!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 13, 2012, 08:40:34 am
I have a similar situation, but not the same:

In the one that didn't work, I saw that <lazarusdir>\ide\revision.inc contained an empty revision number:
Code: [Select]
// Created by Svn2RevisionInc
const RevisionStr = '';
Probably svn2revisioninc (the tool in <lazarusdir>\tools\ that is used in the build process to get the svn version) had a problem in a build somewhere and just output nothing.
(My version without valid SVN version had problems during the fpcup compilation phase)
Try deleting/renaming the <lazarusdir>\ide\revision.inc and rebuilding Lazarus (or rerunning fpcup) in order to regenerate it.

Worked for me...
You might
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 13, 2012, 09:05:12 am
Oops, apologies to IPGuy in his earlier post:
Code: [Select]
fpc -version
works, while I had misread it and added an extra dash...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on July 13, 2012, 10:55:00 am
[quote

Try deleting/renaming the <lazarusdir>\ide\revision.inc and rebuilding Lazarus (or rerunning fpcup) in order to regenerate it.

Worked for me...
You might
[/quote]

Deleted revision.inc and rebuild Lazarus, svn number missing.

Then, rerunning fpcup, svn missing.

Cheers,
Miquel.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 13, 2012, 11:40:53 am
@Miquel: weird indeed....

[1]
Code: [Select]
cd <lazarusdir>\ide
..\tools\svn2revisioninc
type revision.inc
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on July 13, 2012, 12:10:40 pm
@Miquel: weird indeed....

Try running svnversion -n <lazdir> e.g. svnversion -n c:\development\lazarus. Could you paste the output? This is a command svn2revisioninc uses to get the revision.

37930

Quote
Do you have a revision.inc in your Lazarus\ide directory? What does it say? Something like const RevisionStr = '37809M' or const RevisionStr = ''? Is the file date today's date?

Yes, it exists there with today's date and it contains:
Code: [Select]
// Created by Svn2RevisionInc
const RevisionStr = '';

Quote
What happens when you manually run svn2revisioninc [1]
Do you see the current svn revision output? Do you get a revision.inc with valid svn version?

When I execute svn2revisioninc.exe from C:\development\lazarus\tools folder it shows an empty string at the cmd window.

Cheers,
Miquel.


Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 13, 2012, 12:22:35 pm
Miquel:
Yippeee!!!! The bug is not in fpcup because you have a valid svn repository but svn2revisioninc does not work.
The bad news: there's a bug in svn2revisioninc :(

svn2revisioninc --v gives verbose output, but I think not verbose enough. Let me see if I can come up with a more comprehensive version...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on July 13, 2012, 12:31:53 pm
revision.inc in C:\development\lazarus\tools contains:

Code: [Select]
// Created by Svn2RevisionInc
const RevisionStr = 'Unknown';
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 13, 2012, 12:40:42 pm
Could you try compiling the attached modified svn2revisioninc and running it with svn2revisioninc --v?
Please paste the output... and check if the generated revision.inc now contains an svn revision number.

Thanks.

Edit: removed old code
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on July 13, 2012, 01:01:14 pm
Here you are:

Code: [Select]
C:\development\lazarus\tools>svn2revisioninc.exe --v
SourceDirectory:     C:\development\lazarus\tools
RevisionIncFileName: C:\development\lazarus\tools\revision.inc
ConstName:           RevisionStr

Tried retrieving revision with svnversion.

svnversion error output:


Created C:\development\lazarus\tools\revision.inc for revision: Unknown
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 13, 2012, 01:18:56 pm
Well Miquel, my thought process must be completely off... and I must have made a stupid mistake.

In line 365, GetRevisionFromSvnVersion gets called. This doesn't seem to work on your machine given the error output (which is strange because it works if you run the command manually)
1. So why does this not work? svnversion is in your path, right? And you ran the modified svn2versioninc while it is within your lazarus directory, right?

In line 366 and 367, GetRevisionFromEntriesTxt and GetRevisionFromEntriesXml should be tried and give output regardless of whether the code can get the version or not... which your pasted output does not show!??!?!
2. Have I made some stupid error here?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on July 13, 2012, 03:51:46 pm
1. So why does this not work? svnversion is in your path, right? And you ran the modified svn2versioninc while it is within your lazarus directory, right?

I'm very sorry about this.

It was not in the path. I've added "C:\development\fpcbootstrap\svn\svn-win32-1.7.2\bin" to the system path and all is ok now.
I get 37930M svn number.  :-[

Cheers,
Miquel.


Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 13, 2012, 04:11:58 pm
No problem, Miquel - fpcup documentation doesn't say you need svn in your path... so it's also my fault. I think it's best that I adapt the readme to indicate something like:
Quote
Note: you can build Lazarus without svn being in your path, but the Lazarus tool svn2revisioninc won't work and you won't get an SVn revision number in your Help/About box.
Suggestions for a better text always welcome of course.

As for my revised svn2revisioninc not giving any output: I think I accidentally put the debug output code inside the failing try..finally block that called svn.exe - which failed.
Going to submit new version in the bugtracker...
Edit: uploaded new version including the diff with the current version in Lazarus trunk; comments welcome

Thanks,
BigChimp

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on July 13, 2012, 04:49:41 pm
No problem, Miquel - fpcup documentation doesn't say you need svn in your path... so it's also my fault. I think it's best that I adapt the readme to indicate something like:
Quote
Note: you can build Lazarus without svn being in your path, but the Lazarus tool svn2revisioninc won't work and you won't get an SVn revision number in your Help/About box.
Suggestions for a better text always welcome of course.

Clear as water!  ;)

Quote
As for my revised svn2revisioninc not giving any output: I think I accidentally put the debug output code inside the failing try..finally block that called svn.exe - which failed.
Going to submit new version in the bugtracker...
Edit: uploaded new version including the diff with the current version in Lazarus trunk; comments welcome

Code: [Select]
C:\development\lazarus\tools>svn2revisioninc.exe --v
SourceDirectory:     C:\development\lazarus\tools
RevisionIncFileName: C:\development\lazarus\tools\revision.inc
ConstName:           RevisionStr

Going to retrieve revision for source directory: C:\development\lazarus\tools
Success retrieving revision with svnversion.

Created C:\development\lazarus\tools\revision.inc for revision: 37930M


Thank you very much. FPCUP is a great tool, I use it frequently!

Cheers,
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on July 14, 2012, 03:52:02 am
re: path for svnversion ...

In my case I have (at the moment) two fpcup installations, in different directories and I'll only be able to have one path to svnversion.

Is that a concern today or might it be a concern in the future? 
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CristoferMartins on July 14, 2012, 04:06:35 am
Thanks for the help, IPGuy, including using your crystall ball and asking for relevant details ;)

BTW: it's fpc -iW to get the version, surprisingly enough, not fpc --version...

@Cristofer: strange. The log just indicates failure in the fpc step... Did you also delete the C:\development\fpc by any chance before it started working?
It could have been an error with SVN not completely downloading the FPC source.
Also assuming you're using the latest version because the log doesn't show this information yet... I'll add the information to the log.

If you run into trouble again, could you post the log as you did and also output.txt from
Code: [Select]
fpcup --verbose --noconfirm > upout.txt
Thanks.
Ok, i will do it. :)
btw, i don't deleted the fpc folder. I'm using the last compiled win 32 bits binary.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 14, 2012, 11:09:49 am
In my case I have (at the moment) two fpcup installations, in different directories and I'll only be able to have one path to svnversion.
I think we're probably not talking about the same thing. Miquel & I are talking about putting svn in your search path, which means e.g. if you open a console window, go to a random directory and type svn, it will find the svn executable (as well as the svnversion exe).
The svn directory should show up in the SET PATH (or simply PATH) output.

If you don't have svn in your path... the only thing you miss - AFAICT - is the svn version number in help/about.

Having just one instance of svn installed is fine.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Knipfty on August 01, 2012, 08:18:22 pm
Hi BigChimp,

I just downloaded FPCup and ran it for the 1st time.  It's interesting to watch.

How often do you run this to update the files?
Once I do the 1st install then add any packages that I use, will those be there if I run this again?
Are there any downsides to using this vs. waiting for the next stable release?

Finally, I see the following in the output:

Code: [Select]
Info: HELPLAZARUS: documentation directory: C:\development\lazarus\docs\html\
Info: helplazarus: skipping docs download: FPC rtl.chm and fcl.chm already prese
nt in docs directory C:\development\lazarus\docs\html\
Info: HELPLAZARUS: documentation directory: C:\development\lazarus\docs\html\
Info: helplazarus: compiling chm help docs:
Info: helplazarus: WARNING: C:\development\lazarus\docs\html\lcl\lcl.chm was cre
ated but is empty. Lcl.chm may be out of date! Try running with --verbose to see
 build_lcl_docs error messages.

DO I need to run this as admin?

Thanks

Knipfty
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 01, 2012, 08:35:27 pm
Hi Knipfty,

I run it more than once a day, but I'm often pestering people with patches and seeing how other patches are applied. It also helps to test it if you are working on fpcup ;)
I suppose normal people would run this daily or weekly...

Downsides: I don't see any real downside compared to snapshots or stable versions.

I've noticed that Lazarus trunk with FPC 2.6.1 is very stable.
OTOH FPC 2.7.1/trunk used to have some problems, and I still can't compile sometimes (lately due to Lazreport problems, not Lazarus per se).

In the very limited number of cases where the 2.6.1 based build blew or had serious bugs, I could use --lazrevision to pin Lazarus to a certain working revision, and wait for the fix to come in.
Keeping a separate "stable" (snapshot in my case but well..) install installed with the installer (e.g. in c:\lazarus) is my other fallback mechanism, but rarely needed.

You don't need to run as admin as long as you have write permissions to c:\development

The output you saw is unfortunately fairly common (with FPC 2.6.1, not trunk/2.7.1, I think) because the FPC fpdoc tool that generates CHM documentation just cannot handle certain input and aborts. That's why I built in a check for 0-length CHMs so you at least don't overwrite existing content.
If you want more extensive help (I think I heard some dev say the lazarus doc generator/fpdoc generated LCL CHM aren't very comprehensive.. but can't really be bothered to check).. you could download the CHMs from Sourceforge, put them into the docs\html\ directory, and make them readonly.... (or if that doesn't work, revoke permissions from the user you run fpcup under)... can't remember by heart if there is a --skip option that addresses building chms...

HTH,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Knipfty on August 01, 2012, 08:41:05 pm
Running with --verbose

Code: [Select]
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
exception at 004318B8:
Access violation.
278 Warnings hidden. Use --warnings to see them all.
Info: helplazarus: WARNING: C:\development\lazarus\docs\html\lcl\lcl.chm was cre
ated but is empty. Lcl.chm may be out of date! Try running with --verbose to see
 build_lcl_docs error messages.

I'll try it out at home over the weekend and play with is some more.

Thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 01, 2012, 09:08:54 pm
Code: [Select]
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
exception at 004318B8:
Access violation.
278 Warnings hidden. Use --warnings to see them all.
Info: helplazarus: WARNING: C:\development\lazarus\docs\html\lcl\lcl.chm was cre
ated but is empty. Lcl.chm may be out of date! Try running with --verbose to see
 build_lcl_docs error messages.
Yep, you could file a bug against fpdoc (asumming you're running 2.6.1, seriously, you could, but I wonder/doubt if the trunk fpdoc will be backported to 2.6.1)
That access violation is IIRC caught by the Lazarus doc builder which fortunately has gotten a patch from me that allows it to handle these AVs.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Knipfty on August 02, 2012, 03:43:14 pm
Hi BigChimp,

I'm guessing yes to this question:

Is FPCUp now downloading the release candidate?

Thanks

Knipfty
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 02, 2012, 03:55:53 pm
No ;)

By default it downloads FPC 2.6.1 (=FPC 2.6.0+fixes) and Lazarus trunk (=the 1.1 branch).
Lazarus RC apparently is based on 2.6.0 (which has no fixes at all) - which seems a bit strange to me but ok.
The svn branch it came off branched off from trunk a while ago and only fixes where backported to stabilize it. In other words, current trunk has more features (but likely also more bugs).

See here: http://wiki.lazarus.freepascal.org/Lazarus_Development_Process#Lazarus_branches_.2F_version_numbers_around_1.0 (http://wiki.lazarus.freepascal.org/Lazarus_Development_Process#Lazarus_branches_.2F_version_numbers_around_1.0) for a nice diagram (hope it's still correct).

You could get the RC by specifying the URLs yourself (--lazurl and --fpcurl). Mattias wrote the svn url for 1.0RC1 in his announcement post on the forum.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 03, 2012, 12:57:55 pm
Running with --verbose

Code: [Select]
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
Warning: Target ID of <link> is unknown: "#LazUtils.LazUTF8"
exception at 004318B8:
Access violation.
278 Warnings hidden. Use --warnings to see them all.
Info: helplazarus: WARNING: C:\development\lazarus\docs\html\lcl\lcl.chm was cre
ated but is empty. Lcl.chm may be out of date! Try running with --verbose to see
 build_lcl_docs error messages.

I'll try it out at home over the weekend and play with is some more.
See the Laz 1.0RC1 announcemen thread in Team announcements: Marco indicates fpdoc fixes might be backported in future to 2.6.1... which would probably solve a lot of problems ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: marcov on August 03, 2012, 01:44:49 pm

See the Laz 1.0RC1 announcemen thread in Team announcements: Marco indicates fpdoc fixes might be backported in future to 2.6.1... which would probably solve a lot of problems ;)

Have a look at r21999 (trunk) /r22000 (fixes). It shows how to "comment" a construct for documentation purposes, if it fails to parse.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 03, 2012, 02:28:27 pm
Thanks Marco.
Do I understand correctly that would involve commenting all code that leads to doc generation errors with {$ifndef fpdocsystem}...
Wouldn't updating the parser to correctly parse valid FPC Pascal would make much more sense?

To put it bluntly, I'd rather spend my limited time and especially capacities improving things I know about than working around problems in documentation generation that should be fixed.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: marcov on August 03, 2012, 02:36:03 pm
Thanks Marco.
Do I understand correctly that would involve commenting all code that leads to doc generation errors with {$ifndef fpdocsystem}...

The stuff that can't be fixed quickly, yes. Mostly done when swift response is needed like during release engineering

Quote
Wouldn't updating the parser to correctly parse valid FPC Pascal would make much more sense?

WAAAYP
 
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 03, 2012, 02:46:03 pm
Thanks Marco.
Do I understand correctly that would involve commenting all code that leads to doc generation errors with {$ifndef fpdocsystem}...

The stuff that can't be fixed quickly, yes. Mostly done when swift response is needed like during release engineering
Fair enough.

Quote
Wouldn't updating the parser to correctly parse valid FPC Pascal would make much more sense?

WAAAYP
http://www.mail-archive.com/lazarus@miraclec.com/msg21920.html (http://www.mail-archive.com/lazarus@miraclec.com/msg21920.html) (Note: link to ik's quote page is dead, so I really have no idea what you mean)
Also: if you meant something like: patches welcome, if not it's your problem... then I agree ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: marcov on August 03, 2012, 02:58:18 pm

WAAAYP
http://www.mail-archive.com/lazarus@miraclec.com/msg21920.html (http://www.mail-archive.com/lazarus@miraclec.com/msg21920.html) (Note: link to ik's quote page is dead, so I really have no idea what you mean)
Also: if you meant something like: patches welcome, if not it's your problem... then I agree ;)

We Are Anxiously Awaiting Your Patches :-)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 03, 2012, 09:51:48 pm
Pre announcement: fpcup goes Lazarus 1.0RC1... or at least part of the way

I committed some help-related changes in the fpcup source code to bring it more in line with the way Lazarus 1.0RC1 deals with help files.

See also
http://wiki.lazarus.freepascal.org/Installing_Help_in_the_IDE#Installing_CHM_help_.28Lazarus_1.0RC1_and_later.29

- download/create chms in lazarus/docs/chm instead of lazarus/docs/html, thereby following the new Lazarus defaults
- don't create Environment Options/Help Options/CHM Help Viewer/HelpFilesPath setting for chmhelpviewer, also following the new Lazarus defaults
- if fpcup finds a read-only lcl.chm, it won't try to build a new one and overwrite. This means you can set a known working lcl.chm and save time - the FPC 2.6 based lcl.chm generation often fails anyway, so this can help in that case. No idea if this would work on Linux and OSX though.

I also committed a fix that should build lhelp.lpi using the specified --primary-config-path. For installs on clean systems with fpcup, Lazarus bug http://bugs.freepascal.org/view.php?id=22565 (http://bugs.freepascal.org/view.php?id=22565) leads to problems: you couldn't get help unless you already had another Lazarus installed. This workaround should fix that problem.

These changes have been committed to the source code but not yet provided as a binary download.
First some additional testing of the source version by knowledgeable users would be appreciated.

Also, it would mean a change for existing fpcup users as they would have to
1. manually move their *.chm and *.xct files from lazarus/docs/html to lazarus/docs/chm
2. Change their Environment Options/Help Options/CHM Help Viewer/HelpFilesPath to an empty value

As I posted before, the source code fpcup uses by default is the more advanced (more features, newer bugs) of Lazarus trunk, but I'd like to keep fpcup as closely aligned to the default Lazarus installer as possible in order to minimize issues.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ttomas on August 07, 2012, 02:09:01 pm
FPCUp stop working yesterday also today. (I see new kzdesktop version and try to update)
Platform W7Pro 64b
fpcup64.exe from 2012-07-29

Last line when start fpcup64 without parameters is
Info: Getting module lazdatadesktop
Info: TUniversalInstaller: building module lazdatadesktop...

After that my CPU start burning with 100% CPU usage (25% with Core i5 CPU)
In task manager active is fpcup64 with 0%CPU only change increase I/O Other
and lazbuild.exe with 100%(25%) CPU and no activity (mem, read, write, handles is const)
Waiting for 1 hour and than kill lazbuild in taskmanager.

Try --clen and --uninstall, same problem
I attach --verbose result
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ludob on August 08, 2012, 01:44:37 pm
This is a new bug in lazarus. Reported in http://bugs.freepascal.org/view.php?id=22602.
Use a lazarus revision before 38190 until bug solved.

Edit: Solved in lazarus revision 38203
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 12, 2012, 10:24:49 am
New version of the Windows fpcup and fpcup64.exe ready for download
- download/create chms in lazarus/docs/chm instead of lazarus/docs/html, thereby following the new Lazarus defaults
- don't create Environment Options/Help Options/CHM Help Viewer/HelpFilesPath setting for chmhelpviewer, also following the new Lazarus defaults
- if fpcup finds a read-only lcl.chm, it won't try to build a new one and overwrite. This means you can set a known working lcl.chm and save time - the FPC 2.6 based lcl.chm generation often fails anyway, so this can help in that case. No idea if this would work on Linux and OSX though.
- prebuild lhelp.exe so you don't have to wait for it to build the first time you press F1 (also workaround for http://bugs.freepascal.org/view.php?id=22565
- In Windows installs: allow regular gdb.exe debugger as well as platform specific ones (e.g. 64 bit gdb.exe, gdb.exe) by installing regular debugger in $(LazarusDir)/mingw/$(TargetCPU)-$(TargetOS)/bin/gdb.exe. You can copy your own gdb.exe to the relevant directory (e.g. the 64 bit debugger)

Breaking changes/Important request for existing fpcup users
Please:
1. manually move your *.chm and *.xct files from lazarus/docs/html to lazarus/docs/chm. If you don't do this, you'll end up with duplicate files which may not be a big problem
2. Change their Environment Options/Help Options/CHM Help Viewer/HelpFilesPath to an empty value
3. On Windows: please check after an fpcup run that your debugger path is set to $(LazarusDir)/mingw/$(TargetCPU)-$(TargetOS)/bin/gdb.exe (and that the gdb.exe is present there, otherwise it's a bug in fpcup)

Development directions I'm thinking about:
1. Downloading the 64 bit debugger with 32 bit windows fpcup and installing it. Perhaps change directory structure from fpcboostrap to fpcupboot\i386-win32 and fpcupboot\x86_64-win64?
2. Develop fpcup as an add in package to Lazarus.

Just throwing out some thoughts below - is this a good idea in general? Do these points make sense? Any comments/additions welcome!

The fpcup Lazarus package (perhaps called lazfpcup but that's a fairly ugly name)
- should be aimed at upgrading an existing Lazarus install where the user has write access to the fpc and Lazarus directories
- should perhaps work with the regular Windows installer. Working with system wide fpc/Lazarus installs on Linux will be difficult as you'd have to run Lazarus as root, but perhaps it turns out to be easier than expected
- might use current command line fpcup to start the FPC/Lazarus download/install, then install a lazfpcup package
- should preferably use current fpcup code. Packages probably have more opportunity to find out details (e.g. primary config path) but if we go that route we should reuse existing fpcup functions and add an IsPackage parameter or similar.
- should store current compilation flags and svn revisions in the settings directory. Only if these have changed should a recompile happen
- should (at least at first) only offer support for the current Lazarus install location/primary config path. Letting a package in one Lazarus install manage another Lazarus install seems a bit messy/confusing
- should of course come with a GUI ;)

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on August 19, 2012, 03:46:13 am
I just downloaded the 2012-08-12 version of fpcup.exe and attempted to update my instance of Lazarus and that did not go well.  (looks like fpc was updated correctly).  The good news is that this issue left me with a working copy of Lazarus.  I last updated on 2012/07/31 using a 2012/08/31 version of fpcup.

Thoughts / suggestions?

Here is the fpcpu.log
Code: [Select]
[2012-08-18 20:08:19.310 Info] 8/18/2012 20:08:19: fpcup 26bc25f91129 (Sat Aug 04 09:07:17 2012 +0200) started.
 [2012-08-18 20:08:30.386 Info] TFPCInstaller init:
 [2012-08-18 20:08:30.386 Info] Bootstrap compiler dir: C:\development\fpcbootstrap\
 [2012-08-18 20:08:30.386 Info] FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
 [2012-08-18 20:08:30.386 Info] FPC options:           
 [2012-08-18 20:08:30.386 Info] FPC directory:          C:\development\fpc
 [2012-08-18 20:08:30.386 Info] Make/binutils path:     C:\development\fpcbootstrap\
 [2012-08-18 20:08:30.386 Info] External program path:  C:\development\fpcbootstrap\;C:\development\fpcbootstrap\;;C:\development\fpc\utils;C:\development\fpc\bin\i386-win32
 [2012-08-18 20:14:41.783 Info] FPC: update succeeded at revision number
 [2012-08-18 20:14:42.018 Info] TLazarusInstaller init:
 [2012-08-18 20:14:42.018 Info] Lazarus directory:      C:\development\lazarus
 [2012-08-18 20:14:42.018 Info] Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
 [2012-08-18 20:14:42.018 Info] Lazarus options:       
 [2012-08-18 20:14:42.390 Info] External program path:  C:\development\fpc\bin\i386-win32\;C:\development\fpcbootstrap\;;C:\development\lazarus
 [2012-08-18 20:19:35.799 Info] ERROR running C:\development\fpcbootstrap\make.exe "FPC=C:\development\fpc\bin\i386-win32\fpc" "--directory=C:\development\lazarus" "FPCDIR=C:\development\fpc" "UPXPROG=echo" "COPYTREE=echo" "bigide"
 [2012-08-18 20:19:35.999 Info] Command returned non-zero ExitStatus: 2
 [2012-08-18 20:19:36.202 Info] Command path set to: C:\development\fpc\bin\i386-win32\;C:\development\fpcbootstrap\;;C:\development\lazarus
 [2012-08-18 20:19:36.402 Info] Command current directory: C:\development\lazarus
 [2012-08-18 20:19:36.602 Info] Command output:
 [2012-08-18 20:19:38.114 Info]   output logged in C:\Users\John\AppData\Local\Temp\TMP00001.tmp
 [2012-08-18 20:19:39.776 Info] Getting module lhelp
 [2012-08-18 20:25:22.896 Info] Error running fpcup. Technical details: error executing sequence helplazarus; line: 4, param: helplazarus
 [2012-08-18 20:25:23.096 Info] Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 4, param: helplazarus
 [2012-08-18 20:25:23.298 Info] 8/18/2012 20:25:23: fpcup finished.
 [2012-08-18 20:25:23.498 Info] ------------------------------------------------


The end of the tmp file contained the following:
Code: [Select]
...
Compiling showdeletingfilesdlg.pas
Compiling compatibilityrestrictions.pas
Compiling restrictionbrowser.pas
Compiling projectwizarddlg.pas
Compiling resource ..\units\i386-win32\win32\lazarus.or
Linking ..\lazarus.exe
lazarus.pp(132,1) Error: Can't create object file: ..\lazarus.exe
lazarus.pp(132,1) Fatal: Can't create executable ..\lazarus.exe
Fatal: Compilation aborted
Error: C:\development\fpc\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled)
make.exe[2]: *** [lazarus.exe] Error 1
make.exe[2]: Leaving directory `C:/development/lazarus/ide'
make.exe[1]: *** [bigide] Error 2
make.exe[1]: Leaving directory `C:/development/lazarus/ide'
C:\development\fpcbootstrap\make.exe: *** [idebig] Error 2
C:\development\fpcbootstrap\make.exe: Leaving directory `C:/development/lazarus'
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 19, 2012, 03:54:09 am
Code: [Select]
lazarus.pp(132,1) Error: Can't create object file: ..\lazarus.exe
lazarus.pp(132,1) Fatal: Can't create executable ..\lazarus.exe
You probably had lazarus open at the time (or lazarus.exe was read only, permisions problems etc).
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on August 19, 2012, 04:18:56 am
I do remember shutting Laz down before I ran my fpcup_update, but it is possible I re-opened it during the update to check something.

Running fpcup a second time updated Laz successfully, so, I have to give myself a slap on the head and a "duh-stupid".

Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: TurboRascal on August 20, 2012, 07:33:58 pm
BTW, what about the modules, do all modules listed in the CLI help work? I'm particularly interested in the ccr and crosscompilation ones...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 20, 2012, 07:36:20 pm
Arny, see fpcup.html, but no.  "External" modules, such as everything in fpcup.ini, works.
Crosscompiling: only win32=>win64 enabled for now.
Win64=>win32 waits for compiler improvements.
Others: please feel free to write them ;) See fpcup.html for some guidance.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: TurboRascal on August 20, 2012, 07:43:12 pm
Well, coincidentally my first idea for what I'd like to help you develop is ccr support :)
I'll look it up... Although I don't like reading your code much because it's nice and object oriented, while I prefer mixing up much of good ol' procedural pascal into my works :D
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 20, 2012, 07:50:49 pm
Heh, I see what you mean. OOP can be boring ;)

Don't quite get what "ccr support" means compared with the current functionality, but let me know  ;)

If you really get bored, there's nothing stopping you to write an fpcup package for Lazarus ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: TurboRascal on August 20, 2012, 08:00:08 pm
Don't quite get what "ccr support" means compared with the current functionality, but let me know  ;)

Well, you answered "no" to my question above so I thought you mean that the ccr module (named "lazarus_ccr") doesn't work  :-\
So, it does work?

If you really get bored, there's nothing stopping you to write an fpcup package for Lazarus ;)

Well, if the ccr module does work, I can't remember what more could I do. ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 20, 2012, 08:36:05 pm
Code: [Select]
grep -i ccr fpcup.ini
Name=lazarus_ccr
Lazarus_ccr is one of the modules in fpcup.ini - so yes, it does work ;)

... well if you no improvement ideas for fpcup, I'm sure you'll find something else to pass the time ;) And you're always welcome to help out Ludo and me with fpcup ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: TurboRascal on August 20, 2012, 09:58:03 pm
Why not; I'm reading bits of the code these days, I hope I'll have enough time to study it all and perhaps throw in an idea or two. After I manage to chew that nice OOP code of course :D

BTW seriously, you've commented the code quite nicely so it's not so hard to read ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 21, 2012, 05:13:44 pm
Thanks  :-[
The nasty code is mine, the nice code is ludob's. But we both like to comment it ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 23, 2012, 02:26:10 pm
On Linux, fpcup does not create desktop icons but just shell scripts in the default directory or the directory specified. There is not one linux desktop but many incompatible desktops. Contributions for detecting the installed desktop(s) and adding icons are welcome  ;)

I use linuxmint 11 with gnome2
on this system (IMHO all gnome2 maybe gnome3) you can create a desktop icon using /usr/bin/xdg-desktop-icon

Hi nomorelogic,

I finally got round to adding desktop icon support to fpcup. Unfortunately, I couldn't test it on my debian xfce desktop as it doesn't seem to have xdg-desktop-icon.
If you can test it, I'd be grateful!
Edit: uploaded x64 linux binary; sorry no x86 one yet; source is updated of course.

FYI, we track the bug at
https://bitbucket.org/reiniero/fpcup/issue/35/create-desktop-icons-shortcuts-on-linux (https://bitbucket.org/reiniero/fpcup/issue/35/create-desktop-icons-shortcuts-on-linux)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: greenie on August 24, 2012, 07:11:10 am
Hi

I have just come across FPC updater and have given it a try. When I add a button to a form then double click on the button I get this error in the message window:
\lcl\lclclasses.pp(32,10) Error: unit not found: Classes

Any ideas as to what I am doing wrong?

Thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 24, 2012, 09:38:35 am
Sorry it didn't work for you.

What OS are you on?

Probably the fpcup output failed.
Please delete or rename fpcup.log (for clarity of reporting), then try again.
If fpcup fails (or the problem persists), please post

Thanks!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: greenie on August 24, 2012, 10:59:05 am
Hi

Sorry, I should have said I am using windows XP 64 bit, but I am using Lazarus 32 bit.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on August 28, 2012, 09:32:17 pm
Hi Reiniero,

I've done a little bat file that uses FPCup to update my FPC and Lazarus.
Has been working fine until yesterday when I updated the FPCup version from the repository.
I'm under windows vista 64.

And I attached my .bat file, the FCup.log and this is the output I got:

Code: [Select]
   0) Install   Lazarus + FPC SVN

   1) Update    Lazarus + FPC SVN

   C) Clean    Lazarus + FPC SVN

   F) Update    FPC SVN

   L) Update    Lazarus SVN

   U) Uninstall Lazarus + FPC SVN

   X) Exit


Select an option: 1

D:\fpcupinst>fpcup64.exe --version
fpcup
An FPC/Lazarus downloader/updater/installer
Open source freeware (modified LGPL/BSD), see:
https://bitbucket.org/reiniero/fpcup

This program will download the FPC and Lazarus sources
from the source Subversion/SVN repositories,
compile, and install.
Result: you get a fresh, up-to-date Lazarus/FPC installation.

Version: based on commit bf234d2a492c
Build date: Fri Aug 24 10:42:00 2012 +0200
Compiled for CPU: x86_64 on Win64

Info: 28/08/2012 21:11:37: fpcup bf234d2a492c (Fri Aug 24 10:42:00 2012 +0200) s
tarted.
Info: 28/08/2012 21:11:38: fpcup finished.

D:\fpcupinst>echo.


D:\fpcupinst>fpcup64.exe --binutilsdir=c:\fpc\binutils --fpcbootstrapdir=c:\fpc\
fpcbootstrap --lazURL=http://svn.freepascal.org/svn/lazarus/trunk --fpcURL=http:
//svn.freepascal.org/svn/fpc/trunk  --fpcdir=c:\fpc\2.7.1  --lazdir=c:\lazarus -
-primary-config-path=c:\lazarus\settings\ --lazlinkname="Lazarus SVN Trunk" --fp
cuplinkname="FPCUp SVN Trunk"
fpcup
An FPC/Lazarus downloader/updater/installer
Open source freeware (modified LGPL/BSD), see:
https://bitbucket.org/reiniero/fpcup

This program will download the FPC and Lazarus sources
from the source Subversion/SVN repositories,
compile, and install.
Result: you get a fresh, up-to-date Lazarus/FPC installation.

Version: based on commit bf234d2a492c
Build date: Fri Aug 24 10:42:00 2012 +0200
Compiled for CPU: x86_64 on Win64

Info: 28/08/2012 21:11:38: fpcup bf234d2a492c (Fri Aug 24 10:42:00 2012 +0200) s
tarted.

Options:
Binutils/make dir:      C:\fpc\binutils
Bootstrap compiler dir: C:\fpc\fpcbootstrap\
Lazarus shortcut name:  Lazarus SVN Trunk
Shortcut fpcup name:    FPCUp SVN Trunk
FPC URL:                http://svn.freepascal.org/svn/fpc/trunk
FPC options:
FPC directory:          C:\fpc\2.7.1
Lazarus directory:      C:\lazarus
Lazarus primary config path:
(Lazarus settings path) c:\lazarus\settings\
Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
Lazarus options:
Keep local changes:     no
Parameter list:         --binutilsdir="c:\fpc\binutils" --fpcbootstrapdir="c:\fp
c\fpcbootstrap" --fpcdir="c:\fpc\2.7.1" --lazdir="c:\lazarus" --fpcuplinkname="F
PCUp SVN Trunk" --fpcURL="http://svn.freepascal.org/svn/fpc/trunk" --lazlinkname
="Lazarus SVN Trunk" --lazURL="http://svn.freepascal.org/svn/lazarus/trunk" --pr
imary-config-path="c:\lazarus\settings\"



Continue (Y/n): Y
Info: C:\fpc\fpcbootstrap\ppcx64.exe is not a valid ppcx64.exe application. ppcx
64.exe exists but shows no (Free Pascal Compiler) in its output.
Info: Going to download C:\Users\David\AppData\Local\Temp\TMP00000.tmp from URL:
 ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/i386-win32-ppc386.zip
Info: Going to rename/move C:\Users\David\AppData\Local\Temp\ppc386.exe to C:\fp
c\fpcbootstrap\ppc386.exe
Info: FPC: running make distclean:
Info: Checking out/updating FPC sources...
Info: FPC was at: revision 22259
Info: FPC is now at: revision 22263
Info: TFPCInstaller: building module FPC...
Info: Running make cycle for FPC64:
Info: Running make all install for FPC:
Info: Error running fpcup. Technical details: error executing sequence fpc; line
: 5, param: FPC
Info: Error running fpcup. Technical details: error executing sequence Default;
line: 2, param: fpc
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- try removing all intermediate files by running fpcup with the --clean option
- if that does not work: use the --uninstall option to remove all files (including your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 28/08/2012 21:19:14: fpcup finished.

D:\fpcupinst>GOTO finish

Presione una tecla para continuar . . .

I compiled the HGVersion project before I compiled FPCup.
And I'm using the fpcup.ini from the repository.

Log and .bat are on the .rar attached.

Any help with this will be greatly appreciated.
David
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 29, 2012, 09:02:33 am
Nice batch file ;)

Edit: looking at your output, it seems your 64 bit fpcup is trying to download the 32 bit bootstrap compiler, which is obviously wrong.. Edit2: Actually, this is as expected, there is no x64 bootstrap compiler that can be downloaded; fpcup downloads the x86 version and builds ppcx64 itself. I just tested with a missing ppcx64.exe and it was nicely generated.

Please let me check this and come up with a fix. Thanks for the report.

Old stuff below:

Unfortunately, the log doesn't say much apart from the fact that fpc compilation failed. You could run fpcup with --verbose to get more info about what happened.

As you are running the FPC trunk version, my guess is that the FPC repo itself had an error which lead to compilation problems.
Rerunning with a later (or earlier) revision may help.

Additionally, sometimes there's old .ppu, .o, and .a files around that mess with compilation. An fpcup --clean and/or cd <fpcdir>, del *.ppu /s, del *.o /s, del *.a /s may help then.

If you're still having problems, could you attach the output from fpcup --verbose? Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on August 29, 2012, 08:26:09 pm
Hi Rainiero,

Nice batch file ;)

You're more than welcome to adapt it and use it on FPCUp.

Edit2: Actually, this is as expected, there is no x64 bootstrap compiler that can be downloaded; fpcup downloads the x86 version and builds ppcx64 itself. I just tested with a missing ppcx64.exe and it was nicely generated.

There is an special reason for not to have a x64 bootstrap compiler?

Unfortunately, the log doesn't say much apart from the fact that fpc compilation failed. You could run fpcup with --verbose to get more info about what happened.

Well I knew there was a reason I avoided the --verbose option:

Code: [Select]
fpcup64.exe --binutilsdir=%BINUTILSDIR% --fpcbootstrapdir=%FPCBOOTSTRAPDIR% --lazURL=%LAZURL% --fpcURL=%FPCURL% --fpcdir=%FPCDIR% --lazdir=%LAZDIR% --primary-config-path=%PCONFPATH% --lazlinkname=%LAZLNKNAME% --fpcuplinkname=%FPCULNKNAME% --verbose
Produces this FPCup (cutt for brevity):

 
Code: [Select]
[2012-08-29 19:35:14.568 Info] 29/08/2012 19:35:14: fpcup bf234d2a492c (Fri Aug 24 10:42:00 2012 +0200) started.
 [2012-08-29 19:35:45.318 Info] TFPCInstaller init:
 [2012-08-29 19:35:45.318 Info] Bootstrap compiler dir: C:\fpc\fpcbootstrap\
 [2012-08-29 19:35:45.318 Info] FPC URL:                http://svn.freepascal.org/svn/fpc/trunk
 [2012-08-29 19:35:45.318 Info] FPC options:           
 [2012-08-29 19:35:45.318 Info] FPC directory:          C:\fpc\2.7.1
 [2012-08-29 19:35:45.318 Info] Make/binutils path:     C:\fpc\binutils
 [2012-08-29 19:35:45.319 Info] External program path:  C:\fpc\fpcbootstrap\;C:\fpc\binutils;;C:\fpc\2.7.1\utils;C:\fpc\2.7.1\bin\x86_64-win64
 [2012-08-29 19:35:45.519 Info] Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP00000.tmp
 ...
 [2012-08-29 19:45:05.078 Info] Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP01760.tmp
 [2012-08-29 19:45:11.027 Info] FPC: update succeeded at revision number
 [2012-08-29 19:45:11.264 Info] TLazarusInstaller init:
 [2012-08-29 19:45:11.264 Info] Lazarus directory:      C:\lazarus
 [2012-08-29 19:45:11.264 Info] Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
 [2012-08-29 19:45:11.264 Info] Lazarus options:       
 [2012-08-29 19:45:11.425 Info] External program path:  C:\fpc\2.7.1\bin\x86_64-win64\;C:\fpc\binutils;;C:\lazarus
 [2012-08-29 19:45:54.798 Info] Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP01761.tmp
 ...
 [2012-08-29 19:49:25.552 Info] Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP02987.tmp
 [2012-08-29 19:49:32.885 Info] Getting module lhelp
 [2012-08-29 19:49:33.285 Info] TUniversalInstaller: building module lhelp with these commands: Name=lhelp
 Enabled=1
 Workingdir=$(lazarusdir)/components/chmhelp/lhelp
 InstallExecute1=$(lazarusdir)/lazbuild --primary-config-path=$(LazarusPrimaryConfigPath) $(lazarusdir)/components/chmhelp/lhelp/lhelp.lpr
 AddPackage1=$(lazarusdir)\components\chmhelp\packages\idehelp\chmhelppkg.lpk
 RegisterHelpViewer=$(Workingdir)/$(name)

 [2012-08-29 19:49:33.487 Info] TUniversalInstaller: running ExecuteCommandInDir for C:\lazarus\lazbuild --primary-config-path=c:\lazarus\settings\ C:\lazarus\components\chmhelp\lhelp\lhelp.lpr
 [2012-08-29 19:49:36.364 Info] Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP02988.tmp
 [2012-08-29 19:49:36.507 Info] Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP02989.tmp
 [2012-08-29 19:49:36.645 Info] Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP02990.tmp
 [2012-08-29 19:49:39.931 Info] Error running fpcup. Technical details: error executing sequence helplazarus; line: 4, param: helplazarus
 [2012-08-29 19:49:40.131 Info] Error running fpcup. Technical details: error executing sequence Default; line: 4, param: helplazarus
 [2012-08-29 19:49:40.334 Info] 29/08/2012 19:49:40: fpcup finished.
 [2012-08-29 19:49:40.534 Info] ------------------------------------------------

It creates several thousands of tmp files (that are not combined on the original FPCUp, or even deleted after FPCUp finishes.

On my output console the problem is when FPCup tries to compile and install the Lazarus Documentation files:

Code: [Select]
UnZip and ZipInfo environment options:
           UNZIP:  [none]
        UNZIPOPT:  [none]
         ZIPINFO:  [none]
      ZIPINFOOPT:  [none]
Info: HELPLAZARUS: documentation directory: C:\lazarus\docs\chm\
Info: Going to download C:\Users\David\AppData\Local\Temp\TMP01739.tmp.zip from
URL: http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazar
us%201.0RC1/fpc-lazarus-doc-chm-1.0RC1.zip/download
Executing : C:\fpc\binutils\unzip.exe "-o" "-j" "-d" "C:\lazarus\docs\chm\" "C:\
Users\David\AppData\Local\Temp\TMP01739.tmp.zip" (working dir: )
Archive:  C:/Users/David/AppData/Local/Temp/TMP01739.tmp.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in C:/Users/David/AppData/Local/Temp/TMP01
739.tmp.zip,
        and cannot find C:/Users/David/AppData/Local/Temp/TMP01739.tmp.zip.zip,
period.
WARNING: helplazarus: unzip failed with resultcode: 9
Info: Error running fpcup. Technical details: error executing sequence helplazar
us; line: 4, param: helplazarus
Info: Error running fpcup. Technical details: error executing sequence Default;
line: 4, param: helplazarus
FPCUp failed.
Please check log for details. Possible troubleshooting steps:
- make sure there's a valid SVN executable in your path.
- try removing all intermediate files by running fpcup with the --clean option
- if that does not work: use the --uninstall option to remove all files (includi
ng your FPC and lazarus directories)
- remove the bootstrap compiler. fpcup will download it if required.
Info: 29/08/2012 20:53:02: fpcup finished.

D:\fpcupinst>GOTO finish

Presione una tecla para continuar . . .
Additionally, sometimes there's old .ppu, .o, and .a files around that mess with compilation. An fpcup --clean and/or cd <fpcdir>, del *.ppu /s, del *.o /s, del *.a /s may help then.

Is this the way to use the --clean option?

Code: [Select]
fpcup64.exe --clean --binutilsdir=%BINUTILSDIR% --fpcbootstrapdir=%FPCBOOTSTRAPDIR% --lazURL=%LAZURL% --fpcURL=%FPCURL% --fpcdir=%FPCDIR% --lazdir=%LAZDIR% --primary-config-path=%PCONFPATH% --lazlinkname=%LAZLNKNAME% --fpcuplinkname=%FPCULNKNAME%
Thanks for your help.
David
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 29, 2012, 08:40:20 pm
Hi David,

There is an special reason for not to have a x64 bootstrap compiler?
Ask the fpc guys ;) There is no stand alone ppcx64.exe compiler that can be downloaded.

Produces this FPCup (cutt for brevity):

 
Code: [Select]
[2012-08-29 19:35:14.568 Info] 29/08/2012 19:35:14: fpcup bf234d2a492c (Fri Aug 24 10:42:00 2012 +0200) started.
 [2012-08-29 19:35:45.318 Info] TFPCInstaller init:
 [2012-08-29 19:35:45.318 Info] Bootstrap compiler dir: C:\fpc\fpcbootstrap\
 [2012-08-29 19:35:45.318 Info] FPC URL:                http://svn.freepascal.org/svn/fpc/trunk
 [2012-08-29 19:35:45.318 Info] FPC options:           
 [2012-08-29 19:35:45.318 Info] FPC directory:          C:\fpc\2.7.1
 [2012-08-29 19:35:45.318 Info] Make/binutils path:     C:\fpc\binutils
 [2012-08-29 19:35:45.319 Info] External program path:  C:\fpc\fpcbootstrap\;C:\fpc\binutils;;C:\fpc\2.7.1\utils;C:\fpc\2.7.1\bin\x86_64-win64
 [2012-08-29 19:35:45.519 Info] Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP00000.tmp
It creates several thousands of tmp files (that are not combined on the original FPCUp, or even deleted after FPCUp finishes.
Ok. Then you could paste the part up to and including the first "Verbose output saved to ..." and attach that verbose output file. Let's see if that points to a problem that needs to be fixed...

On my output console (sorry forgot to capture it), the problem is when FPCup tries to compile and install the Lazarus Documentation files.
Strange. I've added extra error handling to that a while ago as fpdoc doesn't always work too reliably...

Is this the way to use the --clean option?

Code: [Select]
fpcup64.exe --clean --binutilsdir=%BINUTILSDIR% --fpcbootstrapdir=%FPCBOOTSTRAPDIR% --lazURL=%LAZURL% --fpcURL=%FPCURL% --fpcdir=%FPCDIR% --lazdir=%LAZDIR% --primary-config-path=%PCONFPATH% --lazlinkname=%LAZLNKNAME% --fpcuplinkname=%FPCULNKNAME%
Yes, that seems about right: just add --clean to the rest of the options.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on August 29, 2012, 09:27:47 pm
Hi Rainiero,

Using the option 1 on my bat file to update FPC + Lazarus. This is what is inside of TMP00000.tmp:

Code: [Select]
[2012-08-29 21:25:30.930 Info] Executing : C:\fpc\binutils\make.exe "FPC=C:\fpc\fpcbootstrap\ppcx64.exe" "--directory=C:\fpc\2.7.1" "UPXPROG=echo" "COPYTREE=echo" "distclean" (working dir: C:\fpc\2.7.1)
Thanks again for your help
David
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 29, 2012, 09:35:57 pm
Totally weird; I can reproduce the creation of numerous .tmp files as well.

I'll have to look into this.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 30, 2012, 02:42:44 pm
Using the option 1 on my bat file to update FPC + Lazarus. This is what is inside of TMP00000.tmp:

Code: [Select]
[2012-08-29 21:25:30.930 Info] Executing : C:\fpc\binutils\make.exe "FPC=C:\fpc\fpcbootstrap\ppcx64.exe" "--directory=C:\fpc\2.7.1" "UPXPROG=echo" "COPYTREE=echo" "distclean" (working dir: C:\fpc\2.7.1)
Hi David,

Found the logging problem and fixed it. --verbose should now give one big console+debug details output dump file in TMP....tmp
Uploaded new x86+x64 binaries for Windows.

Please retest if fpcup still fails.
If it does, please run fpcup --clean first, then manually remove all .ppu, .o, .a files (the "nuclear" cleaning option), then run fpcup again.

If it fails, please run with --verbose and attach fpcup.log and the tmp....tmp file.

Thanks for testing and reporting the bugs... sorry they were there!

Regards,
Reinier aka BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on August 31, 2012, 09:50:27 pm
Hi Rainiero,

FPC and Lazarus look that compile fine, the error is still on the  Lazarus docs installation:

Code: [Select]

Info: HELPLAZARUS: documentation directory: C:\lazarus\docs\chm\
Info: Going to download C:\Users\David\AppData\Local\Temp\TMP00003.tmp.zip from
URL: http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazar
us%201.0RC1/fpc-lazarus-doc-chm-1.0RC1.zip/download
Executing : C:\fpc\binutils\unzip.exe "-o" "-j" "-d" "C:\lazarus\docs\chm\" "C:\
Users\David\AppData\Local\Temp\TMP00003.tmp.zip" (working dir: )
Archive:  C:/Users/David/AppData/Local/Temp/TMP00003.tmp.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in C:/Users/David/AppData/Local/Temp/TMP00
003.tmp.zip,
        and cannot find C:/Users/David/AppData/Local/Temp/TMP00003.tmp.zip.zip,

The zip file is in THAT directory I checked it, and have a look to that double extension added on the error??

And FPCUp generated 3 TMP files, 00000, 00001 and 00002.TMP

I attached the TMP and FPCup logs.

Thanks for all your help, FPCUp is really nice and becoming better.
David
 
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 01, 2012, 07:50:38 am
Hi David,

That's a very... interesting error. Unzip thinks the zip file is corrupt. And it probably is, the 1.0RC1 help file fpcup was trying to download was removed from sourceforge. I've updated fpcup source,winx86 and win64 to use the 1.0 version, which should presumably stay up a lot longer. Also looking to see if I can improve the error detection for incorrect downloads there, but I don't think so - you don't get a 404 page but get kicked back to the Lazarus page (presumably with a 200 code) and a javascript error popup...

Sorry for the trouble.

A workaround would be to download the zip file yourself and extract it in <lazarus>\docs\chm

Yes, I noticed the double .zip extension in the error message later - no idea if this is normal for unzip...
Title: IMPORTANT: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux
Post by: BigChimp on September 01, 2012, 08:17:32 am
Dear fpcup users,

We've changed Linux/*nix fpcup to install the lazarus, fpc and extras directories by default into
Code: [Select]
~/development
instead of the separate
Code: [Select]
~/lazarus
~/fpc
~/extras
directories that were used before.
This reduces clutter in your directory and aligns Linux fpcup with the Windows version.

We've added the --installdir argument that sets this directory (on Windows as well as Linux), so instead of messing with --bootstrapdir, --fpcupdir, --lazdir, --binutilsdir if you want to install somewhere else, you can just use --installdir

On Windows, the default locations remain the same for now, but we're working on detecting if a user is a non-admin... and instead of erroring out because c:\development can't be created, it could install in the user's profile directory.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 20, 2012, 04:45:27 pm
Uploaded new linux x64 version to downloads. This version uses the new paths (see post above).
Also uploaded new Windows versions.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: miquelmatas on September 20, 2012, 04:51:49 pm
Thanks very much!

Great work.

Cheers,
Miquel.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 20, 2012, 05:33:49 pm
My pleasure.

BTW: just found out on the FPC mailing list current fpc trunk has problems building:
Quote
bug in the fpmake-related cleaning logic that doesn't delete all units (even when using make distclean). You have to manually delete all units/$fpctarget directories under packages to work around it.

... looks like I'll have to build a workaround in fpcup for this...
Workaround if you hit issues compiling FPC trunk (happens to me on Windows):
Delete all .ppu, .o and .a files manually:
Code: [Select]
cd <yourfcptrunkdir>
del *.ppu /s
del *.a /s
del *.o /s
... then rerun fpcup
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 22, 2012, 09:38:52 am
I've implemented a workaround: our own "make clean" alternative that removes .ppu, .a, .o files (and some others for Lazarus) from the relevant directories (e.g. those with a  i386-win32 directory in the path if building for 32 bit Windows).
The build step of fpcup will then do an svn up to restore some of these files that were deleted (.a/.o files) and build.

FPC trunk builds on Windows, including cross compiler seem to work fine.
It also is a bit faster than it used to be ;)
Not tested on Linux yet.

Of course, the consequence is that you shouldn't mix FPC/Lazarus + third party components in your FPC/Lazarus dirs as this cleaning mechanism may clean other ppus as well.
Short of recreating the entire make/fpcmake/fpmake/flavour of the week make structure I don't really see any solution to that, but people shouldn't really do this in the first place, I think.

Enterprising users can checkout the current code and report back; I haven't yet uploaded binaries with this new functionality.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: r_1gm on September 23, 2012, 08:46:06 am
Hi BigChimp,

i don't know why but it's happen when i use the newest fpcup(windows version) from the download.

in module section : Installdir=$(fpcdir)/../extras/$(name)
my fpcdir=e:\development\fpc\

when building module it become
e:\development\fpc\extras\(the package)
it should be
e:\development\extras\(the package)

and this is the error message

Info: ERROR running E:\development\lazarus\lazbuild.exe "--pcp=e:\development\lazarusdevsettings" "--add-package" "E:\development\fpc\extras\zeostesting\packages\lazarus\zcomponent.lpk"

extras package downloaded to e:\development\extras\ by fpcup


Best Regards
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 23, 2012, 12:29:41 pm
Hi r_1gm,

Sorry, I think you spotted a bug...
Just to verify though: you're using the i386 windows version, not the x64 version?

When activating the zeos module in fpcup.ini I'm seeing some issues (using the development version):
Code: [Select]
Info: Getting module zeostesting
Info: ERROR: repository URL in local directory and remote repository don't match.
Info: Local directory: C:\development\fpc\\..\extras\zeostesting
Info: Have you specified the wrong directory or a directory with an old SVN checkout?
The $(fpcdir) and $(lazarudir) macros were not checked for a trailing path delimiter (e.g. e:\development\fpc\) which should be corrected here (e.g. to e:\development\fpc)

Also, the svn code had problems comparing the repository used in a local directory with a remote repository if there was a trailing \ in the path. Also fixed that.

As a workaround, you may try specify your lazdir and fpcdir without the trailing \ in your fpcup options. That may work (but I'm not sure).

In any case, I've committed fixes in the development code (commit 09d88a8c2313 and ddd0f00f369f). You might want to try that one instead.

Note the warning about changing configuration etc
http://lazarus.freepascal.org/index.php/topic,15919.msg101222.html#msg101222 (http://lazarus.freepascal.org/index.php/topic,15919.msg101222.html#msg101222)
Also, I think the current development version on Windows may place the Lazarus config (primary config) in a different location. Of course, it will tell you where that is before asking to continue.
You can copy over your existing config if you want to.

Thanks for reporting the bug, hope the new version works for you. If not, let me know!

Thanks,
BigChimp
Title: [IMPORTANT]: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux
Post by: BigChimp on September 23, 2012, 12:34:06 pm
Path change:
Current Windows development versions store the Lazarus configuration files (primary config path) in c:\development\lazarus_config by default.

That used to be in the user's %localappdata% folder, but this has been changed to make the installation more portable (e.g. you can delete the entire c:\development directory and be sure you removed everything).
With some tweaks, this may be adapted to also allow installation on USB sticks etc.

Of course, you can still use --primary-config-dir to explicitly set the config dir.
To migrate to the new situation, you can simply copy over the contents from your existing settings folder under %localappdata% after running fpcup and before starting Lazarus.

Thanks,
BigChimp

PS: Would anybody like to help set up a wiki page for fpcup? It seems to be this thread is getting very long and nobody can be expected to read everything...
Edit: Just remembered I already have a wiki on the bitbucket page. It makes more sense to keep all info there. I'll try and post updates there and link to them from this thread.
Of course, if somebody wants to make an fpcup page on the Lazarus wiki, that's fine by me.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: r_1gm on September 23, 2012, 01:23:23 pm
i'am using i386 windows version

delete old fpcup.ini
download new source
compile
run fpcup....

it works  :D

thank you BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on September 27, 2012, 12:29:08 pm
Hi Rainiero,

I tried to use FPCup with my bat file (refined) and I'm getting errors again compiling under Vista 64. It stops after FPC compiles fine.

Attached the logs and my .bat and fpcup.in (from SVN).

David
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 27, 2012, 01:17:29 pm
Thanks for the report and the comprehensive set of files, David.

However.... ;) ...
The log files show that fpcup (thinks it) failed in compiling fpc; the tmp*.tmp log doesn't really show anything weird to me.

Could you run fpcup --verbose and send the output? (Looks like you need to press V when running the batch file... nifty ;)  )

I still have to fix the detailed logging output so it spits out more details if something goes wrong... having to run --verbose shouldn't really be necessary. Well, too much to do and not enough time.

Meanwhile, I'm trying to modify your batch file to redirect output to a text file if verbose is chosen ;) I'll post if I've got something relevant...
Sorry was editing it when I thought: "Why am I editing batch files again while I created fpcup to be rid of them". Not going to do that.

ludob and I decided to add support for the argument line options in fpcup into an ini file, to make it easier to save various profiles with settings. Once we get started on that, it will be much easier to write a GUI program that drives fpcup... and if wanted, also a console based version...
Stay tuned...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on September 27, 2012, 02:05:05 pm
Hi Rainiero,

That tmp*.TMP file is with the --verbose option by default. My .bat file sets it as active by default.

I didn't tried to run FPCup YET again, so from the files I attached :

fpcup.log:

Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP00003.tmp <-- So verbose was on.
Error running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC        <-- Here is the error
Error running fpcup. Technical details: error executing sequence Default; line: 2, param: fpc

I guess that is what you mean with FPCup thinks it failed.

BTW my bat is only like a miniGUI, only to not to write manually all the FPCup options on the command line.

I like the idea of an startup ini file, it will do my .bat file unnecessary then.

And is possible in FPCUp to update FPC or Lazarus independently???

I added those two options to my bat file, but I don't think they work, because I need to pass ALL the options to FPCUp (basically updating BOTH).

This will update FPC but will installl a new lazarus on the default dir without realizing is installed on a different dir previously.
:updfpc
fpcup64.exe --binutilsdir=%BINUTILSDIR% --fpcbootstrapdir=%FPCBOOTSTRAPDIR% --fpcURL=%FPCURL% --fpcdir=%FPCDIR% --fpcuplinkname=%FPCULNKNAME% %VERB%


I think this one will update BOTH.
:updlaz
fpcup64.exe --binutilsdir=%BINUTILSDIR% --fpcbootstrapdir=%FPCBOOTSTRAPDIR% --fpcdir=%FPCDIR% --lazURL=%LAZURL% --lazdir=%LAZDIR%  --lazlinkname=%LAZLNKNAME% --fpcuplinkname=%FPCULNKNAME% %VERB% --primary-config-path=%PCONFPATH%



Thanks a lot,
David

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 27, 2012, 02:47:50 pm
That tmp*.TMP file is with the --verbose option by default. My .bat file sets it as active by default.
No, I mean redirect the output that verbose gives to a text file: fpcup --verbose > mylog.txt

Verbose output saved to C:\Users\David\AppData\Local\Temp\TMP00003.tmp <-- So verbose was on.
Error running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC        <-- Here is the error
Error running fpcup. Technical details: error executing sequence Default; line: 2, param: fpc

I guess that is what you mean with FPCup thinks it failed.
Yep.

BTW my bat is only like a miniGUI, only to not to write manually all the FPCup options on the command line.
You do know that fpcup saves the options you give it to a batch file, right?


And is possible in FPCUp to update FPC or Lazarus independently???
Use only, e.g. something like (haven't tested it) --only=fpc and --only=lazarus,useride
The commands you gave were wrong. Use fpcup --help to see what the options should do.

Good luck,
Reinier
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on September 27, 2012, 08:42:14 pm
No, I mean redirect the output that verbose gives to a text file: fpcup --verbose > mylog.txt
I have those option on my batch file, simply commented at the end (on the next line with a REM) of each option.

@REM --only=%MODULESONLY% --noconfirm %* 1>fpcupupdatlog.txt 2>&1

You do know that fpcup saves the options you give it to a batch file, right?

No I didn't  :-[

I bet is an option I missed on the help as well.

Use only, e.g. something like (haven't tested it) --only=fpc and --only=lazarus,useride
The commands you gave were wrong. Use fpcup --help to see what the options should do.

Good luck,
Reinier

I knew I was missing something to make those work. I will try those.

Thanks
David
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 28, 2012, 08:07:33 am
No, I mean redirect the output that verbose gives to a text file: fpcup --verbose > mylog.txt
I have those option on my batch file, simply commented at the end (on the next line with a REM) of each option.

@REM --only=%MODULESONLY% --noconfirm %* 1>fpcupupdatlog.txt 2>&1

I don't think I can help you without that output.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on September 28, 2012, 10:37:01 am
Hi Rainiero,

I just attached the usual two logs as well as the output you asked for.

Thanks in advance,
David
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 28, 2012, 11:02:33 am
Thanks davido,

Very strange. The verbose output shows no errors either.
You may try setting binutilsdir and fpcbootstrapdir to the same directory (c:\fpc\fpcbootstrap), copying over all files from c:\fpc\binutils and trying again, but that's more of a guess.
In default fpcup, binutilsdir and fpcbootstrapdir are the same, and I've never used it differently, so that code path may show some errors.

Your--primary-config-path is below your --lazdir; I would not do that but set it to e.g. c:\lazarussettings. This way your lazarus directory is independent from your settings. You can delete the lazarus dir start over and still have your settings.
However, it's up to you...

As an aside: your lazdir is set to c:\lazarus, which is the default location for the official installer; you might want to change that to avoid conflicts.

I'm going to run fpcup with slightly modified settings (the directory names) to see if I can spot anything strange.
If we can't find anything, you can try removing the lazarus and fpc dirs and trying again so it does a new svn checkout, update etc. It's a bit like rebooting Windows to see if your problems are fixed, but who knows...

Regards,
Reinier
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on September 28, 2012, 11:42:14 am
Thanks davido,

Very strange. The verbose output shows no errors either.
You may try setting binutilsdir and fpcbootstrapdir to the same directory (c:\fpc\fpcbootstrap), copying over all files from c:\fpc\binutils and trying again, but that's more of a guess.
In default fpcup, binutilsdir and fpcbootstrapdir are the same, and I've never used it differently, so that code path may show some errors.

Hi Rainiero,

I tried using the c:\fpc\fpcbootstrap as boostrap dir and binutils dir as you suggested. Same results with the same error on fpcup.log.
I'm on a really slow 3G connection right now, so I can't recheck the repositories right now if I erase everything.

Can you please tell me the settings need for that clean up nuke option you said you added a few versions back? Or is the same --clean as always??

Thanks a lot,
David
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 28, 2012, 11:51:30 am
Hi Daividoooo,

Yes, the nuke clean is --clean. You can also do the manual option as specified above.

Edit: you may also first try a manual svn revert . --recursive in both lazarus and fpc to get rid of any (inadvertent) local modifications.
Then the del *.ppu /s.... svn up . etc in my previous post.

With these settings adapted from yours:
Code: [Select]
fpcup --binutilsdir="c:\davidfpc\binutils"  --fpcbootstrapdir="c:\davidfpc\fpcbootstrap" --fpcdir="c:\davidfpc\2.7.1" --lazdir="c:\davidlazarus" --fpcuplinkname="davidFPCUp SVN Trunk" --lazlinkname="davidLazarus_fpcup" --primary-config-path="c:\davidlazarus\settings" --fpcURL="http://svn.freepascal.org/svn/fpc/trunk" --lazURL="http://svn.freepascal.org/svn/lazarus/trunk"  --verbose
fpcup
Code: [Select]
Version: based on commit a7db84e387b3
Build date: Fri Sep 28 08:51:19 2012 +0200
Compiled for CPU: i386 on Win32

runs for me without problems.

Regards,
Reinier
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: dballesg on September 28, 2012, 12:55:10 pm
Hi Rainiero,

After try the --clean options and manually cleaning and reverting the fpc and lazarus repositories I couldn't meake it work. Same error.

So I checked out the FPCup repository, recompiled HGVersion, and FPCup, and tried again and it worked.

Now the error is on the Lazarus Help installation:

nfo: Going to download C:\Users\David\AppData\Local\Temp\TMP00008.tmp.zip from URL: http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazarus%201.0/fpc-lazarus-doc-chm-1.0.zip/download
ERROR: Download: error occurred downloading file C:\Users\David\AppData\Local\Temp\TMP00008.tmp.zip from URL: http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazarus%201.0/fpc-lazarus-doc-chm-1.0.zip/download. Exception occurred: Exception/No internet connection available)

But that is my crappy 3G connection.

So no more problems. I can live with that.

Thanks a lot again for the help, and of course for FPCup, it is REALLY useful.
David
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 28, 2012, 01:50:50 pm
Phew, David, glad it works for you!

You can disable downloading the lazarus help if you (if I remember correctlY) make the lcl.chm, fpc.chm rtl.chm etc files read only.

Regards,
Reinier

PS: Your crappy 3G connection does make you the prime tester for corner cases in fpcup... ;) Thanks for the reports and hope it keeps working. If not, post and we'll try and fix it again...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: TurboRascal on September 28, 2012, 09:26:33 pm
Hi Daividoooo,

Hey Reinier, I'd say somebody didn't get the hint  O:-)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on October 06, 2012, 05:30:36 am
I just downloaded and attempted to use the 2012-09-20 version of fpcup. (fpcup 787deee08af5 (Sun Sep 16 05:32:14 2012 +0200)).  My prior version was 2012/July/31 version.  I had not updated my Laz instance for about four weeks.

I'm having issues similar to those experienced by dballesg.

Code: [Select]
[2012-10-05 22:04:10.204 Info] Error running fpcup. Technical details: error executing sequence fpc; line: 2, param: FPC
[2012-10-05 22:04:10.405 Info] Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 2, param: fpc

so, (reading the past posts...), I tried the following
- deleted all .ppu, .o, .a files in the ftp directory
    - same results
- fpcup --clean
    - same results
- deleted fpcbootstrap directory
    - same results
- fpcup --uninstall
  Which failed (see below), possibly because the /fpc directory is a SVN directory?

Code: [Select]
[2012-10-05 22:06:44.055 Info] Error deleting FPC directory C:\development\fpc\
[2012-10-05 22:06:44.256 Info] Error running fpcup. Technical details: error executing sequence fpcuninstall; line: 2, param: FPC
[2012-10-05 22:06:44.457 Info] Error running fpcup. Technical details: error executing sequence defaultuninstall; line: 2, param: fpcuninstall
[2012-10-05 22:06:44.658 Info] Error running fpcup. Technical details: error executing sequence DefaultWin32uninstall; line: 2, param: defaultuninstall

Now I'm checking out the fpc svn (taking a while).  If fpcup does not work after that, I'll manually delete all of the directories in my fpcup directory and start fresh.

Any thing else I should be trying?

Win32-Vista, 32 bit instance of ftpup
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 06, 2012, 05:50:57 am
@ipguy: do you have default settings for everything?
Note that trunk fpc has issues with cleanup:
http://lists.freepascal.org/lists/fpc-pascal/2012-September/034936.html (http://lists.freepascal.org/lists/fpc-pascal/2012-September/034936.html)
later fpcup versions (after David's thread) have a workaround for that.

Unfortunately the current dev environment doesn't appear to be totally stable for Laz builds.


Code: [Select]
deleted all .ppu, .o, .a files in the ftp directory... assume you mean c:\development\fpc there? Ok.
I'd follow it by an svn up c:\development\fpc to get essential files back, though fpcup should run that for you as well.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on October 06, 2012, 06:00:32 am
Hi BigChimp,
Thanks for the very prompt followup.

My fpcup options are below and I believe they are very close to the defaults.

Code: [Select]
Options:
Binutils/make dir:      C:\development\fpcbootstrap\
Bootstrap compiler dir: C:\development\fpcbootstrap\
Lazarus shortcut name:  Lazarus_trunk
Shortcut fpcup name:    fpcup_update
FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
FPC options:
FPC directory:          C:\development\fpc\
Lazarus directory:      C:\development\lazarus\
Lazarus primary config path:
(Lazarus settings path) C:\Users\John\AppData\Local\lazarusdevsettings
Lazarus URL:            http://svn.freepascal.org/svn/lazarus/trunk
Lazarus options:
Keep local changes:     no
Parameter list:

re: fpc directory - yes, I did mean "c:\development\fpc".
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 06, 2012, 06:09:15 am
Ok, I'll download your version and have a go with my FPC fixes 2.6 version, see if I can reproduce it...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 06, 2012, 06:22:45 am
Oh BTW, there's a bug in FPC 2.6.1 caused by a partial backport.
See
http://bugs.freepascal.org/view.php?id=23067 (http://bugs.freepascal.org/view.php?id=23067)
You can fix it by applying this diff/adding the libfc and libem definitions:
Code: [Select]
Index: packages/ibase/src/ibase60.inc
===================================================================
--- packages/ibase/src/ibase60.inc      (revision 22554)
+++ packages/ibase/src/ibase60.inc      (working copy)
@@ -41,6 +41,8 @@
     gdslib = 'gds32.dll';
     fbclib = 'fbclient.dll';
     fbembedlib = 'fbembed.dll';
+    libfc  = fbclib;
+    libem  = fbembedlib;
 {$ENDIF}

 type

Perhaps your issues were caused by this!?!?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 06, 2012, 06:38:25 am
@ipguy With your binary version, I see this when building Lazarus:

Compiling lazarus.pp
PPU Loading C:\development\lazarus\lcl\units\i386-win32\interfacebase.ppu
PPU Source: interfacebase.pp not found
PPU Source: winapih.inc not found
PPU Source: lclintfh.inc not found
PPU Source: interfacebase.inc not found
PPU Source: intfbasewinapi.inc not found
PPU Source: intfbaselcl.inc not found
Recompiling InterfaceBase, checksum changed for Classes
interfacebase.pp(70,12) Fatal: Can't find unit InterfaceBase used by Interfaces
TExternalToolList.Run Exception: interfacebase.pp(70,12) Fatal: Can't find unit
InterfaceBase used by Interfaces
ERROR: tool reported error
 (http://Compiling lazarus.pp
PPU Loading C:\development\lazarus\lcl\units\i386-win32\interfacebase.ppu
PPU Source: interfacebase.pp not found
PPU Source: winapih.inc not found
PPU Source: lclintfh.inc not found
PPU Source: interfacebase.inc not found
PPU Source: intfbasewinapi.inc not found
PPU Source: intfbaselcl.inc not found
Recompiling InterfaceBase, checksum changed for Classes
interfacebase.pp(70,12) Fatal: Can't find unit InterfaceBase used by Interfaces
TExternalToolList.Run Exception: interfacebase.pp(70,12) Fatal: Can't find unit
InterfaceBase used by Interfaces
ERROR: tool reported error)

Cleaning out all .ppu/.a/.o files in advance & svn up doesn't help.

The ppu in question exists but apparently can't find some include files?? Booting this to the Lazarus mailing list; perhaps it's a laz problem.

Do you see the same errors?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on October 06, 2012, 06:39:23 am
I deleted my ftp directory (C:\development\fpc\) and the bootstrap directory ( C:\development\fpcbootstrap\) and started fcpup again.

Code: [Select]
[2012-10-05 23:18:17.280 Info] 10/5/2012 23:18:17: fpcup 787deee08af5 (Sun Sep 16 05:32:14 2012 +0200) started.
 [2012-10-05 23:20:59.592 Info] DownloadBinUtils: 3 errors downloading binutils.
 [2012-10-05 23:20:59.793 Info] TFPCInstaller init:
 [2012-10-05 23:20:59.793 Info] Bootstrap compiler dir: C:\development\fpcbootstrap\
 [2012-10-05 23:20:59.793 Info] FPC URL:                http://svn.freepascal.org/svn/fpc/branches/fixes_2_6
 [2012-10-05 23:20:59.793 Info] FPC options:           
 [2012-10-05 23:20:59.793 Info] FPC directory:          C:\development\fpc\
 [2012-10-05 23:20:59.793 Info] Make/binutils path:     C:\development\fpcbootstrap\
 [2012-10-05 23:20:59.793 Info] External program path:  C:\development\fpcbootstrap\;C:\development\fpcbootstrap\;;C:\development\fpc\utils;C:\development\fpc\bin\i386-win32
 [2012-10-05 23:20:59.793 Info] Error running fpcup. Technical details: error executing sequence fpc; line: 2, param: FPC
 [2012-10-05 23:20:59.994 Info] Error running fpcup. Technical details: error executing sequence DefaultWin32; line: 2, param: fpc
 [2012-10-05 23:21:00.198 Info] 10/5/2012 23:21:00: fpcup finished.
 [2012-10-05 23:21:00.399 Info] ------------------------------------------------

Three errors downloading binutils? Might that be part of the problem?   
Download the file directly from the url? 
Interestingly, the file "libgcc_s_dw2-1.dll" does not exist in the " http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/" location.  That might be a problem.  Ditto for the other two files.

from the fpcup output ...
Code: [Select]
Info: Going to download C:\development\fpcbootstrap\libgcc_s_dw2-1.dll from URL:
 http://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/libgcc_s_dw2-1.dll
ERROR: Error downloading binutils: libgcc_s_dw2-1.dll to C:\development\fpcbootstrap\
Info: Downloading: libiconv-2.dll into C:\development\fpcbootstrap\
Info: Going to download C:\development\fpcbootstrap\libiconv-2.dll from URL: htt
p://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/libiconv-2.dll
ERROR: Error downloading binutils: libiconv-2.dll to C:\development\fpcbootstrap\
Info: Downloading: libintl-8.dll into C:\development\fpcbootstrap\
Info: Going to download C:\development\fpcbootstrap\libintl-8.dll from URL: http
://svn.freepascal.org/svn/lazarus/binaries/i386-win32/gdb/bin/libintl-8.dll
ERROR: Error downloading binutils: libintl-8.dll to C:\development\fpcbootstrap\

Note that I had deleted the fpcbootstrap directory already:
Code: [Select]
Info: C:\development\fpcbootstrap\ppc386.exe is not a valid ppc386.exe application. ppc386.exe exists but shows no (Free Pascal Compiler) in its output.
Info: Make path C:\development\fpcbootstrap\ does not exist. Going to download binutils.
Info: Downloading: GoRC.exe into C:\development\fpcbootstrap\

I suspect I have get the bootstrap files down first before I worry about patching fpc. 
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on October 06, 2012, 06:48:36 am
Am I using the most current instance of fpcup.exe?  I pulled the fpcup.exe from your location a few hours ago.  It was dated Sept 16th.

re: "Compiling lazarus.pp"
No, I do not get that far into the process.

Now that I've deleted my fpc and fpcbootstrap directories, it fails downloading the files I mentioned in my prior message.

I suspect an issue with the fpc build, given the missing files.  I'll pause for a few hours (and some sleep) and try fpcup'ing again in my morning.

If that does not work, I have a copy of my environment that I took a few weeks ago and I can restore that.

And if that fails, I'll wipe my entire c:\development tree and start all over.

Thanks BigChimp.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 06, 2012, 07:09:34 am
Ok.

I think those missnig files have been fixed since; I recently cleaned some up.
Yes, you could manually download all files (except the non-existing ones) into your bootstrap dir.

This should stop fpcup from trying to download them again. Can't remember if the check was per file or only for a few critical files and whether it overwrites everything (quite possible).

I wouldn't think it's an fpc build issue; I'd suggest restoring your old copy.

Meanwhile I'm (slowly) working on getting fpcup stable again and when it is, I'll upload a new binary version...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ttomas on October 06, 2012, 11:01:46 pm
I have problem yesterday with update.
I notice new folder c:\pp on my disk and fpc 2.5.1 in it.
Somehow my lazarus was set to use this fpc???
I use default path for fpcup c:\development, fpcup from 16-Sep-2012. I never install fpc there (c:\pp).
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 07, 2012, 11:37:43 am
Ttomas,

Thanks for your report. Very strange error.

Assuming you are using default options:

Please post
1. fpcup.log,
2. the output of fpcup
3. verboselog.txt coming from fpcup --verbose --noconfirm > verboselog.txt
4. ppversion.txt coming from c:\pp\fpc -i > ppversion.txt
5. pathinfo.txt coming from set path > pathinfo.txt
in a zip as an attachment to your post (or in a PM to me)

Then try
1. removing the c:\pp folder
2. starting lazarus and setting the compiler back to the correct compiler (e.g. something like c:\development\fpc\bin\i386-win32\fpc.exe)
3. rerunning fpcup. Is the folder created again?

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: irw10062 on October 15, 2012, 04:37:24 pm
hello sir,
do you know how to build arm-wince support using this
after process complete i can build win32-i386,
but can't build for arm-wince,
any step to do that for newbies?

thank
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 15, 2012, 06:16:41 pm
irw10062, there's no support for cross compilers yet except for win32=>win64 and win64=>win32 (the latter is disabled by default; see earlier posts about why).

If you want to write a cross compiler module, please read fpcup.html

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on November 09, 2012, 11:20:10 am
Just uploaded a new version for Windows, Windows x64, Linux x86 & x64 based on current development version.

It now runs make distclean twice to get around problems with make distclean - thanks Jonas Maebe for the help. The custom "nuclear cleaning" method - basically our own version of make distclean has been removed again fortunately.

Please read previous announcements about --installdir etc about possibly changing default installation locations.

Plans for the future:
- look into svn checkout/update error detection again
- use an .ini file to set up profiles with options - no need to add tons of command line options - though that functionality will likely remain

Once we have .ini file support, creating a GUI for this will be much easier.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on November 10, 2012, 01:35:57 am
BigChimp,
Thank you.  It worked for me, the first time in a long time.

I just ran the new instance of fpcup.exe and my existing Laz & fpc installation was upgraded from Laz 38xxx to 39266, with no errors and minimal fuss.

Two very minor issues, neither of which need to be addressed.
- The "UniqueInstance" component was not found, but it was still in the component tree where it has been months.  I added it back in without any issues.
- When I first opened Laz, the Laz / help - About showed I was at the old SVN number (38-something).  Once I recompiled Laz (due to the inclusion of the above component), the about screen showed the correct SVN number.

Laz 1.1-39266, 2.6.1-22965, Win32-Vista

I'm happy !!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on February 07, 2013, 06:27:15 pm
hi all
I've got a strange error during execution of fpcup.

The 1st occurred when trying download fpcbootstrap.
Seems fpcup is unable to create a tmp file but my user can create a file in /tmp...
Quote
Info: /home/marcello/development/fpcbootstrap/x86_64-linux-ppcx64 is not a valid x86_64-linux-ppcx64 application (x86_64-linux-ppcx64 result code was: -1)
Debug: Found valid unzip application.
Debug: Found valid bunzip2 application.
Debug: Found valid tar application.
Info: Going to download /tmp/TMP00000.tmp from URL: ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2
ERROR: DownloadFTP: error downloading ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2. Details: host: ftp.freepascal.org; port: 21; remote path: pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2 to /tmp/TMP00000.tmp
ERROR: Error getting/extracting bootstrap compiler. Archive: /tmp/TMP00000.tmp

Avoid this with a manual download, I got a 2nd error on documentation:
Quote
Info: helplazarus: documentation directory: /home/marcello/development/laztrunk/docs/chm/
Debug: helplazarus: FBuildLCLDocsExeDirectory: /home/marcello/development/laztrunk/docs/chm/
Info: Going to download /tmp/TMP00000.tmp.zip from URL: http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazarus%201.0/fpc-lazarus-doc-chm-1.0.zip/download
ERROR: Download: error occurred downloading file /tmp/TMP00000.tmp.zip from URL: http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazarus%201.0/fpc-lazarus-doc-chm-1.0.zip/download. Exception occurred: Exception/No internet connection available)
ERROR: helplazarus: download failed. FPC_CHM_URL: http://sourceforge.net/projects/lazarus/files/Lazarus%20Documentation/Lazarus%201.0/fpc-lazarus-doc-chm-1.0.zip/download

can anyone help me?
Thanks in advantage.
nomorelogic


Edit:
linux (mint) 64 bit
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 07, 2013, 09:26:30 pm
Nomorelogic, the first error indicates a problem downloading, almost certainly not a permissions problem.

Are the urls mentioned in the error messages correct?
Are you using some proxy or something?

Not at my pc, not yet able to take a look t the attachments...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on February 08, 2013, 06:23:28 pm
urls look right but in "remote path" (as in log) I think it's possible a '/' missing on start folder path ("pub/fpc...")

I don't use any proxy and I've the same error running fpcup from different phisical network connections
I usually have no problem to download something from ftp and/or http

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on February 09, 2013, 03:49:09 am
Attempting to update from 39972 to the most current (40218), fpcup / Lazarus reports that it was unable to find the "tachartaggpas.lpk package.

While fpucp finished, apparently normally, lazarus.exe was not created.

The above package was indeed not found in the mentioned directory.

fpc appears to be working.

I ran the SVN on the Lazarus folder and it ran without error, reporting 40218 (and then 40219 the 2nd time I ran the update).

See the attached log and console (cmd) output files.

I just cleared out the fpcbootstrap directory and restarted fpcup - same error.

Any thoughts or suggestions?

laz 1.1, fpc 2.6.1, win32-Vista

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 09, 2013, 08:56:27 am
urls look right but in "remote path" (as in log) I think it's possible a '/' missing on start folder path ("pub/fpc...")
If you mean this line:
Code: [Select]
ERROR: DownloadFTP: error downloading ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2. Details: host: ftp.freepascal.org; port: 21; remote path: pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2 to /tmp/TMP00000.tmp
I tried the
Code: [Select]
ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2using a browser which went fine. The Details line is just... details. The separator between host fpt.freepascal.org and remote path is implied.

You could try again and look in the temp dir to see if that file has actually been downloaded and what its contents are...

I don't use any proxy and I've the same error running fpcup from different phisical network connections
I usually have no problem to download something from ftp and/or http
Ok.

The second download problem ("no internet connection available") was a 500 internal server error at the sourceforge end. (I'm updating the code in the dev version to show it's a 500 internal server error)

Perhaps sourceforge or a mirror was experiencing problems?

Let me know if the problem keeps occurring...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 09, 2013, 09:05:41 am
Attempting to update from 39972 to the most current (40218), fpcup / Lazarus reports that it was unable to find the "tachartaggpas.lpk package.

While fpucp finished, apparently normally, lazarus.exe was not created.
Hi IPGuy,

I've had problems with tachart and their dependencies on Lazarus trunk on at least x64 fpc/Lazarus. I think I even went so far as to disable the packages in fpcup.ini

Cleaning out fpcbootstrap couldn't hurt but seems more of a lower level fpc compiler fix... though it can't hurt. And thanks for attaching all the relevant log files in one go - you're a pleasure to work with ;)

1. You could try a Lazarus rebuild to see if the svn update has fixed the problems if you haven't done so already.

2. You could either download the latest development version of fpcup or compare your fpcup.ini with the dev version in
https://bitbucket.org/reiniero/fpcup/src (https://bitbucket.org/reiniero/fpcup/src)
and disable the tachart/aggpas stuff if you don't need it.

Now you still probably have marked some packages for installation in your Lazarus (=so called USERIDE as opposed to the minimal install or BIGIDE install).
Via the package menu in your Lazarus, you could try and strip out packages that are marked for installation but give problems.
After a Laz rebuild, try running fpcup again.

Hope this works for you.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on February 09, 2013, 03:59:38 pm
re: rebuild Laz - the upgrade finished without creating lazarus.exe.  So I renamed old.exe to just .exe and ran that, then attempted to rebuild Laz. 

Now upon start-up, Lazarus complains that sqlite3.dll was not found and Laz shuts down.  So I'm not able to get to the Laz menus.

I'm going to blow the entire installation away and start fresh.

I believe I am using the latest fpcup instance (21012-11-09).

As always, thanks for fpcup and your support.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 09, 2013, 04:21:00 pm
Ok.

Yes, you're probably using the latest released version. The current dev version seems fairly stable though...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 09, 2013, 05:37:02 pm
Uploaded a new version for x86 Windows.

Some changes:
* better support for internationalised SVN clients (thanks Do-Wan Kim!)
* some more focused error improvement hints
* support for creating setup.exe packages for Lazarus/FPC (see below)
* added lazpaint repository to fpcup.ini so you can install that if you want
* got rid of lazchart/tachartaggpas in default fpcup.ini because of many compilation errors when compiling Lazarus trunk. It can still be enabled by the user.

setup.exe/Windows installer (Windows only for now; might work on Linux+Wine+Inno Setup, not tested):
Requires Inno Setup (which is used by the regular snapshot/releas build process).
Run fpcup as usual, then with --only=installerlazwin

I've started work on support for saving your options into .ini file as the amount of options is getting a bit big.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on February 10, 2013, 12:19:44 am
BigChimp - this is an FYI only, no action needed:

Downloaded the newest version of fpcup (2013-02-09) and started the upgrade process.

fpcup failed due to failed downloads the first time I tried it. (logs attached if you are curious.)
Quote
Error running fpcup. Technical details: error executing sequence helplazarus; line: 3, param: helplazarus

When I used the URL found in the console output to explicitly grab the file myself, the download window took a long time to come up, but it finally did.

Then, I ran fpcup a 2nd time and it ran all the way through without errors.
I do see one Info line that contains a somewhat alarming message, but it was not an error so I'm ignoring it.
Quote
Info: C:\development\lazarus\docs\html\build_lcl_docs.exe is not a valid build_l
cl_docs.exe application (build_lcl_docs.exe result code was: -1)

Lazarus starts and recompiles itself, so all is good.

Laz 1.1, fpc 2.6.1, win32-vista, fpcup-32 (2013-02-09 date)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: DelphiFreak on February 10, 2013, 07:51:55 pm
Hello BigChimp, thank you for fpcup.

Works fine and is the easiest way to install lazarus on linux.
Should be come the default installer for lazarus.

How about adding it to IDE "Tools" as "Update-Feature" ?

Regards,
Sam
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on February 11, 2013, 10:15:00 am
urls look right but in "remote path" (as in log) I think it's possible a '/' missing on start folder path ("pub/fpc...")
If you mean this line:
Code: [Select]
ERROR: DownloadFTP: error downloading ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2. Details: host: ftp.freepascal.org; port: 21; remote path: pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2 to /tmp/TMP00000.tmp
I tried the
Code: [Select]
ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2using a browser which went fine. The Details line is just... details. The separator between host fpt.freepascal.org and remote path is implied.

You could try again and look in the temp dir to see if that file has actually been downloaded and what its contents are...

I tried again but in /tmp - after the stop of fpcup - I can't find any files TMP*




I don't use any proxy and I've the same error running fpcup from different phisical network connections
I usually have no problem to download something from ftp and/or http
Ok.

The second download problem ("no internet connection available") was a 500 internal server error at the sourceforge end. (I'm updating the code in the dev version to show it's a 500 internal server error)

Perhaps sourceforge or a mirror was experiencing problems?

Let me know if the problem keeps occurring...

I thought I could solve with logging in sourceforge (even if I did not believe a lot) but it was not so
unfortunately I still have the same problem

I will try again

thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 11, 2013, 06:16:17 pm
How about adding it to IDE "Tools" as "Update-Feature" ?
Hi Sam,

Glad it works for you!

We've thought about it but won't do it ourselves. You're welcome to contribute though.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 11, 2013, 06:19:52 pm
You could try again and look in the temp dir to see if that file has actually been downloaded and what its contents are...
I tried again but in /tmp - after the stop of fpcup - I can't find any files TMP*
Ok, so then the download didn't even get as far as downloading anything, even the wrong file/page. At this point, I would run pcap or a similar tool to dump the network traffic and use e.g. Wireshark to see what's really going on.
If you're willing to do that, I'm happy to give you a hand in looking at the dump; PM me if you want to.
(I don't know whether I will be able to respond quickly though)


I thought I could solve with logging in sourceforge (even if I did not believe a lot) but it was not so
unfortunately I still have the same problem

I will try again
Nope, wouldn't think logging into sourceforge would help but you never know ;)
You could try downloading the latest fpcup source and compile and run - I don't remember fixing any network issues lately though..
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on February 17, 2013, 11:37:19 am
hi bigchimp
I made some text, this one is on win 7, 32 bit (vbox virtual machine) hosted by my linux 64 bit.

I downloaded fpcup (2013-02-09) and I've modified manually fpcup.ini to avoid fpc 2.6.2.
During installation I found some errors in log file, however lazarus starts after a manual fix:
and I can compile and "hello world" project.

In few days I can recompile a project from linux sources and have a definitive test.

Regards
nomorelogic
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 17, 2013, 11:53:25 am
I downloaded fpcup (2013-02-09) and I've modified manually fpcup.ini to avoid fpc 2.6.2.
What's wrong that you cannot fix it with the --fpcURL parameter??! Do you want me to change something!??!
(Note: current SVN uses fixes 2.6 again so you get an up to date FPC)

During installation I found some errors in log file, however lazarus starts after a manual fix:
  • fpc compiler not defined
  • fpc source not defined

The error seems to be here:
Quote
Info: SetPrimaryConfigPath NewValue="config_fpc262_laztrunk" -> "C:\DevNoSvn\lazfpcup\laztrunk\config_fpc262_laztrunk"
primary config path: C:\DevNoSvn\lazfpcup\laztrunk\config_fpc262_laztrunk\
Error: invalid Lazarus directory "": directory lcl not found
Failed building Lazarus IDE
Lazbuild is either not picking up the correct Lazarus path... can't remember how the Lazarus path is picked up (whether it is stored in the primary config dir or not)

As for fpc source not defined and compiler not defined: are you referring to the error/troubleshooting dialog Lazarus throws up on startup?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on February 17, 2013, 12:03:39 pm
I downloaded fpcup (2013-02-09) and I've modified manually fpcup.ini to avoid fpc 2.6.2.
What's wrong that you cannot fix it with the --fpcURL parameter??! Do you want me to change something!??!
(Note: current SVN uses fixes 2.6 again so you get an up to date FPC)

using --fpcURL=2.6.2 give me an error:
Error: wrong command line options given:
--fpcURL=2.6.2 : Invalid keyword. Accepted keywords are: 2.7.1,trunk,2.6.1,fixes,2.6.0
Info: 17/02/2013 10:16:28: fpcup finished.

However I downloaded fpcup and not reuilded from source (for win). I don't think you need to change anything (in source fpcup.ini 2.6.2 is defined) , I report that just to notify you my test.

Quote
As for fpc source not defined and compiler not defined: are you referring to the error/troubleshooting dialog Lazarus throws up on startup?

yes I refer the startup dialog
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on February 17, 2013, 12:11:09 pm
second test is on linux: yes the same linux that hosts the win 7 virtual machine of previous post...

well, using wireshark and tshark I can found that no packet is detected during fpcup ftp request for bootstrap compiler! log is simply empty!

capturing using ftp from shell produce something in log.
I need to investigate more in deep.

regards
nomorelogic
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 17, 2013, 12:32:37 pm
using --fpcURL=2.6.2 give me an error:
--fpcURL=http://svn.freepascal.org/svn/fpc/tags/release_2_6_2

;)

However I downloaded fpcup and not reuilded from source (for win). I don't think you need to change anything (in source fpcup.ini 2.6.2 is defined) , I report that just to notify you my test.
Ok.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 17, 2013, 12:36:28 pm
However I downloaded fpcup and not reuilded from source (for win).
Sorry to be blunt then but the test does not have much value then...
There have been some changes since then - new bootstrap compiler etc - that may well influence the way fpcup works.

More positively: I would really appreciate your testing with current fpcup dev version ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on February 17, 2013, 12:58:50 pm
However I downloaded fpcup and not reuilded from source (for win).
Sorry to be blunt then but the test does not have much value then...
There have been some changes since then - new bootstrap compiler etc - that may well influence the way fpcup works.

More positively: I would really appreciate your testing with current fpcup dev version ;)

don't worry I suspected ;)
in the win7 virtual machine I did not have a lazarus to recompile fpcup from source code... so: I download a compiled one forcing the 2.6.2 release
haste always give bad suggestions :D

now I only hope to run fpcup on linux correctly

regards
nomorelogic
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: vfclists on February 18, 2013, 12:23:33 am
My experiences and suggestions.

I tried to compile it few times on Linux and although it compiled okay on most of the attempts, I experienced some difficulty getting it to run and these are my conclusions.

When I developed the compliation script mentioned in my blog (https://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source)  I displayed this text at the end of the compilation and also saved in a file. It tells the values that should go in the Tools Options | IDE Options dialog. With fpcup the install directory is /home/username/development so the directories should be as displayed below.

When you run this Lazarus build, copy the following line
to the Lazarus directory (default for all projects) in Environment | IDE Options dialog.
/home/username/development/lazarus/

When you run this Lazarus build, copy the following line
to the Compiler path (e.g. fpc) in Environment | IDE Options dialog.
/home/username/development/fpc/lib/fpc/2.6.1/ppc386

If you use this compiler in a Lazarus installation, copy this line
to the FPC source directory in Environment | IDE Options dialog.
/home/username/development/fpc

The other part is the matching fpc.cfg file created. It is not the same as the system version in which is /etc/fpc.cfg . The compilation places it in  /home/username/development/fpc/bin/i386-linux/fpc.cfg from where it should be copied to /home/username/.fpc.cfg (note that it is a hidden file in Linux, the first character is a dot)

Hopefully this note is not misleading and will help those who just give it a go without reading the documentation.
It wasn't done on a clean installation, there were a few Lazarus installations around, as well as the systems version of FPC 2.4.4 and FPC 2.6.0. I will try it again on a clean installation.

Another thing came up that I found surprising. It seems that although the .fpc.cfg needs to be set for each build, some changes are made to the fpcdefines.xml that allows Lazarus to run even if the .fpc.cfg in place was created from another build. Is it a deliberate design or just a welcome fluke?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 18, 2013, 10:39:48 am
@vcflists: thanks for your remarks.

fpcup was designed to enable multiple standalone versions of Lazarus+FPC. That is why fpc.cfg is not stored in the user's home directory, but with the rest of each fpc instance.
That is also why it does not match or use the system wide /etc/fpc.cfg (see the fpc script in the fpc bin directory; function TFPCInstaller.CreateFPCScript: boolean; in installerfpc.pas)

fpcup sets the options (environmentoptions.xml etc) that tell Lazarus where to find the compiler, source directory, etc. If that does not work, it's a bug in fpcup.
There should be no need for the user to set these paths himself.

So, fpcup should work correctly with next to existing installs of Lazarus. (It can work with existing Laz installs as well but IIRC it will not change the compiler path settings etc)

Could you post what specific problems did you have? What revision of fpcup did you use?
I'd like to know so I can fix any issues :)

edit: clarified existing laz installs
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: JD on February 18, 2013, 11:15:26 am
@BigChimp

I have to say "hats off " to you for all your hard work. I'm sure you must have put in a lot of hours into fpcup. Thanks a million.

JD
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 18, 2013, 11:19:02 am
Thanks, but ludob did as well - he did the hard parts ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 18, 2013, 01:47:04 pm
Updated development version with new synapse code from trunk. If you are experiencing download problems, you could try and compile fpcup and see if it fixes things...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on February 20, 2013, 08:12:48 am
@nomorelogic: I entered an issue in the fpcup bugtracker linking to the synapse ftp download issue you raised on the synapse bugtracker to ehm... keep track of things ;)

I've tried again downloading a bootstrap compiler on x64 Linux with current fpcup and unfortunately (in this case) it just works, so yes, the problem may be with synapse.

Thanks a lot for your investigations!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 02, 2013, 09:12:11 am
Current development version has hg/mercurial support - it seems to work sufficiently to check out the fpcup source code itself ;)

Suggestions for mercurial repositories (e.g. the vampyre imaging library) to be added to fpcup.ini are welcome.

BTW, having some problems with trunk fpcup on linux x64 saying fpc make install failed without any error message in the actual command output. Perhaps due to my sacrilegious use of make version 3.82, perhaps something else.
Anybody see similar problems?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 03, 2013, 04:14:59 pm
Added experimental git support in trunk. Seems to work for normal downloading/checkout and updating.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 10, 2013, 11:59:56 am
In the development version, I added git repositories for

The tiopf one is a bit weird as you need to switch branches to do anything useful. Haven't implemented support for that yet.

The repos are not enabled by default; you can either edit fpcup.ini or run e.g. fpcup --only=lazpackager

Comments/suggestions welcome as always,
thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 15, 2013, 10:16:34 am
News from the development front (no new release):

Modified fpcup.ini  to cover recent git repo change for tiopf

Modified fpcup for FreeBSD, NetBSD - no testing though. (posted to fpcup thread as well)

If you want to compile, run & report problems, I'd be very grateful. If you don't - no problem either ;) I'll get round to setting up a FreeBSD VM and doing it myself.

Things that may be wrong/tricky:
gnutar may not be available by default; the bunzip2 executable may have a different name and unzip may not be available by default either (so those should be installed in advance)
Quote
installercore.pas
@@ -180,6 +180,12 @@
+    {$IFDEF BSD} //Includes FreeBSD, NetBSD, OpenBSD
+    //todo: freebsd: check
+    FBunzip2 := 'bunzip2';
+    FTar := 'gnutar'; //check if available
+    FUnzip := 'unzip'; //unzip needed at least for FPC chm help
+    {$ENDIF BSD}

Check for valid bunzip2: hopefully bunzip2 --help works on FreeBSD and returns status code 0. If not, the code will need to be changed with an {$IFDEF BSD} or FREEBSD
Quote
@@ -296,6 +302,7 @@
OperationSucceeded := CheckExecutable(FBunzip2, '--help', '');

installerfpc.pas:
Extraction of a bootstrap compiler section. Basically copied from Linux section.
There's a chance the parameters for the exes are different in which case the code needs to be fixed.
Quote
@@ -478,6 +478,32 @@
+  {$IFDEF BSD} //Includes FreeBSD, OpenBSD, NetBSD
+  //todo: test parameters
+  //Extract bz2, overwriting without prompting
+  if ExecuteCommand(FBunzip2+' -d -f -q '+BootstrapArchive,FVerbose) <> 0 then
+    begin
+      infoln('Received non-zero exit code extracting bootstrap compiler. This will abort further processing.',eterror);
+      OperationSucceeded := False;
+    end
+    else
+    begin
+      ExtractedCompiler:=BootstrapArchive+'.out'; //default bzip2 output filename
+      OperationSucceeded := True; // Spelling it out can't hurt sometimes
+    end;
+  // Move compiler to proper directory; note bzip2 will append .out to file
+  if OperationSucceeded = True then
+  begin
+    infoln('Going to move ' + ExtractedCompiler + ' to ' + FBootstrapCompiler,etinfo);
+    OperationSucceeded:=MoveFile(ExtractedCompiler,FBootstrapCompiler);
+  end;
+  if OperationSucceeded then
+  begin
+    //Make executable
+    OperationSucceeded:=(fpChmod(FBootStrapCompiler, &700)=0); //rwx------
+    if OperationSucceeded=false then infoln('Bootstrap compiler: chmod failed for '+FBootstrapCompiler,etwarning);
+  end;
+  {$ENDIF BSD}

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 16, 2013, 04:52:14 pm
New development version: added FreeBSD x64 support

Tested on PC-BSD (similar to FreeBSD version 9).

Uploaded binary:
https://bitbucket.org/reiniero/fpcup/downloads

Comments welcome!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 22, 2013, 11:51:59 am
Release:

Just uploaded new Linux+Windows releases of fpcup.

Notable additions:
- win32 cross compiler for any platform with internal linker ;)
- FreeBSD support (run on x64, not yet on x86)

Compared to previous version from November:
- now uses stable 2.6.2 to bootstrap instead of 2.6.0
- fpcup lets you build the Lazarus setup.exe on Windows
- git, hg support; added repositories including fpcup source, tiopf, brook
- better support for international svn installations
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on March 26, 2013, 10:28:26 am
Updated development version:
- new fblib location
- disabled fpcup source code module being run by default as it requires mercurial (which not every system has)

Working on cross-compiler support.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: seaton on April 02, 2013, 03:56:51 pm
Hi Guys,

Just trying to do a bare metal install of Lazarus on Windows 7 64 bit and I keep getting it error out with cairocanvas.pas(10,69) Fatal: Can't find unit Cairo used by CairoCanvas when it is making big IDE.

Does Cairo need installing in any way?

Regards,

Stephen...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 03, 2013, 07:38:54 am
@Stephen: not AFAIK. Note: "can't find unit bla" pertains to FPC units, not to external libs. Perhaps compiling that unit failed because of an external lib was not there etc, but in any case, I was able to update my existing 64 bit Windows install using fpcup...

As I mentioned in the bug report, newer commits to the Laz source tree may have fixed the problem.

If it still doesn't work, please attach the files requested in the bug report and I'll have a look.

Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: seaton on April 03, 2013, 09:11:05 am
@Stephen: not AFAIK. Note: "can't find unit bla" pertains to FPC units, not to external libs. Perhaps compiling that unit failed because of an external lib was not there etc, but in any case, I was able to update my existing 64 bit Windows install using fpcup...

As I mentioned in the bug report, newer commits to the Laz source tree may have fixed the problem.

If it still doesn't work, please attach the files requested in the bug report and I'll have a look.

Thanks.

Thanks, have rechecked and still failing.  I agree it appears to be fpc not finding the cairo unit, hence my question if Cairo or anything else GTK? needs to be installed first, I haven't had to do anything in the past.  I've used this great tool (FPCUp) before with no problems and was using to installing from bare metal on a new machine (windows 7 64 bit) and I keep on getting this error.

I've even re ran with --uninstall and deleted all directories under my development folder.  Same problems.

Log and verbose output attached as requested.

Stephen...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 03, 2013, 09:32:45 am
Thanks.

I think the log you sent was not from a a bare metal install, c:\development\lazarus already exists and has svn content:

from fpcout.log
Quote
Info: Checking out/updating Lazarus sources:
Executing : C:\Program Files\TortoiseSVN\bin\svn.exe "info" "C:\development\lazarus" (working dir: )
Path: C:\development\lazarus
Working Copy Root Path: C:\development\lazarus
URL: http://svn.freepascal.org/svn/lazarus/trunk
Repository Root: http://svn.freepascal.org/svn/lazarus
Repository UUID: 4005530d-fff6-0310-9dd1-cebe43e6787f
Revision: 40700
Node Kind: directory
Schedule: normal
Last Changed Author: jesus
Last Changed Rev: 40700
Last Changed Date: 2013-04-03 14:27:20 +0800 (Wed, 03 Apr 2013)

Had a look at the makefile.fpc in components\cairocanvas, which seems ok (it includes win64).
Will try to run fpcup64 using a clean c:\development\lazarus directory myself to test...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 03, 2013, 09:46:53 am
Running fpcup64 with a clean c:\development\<lazarus> directory seems to work.

That said, it may be that those cairo units require dlls that I have but you don't (the obvious ones, cairo.dll and gtk.dll, are not in my windows\* directories, so it can't be those).

I'd try a bare metal install (remove the c:\development folder or everything in it)...

If the problem persists, you might try doing a checkout in a clean directory, make all or whatever the official Lazarus way is (see the wiki), and report the bug...

Sorry I can't be of more help - hope your problem gets fixed.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: seaton on April 03, 2013, 10:32:50 am
Running fpcup64 with a clean c:\development\<lazarus> directory seems to work.

That said, it may be that those cairo units require dlls that I have but you don't (the obvious ones, cairo.dll and gtk.dll, are not in my windows\* directories, so it can't be those).

I'd try a bare metal install (remove the c:\development folder or everything in it)...

If the problem persists, you might try doing a checkout in a clean directory, make all or whatever the official Lazarus way is (see the wiki), and report the bug...

Sorry I can't be of more help - hope your problem gets fixed.

I'm sure it will work itself out in the long run :) Thanks for looking anyway, the output was just from a re-run, I've deleted the directories a number of times over the last couple of days

Out of interest do you have GTK runtime installed?  C:\Program Files (x86)\GTK2-Runtime or anything in your path thats pointing to GTK2?

I'm just about to install the GTK2 runtimes and do a bare metal again to see if that fixes things.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 03, 2013, 11:09:17 am
Out of interest do you have GTK runtime installed?  C:\Program Files (x86)\GTK2-Runtime or anything in your path thats pointing to GTK2?
I have gtk runtimes (e.g. for using gimp) but a quick look through the path shows it shouldn't be in the path.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: seaton on April 03, 2013, 11:16:32 am
Just installed GTK runtimes and still no go. 

Will try an earlier svn tag rather than the trunk to see if it's not something in the repository causing me grief.

btw have attached a full bare metal output.  but I can't see anything out of the ordinary.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 03, 2013, 11:28:53 am
Agreed, the log doesn't show anything weird except that cairo just isn't compiled.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: seaton on April 05, 2013, 11:16:09 am
Agreed, the log doesn't show anything weird except that cairo just isn't compiled.


Yes, agreed, I had a bit more time to look into this today and definitely looks like the FPC Cairo package is not defined in FPC packages makefile for win64 platform, so I'll log it as an FPC bug.

Stephen 
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 06, 2013, 07:35:26 am
@Stephen: please reopen the bug you raised if you could replicate the problem with Lazarus make all instead of fpcup.

Edit: it's perhaps not coincidental that this snapshot page ftp://wiki.freepascal.org/pub/lazarus/snapshots/ has not snapshot for the win64 version of svn r4072 but does have them for win32... ;)

As indicated in the bug you raised for fpcup it's extremely unlikely to be an fpcup problem: fpcup just runs make all, lazbuild --build-ide etc just like you would from the console.

It just adds some packages and sets up the compiler path etc in the Lazarus settings for you.
Title: Doesn't FPCUp require its own sub forum?
Post by: vfclists on April 06, 2013, 05:40:09 pm
This thread has become rather long, and many of the questions and comments are unrelated.

If fpcup is turning in to the defacto Lazarus custom build tool it appears to be then it should have its own sub forum, which should have at least these 2 sub forums. One for experiences and general comments, and other for help and bug reporting.

Right now I want to raise an issue I am experiencing, but it looks like it will get drowned among all the other issues.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 06, 2013, 06:23:09 pm
I've no idea whether fpcup is the de facto custom build tool ;)

There used to be a separate issues thread but everybody kept responding here, so...

That said, raise away. I read the forum.

If you would rather want to, you could instead open a bug at
https://bitbucket.org/reiniero/fpcup/issues
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: vfclists on April 06, 2013, 08:06:36 pm
Using  the --primary-config-path=<dir> option with fpcup results in a message saying "cannot create directory <dir>/environmentoptions.xml". It happens on a version from last year as well as the latest executable - 2013-03-22

Does anyone else get this message?

PS. I am worried that if report bugs on the bitbucket site few people will notice it.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 07, 2013, 03:49:52 am
Using  the --primary-config-path=<dir> option with fpcup results in a message saying "cannot create directory <dir>/environmentoptions.xml". It happens on a version from last year as well as the latest executable - 2013-03-22
What directory? What other parameters did you set?
Linux? Windows?

PS. I am worried that if report bugs on the bitbucket site few people will notice it.
Ok, so I'll wait for the people that read this thread but don't read the bug reports to respond ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: vfclists on April 07, 2013, 03:07:23 pm
I will run it again and this time I will save the output so you can see the exact message
Quote
Ok, so I'll wait for the people that read this thread but don't read the bug reports to respond ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: seaton on April 07, 2013, 06:22:31 pm
@Stephen: please reopen the bug you raised if you could replicate the problem with Lazarus make all instead of fpcup.

...Done
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 07, 2013, 06:56:28 pm
@Stephen: please reopen the bug you raised if you could replicate the problem with Lazarus make all instead of fpcup.

...Done
Thanks. I may have overlooked it, but I don't think you mentioned the fpc version you used in the bug report. As it seems to be an fpc bug, it is useful to mention it...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: seaton on April 08, 2013, 04:41:25 am
Thanks. I may have overlooked it, but I don't think you mentioned the fpc version you used in the bug report. As it seems to be an fpc bug, it is useful to mention it...

my apologies, have updated the info
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 08, 2013, 06:56:23 am
No worries, as long as that bug gets fixed ;)
Title: New release
Post by: BigChimp on April 08, 2013, 09:18:36 am
New release uploaded for windows, linux.

Changes since March 22:
* Better diagnostic output if fpc make/fpc make install, laz make/lazbuild fails
* fix for fpcdocs install failing (in development version at least)
* hint that lhelp.exe should be closed when running fpcup
* synchronized svn aliases with fpc tree for --fpcurl: 2.6.3 (removed 2.6.1)
* synchronized svn aliases with laz tree: 1.0.8
* don't install lnet module by default as osx does not support it. Users can still enable it if they want to.

As usual, please let me know of any problems/suggestions.

Thanks.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 10, 2013, 07:53:12 am
@Stephen: please reopen the bug you raised if you could replicate the problem with Lazarus make all instead of fpcup.

...Done

Thanks! Looking at the fpc-devel mailing list and the svn commit log for FPC it seems there were finally some changes for win64 ;)
Title: Support for ini files with settings in development!
Post by: BigChimp on April 10, 2013, 11:22:29 am
Finally, support for ini files with settings in the development version:

call it like this:
Code: [Select]
fpcup --inifile=settings.ini
to run the stuff under [general] below, or run a specific section/profile:
Code: [Select]
fpcup --inifile=settings.ini --inisection=win32full

settings.ini
Code: [Select]
; example settings for fpcup
; use e.g.
; fpcup --inifile=settings.ini --inisection=win64full
; to compile win64 fpc/laz

[general]
; win32 quick: update only
; a full fpcup run must have been done before (e.g. win32full)
fpcdir=c:\development\fpctrunk
fpcurl=http://svn.freepascal.org/svn/fpc/trunk
lazdir=c:\development\lazarus_fpctrunk
primary-config-path=c:\development\lazarussettings_fpctrunk
fpcopt="-gw2 -gl -O1"
lazopt="-gw2 -gl -O1"
fpcuplinkname=""
lazlinkname=Laz32FPCTrunk
binutilsdir=c:\development\fpcbootstrap
fpcbootstrapdir=c:\development\fpcbootstrap
noconfirm=true
keeplocalchanges=true
only=FPCGetOnly,FPCBuildOnly,lazbuild,bigide,useride
skip=crosswin32-64

[win32full]
fpcdir=c:\development\fpctrunk
fpcurl=http://svn.freepascal.org/svn/fpc/trunk
lazdir=c:\development\lazarus_fpctrunk
primary-config-path=c:\development\lazarussettings_fpctrunk
fpcopt="-g -gl -O1"
lazopt="-g -gl -O1"
fpcuplinkname=""
lazlinkname=Laz32FPCTrunk
binutilsdir=c:\development\fpcbootstrap
fpcbootstrapdir=c:\development\fpcbootstrap
keeplocalchanges=true

[win64full]
fpcdir=c:\development\fpctrunk
fpcurl=http://svn.freepascal.org/svn/fpc/trunk
lazdir=c:\development\lazarus64_fpctrunk
primary-config-path=c:\development\lazarus64settings_fpctrunk
fpcopt="-g -gl -O1"
lazopt="-g -gl -O1"
fpcuplinkname=""
lazlinkname=Laz64FPCTrunk
binutilsdir=c:\development\fpcbootstrap64
fpcbootstrapdir=c:\development\fpcbootstrap64
noconfirm=true
keeplocalchanges=true

Thanks to garlar27 who gave me the final push to get this done.

Comments/bug reports welcome as always.
Title: New release for Windows
Post by: BigChimp on April 10, 2013, 11:55:31 am
Hi all,

Decided to upload the new versions for Windows at least. Will do Linux if/when time permits.

Changes since last stable:
- support for ini file with settings; see previous post and example settings.ini in https://bitbucket.org/reiniero/fpcup/src
- hardening for running make under tprocess throwing access violations
- fix possible problem calling external modules without installexecute in them (e.g. fpcdocs)
- more diagnostics; warning about closing lhelp when errors occur (default install compiles Lazarus lhelp help viewer for you as well)

As usual, please tell me about bugs/problems or send praise ;)
Title: Re: New release for Windows
Post by: seaton on April 11, 2013, 03:21:11 pm
Hi all,

Decided to upload the new versions for Windows at least. Will do Linux if/when time permits.

Changes since last stable:
- support for ini file with settings; see previous post and example settings.ini in https://bitbucket.org/reiniero/fpcup/src
- hardening for running make under tprocess throwing access violations
- fix possible problem calling external modules without installexecute in them (e.g. fpcdocs)
- more diagnostics; warning about closing lhelp when errors occur (default install compiles Lazarus lhelp help viewer for you as well)

As usual, please tell me about bugs/problems or send praise ;)

Thanks BigChimp appreciate your efforts!
Title: New version for Windows
Post by: BigChimp on April 11, 2013, 04:00:47 pm
You're welcome ;)

Uploaded new version for Windows that has:
- support for specifying fpcup.ini modules in your own ini file (makes it easier to setup what packages you want with what install if using multiple Laz versions)
- generate sample settings.ini if it doesn't exist in the appli
- Rename --configfile to --moduleconfig to avoid ambiguity with new --inifile
- updated Synapse repository location

Linux files will follow when I have time/when users start screaming ;)

As usual, please let me know of any problems.
Title: Re: A few questions on fpcup
Post by: vfclists on April 13, 2013, 06:33:16 pm
1. Does the fpcup program expect to run as root? It is unable to create my shortcut directory probably because it doesn't have permissions
Quote
unable to create file /tmp/fpcup-~/Programs/Lazarus/Shortcuts/Lazarus_1080_260_TESTED.desktop

2. Does it download the files from the repository every time, or a permanent directory of the source files can be specified which will only need updating? I tend to use separate builds and it will be good not to download every time on slow links. I would hope output goes to a separate directory. git could be useful here as it could quickly update from upstream and checkout from the local repository into a separate directory. I don't if subversion can do that.

3. keeplocalchanges - Does this mean not overwriting changes a developer could have made the earlier downloads?

Whatever the questions are it is a good program and I appreciate your efforts.
Title: Re: A few questions on fpcup
Post by: BigChimp on April 13, 2013, 08:30:28 pm
Hi vcflists,

Thanks for your kind words.

1. Does the fpcup program expect to run as root? It is unable to create my shortcut directory probably because it doesn't have permissions
Quote
unable to create file /tmp/fpcup-~/Programs/Lazarus/Shortcuts/Lazarus_1080_260_TESTED.desktop
No it doesn't expect to run as root - it is designed to run as a regular user.
That path looks very funny. Can you post the output of the fpcup run, the first part that prints the version info, and all the parameters you specified up until the question do you want to continue?
Clarification: the shortcut should be created on your desktop; the .desktop should be a file (not a directory).
Could you also indicate what Linux distribution/desktop you're using? Creating the desktop shortcut works at least on Debian with xfce (with the gnome libraries installed).

2. Does it download the files from the repository every time, or a permanent directory of the source files can be specified which will only need updating? I tend to use separate builds and it will be good not to download every time on slow links. I would hope output goes to a separate directory. git could be useful here as it could quickly update from upstream and checkout from the local repository into a separate directory. I don't if subversion can do that.
Each instance downloads once (the very first time) using svn checkout, then updates the changes using svn update. When you run fpcup next, it detects the repo and does an svn up, only downloading the changes.
So yes, you would have multiple downloads if you have multiple instances.

I think, if your repos are the same, you could copy the directories. Also, if you compile with the same options in the various instances (e.g. same fpc 2.6.2 version but different Lazarus versions), you could specify that single source directory in both fpcup instances. (Not really tested, let me know if it doesn't work).

Finally, fpcup could perhaps be adapted to use git/hg. It has mercurial and git support units already present and there is a git repo... But I'm not a git guru, so I'd welcome any patches for that ;)

3. keeplocalchanges - Does this mean not overwriting changes a developer could have made the earlier downloads?
Yes this means not overwriting changes a developer made in a local svn copy of the repository - the changes that show up using svn diff.

Hope this answers your questions and thank for the feedback!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 14, 2013, 06:46:32 am
In addition ;)
- you could set up a local svn server that mirrors the svn from fpc/laz and let fpcup pull from that. Might be the cleanest solution as it can also be used for regular installs
- as described above, fpcup does an svn checkout if the fpc or laz directory is empty. By default, it ony checks out the HEAD revision without history (so you don't get diffs going back to the Stone Age) which limits download size a bit compare to regular svn checkout
Title: Re: New version for Windows
Post by: BigChimp on April 14, 2013, 04:05:50 pm
Uploaded new version for Windows that has:
- support for specifying fpcup.ini modules in your own ini file (makes it easier to setup what packages you want with what install if using multiple Laz versions)
- generate sample settings.ini if it doesn't exist in the appli
- Rename --configfile to --moduleconfig to avoid ambiguity with new --inifile
- updated Synapse repository location

Just uploaded Linux x86 and x64 versions... FreeBSD users will have to speak up to get a new version ;)

As usual, please let me know of any problems.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 17, 2013, 09:02:15 am
And uploaded a new FreeBSD9 x64 version as well.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 17, 2013, 04:07:00 pm
Slight updates for Win, Win x64 and FreeBSD x64:
- trust ssl svn repositories even without valid certificate. Needed for e.g. fpspreadsheet repo when running on FreeBSD (svn probably misses an updated root certificate)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Giu on April 23, 2013, 06:08:55 pm
Hi,

Here are 2 log files (with fpcup and fpcup64). Not possible to build.

Regards.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 23, 2013, 06:18:28 pm
Ok, thanks.

Note: having both 32 bit and 64 bit lazarus in the same directory is not supported (and it will probably clash), so please change the settings in either fpcup or fpcup64 to chose a different lazarus path (--lazdir). Note that 32 bit fpcup will compile 64 bit LCL for you as well.
As for fpc: it should work in the same directory for both 32 and 64 bit (I have it running here at least).

Also, please make sure your bootstrap directories are different. I would suggest setting a different --fpcbootstrapdir and --binutilsdir to keep the 2 environments separate.

The 32 bit version seems to barf here - similar for the 64 bit version:
Code: [Select]
Info: Running make all install for FPC:
Executing : C:\development\fpcbootstrap\make.exe "FPC=C:\development\fpcbootstrap\ppc386.exe" "--directory=C:\development\fpc" "INSTALL_PREFIX=C:\development\fpc" "UPXPROG=echo" "COPYTREE=echo" "all" "install" (working dir: C:\development\fpc)
C:\development\fpcbootstrap\make.exe: Entering directory `C:/development/fpc'
C:/development/fpcbootstrap/make.exe compiler_cycle RELEASE=1
make.exe[1]: Entering directory `C:/development/fpc'
C:/development/fpcbootstrap/make.exe -C compiler cycle
make.exe: Entering an unknown directorymake.exe: Leaving an unknown directorymake.exe: *** compiler: No such file or directory.  Stop.
make.exe[1]: *** [compiler_cycle] Error 2
make.exe[1]: Leaving directory `C:/development/fpc'
C:\development\fpcbootstrap\make.exe: *** [build-stamp.i386-win32] Error 2
... the unknown directory might perhaps be caused by 32 bit and 64 bit fpcup interfering with each other.
If not I'd be inclined to blame make/the fpc make scripts for fpc 2.6.2... would have to reproduce here though.


(The reported access violation is in tprocess running make.exe, not fpcup itself... why we get this, I don't know though)


Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Giu on April 23, 2013, 06:43:23 pm
Deleted all the Development folder content, and tried again only with fpcup.

I tried too with --uninstall, failed too, and log attached .... too.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 23, 2013, 06:46:35 pm
See my reply to your post in the other thread...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 25, 2013, 11:59:20 am
Released a new version for Windows (x86+x64), FreeBSD that stops if svn checkout/svn update returns an error code.

This should better deal with problematic svn downloads, as experienced by e.g. giu:
http://lazarus.freepascal.org/index.php/topic,20681.msg120217.html#msg120217

Background: fpcup used to rely on svn info to get information on whether a repository was succesfully updated. Obviously, svn info does not check repo integrity.
Have tried with svnadmin verify but that doesn't work (with my sliksvn 1.7):
Code: [Select]
svnadmin verify c:\Development\fpctrunk
svnadmin: E720002: Can't open file 'C:\Development\fpctrunk\format': The system
cannot find the file specified.

As usual, comments welcome.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on April 29, 2013, 04:12:39 am
Hi again BigChimp,
Running fpcup-64 (the 2013-04-25 version) is giving me failures.

Quote
[2013-04-28 20:58:37.532 Info] FPC: Running fpc make all install failed with exit code 2
Details:
 [2013-04-28 20:58:37.735 Info] Error running fpcup. Technical details: error executing sequence fpc; line: 5, param: FPC
 [2013-04-28 20:58:37.937 Info] Error running fpcup. Technical details: error executing sequence Default; line: 2, param: fpc
 [2013-04-28 20:58:38.156 Info] 4/28/2013 20:58:38: fpcup finished.

I've attached the usual set of files for your consideration.
The first time I ran fpcup64, I did not have have TortoiseSVN installed.  I installed it and reran fpcup64 and received the same error message.

Thoughts?  Suggestions?

IPGuy
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 29, 2013, 07:11:40 am
Hi IPGuy,

Seems like make failed... I'd remove all ppu files from the fpc directory (del *.ppu /s /q or something) and try again.
Can't say much more because you didn't give the output when running --verbose.

For fpc trunk, the compiler guys have been fiddling with moving files etc and I got similar errors (make error 2, make giving access violation) which were solved when removing all ppus and starting again.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: IPguy on April 30, 2013, 04:10:28 am
Initially I was doing a clean install - the fpc directory did not exist.

Following your advise, I deleted all of the .ppu files.  No difference.

I then deleted all of the contents of the /fpc directory and re-ran the program again.
Same issue.

I've attached the last part of the --verbose console output.
It seems to be claiming that it cannot delete a file.  I'm logged onto the console as the administrator, so the program should have all the rights it needs.

Quote
C:/development/fpcbootstrap/mv.exe -f ./pp.exe ppcx64.exe
C:/development/fpcbootstrap/mv.exe: cannot remove `ppcx64.exe': Permission denied
make.exe[4]: *** [ppcx64.exe] Error 1
make.exe[4]: Leaving directory `C:/development/fpc/compiler'
make.exe[3]: *** [wpocycle] Error 2
make.exe[3]: Leaving directory `C:/development/fpc/compiler'
make.exe[2]: *** [cycle] Error 2
make.exe[2]: Leaving directory `C:/development/fpc/compiler'
make.exe[1]: *** [compiler_cycle] Error 2
make.exe[1]: Leaving directory `C:/development/fpc'
C:\development\fpcbootstrap\make.exe: *** [build-stamp.x86_64-win64] Error 2
C:\development\fpcbootstrap\make.exe: Leaving directory `C:/development/fpc'

Info: FPC: Running fpc make all install failed with exit code 2

After the program finished, I verified that I could delete ppcx64.exe

Suggestions?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on April 30, 2013, 08:15:01 am
Actually, I'd say that mv -f command is a rename operation from pp.exe to ppcx64.exe

Once again, this seems to be an fpc problem, not fpcup specific (unless I made a horrible mistake somewhere).
Somebody may have messed up the make file in FPC?

I don't know when you tried this but:
Code: [Select]
r24376 | pierre | 2013-04-29 12:49:50 +0000

 Regenerate all Makefiles with an up-to-date fpcmake binary
this possibly may have fixed things.

My own fpcup currently works nicely, both x64 and x86.

I'd remove the fpc\compiler directory, and try again. If the error persists, it may be worth to try and recreate it manually (running svn up, make etc) manually and submit it as a bug to fpc...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Fred vS on May 02, 2013, 12:13:38 pm
Hello BigChimp. Whaouw, super the idea to use a binary instead of a script (but a zipped binary file would be good also, so executable maintain his property).

I try to use fpcup to upgrade from fpc 2.6.2 to 2.7.1.

I do :
Quote
sudo ./fpcupd  fpcURL=2.7.1

Everything ok, big ide compile, no error message.
But when i load Lazarus, it is still fpc 2.6.2 (but updated, not upgraded).
Why ?

Thanks and proficiaat.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: JanRoza on May 02, 2013, 12:16:44 pm
Did you change the FPC path in the Lazarus Options?
If you don't Lazarus keeps pointing to FPC 2.6.2.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Fred vS on May 02, 2013, 01:34:50 pm
Quote
Did you change the FPC path in the Lazarus Options?

All i have done is :
Quote
sudo ./fpcupd  fpcURL=2.7.1

So, difficult to know where is installed the new release and what is the fpc path for 2.7.1.
Do you think that the options i use are ok ?
So where are the folders of new fpc 2.7.1. ? Many thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 02, 2013, 01:45:05 pm
Seems you are installing FPC 2.7 in the same folder as 2.6?!??!
Not a good idea.

As for where things are installed: lots of documentation ;) try fpcup --help which shows you fpc gets installed in ~/development/fpc by default (IIRC)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Fred vS on May 02, 2013, 02:19:59 pm
Quote
fred@fred-TOSH:~$ sudo ./fpcupd  fpcURL=2.7.1
OK
Quote
fred@fred-TOSH:~$  /home/fred/development/fpc/bin/x86_64-linux/fpc

result :
Quote
Free Pascal Compiler version 2.6.3 [2013/05/02] for x86_64
Copyright (c) 1993-2012 by Florian Klaempfl and others
/home/fred/development/fpc/bin/x86_64-linux/ppcx64

Superbe, but it is not fpc 2.7.1. !

PS: What a nightware to upgrade fpc ( and that till the beginning of fpc).
A auto-easy-clear Upgrader (not only updater) will be very welcome.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 02, 2013, 02:45:16 pm
Quote
./fpcupd  fpcURL=2.7.1
[/quote
Either you wrote your own batch program or you're not using -- in front of your options, e.g. --fpcURL=2.7.1

Did you clean out the fpc dir - fpcup will probably (correctly) tell you the repository is faulty (URL does not match repo) otherwise.

If you have problems, please post the output of fpcup --verbose and fpcup.log

Thanks.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Fred vS on May 02, 2013, 03:11:08 pm
Ah, maybe that is my fault, i use :
Quote
./fpcupd  fpcURL=2.7.1

And maybe i have to do :
Quote
./fpcupd --fpcURL=2.7.1

Or what is the easier command to use to do a upgrade from 2.6.3 (yes now it is 2.6.3) to 2.7.1 ?

Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: ludob on May 03, 2013, 07:39:38 am
yes you need the dashes in front of the options.

FPCUp uses svn to get the sources and build FPC. So you can't just upgrade a 2.6.3 installation to 2.7.1 since that would require a svn relocate to change the url of the repository. The --fpcURL is only used for new installations (svn checkout). Existing working copies are simply updated.

FPCUp makes it easy to create multiple FPC installations. Use the --installdir parameter to easily specify a new location.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Mahis on May 19, 2013, 02:51:35 pm
Cannot understand some instructions. To make things clear, wish to download and explore fpcup source. But how?
Of course, can download file by file from https://bitbucket.org/reiniero/fpcup/src
But all together? Is there any zip or svn?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 19, 2013, 03:29:11 pm
You can download using mercurial, or go to the download page and download the default branch (edit) as a zip.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Mahis on May 29, 2013, 11:04:28 am
The thing I really need is Lazarus for 2.7.1 on win64 with ability to cross-compile win32. But performed starting experiments with a simple setup, without params.

Launched fpcup64 on 2008-64. Ended normally, got a working Lazarus for win64, nothing more.

Executed
fpcup64 --cputarget=i386 --ostarget=win32 --only=FPCBuildOnly,LazarusBuildOnly
Got in fpcup.log:
 [2013-05-29 10:51:30.519 Info] Lazarus: error compiling LCL for i386-win32
Details:
 [2013-05-29 10:51:30.719 Info] Error running fpcup. Technical details: error executing sequence LazarusBuildOnly; line: 2, param: lazarus
 [2013-05-29 10:51:30.951 Info] Error running fpcup. Technical details: error executing sequence Only; line: 2, param: LazarusBuildOnly
And do not see anything related to 32 bit in directories.

Tried fpcup on 2003-32. Got error messages at end phase (unfortunately, did not keep log). But 32 bit Lazarus works.

Executed
fpcup --cputarget=x86_64 --ostarget=win64 --only=FPCBuildOnly,LazarusBuildOnly --verbose
ppcrossx64.exe, ppcx64.exe and some 64 bit directories created (IMHO, in rather strange places), but not all.
Have in log:
 [2013-05-29 04:13:08.440 Info] Lazarus: error compiling LCL for x86_64-win64
Details:
 [2013-05-29 04:13:08.643 Info] Error running fpcup. Technical details: error executing sequence LazarusBuildOnly; line: 2, param: lazarus
 [2013-05-29 04:13:08.846 Info] Error running fpcup. Technical details: error executing sequence Only; line: 2, param: LazarusBuildOnly
And in temp00001.tmp:
 [2013-05-29 04:13:08.128 Info] Error: ppcx64.exe can't be executed, error message: Failed to execute ""ppcx64.exe"  -B -MObjFPC -Scghi -O1 -Twin64 -g -gl -vewnhi -FuC:\development\lazarus\packager\registration\ -FUC:\development\lazarus\packager\units\x86_64-win64\ -l fcllaz.pas
 [2013-05-29 04:13:08.253 Info] TExternalToolList.Run Exception: Error: ppcx64.exe can't be executed, error message: Failed to execute ""ppcx64.exe"  -B -MObjFPC -Scghi -O1 -Twin64 -g -gl -vewnhi -FuC:\development\lazarus\packager\registration\ -FUC:\development\lazarus\packager\units\x86_64-win64\ -l fcllaz.pas
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on May 29, 2013, 11:23:33 am
The thing I really need is Lazarus for 2.7.1 on win64 with ability to cross-compile win32. But performed starting experiments with a simple setup, without params.
As has been posted repeatedly on the forum and in the mailing list, there is no working cross compiler from Win x64 to Win x86 due to problems with the floating point code in the compiler. Fpcup cannot magically create one.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Mahis on May 29, 2013, 12:21:32 pm
Thank you, at least a strict answer. Could not get it after a long googling.
About "posted repeatedly on the forum" - looked repeatedly through all 23 pages and did not find.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 01, 2013, 08:13:32 am
Uploaded new fpcup (for Windows, Linux and FreeBSD 9):
* Search for fpcmkcfg in parent bin directory as well. Should fix build issues on trunk.
* Help: search for fpdoc.exe in FPC bin as well as util directory.
* Commandline.pas: fix checking for @ at first position of parameter. Issue $59, thanks Mahris
* Linux: don't run fpc make install if fpc make all failed.
* try to compile Lazarus IDE with lazopt compile flags
* Add sdflaz to recommended packages (it's in bigide as well)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: tcmdvm on June 04, 2013, 11:33:53 pm
I am having a terrible time installing fpc and lazarus using the latest fpcup_linux_x64.

The program is trying to run fpcmkcfg which is located in <installdir>/fpc/bin/. When the program runs it thinks its located in <installdir>/fpc/bin/x86_64-linux/ and fails at that point. If I move fpcmkcfg to <installdir>/fpc/bin/x86_64-linux/ the program will then continue.

Then it stops trying to locate fpcres which is in <installdir>/fpc/bin/. The program thinks it is in <installdir>/fpc/bin/x86_64-linux/ however. Moving fpcres to <installdir>/fpc/bin/x86_64-linux/ will allow it to continue.

Then it stops trying to locate fpdoc which is installed in <installdir>/fpc/utils/fpcdoc/bin/x86_64-linux/. It is thinks it is in <installdir>/fpc/utils/fpc/ which is the wrong location.

I hope this is enough to help you fix the problem.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 05, 2013, 07:27:40 am
Thanks for the information.

See my previous posts: I've just uploaded a new version that takes the new paths used by the fpc guys into account.

Are you sure you are using the latest version? What version are you using exactly?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: tcmdvm on June 05, 2013, 06:35:47 pm
I completely wiped the installation and downloaded the program from 06/01/2013. Just to make sure that I didn't have an old version. I am using --fpcURL=2.7.1.

It errors out trying to find fpcmkcfg, fpcres, and fpdoc. They are not located where the program is looking for them. They are located in the directories from my previous message.

Thanks for your help.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 05, 2013, 10:15:29 pm
Hmm, ok. Sounds irritating at the least  :( I'll have a look.

Note: the version date/commit number is printed by fpcup when running or at least when called with --help..
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: tcmdvm on June 05, 2013, 10:29:00 pm
Here is the output from --help:

Version: based on commit 4c7c7d7d0672 (Fri Nov 09 11:51:26 2012 +0100)
Build date: 2012/11/09 11:56:33
Compiled for CPU: x86_64 on linux

Based on this it appears to be using an old version, however, it is the one I just downloaded.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 06, 2013, 08:11:17 am
You're right, the old version was still available as download - something must have gone wrong updating.

Sorry for that.

Just uploaded a new version, hope it overwrites the old one.

However, I've been experimenting with a cleaned out (removed) fpc directory and the fpc make install step seems to go wrong: no executables copied to the bin dir etc.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: tcmdvm on June 06, 2013, 05:25:40 pm
Yes it updated the file, I checked it before I ran it.

Now it has the problem of not copying the executables to the bin directory. I can see that it compiles them, but it appears not to be copying them anywhere.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 07, 2013, 06:58:45 am
Yes:
Quote
However, I've been experimenting with a cleaned out (removed) fpc directory and the fpc make install step seems to go wrong: no executables copied to the bin dir etc.

After running make all, fpcup runs FPC's make install. For some reason that doesn't work anymore in trunk. I'm not going to spend any time on it right now as I suspect FPC broke it.

In the mean time, you/anyone could verify by performing the manual steps for svn update/installation (svn update, make distclean, make all, make install) and if needed report a bug in the bugtracker.

Edit: clarifications
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 07, 2013, 04:33:14 pm
Mmm, with the latest dev version and a removed fpc directory it works on Linux x64.

Uploaded the new version.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: tcmdvm on June 07, 2013, 10:16:50 pm
I downloaded last version and had problems getting lazarus compiled it was trying to find fpcres. I moved it to a different location and reran the program.

I finally got it compiled successfully.

Thanks for all your help.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 08, 2013, 07:24:11 am
Glad it works finally... sort of.

You're welcome to attach the log of fpcup --verbose --noconfirm <whatever other options you use> > verbose.log so I can have a look...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 10, 2013, 09:25:06 am
tcmvdm (& others): fpcup didn't work correctly on *nix: it skipped over the fpc make install step which caused the errors.

Sorry for that.

I've uploaded a fixed version for Linux x64 and x86 which works fine with fpc trunk; will upload the FreeBSD version later.

As usual, bug reports, patches and improvement suggestions welcome!

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: gerardus on June 10, 2013, 12:02:54 pm
Hi,
first of all, congratulations for this tool, it's really amazing.
I tried it yesterday on my laptop (Linux Mint 14 64 bits) and it worked perfectly.
I tried today with the latest version on my development machine (Mint 13 64 bits) and it fails:

Info: Going to download /tmp/TMP00000.tmp from URL: ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2
ERROR: DownloadFTP: error downloading ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2. Details: host: ftp.freepascal.org; port: 21; remote path: pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2 to /tmp/TMP00000.tmp
ERROR: Error getting/extracting bootstrap compiler. Archive: /tmp/TMP00000.tmp
Info: Error running fpcup. Technical details: error executing sequence fpc; line: 2, param: FPC
Info: Error running fpcup. Technical details: error executing sequence Default; line: 3, param: fpc
FPCUp failed.

I can download ftp.freepascal.org/pub/fpc/dist/2.6.0/bootstrap/x86_64-linux-ppcx64.bz2 manually, and create a file in /tmp/ with the same user I use to run FPCup, so I am lost and I don't know where the error is.
Any idea?
TIA,
Gerard.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 10, 2013, 01:29:57 pm
Mmm, strange. Could have been a transient error (the forum was unreachable, perhaps the same applied to the fpc server).

I'd suggest to try again. Edit: if you hit any problems, please let me know & I'll test myself...

Meanwhile, I'll update the development version to use 2.6.2 instead of 2.6.0 bootstrap ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: gerardus on June 10, 2013, 05:29:56 pm
Hi,
I've tried again and it still doesn't work.
It works in a Windows XP virtual machine so it's not a firewall or similar issue.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on June 10, 2013, 05:41:26 pm
Sorry, no real ideas then - as you can download using the ftp client on the machine it seems your connection is ok...

You're not using any kind of proxy or something are you?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: gerardus on June 10, 2013, 06:38:17 pm
Hi,
No, no proxy, nothing. Right now I'm using it under win XP 32 bits. I'll keep using it under windows and stay with the old manual system under Linux.
Thanks anyway.
Gerard.

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 15, 2013, 01:21:42 pm
Updated the development version to use svn:// protocol instead of http:// for svn sites. Trying to see if that makes downloading fpc, Laz etc repo files more reliable.

Also the svn codes adds support for automatically upgrading repository metadata if it is too old.

If you want to test it, remove the .svn subdirectories from your fpc, Laz and other svn repos (you can leave the rest of the files/directories so a subsequent fpcup run doesn't need to download them, which speeds up things a lot) as otherwise you'll get an fpcup error saying local and remote repos don't match.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on July 16, 2013, 12:40:04 pm
Updated the development version to use svn:// protocol instead of http:// for svn sites. Trying to see if that makes downloading fpc, Laz etc repo files more reliable.
Mmmph I must have been dreaming. Tried today and the svn:// protocol apparently is not enabled. Switched back to http://
edit: for lazarus/fpc etc; kept svn:// for projects on sourceforge (e.g. Laz ccr, fpspreadsheet)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 02, 2013, 03:02:23 pm
Work on cross compilation support seems to be bearing fruit.

Just finished win32=>linux x86 cross compiling module (based on the crossbinutils/crosslib names/directory layout used by www.crossfpc.com) in the development version; it generates a ppcross386.exe.
You still need to place the binutils and libs in the right directories, but the cross compilation is done for you.

If you want to test it, add a cross directory under the fpcup "root" installdir directory (e.g. c:\development\cross, and e.g. regular fpc sources in c:\development\fpc)
Then place the directory layout provided by the crossfpc project there, so you get
Code: [Select]
c:\development\cross\bin\arm-android\arm-linux-androideabi-ar.exe
c:\development\cross\bin\arm-android\arm-linux-androideabi-as.exe
...
c:\development\cross\bin\i386-linux\i386-linux-ar.exe
c:\development\cross\bin\i386-linux\i386-linux-as.exe
...
c:\development\cross\lib\arm-android\libc.a
c:\development\cross\lib\arm-android\libc.so
...
c:\development\cross\lib\x86_64-linux\libc.a
c:\development\cross\lib\x86_64-linux\libc.so
...
then run regular fpcup
Code: [Select]
fpcup
followed by the cross compiler version:
Code: [Select]
fpcup --cputarget=i386 --ostarget=linux

Also fixed some errors runing commands with a " at the end of the command line.

Another fix is better support for bare metal installs: if fpc or lazarus directories are specified but not yet created, fpcup will create the directories before doing a checkout.

Now continuing to work on:
- win32=>arm-android
- win32=>arm-linux
- win64=>linux

Contributions for other cross compilers are welcome - see the m_cross*.pas units for simple examples (you only need to fill in the code that checks for the proper binutils and crosslibs in the right location).

Lots of thanks to the crossfpc guys!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 02, 2013, 08:36:47 pm
Now got these crosscompilers going:
- win32=>arm-linux (tested for fpc)
- win=>linuxi386 (needs to be tested)
- win=>linuxx64 (tested for fpc)

Will look into getting android and jvm support as well as (better) detection for what libs are needed when compiling the LCL.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 02, 2013, 08:45:55 pm
FPCUP: the cross compiling revolution ;)

Just uploaded some new windows binaries. For changes see above and the commit log (see repository site).
Notable are fixes that should improve bare metal fpcup installs.

Note: due to sourceforge getting new svn paths and fpcup switching to the native svn:// protocol where possible please remove all .svn directories from your external units dir, then run fpcup.

I've put CrossFPC_binutils_libs.7z in the downloads section as well if you want to have a go at cross compiling. Note that both binutils and libs are provided; you may want to replace the libs with the versions on your target systems.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 03, 2013, 08:07:42 pm
win32=>linuxi386 seems to work well for fpc.

Just finished testing the new win32=>go32v2 compiler. Works nicely in dosbox ;)
needed files:
- crossbinutils from fpc contrib ftp
- cwsdpmi.exe
See m_win32_to_go32v2i386.pas

Now on with trying to get linuxi386=>mipsel going.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 04, 2013, 11:19:49 am
Fixed some crosscompilers; added
- win32=>mipsel cross compiler
- win32=>arm-wince (Windows CE/Windows Embedded - edit seems to fail Laz cross compilation, perhaps an error in the Lazarus code error fixed in Laz trunk - thanks Florian & Mattias!)

There are now a lot of cross compilers in progress/that need testing.

I've uploaded some new windows binaries so people can more easily test.

Please follow the instructions in m-*.pas to get crossbinutils and if necesary copy over libs from your target system (not needed on e.g. wince-arm).

Run e.g.
Code: [Select]
rem Get newest fpc etc for native first:
fpcup
rem Now build cross compiler:
fpcup --only=fpc --cputarget=i386 --ostarget=linux --verbose
to build a cross compiler.

Patches/info on how to modify the cross compiler modules (m_*.pas) welcome.

For changes see above and the commit log (see repository site).
Notable are fixes that should improve bare metal fpcup installs.

Reminder: due to sourceforge getting new svn paths and fpcup switching to the native svn:// protocol where possible please remove all .svn directories from your external units dir, then run fpcup.[/code]
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: parcel on August 06, 2013, 11:00:44 am
i386-linux cross compiled fail on GUI-App.

Code: [Select]
Error: Unknown command-line parameter : -a

I got this message. Is there another setting?

Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 06, 2013, 11:50:10 am
@parcel: yes, I've seen something like that, too.

Probably there need to be more settings specified in the cross compile command that fpcup passes to make and/or more Linux libraries copied to windows (the cross compiler lib directory).
Suggestions/patches welcome.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Mike.Cornflake on August 21, 2013, 07:52:44 pm
This is a superb tool.  Only just discovered it, many thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on August 22, 2013, 10:50:14 am
Thanks Mike, let me know if you have any patches/code improvements ;)

(Going on your posts in other threads, it seems you're not averse to a bit of digging ;) )
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: lazyfiend on September 16, 2013, 04:27:38 am
Nice app. Using it on linux. I know the builtin cross compile parts are only working on windows (or does linux also have them?), but i can take over for the cross compile parts (it is easy on linux anyway).

Is there a way to make it more clear when the svn location pointed by the repositories (e.g. zeostesting) is not valid? When i first used it, it took a while before noticing that the svn location for zeos is actually not valid. I think it might have not marked "not properly checking out the svn files" as an error so the error reported came from some steps after that.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on September 16, 2013, 11:50:40 am
fpcup article on the lazarus italian website

http://www.lazaruspascal.it/index.php?page=130 (http://www.lazaruspascal.it/index.php?page=130)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 16, 2013, 02:57:45 pm
@lazyfiend: if you have problems with fpcup please give details of what happens, versions, wrong and correct URLs, exact error messages you do see etc (if you're using an older version of fpcup, the Zeos location may have been fixed since). Thanks.

@nomorelogic: molto grazie!

Sounds like you've spent a lot of work on doing that review!
Thanks for mentioning gdb is required on Linux - I've just added that to the readme in commit de8f7c299ec2

Quote
Tra questi, molto importante è lo script fpcupdate .sh. Grazie a questo script potrete infatti aggiornare il vostro ambiente di sviluppo con gli ultimi sorgenti scaricati da svn!
Reading this (and thinking out loud - I haven't messed with fpcup settings for my own system for a long time) it looks like fpcupdate.sh and getlaz.sh should function exactly the same - so you don't need to keep fpcupdate.sh around, right?
(As I mentioned, I might be wrong, haven't checked lately).

Quote
comunque sia l'autore è sempre pronto a sistemare eventuali bug.
Grazie :) Ludob & I try ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 16, 2013, 03:20:59 pm
Quote
Tra questi, molto importante è lo script fpcupdate .sh. Grazie a questo script potrete infatti aggiornare il vostro ambiente di sviluppo con gli ultimi sorgenti scaricati da svn!
Reading this (and thinking out loud - I haven't messed with fpcup settings for my own system for a long time) it looks like fpcupdate.sh and getlaz.sh should function exactly the same - so you don't need to keep fpcupdate.sh around, right?
(As I mentioned, I might be wrong, haven't checked lately).
Pfff. I really wasn't sharp there: in the case mentioned above it would probably be easier to run the commands in getlaz.sh by hand one time, don't create getlaz.sh and use fpcupdate.sh from then on.
Coffee!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on September 16, 2013, 05:32:17 pm
@nomorelogic: molto grazie!

Prego! :)

getlaz.sh
getlaz.sh does not make much sense as it would be a script that would be launched once.
It happened to me to try and try again fpcup several times (by several days) with different parameters on different linux distro. I have always launched fpcup deleting the root of the development environment to restart from a clean system. That's why I used getlaz.sh script. Yes: I'm lazy. :D

Coming back to that it is a script that is executed only once (I need a few days) I will arrange the article.

Edit:

Sounds like you've spent a lot of work on doing that review!

is an excellent tool, you at least know it exists and what you can do.
After several experiences I wanted to share them.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 16, 2013, 05:54:20 pm
Thanks for the explanation - glad both that I'm not going crazy and that you wrote it with good reason ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: lazyfiend on September 18, 2013, 02:36:05 pm
Hi there,

I think i am using the latest fpcup for linux x64 (downloaded at https://bitbucket.org/reiniero/fpcup/downloads and with md5 of 157fb2405fa5465b65712c4ce798ebf4)

I renamed my fpcup.ini to something else and checked the newly downloaded fpcup.ini, it seems to still be wrong:
zeostesting: http://svn.code.sf.net/p/zeoslib/code-0/branches/testing/
fpspreadsheet: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr

The zeostesting one does not exist, while svn tells the fpspreadsheet one is moved and recommends a new url.

zeostesting error: It says it has issues with the lpk file, which suggests that it successfully downloaded from svn.
zeostesting error w/ verbose: It detects the error from svn, but proceeds. Of course, this might still be ok if the files already exists, but not the case here.
fpspreadsheet error: Not much info, suggest to use --verbose, so this one is perfect.
fpspreadsheet error w/ verbose: Same as the zeostesting one, the error with svn is reported, yet it still continues even w/ an empty directory.

Verbose also likes printing the output from tools executed w/o any parameters, kind of odd.

Summary:
1. Some default links are not updated (maybe only in linux x64, or my dns is wacky)
2. SVN error (invalid url) w/o verbose, kinda misleading.
3. script still continues on SVN error w/ empty directories.

Of course, since the users are devs and the error message is usually understood at the end and fixed (i.e. url manually changed), so this is just nitpick from me (i do not mind if this is not fixed).
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 18, 2013, 04:21:06 pm
Hi Fiend,

Thanks for the very thorough post!

I think i am using the latest fpcup for linux x64 (downloaded at https://bitbucket.org/reiniero/fpcup/downloads and with md5 of 157fb2405fa5465b65712c4ce798ebf4)
Ok. That does seem to be the latest version. Note: fpcup spits out a version/commit number as well which you could use.

still wrong:
zeostesting: http://svn.code.sf.net/p/zeoslib/code-0/branches/testing/
fpspreadsheet: https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr
Zeos:
Ok, found this page
; http://zeoslib.sourceforge.net/viewtopic.php?f=1&t=3654&sid=9c21e65a2eda5eb9ad17d4be3ce55932
which points to
svn.code.sf.net/p/zeoslib/code-0/branches/testing-7.2
There's also a more trunk repo (which you can add to fpcup.ini yourself if needed)

Strange - fpspreadsheet points to svn://svn.code.sf.net/p/lazarus-ccr/svn/components/fpspreadsheet
Perhaps the resource file for *nix was a bit stale - I regenerated it in fpcup trunk - hope this fixes things.

zeostesting error: It says it has issues with the lpk file, which suggests that it successfully downloaded from svn.
zeostesting error w/ verbose: It detects the error from svn, but proceeds. Of course, this might still be ok if the files already exists, but not the case here.
fpspreadsheet error: Not much info, suggest to use --verbose, so this one is perfect.
fpspreadsheet error w/ verbose: Same as the zeostesting one, the error with svn is reported, yet it still continues even w/ an empty directory.
Ok. As mentioned above, I've chosen to not let errors in external modules stop the entire fpcup run so problems with external repositories won't mess up your updated Lazarus.
That said, I haven't reviewed your logs etc; based on that I might have a bright idea that could improve things...

Verbose also likes printing the output from tools executed w/o any parameters, kind of odd.
Why would that be odd? If those tools give errors, it's nice to see the output?!?

Summary:
1. Some default links are not updated (maybe only in linux x64, or my dns is wacky)
Thanks - should be fixed in trunk, commit a335aa993f0a.

2. SVN error (invalid url) w/o verbose, kinda misleading.
3. script still continues on SVN error w/ empty directories.
not fixed).
Yep, it's a bug not a feature ;) (Note: IMO it would be a serious error if you had problems with FPC/Laz SVN/install; in that case fpcup does/should abort with an error).

I'm going to have a look at the logs and might post back based on that.

Thanks for the report!

BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 18, 2013, 04:41:13 pm
Ok, had a look at the logs and added some more warning messages when an svn/git/hg download fails in an external/fpcup.ini module:
Code: [Select]
'SVN error downloading from '+RemoteURL+'. Continuing regardless'
Commit 4075b91810c1

Hope this works...

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: CaptBill on September 18, 2013, 06:58:38 pm
Hi BigChimp,
Fpcup will ALMOST install directly from Tinycore. Unfortunately, the p7Zip (7-zip) functionality is not playing nice. I will PM you my lengthy notes shortly.

Perhaps you could play around with it and find a work around. Any way to bypass any 7zip files?

Heres my idea-- An easy and powerful way to install Lazarus. Place fpcup packaged into a remastered TinyCore iso image. just a the very basic essential libraries for compiling and downloading(svn,git,b2zip,p7Zip,binutils etc.) This way we start from a standardized OS which is pre-configured for a successful FPC/Lazurus installation. Full environmental control. You don't "install" this OS. You boot directly from the cd/dvd .iso. All this in less than 12mb.

It's a blast to be able to install an OS, FPC, Lazarus, BGRABitmap/Controls, Fpgui, Msegui, and also get right to compiling the demos like LazPaint and UOS sound etc....all in less than an hour. No kidding. Plus git and svn going. Everything seems very solid and is very FAST. Everything is in ram then saved to disk at shutdown.

Currently the only installation I managed is the stock from the repo, fpc2.6.2, laz 1.0.8 but it is plenty current and works nice. Would be nice to have the ability to use fpcup as a type of "snapshot generator" to create hot-mountable custom installations.


Thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 19, 2013, 08:43:18 am
Fpcup will ALMOST install directly from Tinycore. Unfortunately, the p7Zip (7-zip) functionality is not playing nice. I will PM you my lengthy notes shortly.

Perhaps you could play around with it and find a work around. Any way to bypass any 7zip files?
????
fpcup does not support using p7zip!!!??? You can either use unzip for .zip files as mentioned in the readme or adapt fpcup to use p7zip (e.g. in the TInstaller.CheckAndGetNeededExecutables code in installercore.pas), and in all calling code that extracts .zip archives - or add new code that extracts 7zip archives.

Edit: I have no idea what 7zip files fpcup tries to process... Some clarification on what's going on/what you're trying to achieve would be welcome.

An easy and powerful way to install Lazarus. Place fpcup packaged into a remastered TinyCore iso image. just a the very basic essential libraries for compiling and downloading(svn,git,b2zip,p7Zip,binutils etc.) This way we start from a standardized OS which is pre-configured for a successful FPC/Lazurus installation. Full environmental control. You don't "install" this OS. You boot directly from the cd/dvd .iso. All this in less than 12mb.
Sounds very interesting. Would love to see some steps posted on how to do this.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 19, 2013, 08:47:26 am
Nice app. Using it on linux. I know the builtin cross compile parts are only working on windows (or does linux also have them?), but i can take over for the cross compile parts (it is easy on linux anyway).
Have a look at the m_linux386_to_mips.pas and m_linux386_to_mipsel.pas units (as well as the m_*_to*.pas units for crosscompiling in general). If you can set up a cross compiler to e.g. android, I can take the list of required files (binutils and library files) and create a m_linuxx64_to_androidarm.pas that tests that list to automate the compile run.

I'd very much appreciate help with that - haven't yet done anything with android.

Hints for other cross compiling targets would be welcome, too. As you may have noticed, Linux->Windows is already catered for.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: taazz on September 19, 2013, 08:51:31 am
Just as a heads up there is a 7zip sdk ported to delphi and free pascal at http://www.birtles.org.uk/programming/ (http://www.birtles.org.uk/programming/). The port is not a headers translation but a complete pascal implementation no .obj or c code needed to be used. Personally I do not have enough interest to spend time on it but some one might have the interest and time to create an fcl patch or something.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 19, 2013, 09:10:24 am
Thanks taazz, not interested either... perhaps sam707 is willing though, he apparently already uses it:
http://forum.lazarus.freepascal.org/index.php/topic,22025.msg129449.html#msg129449
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: taazz on September 19, 2013, 11:41:54 am
Ah!!! the out of context ironic post. Never read past the 1st sentence didn't knew it provided a link to the same think. In any case I'm going to shut up now.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 19, 2013, 01:48:14 pm
No problem - having 7zip support in pure Pascal would be nice regardless of how it came about ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 19, 2013, 02:55:02 pm
Uploaded new Windows x86, x64 and Linux x64 versions.

Changes since version released 26 August:
- External modules: show warning message on svn/hg/git download problems. Thanks LazyFiend!
- Update zeoslib SVN URL; regenerate fpcup.ini resources for *nix fpcup
- Fix for erroneously picking up empty settings.ini
- Add support for relative settings.ini (e.g. ~/mysettings.ini)

... so nothing earth shattering but probably useful.

Thanks,
BigChimp
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 20, 2013, 04:53:23 pm
Just uploaded win x86/x64 versions with some fixes for cross compiling support.

Updated for native win32=>go32v2 compiling (no binutils needed)
E.g. Win=>go32v2 cross compiling should work:
Code: [Select]
rem first compile fpc, laz as usual (modify fpcurl etc if wanted):
fpcup

rem Cross compile part

rem Win32+fpc trunk needs no binutils at all.

rem Win64 or win32+FPC 2.6.x does require
rem the cross compilation binutils
rem but fpcup will warn you if they're missing
rem ftp://ftp.freepascal.org/pub/fpc/contrib/cross/mingw/binutils-2.20-win32-i386-go32v2.zip
rem Add a cross directory under the fpcup "root" installdir directory rem (e.g. c:\development\cross)
rem Then place the binaries in c:\development\cross\bin\i386-go32v2
rem Binaries include
rem i386-go32v2-ar.exe
rem i386-go32v2-as.exe
rem i386-go32v2-ld.exe
rem i386-go32v2-objdump.exe
rem i386-go32v2-strip.exe

rem Actual command:
fpcup --cputarget=i386 --ostarget=go32v2

rem Remember to distribute cwsdpmi.exe with your programs.
rem http://homer.rice.edu/~sandmann/cwsdpmi/index.html
rem download:
rem http://homer.rice.edu/~sandmann/cwsdpmi/csdpmi7b.zip
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 20, 2013, 07:19:02 pm
Note: Tomas on the FPC mailing list warned me about probable problems with go32v2 cross compile on FPC 2.6.x

I tested the above on FPC trunk and it worked; haven't looked at FPC 2.6.x. Feedback - as always - much appreciated.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: nomorelogic on September 21, 2013, 02:51:42 pm
Coming back to that it is a script that is executed only once (I need a few days) I will arrange the article.

arranged: reference to getlaz.sh script is dropped
also replaced (in the bottom of the article) "l'autore" (the author) con "gli autori" (the authors)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 21, 2013, 03:25:07 pm
Thanks a lot, NoMoreLogic!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 24, 2013, 03:22:37 pm
Fpcup will ALMOST install directly from Tinycore. Unfortunately, the p7Zip (7-zip) functionality is not playing nice.
User must have misremembered as there is no 7zip support in fpcup.

If anybody has problems with fpcup and tinycore, please report them so I can fix them. Still very interested in a quick way to get a working Laz+FPC system up and going quickly.

Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on September 25, 2013, 11:11:26 am
Just uploaded a fixed Windows x86 and x64 version that correctly processes fpcup.ini

Previous versions (probably about since Windows installer support was implemented) had a problem after compiling the first external module, typically resulting in an error message about lazdatadesktop.

The problem only applies to Windows.

Sorry for this.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 19, 2013, 04:13:58 pm
Uploaded a new Win32 and win64 version that:
- can work with a clean install fpc 2.6.2 again (cross compilation x86=>x64 fails due to bug in fpc 2.6.2 build process; fpcup now ignores these errors again). Thanks to zgabrovski for the bug report.
- added alias for Lazarus 1.0.12 url
- *almost* working dos cross compiler (only from x86 fpcup; x64 fpc does not support the crosscompiler); see m_win32_to_msdosi8086.pas

Tested with a clean Win XP without svn etc (bare metal compile).
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: hinst on October 20, 2013, 10:44:21 pm
I wanted to download fpcup for Linux x86 from this page: https://bitbucket.org/reiniero/fpcup/downloads
But the file extension for fpcup_linux_x86 is msi. Why is it? Is it a windows installer?
Sry for dumb question
I found out that official Ubuntu repository contains outdated FPC, so I wanted to update it using fpcup but I'm having hard time figuring it out
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Cyrax on October 21, 2013, 04:41:43 am
Hm? For me,  fpcup_linux_x86 downloads as an ELF executable program (MIME type binary/octet-stream) for both Windows and Linux environments.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 21, 2013, 08:37:09 am
Agreed with Cyrax.

Also, Linux does not care about extensions - strange though that you got an .msi extension!?! Try running the file command on it to see if it is an ELF executable....
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 21, 2013, 09:14:03 am
Started wiki page with tips, documentation etc. at
http://wiki.lazarus.freepascal.org/fpcup

Contributions welcome!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: DonAlfredo on October 29, 2013, 03:21:23 pm
Hello,

I would like to THANK you !!

After many many efforts to try to crosscompile from Windows to the Beagle Bone Black running Arch Linux,
thanks to your utility, I have now perfectly running GUI-apps on my BBB !!!!
Without any change to the source.

Thanks again, Alfred.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on October 29, 2013, 03:40:56 pm
@Alfred: great! Glad you've got things working!

It would be nice if you could list what files you put in the cross compile bin and lib directories to get stuff working - either here or directly on the wiki
http://wiki.lazarus.freepascal.org/fpcup

I'll see if I can update fpcup itself with some more detailed help text...

@everybody: meanwhile, silently released a new windows fpcup. x86 Windows fpcup has support for generating a DOS crosscompiler. See wiki page for details.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: michael.vanham on November 09, 2013, 01:31:58 am
I downloaded fpcup and tried it for the first time yesterday. It worked great on my windows 8 machine.

Thank you for making such a handy utility.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on November 10, 2013, 05:46:26 pm
Glad it works for you, Michael :)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Fred vS on November 11, 2013, 10:35:55 pm
Hello and congrat for great job.  ;)

I had fpc 2.6.2.

Sadly, i do :

Quote
./fpcup_linux_x64 --fpcURL=2.7.1

But fpcup install fpc 2.6.3.
 :'(

Now i have downladed fpc 2.7.1 from svn but if i want to compile it, it say that only fpc 2.6.2 could be used...


So, i have to destroy 2.6.3, and re-install 2.6.2, then 2.7.1 ?

Thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on November 12, 2013, 11:23:21 am

I had fpc 2.6.2.

Sadly, i do :

Quote
./fpcup_linux_x64 --fpcURL=2.7.1
Just like svn (because it uses svn) fpcup should error out if you try to download a different repository (the 2.7.1 branch) to a directory with existing 2.6.2.
Please ensure the relevant directory is empty (see fpcup --help on how to specify a different fpc directory if wanted).

Does the alias for 2.7.1 in your fpcup.ini point to the proper URL? If not please delete fpcup.ini, let fpcup recreate it and check again.
(Edit: background: fpcup will create fpcup.ini if it doesn't exist but won't overwrite existing fpcup.ini because you can enable/disable/add the external modules/repositories you want to download/update there)

But fpcup install fpc 2.6.3.
 :'(
Any error messages? Log? Which fpcup version? Which OS? Ah, you're using an x64 Linux.
What were the fpcup command line arguments/settings.ini you used?

Please see
http://wiki.lazarus.freepascal.org/fpcup#Support_and_bug_reporting

Now i have downladed fpc 2.7.1 from svn but if i want to compile it, it say that only fpc 2.6.2 could be used...
If you do things manually, you should know what you are doing. FPC 2.7.1 what? Source? Compiler?
As usual with fpc, the latest stable compiler is required to compile current trunk (although IIRC, you may get away with compiling with current trunk, and in the past with 2.6.0), so the error message may indicate where you went wrong.

Not going to look into this, fpcup should do what you want without problems.

So, i have to destroy 2.6.3, and re-install 2.6.2, then 2.7.1 ?
No.

Make sure fpcup is set for 2.7.1, that the fpc directory it uses is clean, and for good measure/good luck delete the files in the fpcbootstrap directory (in case you modified things there) and let fpcup redownload the relevant files.

See fpcup --help for options if necessary.

Good luck!
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Fred vS on November 12, 2013, 11:14:25 pm
Thanks BigChimp for explanations...

Quote
Not going to look into this, fpcup should do what you want without problems.

I hope so, i gonna study more how to install fpc 2.7.1 with fpcup.

See you later.

Thanks
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: paramon on November 15, 2013, 09:19:56 am
Hello and thank you for your effort!
I'm trying to run fpcup on my office PC and it reports errors while downloading files. I believe the reason is HTTP Proxy I have to use. I've added environment variable http_proxy but it doesn't help.
How do I tell fpcup to use particular proxy settings?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on November 15, 2013, 11:08:51 am
Unfortunately there's no support for http proxies in fpcup yet.

I'm taking a look to see if it can be added.

I'm assuming you only have the http_proxy environment variable set, no user/passwords?
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: paramon on November 15, 2013, 11:23:40 am
Yes.
From the source code it seems that HTTP proxy is supported by underlying objects, but I didn't try to tweak and build fpcup from sources.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on November 15, 2013, 11:51:53 am
From the source code it seems that HTTP proxy is supported by underlying objects, but I didn't try to tweak and build fpcup from sources.
Yep, well:
- http downloads via synapse are indeed supported
- svn traffic over http could well work specifying
  --config-option servers:global:http-proxy-host = ip.add.re.ss
  --config-option servers:global:http-proxy-port = 3128
for each command
- haven't looked into what git/hg do.
- ftp download: no idea if you can/must have ftp over http proxy or something...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on November 15, 2013, 06:14:38 pm
I'm trying to run fpcup on my office PC and it reports errors while downloading files. I believe the reason is HTTP Proxy I have to use. I've added environment variable http_proxy but it doesn't help.
How do I tell fpcup to use particular proxy settings?

Edit: updated parameter format to match http_proxy environment variable syntax; added hg support.

I've just addedupdated some code for http proxy support. It should pick up the http_proxy environment variable; you can also set --httpproxy=user:password@host:port
User and password params are optional.

Supports http, svn over http downloads, hg over http. No support  for git over http (which isn't used in a default install anyway, only for some git third party repositories you may want to enable).

Haven't tested it and I'm sorry but I can't seem to upload binaries right now, so please download the source code (either via hg or via a zip/gz/bz2 download of the latest source, see downloads page, branches tab, default branch).

Please let me know if it works ;)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on November 18, 2013, 09:27:05 am
Some more minor updates; see http://wiki.lazarus.freepascal.org/fpcup#Changelog for details.

Uploaded new windows binaries.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: paramon on November 18, 2013, 12:08:49 pm
Hmm, https://bitbucket.org/reiniero/fpcup/downloads still contains
Version: based on commit cb8ba7c502c5+ (Thu Oct 24 12:57:23 2013 +0200)
Build date: 2013/10/26 12:30:44
I've tried to compile from source, and after some work I succeeded, and http_proxy seemed to work. But I compiled the wrong version (x86, not x86-64) and I failed to setup cross-compilation. Waiting for updated fpcup64 binary...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: Fred vS on November 18, 2013, 12:32:13 pm
Hello.

Is it possible to imagine to have a option that do the upGrade to fp 2.7.x ?

I know that it is possible to do it with fpcup, but like said in earlier topic, fpc must be empty, fpc.cfg must be deleted, etc... (?).

It could be very good if the upGrade  was done automatic by fpcup, easy, for simple people (like me ).

Thanks.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: marcov on November 18, 2013, 12:43:04 pm

Just like svn (because it uses svn) fpcup should error out if you try to download a different repository (the 2.7.1 branch) to a directory with existing 2.6.2.

It could try to do an svn info on the dir, and then try to svn switch
 
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on November 18, 2013, 01:13:46 pm

Just like svn (because it uses svn) fpcup should error out if you try to download a different repository (the 2.7.1 branch) to a directory with existing 2.6.2.

It could try to do an svn info on the dir, and then try to svn switch
Thanks, good suggestion, but I think I'll leave that up to the user as they may have mistyped the directory name...
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: bill0287 on December 24, 2013, 03:14:02 am
Let's say I used the following command to run fpcup for the first time on a clean directory and made no changes to any settings files of any kind:

fpcup --fpcurl=trunk --fpcdir=c:\development\fpctrunk

What will happen if I run fpc_update?

Will it know to just "update" the trunk I have with all the latest changes to Laz and FPC? (I didn't see much about this tool in the wiki)
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on December 24, 2013, 12:58:46 pm
What will happen if I run fpc_update?
Right-click, properties and see what it does.

Will it know to just "update" the trunk I have with all the latest changes to Laz and FPC? (I didn't see much about this tool in the wiki)
1) Ehm, yes, that's why it's called fpcup_update.
2) Please update the wiki.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: bill0287 on December 24, 2013, 04:50:50 pm
Thanks, I thought so. I just wanted to make sure it wasn't going to go off and use a settings default that was different than the original way I ran fpcup.

Sorry for all the basic questions ...I've never seen these tools before so I am overly cautious.

And thanks for such a well thought out and useful program.
Title: Re: FPCUp FPC/Lazarus SVN installer/updater for Windows, Linux, soon OSX
Post by: BigChimp on December 30, 2013, 02:47:39 pm
Continued thread http://forum.lazarus.freepascal.org/index.php/topic,23075.msg137259.html#msg137259
TinyPortal © 2005-2018