Recent

Author Topic: [Solved]Cannot recompiler the IDE  (Read 19166 times)

lukenothing

  • New Member
  • *
  • Posts: 12
[Solved]Cannot recompiler the IDE
« on: October 29, 2012, 07:29:48 am »
Hi everyone,

I'm a newbie on using Lazarus. Recently I try to add a package called 'anchordockingdsgn 0.5' to my IDE, because I want to integrate UI into one WINDOW.

However, I met a issure after I rebuild the IDE by itself. On the final step it remains me as below:
Quote
make.exe[1]: *** [idepkg] Error 255
I don't know where to addres the problem. Please help me, Thanks in advance !

Oh, my computer OS is win8 pro 64bit and I use the Lazarus 1.0.2 r39019 FPC 2.6.0 x86_64-win64-win32/win64.

 Is it enough to find the root of problem?
« Last Edit: November 26, 2012, 07:18:16 am by lukenothing »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: Cannot recompiler the IDE
« Reply #1 on: October 29, 2012, 05:03:07 pm »
Unfortunately not enough.

1) Try to "make clean" or use the "Tools" menu: "Configure build Lazarus" and check "clean all"

You may also try and delete all *.ppu and *.o files in the lazarus folder. EXCEPT for those in the fpc sub-folder.

2) Since you seem to be on SVN: locate any pas files that are not part of SVN (anymore). Maybe files got moved, but the svn update did not clean them up. Duplicate files can lead to errors.
- SVN may have clean up tools
- Alternative try a new checkout

3) If you still get the error, use the popup menu of the messages window, and select "copy all and hidden msg"

novakj

  • Newbie
  • Posts: 4
Re: Cannot recompiler the IDE
« Reply #2 on: October 29, 2012, 06:34:03 pm »
I have the same problem. I try different versions of Lazarus, both 32 and 64 bit, from version 1.0 to 1.1. (trunk).
Every time i uninstalled Lazarus i also deleted settings from user/../appdata/lazarus.

But i keep getting error:
Quote
Compiling resource C:\lazarus\units\i386-win32\win32\lazarus.or
Linking C:\lazarus\lazarus.exe
209 lines compiled, 4.4 sec , 9247776 bytes code, 4439980 bytes data
make.exe[1]: *** [idepkg] Error 255

maybe the problem was DELPHI X3 which i installed some days ago, but I uninstalled Delphi, cleaned everything but i still get the make.exe error.

On this computer i also have partition with windows 8 installed, there everything works ok. No make.exe errors.
Any help will be appreciated.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: Cannot recompiler the IDE
« Reply #3 on: October 29, 2012, 06:56:42 pm »
You should both specify, how you try building Lazarus:
- IDE "Tools" menu "build LAzarus"
- lazbuild
- make or make bigide

As for make, it needs gnu make. So a make.exe from delphi (or other development systems) can cause problems.

Make sure to reduce %PATH% to the minimum that is needed.

lukenothing

  • New Member
  • *
  • Posts: 12
Re: Cannot recompiler the IDE
« Reply #4 on: October 30, 2012, 04:30:53 am »
Thank you firstly, Martin_fr.

I have tried the steps you recommanded above, but it didn't work.

First I used the Tools->Configuare 'Building Lazarus', and select the 'Profile to Build' as 'Clean up + Build all', then switch the clean up option to 'Clean all', late on, I pressed the Build. Finally, I got the new result:
Quote
D:\luke\lazarus\fpc\2.6.0\bin\x86_64-win64\make.exe: Entering directory `D:/luke/lazarus'
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/make.exe -C ide cleanide
make.exe[1]: Entering directory `D:/luke/lazarus/ide'
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/rm.exe -f
D:\luke\lazarus\fpc\2.6.0\bin\x86_64-win64\make.exe: *** [cleanide] Error 255

I read this post after the first fail. Then I followed the guide to shorten the PATH which just included serveral path system needed.

Then I reoperated as the first time, unfortunatly, I got the same problem.

I did not USE the SVN to sync the last codes to local, I just download the 1.0.2 install package from the offical URL.

I also tried to search the *.ppu and *.o under the Lazarus directory, most of them are located in FPC sub-directory. Just 3 or 4 files I deleted.

How can I do for the next?

lukenothing

  • New Member
  • *
  • Posts: 12
Re: Cannot recompiler the IDE
« Reply #5 on: October 30, 2012, 05:35:23 am »
A hour ago, I downloaded the lastest package Lazarus-1.1-39122-fpc-2.6.0-20121018-win64.exe from Daily Snapshots. They are the same problem happened. I gust it must be other issure.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: Cannot recompiler the IDE
« Reply #6 on: October 30, 2012, 03:00:49 pm »
I am a bit at loss at that error myself.

But it looks like it is make.exe that has a problem.

It is supposed to execute all the "rm -f". And (not sure, but) it is probably correct, that they do not print any files that are deleted (as you have done that already, by deleting the *.ppu)

From what it looks, it believe it is running the make.exe, that comes with lazarus.
It also looks (21 rm) like it done all the work, and fails at exit.

Afaik make.exe is a 3rd party tool (not sure it is avail from the fpc repository, but not sure where they had it from).

It doesn't fail for me. But I don't have win 8. I thought I read on the mail list, someone else managed with win 8. SO I don't even know if or if not this is a generic wake versus win 8 issue.


Not sure what to do next. There are a few thinks you might try. But
I don't know if it will do any good.

1) Run the make from command line (open a cmd.com and change dir into your lazarus dir)
The -d adds more feedback from make, maybe it gives a clue why it crashes. (If the data is huge, attach as file)
Code: [Select]
cd D:/luke/lazarus
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/make.exe -d -C ide cleanide
However the above only does some clean up and if you want to get lazarus build, then you need to run something like (iirc)

Code: [Select]
cd D:/luke/lazarus
D:/luke/lazarus/fpc/2.6.0/bin/x86_64-win64/make.exe -C clean bigide

2) Or try to get a newer version of make (gnu make). I am not sure where to look (mingw, gnuwin, cygwin, ...)

lukenothing

  • New Member
  • *
  • Posts: 12
Re: Cannot recompiler the IDE
« Reply #7 on: November 01, 2012, 12:52:11 am »
Thank you Martin_fr !

I have tried the way of "make.exe -d -C ide cleanide".
Finally it gave me this message, I pick up the last part here.
Quote
...
Live child 0x01e2a140 (cleanide) PID 31773616
Reaping winning child 0x01e2a140 PID 31773616
Removing child 0x01e2a140 PID 31773616 from chain.
Successfully remade target file `cleanide'.

Unhandled exception filter called from program make
ExceptionCode = c0000005
ExceptionFlags = 0
ExceptionAddress = 74abce39
Access violation: read operation at address 74abce39

As you guessed, It could be the problem of make.exe, I think.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12297
  • Debugger - SynEdit - and more
    • wiki
Re: Cannot recompiler the IDE
« Reply #8 on: November 01, 2012, 01:24:12 am »
ok, that leaves the problem where to find a working version. And I do not know, other than the pointers I gave before.

Maybe take it to the mailing-list (fpc list). Someone might be able to tell you where to get an update.


In the meantime, you might get away with the following (a bit of extra work, and not tested at all):
Afaik make is used for cleaning. The IDE calls fpc directly for building (might be different for 3rd party packages).
If you clean all the ppu and o files (except in fpc) by hand, then try in the Environment options to change make.exe to
  C:\lazarlus\FPC\bin\i386-win32\gecho.exe
or similar.

The IDE will call that for cleaning, but it will just do nothing. After that it should start to compile...

Though if options change, and the IDE rebuild individual packages, I do not know...
« Last Edit: November 01, 2012, 01:28:12 am by Martin_fr »

ashberry777

  • Newbie
  • Posts: 6
Re: Cannot recompiler the IDE
« Reply #9 on: November 06, 2012, 10:56:59 am »
Hello,

Because of the above posts I downloaded GNU Make 3.82 (Lazarus comes with 3.80) and it worked as expected. No more errors for me.

I downloaded it from here: http://www.equation.com/servlet/equation.cmd?fa=make and placed it in the fpc\{version}\bin\x86_64-win64\ directory.

I am now re-installing the snapshot for lazarus 1.1/fpc 2.6.1 from november 5. See how that behaves. I will report the result here.
Lazarus 1.1 - fpc 2.6.1

ashberry777

  • Newbie
  • Posts: 6
Re: Cannot recompiler the IDE
« Reply #10 on: November 06, 2012, 11:17:38 am »
Yep! Works for lazarus 1.1 / fpc 2.6.1 as well!

BTW: I am running on Windows 8 Pro. (64)
Lazarus 1.1 - fpc 2.6.1

lukenothing

  • New Member
  • *
  • Posts: 12
Re: Cannot recompiler the IDE
« Reply #11 on: November 26, 2012, 06:49:00 am »
Yep! Works for lazarus 1.1 / fpc 2.6.1 as well!

BTW: I am running on Windows 8 Pro. (64)
Wonderful, It works!!! Ashberry, thanks a lot!!!
« Last Edit: November 26, 2012, 07:02:57 am by lukenothing »

nachoap

  • New Member
  • *
  • Posts: 22
Re: [Solved]Cannot recompiler the IDE
« Reply #12 on: December 14, 2012, 07:03:44 pm »
Hi!

I had  the same problem (Windows 7 x64 and lazarus-1.0.4-fpc-2.6.0-win32 just installed)  and I've downloaded the gnu make. I've replaced it in bin\i386-win32 and now it works perfectly.

Thank you very much!!!

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12771
  • FPC developer.
Re: [Solved]Cannot recompiler the IDE
« Reply #13 on: December 14, 2012, 07:32:39 pm »
Note that using 3.82 in general is not recommended http://bugs.freepascal.org/view.php?id=22839

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: [Solved]Cannot recompiler the IDE
« Reply #14 on: March 10, 2013, 05:39:10 am »
:( the same problem for me, Windows 7 64 bits, with all updates.

I tried with:
Lazarus-1.1-40369-fpc-2.6.1-20130223-win64.exe
Lazarus-1.1-40367-fpc-2.6.0-20130223-win64.exe

And Oficial release Lazarus 1.0.6

After replace make.exe for this, works ok.

Note that using 3.82 in general is not recommended http://bugs.freepascal.org/view.php?id=22839

 

TinyPortal © 2005-2018