Or is there an option to get a detailed error log?Did you try --verbose or/and --verbose-pkgsearch right after -B. What happens if you build your project/package from lazarus?
Has someone a hint regarding this error?It happens to others, too, but only seldom.
Or is there an option to get a detailed error log?
Ok, can you tell me how to do a debugger backtrace of lazbuild?Run it under gdb and then type command "bt" after the crash happened.
if [ -e bin/project1 ]
then
rm bin/project1;
err=$?
if [ $err -ne 0 ]; then exit $err; fi
fi
for i in {1..10..1}
do
/home/pi/fpupdeluxe/lazarus/lazbuild /home/pi/project1/project1.lpi
if [ -e bin/project1 ]
then
echo lazbuild bin/project1 OK
exit 0
else
echo attempt $i failed: $?
fi
done
An unhandled exception occurred at $0001B943:
EAccessViolation: Access violation
$0001B943
$005C6334
$005C7703
$0002CB46
TProject.DoLoadStateFile Statefile not found: /Users/Administrator/Build/dcu/i386-darwin/bssPluginHost.compiled
An unhandled exception occurred at $000CD0F1:
EAccessViolation: Access violation
$000CD0F1
$000D1C8B
$005DA155
$005D9525
$001B3AE2
$00014881
$00013AA5
$000120E6
$00017986
Marked memory at $042C5BA0 invalid
Wrong signature $AAAAAAAA instead of 4A31CCE6
#0 FPC_CHECK_OBJECT_EXT at :-1
#1 SETTHREAD(0x07745f60, 0x00000000) at exttools.pas:403
#2 SETTOOL(0x0764b030, 0x00000000) at exttools.pas:1307
#3 DESTROY(0x0764b030, 0x00000001) at exttools.pas:1596
#4 SYSTEM$_$TOBJECT_$__$$_FREE at :-1
#5 CLASSES_$$_THREADFUNC$POINTER$$LONGINT at :-1
#6 CTHREADS_$$_THREADMAIN$POINTER$$POINTER at :-1
#7 _pthread_body at :-1
#8 _pthread_start at :-1
#9 thread_start at :-1
I've found the reason :o It is relative(?) path to unit in lpr-file uses clause:I have created a new simple project (attached) with 100+ forms on a 10-level deep path and it's not enough to confirm your report.This bug is not stable. But with 100+ paths in lpr it fails always! :D
uses Interfaces, Unit1 in '..\..\<Path>\Unit1.pas', Unit2;
This bug is not stable. But with 100+ paths in lpr it fails always! :DCan you provide a simple sample project that shows that error?
Your backtrace looks like there is no debug info.Juha, when I put "--version" on a Lazbuild command, it just shows the version of Lazbuild ignoring all the rest.
Does the problem happen only with a certain program? Then you should upload it here to be tested.
I have build it successfully on WindowsI've never seen this error on Windows. Mac OS X only!
The only difference, I have realized so far is LPR file does not show path information for units:The main point is paths in lpr )) When I remove them all works fine on Mac OS too.
Can you provide a simple sample project that shows that error?I did not manage to reproduce it on an clean empty project. One hundred units with paths in lpr and empty search path in lpi, some uses, relative folders and... it still works. There must be something else.
Juha, when I put "--version" on a Lazbuild command, it just shows the version of Lazbuild ignoring all the rest.Yes, that's how it is implemented. TLazBuildApplication.ParseParameters has:
Should this be the expected behaviour?