Lazarus

Programming => Graphics => Graphics and Multimedia => BGRABitmap and LazPaint => Topic started by: VTwin on April 09, 2012, 04:49:08 pm

Title: BGRABitmap 5.7.1 won't compile on OS X
Post by: VTwin on April 09, 2012, 04:49:08 pm
Hello,

I am getting an error in bgrasse.pas:

'Generating PIC, but reference is not PIC-safe'

Any ideas on why? 5.6 compiles fine.

Cheers,
Frederick

OS X 10.6.8, Intel
Lazarus 0.9.31
Free Pascal 2.6.0
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on April 12, 2012, 04:25:00 pm
Maybe compiler options for the package (optimization level or linking options) could be changed to solve this.
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: VTwin on April 13, 2012, 02:01:59 pm
Thanks Circular,

I can try some different setting, but am not really sure what I am doing. My options should be standard, Level 1 debugger optimization, no special linking options (GDB, Automatic, line numbers).

I will probably wait for the next version, and see if others run into similar issues on OS X.

By the way, many, many thanks for your work on BGRABitmap. It is extraordinarily useful to me.

Cheers,
Frederick   
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on April 14, 2012, 12:44:02 am
I'm happy that it's useful  :)

About compiler options, there is a difference between your app config and my library config. You need to open the package, and in the package window, go to the compiler options.
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 09, 2012, 03:05:45 pm
Hi, i'm updating today to Laz 1.1 and with that decided to update all components i use from SVN, but BGRABitmap is not compiling, all revisions from 388 and up are generating this type of error in multiple places:

Code: [Select]
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(108,15) Error: Generating PIC, but reference is not PIC-safe
p.s. fpc 2.6.0 - laz 1.1
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 09, 2012, 07:03:34 pm
What is on line 108 that could bring this error ?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 10, 2012, 09:40:36 am
It's in ASM code part that is
Code: [Select]
cmp UseSSE, 0
What is on line 108 that could bring this error ?
It's from rev.388

Here is rev.402 errors
Code: [Select]
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(130,15) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(169,15) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(204,15) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(306,15) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(347,15) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(353,16) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(411,22) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(469,22) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(527,22) Error: Generating PIC, but reference is not PIC-safe
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(680) Fatal: There were 9 errors compiling module, stopping
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 10, 2012, 10:48:06 am
So it is about accessing global variable with asm ?

I don't know what to do about this, except adding a compiler directive to disable all assembler and thus SSE on OSX. Any other idea ?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 10, 2012, 12:30:31 pm
So it is about accessing global variable with asm ?

I don't know what to do about this, except adding a compiler directive to disable all assembler and thus SSE on OSX. Any other idea ?
(i'm poor experienced with asm and really no experience with SSE) How about not use asm to compare UseSSE?

This was working well before 388
Code: [Select]
  {$ifdef CPUI386}
    if UseSSE then
    asm
      mov eax, v1
      movups xmm0, [eax]
      mov eax, v2
      movups xmm1, [eax]
      addps xmm0, xmm1

      mov eax,result
      movups [eax],xmm0
    end else
  {$endif}
Maybe compiler will optimise that simple comparison well and you will not loose any speed.
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 10, 2012, 02:44:27 pm
Well I think it would be less optimized, and more complex cases, it can get quite mixed between asm and pascal. But you're right, if there is no other way, we can adapt the code that way. It's still better than no SSE at all.

I found something about a compiler option. Can you go package compiler options, in Other and in Custom options textbox add :

-Cg-

Does this fix the problem ?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 10, 2012, 03:51:39 pm
ASM PArt is ok, but now this:
Code: [Select]
10/05/12 15.49.12 [0x0-0x2f22f2].lazarus[58656] [TExternalToolList.Run] CmdLine="/Users/fbk/fpc/compiler/ppc386  -MObjFPC -Scgi -O3 -OoREGVAR -gs -gl -vewnhi -l -Fu/Developer/lazarus/lcl/units/i386-darwin/carbon -Fu/Developer/lazarus/lcl/units/i386-darwin -Fu/Developer/lazarus/components/lazutils/lib/i386-darwin -Fu/Developer/lazarus/packager/units/i386-darwin -Fu/Developer/lazarus/components/bgrabitmap/ -FU/Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/ -dL
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] CL -dLCLcarbon -Cg- bgrabitmappack.pas" WorkDir="/Developer/lazarus/components/bgrabitmap/"
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Hint: Start of reading config file /etc/fpc.cfg
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Hint: End of reading config file /etc/fpc.cfg
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Free Pascal Compiler version 2.6.0 [2012/01/16] for i386
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Copyright (c) 1993-2011 by Florian Klaempfl and others
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Target OS: Darwin for i386
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Compiling bgrabitmappac{standard input}:570:no instruction mnemonic suffix given and no register operands; can't size instruction
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] {standard input}:582:no instruction mnemonic suffix given and no register operands; can't size instruction
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] {standard input}:594:no instruction mnemonic suffix given and no register operands; can't size instruction
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] {standard input}:606:no instruction mnemonic suffix given and no register operands; can't size instruction
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] {standard input}:817:no instruction mnemonic suffix given and no register operands; can't size instruction
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] {standard input}:837:no instruction mnemonic suffix given and no register operands; can't size instruction
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] {standard input}:857:no instruction mnemonic suffix given and no register operands; can't size instruction
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] {standard input}:877:no instruction mnemonic suffix given and no register operands; can't size instruction
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] k.pas
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Compiling bgrascene3d.pas
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Compiling bgracolorint.pas
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] Assembling (pipe)
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgracolorint.s
10/05/12 15.49.13 [0x0-0x2f22f2].lazarus[58656] bgracolorint.pas(300) Fatal: There were 1 errors compiling module, stopping

p.s. output is from console because Messages window display only the last fatal error line and nothing more...
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 10, 2012, 07:25:39 pm
I don't understand this.

Well, maybe without this compiler option, but by replacing
Code: [Select]
  cmp UseSSE, 0by :
Code: [Select]
  cmp byte ptr [UseSSE], 0
Does it work ?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 11, 2012, 09:35:01 am
No, same Generating PIC, but reference is not PIC-safe error.

Don't know if it's relevant, but when i click on the error, carret is moved on '0', not on 'UseSSE' (there are also some UseSSE3 with same error).
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 13, 2012, 12:00:36 pm
Oh so maybe if you replace it by
Code: [Select]
push eax
xor eax,eax
cmp UseSSE, al
pop eax
?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 14, 2012, 10:24:12 am
No...
Code: [Select]
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(132,15) Error: Generating PIC, but reference is not PIC-safe

i'v tried this also
Code: [Select]
  push eax
  mov UseSSE, al
  cmp al, 0
  pop eax
with same result... but error points to mov line, so it must be caused by UseSSE...
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 15, 2012, 01:56:30 pm
Ok. I fixed this by splitting into different procedures for SSE or not SSE. And in fact I realized that simple functions are slower with SSE. Only normalize is faster (much faster). So I deactivated SSE for most simple functions. That does not mean that SSE is not useful in general. To optimize SSE code, it is necessary to align vectors and do specific asm code.

I've updated to svn. Can you give it a try ?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 15, 2012, 03:41:59 pm
One error, in Normalize3D_128_SSE1 there is a
Code: [Select]
     cmp UseSSE3, 0 that generate error
Code: [Select]
/Developer/lazarus/components/bgrabitmap/bgrasse.pas(343,18) Error: Generating PIC, but reference is not PIC-safe
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 15, 2012, 07:54:14 pm
I've fixed this.
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 16, 2012, 09:49:25 am
I've fixed this.
Ok, for BGRASSE.
Now it's turn of BGRAColorInt that was also added in rev.388.

Fatal error with no explanation that points to line 55, column 23 (before the '*')
Code: [Select]
result[1] := color.r*oneOver65536;(function ColorInt65536ToColorF)

Here is the console output:
Code: [Select]
16/05/12 09.40.29 [0x0-0x1d21d2].lazarus[59243] [TExternalToolList.Run] CmdLine="/Users/fbk/fpc/compiler/ppc386  -MObjFPC -Scgi -O3 -OoREGVAR -gs -gl -vewnhi -l -Fu/Developer/lazarus/lcl/units/i386-darwin/carbon -Fu/Developer/lazarus/lcl/units/i386-darwin -Fu/Developer/lazarus/components/lazutils/lib/i386-darwin -Fu/Developer/lazarus/packa
16/05/12 09.40.29 [0x0-0x1d21d2].lazarus[59243] ger/units/i386-darwin -Fu/Developer/lazarus/components/bgrabitmap/ -FU/Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/ -dLCL -dLCLcarbon bgrabitmappack.pas" WorkDir="/Developer/lazarus/components/bgrabitmap/"
16/05/12 09.40.29 [0x0-0x1d21d2].lazarus[59243] Hint: Start of reading config fi
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] le /etc/fpc.cfg
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] Hint: End of reading config file /etc/fpc.cfg
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] Free Pascal Compiler version 2.6.0 [2012/01/16] for i386
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] Copyright (c) 1993-2011 by Florian Klaempfl and others
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] Target OS: Darwin for i386
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] Compiling bgrabitmappac{standard input}:588:no instruction mnemonic suffix given and no register operands; can't size instruction
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] {standard input}:600:no instruction mnemonic suffix given and no register operands; can't size instruction
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] {standard input}:612:no instruction mnemonic suffix given and no register operands; can't size instruction
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] {standard input}:624:no instruction mnemonic suffix given and no register operands; can't size instruction
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] {standard input}:835:no instruction mnemonic suffix given and no register operands; can't size instruction
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] {standard input}:855:no instruction mnemonic suffix given and no register operands; can't size instruction
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] {standard input}:875:no instruction mnemonic suffix given and no register operands; can't size instruction
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] {standard input}:895:no instruction mnemonic suffix given and no register operands; can't size instruction
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] k.pas
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] Compiling bgrascene3d.pas
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] Compiling bgracolorint.pas
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgracolorint.s
16/05/12 09.40.30 [0x0-0x1d21d2].lazarus[59243] bgracolorint.pas(55,23) Fatal: There were 1 e
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 16, 2012, 08:24:59 pm
Oh...

What if you replace oneOver65536 by 0.0000152587890625 ?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 17, 2012, 10:28:04 am
Oh...

What if you replace oneOver65536 by 0.0000152587890625 ?
Nothing...

If i comment that lines, then it gives me same error on this
Code: [Select]
result.r := round(colorF[1]*65536);
If i comment also that lines, it will fail with same result, but now fatal error point simply to the end of file...
Code: [Select]
/Developer/lazarus/components/bgrabitmap/bgracolorint.pas(300) Fatal: There were 1 errors compiling module, stopping
p.s. full log
Code: [Select]
17/05/12 10.20.47 [0x0-0x2e02e].lazarus[330] TPkgManager.DoCompilePackage A bgrabitmappack 5.
17/05/12 10.20.47 [0x0-0x2e02e].lazarus[330] 7.1 Flags=[]
17/05/12 10.20.47 [0x0-0x2e02e].lazarus[330] TLazPackageGraph.CheckIfCurPkgOutDirNeedsCompile  Missing state file for bgrabitmappack 5.7.1: /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrabitmappack.compiled
17/05/12 10.20.47 [0x0-0x2e02e].lazarus[330] [TExternalToolList.Run] CmdLine="/Users/fbk/fpc/compiler/ppc386 -B  -MObjFPC -Scgi -O3 -OoREGVAR -gs -gl -vewnhi -l -Fu/Developer/lazarus/lcl/units/i386-darwin/carbon -Fu/Developer/lazarus/lcl/units/i386-darwin -Fu/Developer/lazarus/components/lazutils/lib/i386-darwin -Fu/Developer/lazarus/packager/units/i386-darwin
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] -Fu/Developer/lazarus/components/bgrabitmap/ -FU/Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/ -dLCL -dLCLcarbon bgrabitmappack.pas" WorkDir="/Developer/lazarus/components/bgrabitmap/"
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] Hint: Start of reading config file /etc/fpc.cfg
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] Hint: End of reading config file /etc/fpc.cfg
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] Free Pascal Compiler version 2.6.0 [2012/01/16] for i386
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] Copyright (c) 1993-2011 by Florian Klaempfl and others
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] Target OS: Darwin for i386
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] Compiling bgrabitmappack.pas
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] Compiling bgraanimatedgif.pas
17/05/12 10.20.48 [0x0-0x2e02e].lazarus[330] Compiling bgrabit
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] map.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgradefaultbitmap.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrabitmaptypes.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrabitmaptypes.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgracanvas.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrapen.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrapath.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgraresample.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgraresample.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrapath.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrapen.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrapolygon.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrafillinfo.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrafillinfo.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrablend.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrablend.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgragradientscanner.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgratransform.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgratransform.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgragradientscanner.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrapolygon.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrapolygonaliased.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrasse.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitma
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] p/lib/i386-darwin/2.6.0/bgrasse.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrapolygonaliased.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgracanvas.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgracanvas2d.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgracanvas2d.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgrafilters.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrafilters.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgratext.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] bgratext.pas(453,55) Hint: Function result variable does not seem to be initialized
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgratext.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgratextfx.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Compiling bgraphongtypes.pas
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgraphongtypes.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgratextfx.s
17/05/12 10.20.49 [0x0-0x2e02e].lazarus[330] Hint: Found abstract method: TFPCustomCanvas.DoCopyRect(<TFPCustomCanvas>,LongInt,LongInt,TFPCustomCanvas
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] ,const TRect);
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Hint: Found abstract method: TFPCustomCanvas.DoDraw(<TFPCustomCanvas>,LongInt,LongInt,const TFPCustomImage);
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgradefaultbitmap.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrabitmap.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgraanimatedgif.pas(79,28) Hint: Parameter "Stream" not used
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgraanimatedgif.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Compiling bgracompressablebitmap.pas
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgracompressablebitmap.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Compiling bgradnetdeserial.pas
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgradnetdeserial.pas(157,14) Warning: An inherited method is hidden by "TDotNetDeserialization.ToString:AnsiString;"
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgradnetdeserial.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Compiling bgragradients.pas
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgragradients.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Compiling bgrapaintnet.pas
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Compiling bgralayers.pas
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgralayers.pas(31,14) Warning: An inherited method is hidden by "TBGRACustomLayeredBitmap.ToString:AnsiString;"
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgralayers.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembling (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgrapaintnet.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Compiling bgrascene3d.pas
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Compiling bgracolorint.pas
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgracolorint.pas(17,32) Hint: Parameter "colorF" not used
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgracolorint.pas(44,10) Warning: Function result does not seem to be set
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgracolorint.pas(53,7) Hint: Local const "oneOver65536" is not used
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgracolorint.pas(18,32) Hint: Parameter "color" not used
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgracolorint.pas(52,10) Warning: Function result does not seem to be set
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] Assembli{standard input}:522:no instruction mnemonic suffix given and no register operands; can't size instruction
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] {standard input}:534:no instruction mnemonic suffix given and no register operands; can't size instruction
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] {standard input}:546:no instruction mnemonic suffix given and no register operands; can't size instruction
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] {standard input}:558:no instruction mnemonic suffix given and no register operands; can't size instruction
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] {standard input}:769:no instruction mnemonic suffix given and no register operands; can't size instruction
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] {standard input}:789:no instruction mnemonic suffix given and no register operands; can't size instruction
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] {standard input}:809:no instruction mnemonic suffix given and no register operands; can't size instruction
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] {standard input}:829:no instruction mnemonic suffix given and no registe
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] r operands; can't size instruction
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] ng (pipe) /Developer/lazarus/components/bgrabitmap/lib/i386-darwin/2.6.0/bgracolorint.s
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] bgracolorint.pas(300) Fatal: There were 1 errors compiling module, stopping
17/05/12 10.20.50 [0x0-0x2e02e].lazarus[330] TExternalToolList.Run Exception: /Developer/lazarus/compo
17/05/12 10.21.45 [0x0-0x2e02e].lazarus[330] nents/bgrabitmap/bgracolorint.pas(300) Fatal: There were 1 errors compiling module, stopping
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 17, 2012, 11:59:43 am
Well I have no idea.

It's rather an FPC bug, isn't it ? Can you put a bug report in FPC bugtracker for this ?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 17, 2012, 12:26:00 pm
Is there anyone that managed to compile SVN BGRABitmap on Mac OS X Intel? Are you using some compile switches or different fpc version?

Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: evoshroom on May 22, 2012, 10:23:12 pm
I decided to try it out today.  5.7.1 and 5.7 both had the same issue mentioned above and I couldn't get anything earlier than that to download from sourceforge.  :(
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: Shebuka on May 23, 2012, 10:07:55 am
I decided to try it out today.  5.7.1 and 5.7 both had the same issue mentioned above and I couldn't get anything earlier than that to download from sourceforge.  :(
You need to get rev. 387 from svn, it's the last working on mac.
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: evoshroom on May 26, 2012, 10:31:48 am
Thanks for the tip.  Checking out Rev 387 now.  Any plans to restore OS X support in the pipeline?
Title: Re: BGRABitmap 5.7.1 won't compile on OS X
Post by: circular on May 26, 2012, 05:23:43 pm
I would like to make it work, but I don't understand the problem.  :'(
TinyPortal © 2005-2018