Recent

Author Topic: lazarus on fedora 3 for x86_64  (Read 14156 times)

cenzin

  • Guest
lazarus on fedora 3 for x86_64
« on: April 27, 2005, 02:46:24 am »
I can't get lazarus compiled under fedora 3 for x86_64. it will give a lot of compilation errors regarding typecasting integers into pointer and enumerated types into pointer (which are 64 bit long in x86_64)

I downloaded the plataform independent version of the source code.  Is there any 64 bit compilation of fedora that works?

help!

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
lazarus on fedora 3 for x86_64
« Reply #1 on: April 27, 2005, 09:15:50 am »
Recently, since 0.9.6 has been released, a lot of 64 bits fixes have been made to the lazarus code. You might want to try using cvs to download the latest source and compile that.

Since I don't know any lazarus developers with a 64 bits machine, I can't give you any guarantees.

Anonymous

  • Guest
lazarus on fedora 3 for x86_64
« Reply #2 on: May 03, 2005, 09:55:48 am »
Is there any problem with AMD64 + 32BitLinux OS ?

cenzin

  • Guest
Still can't build a 64 version of lazarus in linux fedora 3
« Reply #3 on: May 10, 2005, 03:16:19 pm »
I have been downloading the latest CVS of both FPC and Lazarus and it changes the error, but no building of the 64 bit version of lazarus under linux fedora 3 for x86_64.

Now it appears to be an internal error of the compiler:

"Internal error 200304302"

it appears while compiling the unit "eventcodetools.pas" in the component/codetools directory.

What can i do?

HELP

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
lazarus on fedora 3 for x86_64
« Reply #4 on: May 10, 2005, 04:04:16 pm »
Did you remove all existing .ppu and .o files (make clean) before?

Anonymous

  • Guest
lazarus on fedora 3 for x86_64
« Reply #5 on: May 10, 2005, 07:31:05 pm »
Quote from: "Vincent"
Did you remove all existing .ppu and .o files (make clean) before?
Oh yes, i allways perform a "make clean all" sequence.  Still doesn't pass the eventcodetools.pas barrier!

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
lazarus on fedora 3 for x86_64
« Reply #6 on: May 10, 2005, 11:05:24 pm »
Could you try again and give an explicit path the compiler?

Code: [Select]
make PP=/path/to/your/ppcx64
Please gives the last couple of lines of the output.

Anonymous

  • Guest
lazarus on fedora 3 for x86_64
« Reply #7 on: May 11, 2005, 01:30:03 am »
OK, I tried what you suggest. it still explodes, here is the last output

Assembling extractproctool
eventcodetool.pas(223,6) Fatal: Internal error 200304302
make[2]: *** [allcodetoolunits.ppu] Error 1
make[2]: Leaving directory `/home/naranjo/freepascal/lazarus/components/codetools'
make[1]: *** [codetools_all] Error 2
make[1]: Leaving directory `/home/naranjo/freepascal/lazarus/components'
make: *** [components] Error 2


Hope that you can figure out what is going on.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
lazarus on fedora 3 for x86_64
« Reply #8 on: May 11, 2005, 10:28:09 am »
It is strange. This internal error occurred with fpc 1.9.8, but with yesterdays fpc 1.9.9 I successfully compiled lazarus.

what does ppx86_64 -id say?
what does which ppx86_64 say?
what is the top line of /path/to/fpc-source/logs/Changes.compiler?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2707
lazarus on fedora 3 for x86_64
« Reply #9 on: May 11, 2005, 12:10:04 pm »
Ehm... what sometimes work with internal errors is to make again, but without cleaning first (iow. continue the build)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
lazarus on fedora 3 for x86_64
« Reply #10 on: May 11, 2005, 03:18:08 pm »
I have been downloading the latest version of fpc from CVS. I assume that is the 1.9.9 in this case. I perform a make all and make install on the fpc tree but i haven't checked if the installed version is the latest one. i'll check and i'll let you guys know about it.

Anonymous

  • Guest
lazarus on fedora 3 for x86_64
« Reply #11 on: May 11, 2005, 11:58:53 pm »
I finally manage to make the whole build. but when it comes to the make install it fail.  and if i run it appears for about 1/10 of a second and exits with  an error code related to some gtk+ invalid region thing.  I advance today but i'm still not there

glober

  • Full Member
  • ***
  • Posts: 130
lazarus on fedora 3 for x86_64
« Reply #12 on: May 12, 2005, 01:48:54 am »
Quote from: "Anonymous"
I finally manage to make the whole build. but when it comes to the make install it fail.  and if i run it appears for about 1/10 of a second and exits with  an error code related to some gtk+ invalid region thing.  I advance today but i'm still not there


I had problems running make install on the Daily Lazarus Snapshot (on Gentoo Linux). Make worked OK.  Figured out that Lazarus ran fine out of the unziped directory where I ran make, without make install.

Anonymous

  • Guest
lazarus on fedora 3 for x86_64
« Reply #13 on: May 12, 2005, 12:25:19 pm »
No, i'm afraid not. iif i run it from there it still bomb after a fraction of a second. it gives you a message with a warning with a lack of environment variables, but it says that this will disable some features only.  after that.. pum.  During my quest for linking lazarus i installed some development libraries that might be inconsistent.  At some stage there was a library (i don't remember the name, something related to gnome) that was refusing to install via rpm because of a dependency problem and the only way i found to work was to put the switch --nodeps in the rpm command.  maybe it was there when i start screwing up things.

is there a list of libraries / versions i should check so i can be sure that everything on that side is not causing me trouble.  Still want to leave Windows but everytime i try to leave an irresistible force pull me back to bill's domain

HELP

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2707
lazarus on fedora 3 for x86_64
« Reply #14 on: May 13, 2005, 11:04:51 am »
1) usually forcing rpms to install when dependencies don't match is a source of problems (those dependencies aren't there for fun)

2) make sure you don't mix  32bit and 64bit libs when linking. You may want to edit your fpc.cfg so that the lib64 dirs are searched first

to get a list of libs used you  can try to run make OPT=-sh and look in the link.res file
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018