Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-01

access vialoation while rebuilding compiler

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

dmitry boyarintsev

Hello All

I've been trying to modify the patch:
http://bugs.freepascal.org/view.php?id=15163
so it can be accepted.

But I've ran into a strange bug.

I'm using r14593 compiler + int_asm_darwin.patch applied (from the link above). Go to ogbase.pas and comment or erase "indirect : string;"(line 152)

after that "make OS_TARGET=i386" or building a lazarus pp.lpr project. fails with the following backtrace:

Compiling symdef.pas
Fatal: Compilation aborted
An unhandled exception occurred at $00011F85 :
EAccessViolation : Access violation
$00011F85
$00070FD4
$00085A10
$000B495E
$0005ECB8
$0005F693
$000B4BB5
$000B604D
$000AC629
$000AC758
$000AC784
$00146C4A
$00149573
$001471AF
$0014B520
$0014B531
$0014B531

Any suggestions?

thanks,
dmitry

Reply by email

Florian Klaempfl
to dmitry boyarintsev
Show quoted text 37 lines
Hello All I've been trying to modify the patch: http://bugs.freepascal.org/view.php?id=15163 so it can be accepted. But I've ran into a strange bug. I'm using r14593 compiler + int_asm_darwin.patch applied (from the link above). Go to ogbase.pas and comment or erase "indirect : string;"(line 152) after that "make OS_TARGET=i386" or building a lazarus pp.lpr project. fails with the following backtrace: Compiling symdef.pas Fatal: Compilation aborted An unhandled exception occurred at $00011F85 : EAccessViolation : Access violation $00011F85 $00070FD4 $00085A10 $000B495E $0005ECB8 $0005F693 $000B4BB5 $000B604D $000AC629 $000AC758 $000AC784 $00146C4A $00149573 $001471AF $0014B520 $0014B531 $0014B531 Any suggestions?

Could you use a compiler with line info?

Reply by email

Jonas Maebe
to Paul Ishenin
Paul Ishenin wrote
dmitry boyarintsev wrote: > make OPT="-g -gl"? > I usually do make OPT="-gw" but your options will work too.

There is no support yet for DWARF in the lineinfo unit on Mac OS X.

Jonas

Reply by email

dmitry boyarintsev
to Florian Klaempfl: Could you use a compiler with line info?
Florian Klaempfl wrote
Could you use a compiler with line info?

here you go:

Compiling symdef.pas
Fatal: Compilation aborted
An unhandled exception occurred at $00011AD5 :
EAccessViolation : Access violation
$00011AD5 fpc_shortstr_to_shortstr, line 684 of
/Users/dmitry/FPC_Laz/fpc/rtl/darwin/../bsd/system.pp $00072594 TSYMENTRY__GETREALNAME, line 185 of
/Users/dmitry/FPC_Laz/fpc/compiler/symbase.pas
$00086FD0 TABSTRACTPROCDEF__TYPENAME_PARAS, line 2891 of /Users/dmitry/FPC_Laz/fpc/compiler/symdef.pas
$000B5EDE TCALLNODE__VERIFYABSTRACT, line 2214 of /Users/dmitry/FPC_Laz/fpc/compiler/ncal.pas
$00060288 TFPHASHLIST__FOREACHCALL, line 1577 of /Users/dmitry/FPC_Laz/fpc/compiler/cclasses.pas
$00060C63 TFPHASHOBJECTLIST__FOREACHCALL, line 1847 of /Users/dmitry/FPC_Laz/fpc/compiler/cclasses.pas
$000B6135 TCALLNODE__VERIFYABSTRACTCALLS, line 2275 of /Users/dmitry/FPC_Laz/fpc/compiler/ncal.pas
$000B75CD TCALLNODE__PASS_TYPECHECK, line 2808 of /Users/dmitry/FPC_Laz/fpc/compiler/ncal.pas
$000ADBA9 TYPECHECKPASS_INTERNAL, line 80 of
/Users/dmitry/FPC_Laz/fpc/compiler/pass_1.pas
$000ADCD8 DO_TYPECHECKPASS_CHANGED, line 123 of
/Users/dmitry/FPC_Laz/fpc/compiler/pass_1.pas
$000ADD04 DO_TYPECHECKPASS, line 132 of
/Users/dmitry/FPC_Laz/fpc/compiler/pass_1.pas
$001481CA DO_MEMBER_READ, line 1209 of
/Users/dmitry/FPC_Laz/fpc/compiler/pexpr.pas
$0014AAF3 POSTFIXOPERATORS, line 2092 of
/Users/dmitry/FPC_Laz/fpc/compiler/pexpr.pas
$0014872F FACTOR, line 2279 of /Users/dmitry/FPC_Laz/fpc/compiler/pexpr.pas $0014CAA0 SUB_EXPR, line 2734 of
/Users/dmitry/FPC_Laz/fpc/compiler/pexpr.pas
$0014CAB1 SUB_EXPR, line 2736 of
/Users/dmitry/FPC_Laz/fpc/compiler/pexpr.pas
$0014CAB1 SUB_EXPR, line 2736 of
/Users/dmitry/FPC_Laz/fpc/compiler/pexpr.pas

thanks,
dmitry

Reply by email