Recent

Author Topic: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)  (Read 8699 times)

Armando

  • Newbie
  • Posts: 5
Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« on: January 10, 2015, 08:51:41 pm »
 :'( After installation of lazarus-1.2.6-fpc-2.6.4-win64 at startup screen says:   Fout:fpc.cfg is missing.  (Fout =error)
The path to the FPC.exe (FreePascalCompiler) is OK.
I checked some directories and the fpc.cfg  file is in the same dir/folder as fpc.exe.

Lazarus can't find the fpc.cfg even tough it's there.
How can I fix this?

Has anyone the new version 1.2.6 running and compling on Windows (7)?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #1 on: January 10, 2015, 09:03:17 pm »
Lazarus 1.2.6 r46529 FPC 2.6.4 i386-win32-win32/win64
Win7

If you have made several attempts of installation or have installed some prior version without uninstalling the previous one, you can have this problem.
« Last Edit: January 10, 2015, 09:06:45 pm by typo »

Armando

  • Newbie
  • Posts: 5
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #2 on: January 11, 2015, 08:26:32 pm »
Thank you for your reply.
I can still not install Lazarus without the Message of missing fpc.cfg
I uninstalled installations and re-installed several times.
(64-bit installation as wel as the 32-bit installation.)
Unistalled using the uninstaller (from Lazarus) and via Windows.
Cleaning te registry using CCleaner didn't help.

My question is: has anyone Lazarus-1.2.6 running on Windows (7)

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #3 on: January 11, 2015, 10:03:19 pm »
Yes, of course, why would not?

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #4 on: January 11, 2015, 10:13:37 pm »
AFAIK Lazarus and FPC (very sensibly) make no use of the Windows registry whatsoever, meaning that CCleaner is irrelevant to your problem.
Rather you should delete your
c:\Users\YourUserName\AppData\Local\lazarus
directory to remove any possible mangled leftovers from previous installs.
The Lazarus Windows installer will then set up configuration files correctly, working from a 'blank sheet' (I don't know why an uninstall failed to clear this correctly).
Like hundreds of other Lazarus users I have installed 1.2.6 on Windows 7 several times, without seeing the problem you encounter, though I use the 32-bit rather than 64-bit compiler.
Maybe the problem you see is restricted to 64-bit installs?

ChrisF

  • Hero Member
  • *****
  • Posts: 542
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #5 on: January 12, 2015, 04:24:16 am »
...
Maybe the problem you see is restricted to 64-bit installs?

No, not really; not as far I've tested by myself (I'm using the 64 bits version on Windows 7).

But it's true that I always make clean installations (as I may play sometimes with trunk/branch versions).

**Edit**  Oh, and I'm using an administrator profile  for my user (I've never tried with a "standard" one).
« Last Edit: January 12, 2015, 04:28:27 am by ChrisF »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9905
  • Debugger - SynEdit - and more
    • wiki
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #6 on: January 12, 2015, 04:44:04 am »
Just in case.
Are there any spaces in the path name? or any chars, other than a-z 0-9 _ ? any very long names?

The file fpc.cfg was created by the installer? That is it did not exist before you installed?

Start the IDE with --debug-log=c:\log.txt
And then check the logfile. maybe it reveals anything.

Can you ignore the error, does the IDE start, and compile projects?


Armando

  • Newbie
  • Posts: 5
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #7 on: January 19, 2015, 10:32:04 am »
(before any new install I uninstalled Lazarus and removed the c:\Users\ .  .  .\AppData\Local\lazarus and and the C:\Lazarus dir with some remaining files after uninstall)

I am now looking through the log file. 
And it seems to me that there are some minor issues?
Like: NOTE: editor options config file not found - using defaults
But this ?:
Warning: invalid compiler: C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.exe

i386-win32? I installed 64-bit installation....
I will try installing again (64-bit)  (but I already tried many times)
« Last Edit: January 19, 2015, 10:33:59 am by Armando »

Armando

  • Newbie
  • Posts: 5
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #8 on: January 19, 2015, 10:49:08 am »
64-bit install...
Warning: invalid compiler: C:\lazarus\fpc\2.6.4\bin\x86_64-win64\fpc.exe

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #9 on: January 19, 2015, 11:09:28 am »
The installer for 64-bit windows actually ships 32-bit toolchain with 64-bit cross compiler. However, fpc itself should be 32-bit and normal executable. I have no idea, but you can try executing the compiler in the command prompt to validate it first.

Armando

  • Newbie
  • Posts: 5
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #10 on: January 23, 2015, 11:36:28 pm »
 :D Thank you for all your remarks etc.

It it still not working...  :(  On win7 64 bit on a virtual machine, it is running.
(on my small 32 bit Win7 starter it works. :D


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9905
  • Debugger - SynEdit - and more
    • wiki
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #11 on: January 24, 2015, 12:11:23 am »
Quote
The installer for 64-bit windows actually ships 32-bit toolchain with 64-bit cross compiler.

I am not sure about the toolchain (make etc), but fpc itself is 64 bit.


Quote
I checked some directories and the fpc.cfg  file is in the same dir/folder as fpc.exe.

If your fpc is in (32 bit, but similar for 64 bit with change or arch)
Code: [Select]
C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.exe
then the fpc.cfg should contain lots of entries with path like either:
Code: [Select]
-FuC:\lazarus\fpc\$FPCVERSION/units/$fpctarget
-FuC:\lazarus\fpc\$FPCVERSION/units/$fpctarget/*
-FuC:\lazarus\fpc\$FPCVERSION/units/$fpctarget/rtl
or
Code: [Select]
-FuC:\lazarus\fpc\2.6.4\bin/units/i386-win32 
-FuC:\lazarus\fpc\2.6.4\bin/units/i386-win32/*
-FuC:\lazarus\fpc\2.6.4\bin/units/i386-win32/rtl

I would expect NO path to anywhere outside.

NOTE: the fpc dir does NOT need to be in the environment PATH.

I have no idea if the presence of any other fpc install in the PATH may cause issues or not. Same for a mingw install.

The fpc folder should also contain make.exe (and a few others)

There also MUST be either ppc386.exe (32 bit) or ppcx86.exe (or similar / 64 bit)


---------------------------------------------
from your log

Quote
Code: [Select]
RunFPCVerbose failed: C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.exe -va compilertest.pas
TFPCTargetConfigCache.Update WARNING: compiler is broken: C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.exe
What does it say if you run (or whatever path is reported on your failing installation)
Code: [Select]
C:\lazarus\fpc\2.6.4\bin\i386-win32\fpc.exe -va someunit.pas
where someunit.pas contains
Code: [Select]
program a;
uses sysutils;
begin
writeln(1);
end;



If you can use fpc like that on the commandline, but not in the IDE, then I suspect your antivirus. Otherwise whatever error you get on the commandline needs to be fixed

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9905
  • Debugger - SynEdit - and more
    • wiki
Re: Intallation pseudo missing file (lazarus-1.2.6-fpc-2.6.4-win64)
« Reply #12 on: January 24, 2015, 12:14:04 am »
Code: [Select]
64-bit install...
Warning: invalid compiler: C:\lazarus\fpc\2.6.4\bin\x86_64-win64\fpc.exe

Path and name look ok

This would be a 64 bit program. SO this will only work if you have a 64bit version of windows on a 64 bit cpu.

If you have a 64 bit cpu, but a 32 bit version of windows, then this will not work.

 

TinyPortal © 2005-2018