Recent

Author Topic: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems  (Read 17928 times)

neodarkman

  • New Member
  • *
  • Posts: 38
bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« on: April 07, 2013, 01:24:46 am »
Try to compile  bgrabitmap7.0 but returns this message:

/bgrabitmap7.0/bgrasse.pas(159,21) Fatal: Internal error 201001032
 :(

My system is:

Lazarus 1.0.6 (compiled from sources)
Fpc 2.6.2        (compiled from sources)
Linux 64Bits (Kubuntu 12.10)

Any ideas?

u2o

  • Jr. Member
  • **
  • Posts: 72
  • No message
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #1 on: April 07, 2013, 01:33:31 am »
I also had problems with that package also. Try to download bgrabitmap7.2 and  bgracontrols-2.2

Compile bgracontrols-2.2  first, then compile bgrabitmap7.2, and in the same order install the package on the ide.

bgracontrols-2.2: http://sourceforge.net/projects/bgracontrols/

bgrabitmap7.2: http://sourceforge.net/projects/lazpaint/files/src/

« Last Edit: April 07, 2013, 01:36:06 am by u2o »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #2 on: April 07, 2013, 04:51:12 am »
Quote
Any ideas?
FPC 2.6.2 bug

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #3 on: April 07, 2013, 05:28:35 am »
Seems so.

A not so obvious search perhaps:
http://lmgtfy.com/?q=site%3Abugs.freepascal.org+%22Internal+error%22+201001032
shows
http://bugs.freepascal.org/view.php?id=23441
which may be applicable.

Looking at the descriptions, it seems as if some assembly code in bgra* could be changed to avoid this.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

neodarkman

  • New Member
  • *
  • Posts: 38
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #4 on: April 07, 2013, 09:10:53 pm »
I also had problems with that package also. Try to download bgrabitmap7.2 and  bgracontrols-2.2

Compile bgracontrols-2.2  first, then compile bgrabitmap7.2, and in the same order install the package on the ide.

bgracontrols-2.2: http://sourceforge.net/projects/bgracontrols/

bgrabitmap7.2: http://sourceforge.net/projects/lazpaint/files/src/
Impossible to compile bgracontrols first, it depends on bgrabitmap!!

See section File Uses bcbasectrls.pas:

uses
  Classes, SysUtils, Controls, BGRABitmap, BGRABitmapTypes;   


If I try to compile the BGRABitmap got the error in the snippet of bgrasse.pas:

{$ifdef BGRASSE_AVAILABLE}
procedure Add3D_AlignedSSE(var dest: TPoint3D_128; const src: TPoint3D_128); assembler;
asm
  movaps xmm0, [dest]
  movups xmm1, [src]
  addps xmm0, xmm1
  movaps [dest], xmm0
end;
{$endif}
     

particularly in bold line. The error message is:

/home/neodarkman/bgrabitmap7.2/bgrasse.pas(159,21) Fatal: Internal error 201001032


package: bgrabbitmap 7.2
Lazarus 1.0.8 - 19/03/2013
Free Pascal Compiler version 2.6.2 [2013/02/16]

on Kubuntu 12.10 64bits.
Kernel: 3.5.0-26

BigChimp: I searched on google before posting here .... but only found people with the same problem and some reporting success, but without presenting indeed the solution. Really thought about being a bug in FPC as well as several other people, but I preferred not to rush and not registered in the www.bugsfreepascal.org bug, just to have found success stories (?) when compiling the package on lazarus / fpc 2.6.2. Hence, I apologize for asking so "obvious" ...

I need to know how to rotate jpeg images, but only find codes for bitmap images, this package would help me a lot .... but as he seems to have problems ... and I'm not so good programmer to fix it, mainly in assembler code.




BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #5 on: April 08, 2013, 07:09:34 am »
BigChimp: I searched on google before posting here .... but only found people with the same problem and some reporting success, but without presenting indeed the solution. Really thought about being a bug in FPC as well as several other people, but I preferred not to rush and not registered in the www.bugsfreepascal.org bug, just to have found success stories (?) when compiling the package on lazarus / fpc 2.6.2. Hence, I apologize for asking so "obvious" ...
Hi neodarkman,

Sorry if I gave the wrong impression. I really meant not so obvious literally. Normally, I would just search through the bugtracker, but for some searches an internal external search is easier.
Edit: pfff.. have to learn to write ;)

Meanwhile, looks like we need an assembly guru to translate the x86 code into AMD64 machine code ;) I know there are some here on the forum, let's see if they bite ;)
« Last Edit: April 08, 2013, 12:28:24 pm by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

neodarkman

  • New Member
  • *
  • Posts: 38
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #6 on: April 08, 2013, 11:41:07 am »
BigChimp: I searched on google before posting here .... but only found people with the same problem and some reporting success, but without presenting indeed the solution. Really thought about being a bug in FPC as well as several other people, but I preferred not to rush and not registered in the www.bugsfreepascal.org bug, just to have found success stories (?) when compiling the package on lazarus / fpc 2.6.2. Hence, I apologize for asking so "obvious" ...
Hi neodarkman,

Sorry if I gave the wrong impression. I really meant not so obvious literally. Normally, I would just search through the bugtracker, but for some searches an internal search is easier.

Meanwhile, looks like we need an assembly guru to translate the x86 code into AMD64 machine code ;) I know there are some here on the forum, let's see if they bite ;)

No problem BigChimp... it's okay.
Esperemos algum conserto desse código.

hckr

  • Newbie
  • Posts: 4
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #7 on: May 01, 2013, 11:37:31 pm »
I have faced the same problem on Ubuntu 13.04 64-Bit.

hckr

  • Newbie
  • Posts: 4
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #8 on: May 03, 2013, 11:14:07 pm »
Up

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #9 on: May 04, 2013, 12:13:53 pm »
I have same problem too :(
fpc svn update  | At revision 24418.
lazarus svn update | revision 41020.

bgrabitmaptypes.pas(2836,1) Fatal: Internal error 2012090607

circular

  • Hero Member
  • *****
  • Posts: 4469
    • Personal webpage
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #10 on: May 04, 2013, 06:13:28 pm »
This is an issue with FPC compiler.
Conscience is the debugger of the mind

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #11 on: May 12, 2013, 08:35:11 pm »
fpc svn update  revision 24486.
lazarus svn update At revision 41161.
Kubuntu 13.04 x64
There are still same problem :( I was plan use bgra component in my new projects, so I waited, been one week. :( but no any changing or idea

Fred vS

  • Hero Member
  • *****
  • Posts: 3826
    • StrumPract is the musicians best friend
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #12 on: May 12, 2013, 10:13:32 pm »
Hello.

In console :
Quote
sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install ia32-libs

And install Lazarus 32 bit !
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #13 on: May 15, 2013, 08:41:14 am »
@Fred vS
Thanks for your answer, sorry for my late answer. My all system on x64 and I don't want change this, 'cos I'm still trying to learn linux :) But I wanna test your suggession on virtualbox kubuntu x32. than you.
At this moment, I'll start project without 3th party component is best idea for me

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1290
Re: bgrabitmap7.0 on lazarus 1.0.8 - compilation problems
« Reply #14 on: May 28, 2013, 05:10:05 am »
compiling bgrabitmap with codetyphon 4.20 (EDI LAZ64 MAX Lazarus 1.1 fpc 7.1 ) Ubuntu 12.04 64 bits ---> no error ( package pl_BGRAbitmap).

why is it OK with codetyphon :
for the register error it is because the bgrass.inc from codetyphon is
Code: [Select]
{$IFDEF CPUI386}
  {$DEFINE BGRASSE_AVAILABLE}
{$ENDIF}

{$IFDEF MSWINDOWS}  // 9999 for CodeTyphon Studio
  {$IFDEF cpux86_64}
    {$DEFINE BGRASSE_AVAILABLE}
  {$ENDIF}
{$ENDIF}

{$IFDEF UNIX}  // 9999 for CodeTyphon Studio
  {$IFDEF cpux86_64}
    {$ASMMODE INTEL}
  {$ENDIF}
{$ENDIF}     
then BGRASSE_AVAILABLE not defined with unix

and for the internal error it is because the option -Or isn't used in the package of codetyphon
and -O1 is in use

« Last Edit: May 28, 2013, 08:03:30 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

 

TinyPortal © 2005-2018