Oberon Community Platform Forum
November 21, 2019, 07:42:03 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Building a new Release of A2 fails (update to bug #47)  (Read 8058 times)
Bernhard T.
Administrator
Full Member
*****
Posts: 164


« on: March 29, 2011, 12:45:40 PM »

Update to my bug #47 in codetrack (https://www.ocp.inf.ethz.ch/codetrack/codetrack.php?page=viewissue&id=0047) ...

In the meantime I reverted back to my last successfull build (Rev. 3710 of 10-Dec-2010).
Also rev.3710 trapped, but with a different error message.

Therefore I cleaned up (deleted all content in) my Test directory.

Now the Release.Build finishes, but the linking step freezes the system with 100% load eaten up by Aos.exe. I have to kill Aos.exe with the Windows task manager.

Any ideas?

regards
   Bernhard
« Last Edit: March 30, 2011, 07:46:13 AM by Bernhard T. » Logged
Bernhard T.
Administrator
Full Member
*****
Posts: 164


« Reply #1 on: April 04, 2011, 02:52:29 PM »

Now the Release.Build finishes, but the linking step freezes the system with 100% load eaten up by Aos.exe. I have to kill Aos.exe with the Windows task manager.

update with Rev. 4022:

Now the linker step traps with the following in the log window & the trap viewer:


Linking ../Test/IDE.Bin
Base=100000, load=1000
Modules:Kernel Traps ATADisks DiskVolumes DiskFS Loader BootConsole problem with adr in Linker0.Close 122309504<=1160956<=122778624 at 1174:15005
problem with adr in Linker0.Close 122309504<=-120099908<=122778624 at 1175:15005
problem with adr in Linker0.Close 122309504<=1199436<=122778624 at 1942:15005
problem with adr in Linker0.Close 122309504<=1246340<=122778624 at 3127:15005


---------------------------------------------- log ------------------
Linker0 Ok. #Bytes=  000728C0 Linker.Log
Linking ../Test/USB.Bin
Base=100000, load=1000
Modules:Kernel Traps UsbHubDriver UsbEhci Loader UsbStorageBoot DiskVolumes DiskFS SystemTools.DoCommands: Command: 'Linker.Link', parameters: '\P../Test/ \.Obx ../Test/USB.Bin 0100000H 1000H Kernel Traps
   UsbHubDriver UsbEhci Loader UsbStorageBoot
   DiskVolumes DiskFS BootConsole' failed: Exception during command execution (res: 3902)

------------------------------------------ Trap viewer ------------------
[1] TRAP 8 PL 3 8  ASSERT failed WinAos Revision 4000 (29.03.2011)
 CS:=0000001B DS:=00000023 ES:=00000023 SS:=00000023 PC=074917B9 ESI=075AD0C0 EDI=0764AF38 ESP=033FF5CC PID=000008E8
 EAX=000000B8 EBX=0759C8A0 ECX=00000000 EDX=00000000 EBP=033FF5E0 FS:=0000003B GS:=00000000 TMR=00B23FFB
 FLAGS: CPAzStIdo iopl0 {0..2, 4, 7, 9}
Process: 2280 run 0 2075ACDD8:Commands.Runner NIL {0, 28}
Linker0.NewBlock:143 pc=1705 [000006A9H] = 1562 + 143
  size=5888 (00001700H)
  p=124033056 (07649820H)
  freeBlockAdr=0
  freeBlock=07649828H (UNKNOWN)
  blockSize=4160 (00001040H)
State Linker0:
...
Logged
soren renner
Global Moderator
Full Member
*****
Posts: 216



« Reply #2 on: April 04, 2011, 05:45:07 PM »

Revision 4023: attempted build using UnixAos 0.95/r3953: Release.Build Linux.Aos fails with this message:


Loading Release.Tool@3607on fileerror: Expected INCLUDE, COMPILER or COMPILEOPTIONS token
Logged
Bernhard T.
Administrator
Full Member
*****
Posts: 164


« Reply #3 on: April 06, 2011, 01:30:28 PM »

with Release 4040 the error behaviour changed again:

first errors during system build phase
(i.e. during
    Release.Build --path="../Test/" --build --zip --xml A2 ~)
and later a trap during the link phase (i.e. during
    Linker.Link \P../Test/ \.Obx ../Test/USBSLOW.Bin 0100000H 1000H Kernel Traps
   UsbHubDriver UsbOhci UsbUhci UsbStorageBoot
   DiskVolumes DiskFS Loader BootConsole ~
see below):

------------------------- Kernel.Log --------------------

Loading package description file Release.Tool ... done.
A2: Check if all files are present...    ReleaseTree@416   error: HEADER section expected
1m 8s done.
A2: Check modules and imports... 0s done.
   Release.Tool@12740   warning: Duplicate file found: StringPool.Mod
   Release.Tool@12755   warning: Duplicate file found: Diagnostics.Mod
   Release.Tool@12797   warning: Duplicate file found: BitSets.Mod
   Release.Tool@12809   warning: Duplicate file found: ObjectFile.Mod
   Release.Tool@12824   warning: Duplicate file found: GenericLinker.Mod
   Release.Tool@13043   warning: Module name not equal to filename in FoxCompiler.Mod
   Release.Tool@15127   warning: Module name not equal to filename in FoxTextCompiler.Mod
   Release.Tool@36411   warning: Duplicate file found: OPA.Data
Writing release file to ../Test/CompileCommand.Tool ... done.
Compiling build A2 (1452 files) ...  00% WMTextView: Command parsing error, res: 3903 (Expected ModuleName "." [ProcedureName])
10% 20% 30% 40% 50% 60% 70% 80% 90% 100%  done in 8m 34s
   I386.Machine.Mod   Machine.ValidAddress is no longer visible
   FoxGenericObjectFile.Mod@6149   Show is new
   FoxIntermediateBackend.Mod@26712   FoxIntermediateBackend.UsedArray is redefined
   Heaps.Mod@29938   Heaps.AddRootObject is new
   Heaps.Mod@30397   Heaps.CollectGarbage is redefined
   ArrayXdRat.Mod@38077   ArrayXdRat.+ is new
   ArrayXdCplx.Mod@38337   ArrayXdCplx.+ is new
   ArrayXdRat.Mod@39566   ArrayXdRat.+ is no longer visible
   ArrayXdCplx.Mod@39826   ArrayXdCplx.+ is no longer visible
   ArrayXdInt.Mod@40160   ArrayXdInt.+ is new
   ArrayXdRe.Mod@40591   ArrayXdRe.+ is new
   ArrayXdInt.Mod@41377   ArrayXdInt.+ is no longer visible
   ArrayXdRe.Mod@41972   ArrayXdRe.+ is no longer visible
   I386.Machine.Mod@73955   Machine.ValidHeapAddress is new
   I386.Machine.Mod@93562   Machine.GetEAX is redefined
   FoxIntermediateBackend.Mod@283849   FoxIntermediateBackend.AllocationArray is redefined
...
and then during the link step, a trap:

------------------------- Kernel.Log --------------------

Linking ../Test/USBSLOW.Bin
Base=100000, load=1000
Modules:Kernel Traps UsbHubDriver UsbOhci UsbUhci UsbStorageBoot DiskVolumes DiskFS

------------------------- Trap viewer ------------------

[1] TRAP 8 PL 3 8  ASSERT failed WinAos Revision 4000 (29.03.2011)
 CS:=0000001B DS:=00000023 ES:=00000023 SS:=00000023 PC=0ACB6359 ESI=0B260180 EDI=0B2FECD8 ESP=0012F5CC PID=000004B8
 EAX=000000B8 EBX=0B35D240 ECX=00000000 EDX=00000000 EBP=0012F5E0 FS:=0000003B GS:=00000000 TMR=003ECC15
 FLAGS: CPAzStIdo iopl0 {0..2, 4, 7, 9}
Process: 1208 run 0 20ACAFAF8:UNKNOWN NIL {0, 28}
Linker0.NewBlock:143 pc=1705 [000006A9H] = 1562 + 143
  size=5888 (00001700H)
  p=187684288 (0B2FD5C0H)
  freeBlockAdr=0
Logged
Bernhard T.
Administrator
Full Member
*****
Posts: 164


« Reply #4 on: April 06, 2011, 01:48:00 PM »

Addendum:

in trying to understand Build.Tool, I stumbled over the second link command in step #2:

    Linker.Link \P../Test/ \.Obx ../Test/USB.Bin 0100000H 1000H Kernel Traps
        UsbHubDriver UsbEhci Loader UsbStorageBoot
        DiskVolumes DiskFS Loader BootConsole ~

which includes Loader twice, i.e. before BootConsole and before UsbStorageBoot.

Is this intended?

Bernhard
« Last Edit: April 06, 2011, 01:49:41 PM by Bernhard T. » Logged
Bernhard T.
Administrator
Full Member
*****
Posts: 164


« Reply #5 on: April 07, 2011, 03:11:30 PM »

Still problems with Revision 4044
--
  Bernhard

--------------------------------------------------------- Kernel.log ---------
Loading package description file Release.Tool ... done.
A2: Check if all files are present... 1m 2s done.
A2: Check modules and imports... 1s done.
   Release.Tool@12740   warning: Duplicate file found: StringPool.Mod
   Release.Tool@12755   warning: Duplicate file found: Diagnostics.Mod
   Release.Tool@12797   warning: Duplicate file found: BitSets.Mod
   Release.Tool@12809   warning: Duplicate file found: ObjectFile.Mod
   Release.Tool@12824   warning: Duplicate file found: GenericLinker.Mod
   Release.Tool@13043   warning: Module name not equal to filename in FoxCompiler.Mod
   Release.Tool@15127   warning: Module name not equal to filename in FoxTextCompiler.Mod
   Release.Tool@36411   warning: Duplicate file found: OPA.Data
Writing release file to ../Test/CompileCommand.Tool ... done.
Compiling build A2 (1452 files) ...  00% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%  done in 5m 18s
Deleting old archive files ... 0 files deleted.
Creating archive ../Test/KernelSrc.zip ... 8 files added.
Creating archive ../Test/Kernel.zip ... 17 files added.
Creating archive ../Test/SystemSrc.zip ... 67 files added.
Creating archive ../Test/System.zip ... 69 files added.
Creating archive ../Test/DriversSrc.zip ... 64 files added.
Creating archive ../Test/Drivers.zip ... 78 files added.
Creating archive ../Test/CompilerSrc.zip ... 34 files added.
Creating archive ../Test/Compiler.zip ... 36 files added.
Creating archive ../Test/ApplicationsMiniSrc.zip ... 123 files added.
Creating archive ../Test/ApplicationsMini.zip ... 144 files added.
Creating archive ../Test/ApplicationsSrc.zip ... 92 files added.
Creating archive ../Test/Applications.zip ... 97 files added.
Creating archive ../Test/GuiApplicationsMiniSrc.zip ... 132 files added.
Creating archive ../Test/GuiApplicationsMini.zip ... 173 files added.
Creating archive ../Test/GuiApplicationsSrc.zip ... 96 files added.
Creating archive ../Test/GuiApplications.zip ... 127 files added.
Creating archive ../Test/FunSrc.zip ... 23 files added.
Creating archive ../Test/Fun.zip ... 46 files added.
Creating archive ../Test/TestingSrc.zip ... 34 files added.
Creating archive ../Test/Testing.zip ... 42 files added.
Creating archive ../Test/EducationSrc.zip ... 18 files added.
Creating archive ../Test/Education.zip ... 40 files added.
Creating archive ../Test/BuildSrc.zip ... 8 files added.
Creating archive ../Test/Build.zip ... 17 files added.
Creating archive ../Test/EFISrc.zip ... 11 files added.
Creating archive ../Test/EFI.zip ... 12 files added.
Creating archive ../Test/ContributionsSrc.zip ... 138 files added.
Creating archive ../Test/Contributions.zip ... 158 files added.
Creating archive ../Test/OberonSrc.zip ... 88 files added.
Creating archive ../Test/Oberon.zip ... 124 files added.
Creating archive ../Test/OberonGadgetsSrc.zip ... 120 files added.
Creating archive ../Test/OberonGadgets.zip ... 177 files added.
Creating archive ../Test/OberonApplicationsSrc.zip ... 135 files added.
Creating archive ../Test/OberonApplications.zip ... 261 files added.
Creating archive ../Test/OberonDocumentation.zip ... 62 files added.
Creating archive ../Test/OberonVoyagerSrc.zip ... 110 files added.
Creating archive ../Test/OberonVoyager.zip ... 110 files added.
Creating archive ../Test/OberonAntsSrc.zip ... 125 files added.
Creating archive ../Test/OberonAnts.zip ... 125 files added.
Creating archive ../Test/TrueTypeFonts.zip ... 12 files added.
Creating archive ../Test/CjkFonts.zip ... 2 files added.
Creating archive ../Test/ScreenFonts.zip ... 68 files added.
Creating archive ../Test/Pr3Fonts.zip ... 64 files added.
Creating archive ../Test/Pr6Fonts.zip ... 30 files added.
Writing XML package description to ../Test/InstallerPackages.XML ... done.
Linking ../Test/IDE.Bin
Base=100000, load=1000
Modules:Kernel Traps ATADisks DiskVolumes DiskFS Loader BootConsole problem with adr in Linker0.Close 82806912<=1160956<=83276352 at 1174:15019
problem with adr in Linker0.Close 82806912<=-80597316<=83276352 at 1175:15019
problem with adr in Linker0.Close 82806912<=1199660<=83276352 at 1945:15019
problem with adr in Linker0.Close 82806912<=1246532<=83276352 at 3130:15019

Linker0 Ok. #Bytes=  00072A00 Linker.Log
Linking ../Test/USB.Bin
Base=100000, load=1000
Modules:Kernel Traps UsbHubDriver UsbEhci UsbStorageBoot DiskVolumes DiskFS Loader SystemTools.DoCommands: Command: 'Linker.Link', parameters: '\P../Test/ \.Obx ../Test/USB.Bin 0100000H 1000H Kernel Traps
   UsbHubDriver UsbEhci UsbStorageBoot
   DiskVolumes DiskFS Loader BootConsole' failed: Exception during command execution (res: 3902)
   
------------------------ Trap Viewer -----------------

[1] TRAP 8 PL 3 8  ASSERT failed WinAos Revision 4000 (29.03.2011)
 CS:=0000001B DS:=00000023 ES:=00000023 SS:=00000023 PC=0476AB19 ESI=05032780 EDI=050D1CB8 ESP=0B81F5CC PID=00000A30
 EAX=000001EE EBX=05021F60 ECX=00000000 EDX=00000000 EBP=0B81F5E0 FS:=0000003B GS:=00000000 TMR=05C213B6
 FLAGS: CpAzStIdo iopl0 {0..1, 4, 7, 9}
Process: 2608 run 0 205032498:UNKNOWN NIL {0, 28}
Linker0.NewBlock:143 pc=1705 [000006A9H] = 1562 + 143
  size=15808 (00003DC0H)
  p=84729568 (050CDEE0H)
  freeBlockAdr=0
  freeBlock=050CDEE8H (UNKNOWN)
  blockSize=8256 (00002040H)
State Linker0:
  logWriter=050D1160H (UNKNOWN)
  logFile=050CFF78H (UNKNOWN)
  root=84682520 (050C2718H)
  procOffsets=050327C0H (UNKNOWN)
  numProcs=1133 (0000046DH)
  ptrOffsets=0503A000H (UNKNOWN)
  numPtrs=1088 (00000440H)
  heap=05032720H (UNKNOWN)
  memBlock=05032780H (UNKNOWN)
  beginMemBlockAdr=84092768 (05032760H)
  endMemBlockAdr=84737824 (050CFF20H)
  beginAdr=84092704 (05032720H)
  freeAdr=84745376 (050D1CA0H)
  baseAdr=1048576 (00100000H)
  heapOfs=-83044128
  exportTags=172 (000000ACH)
  relocates=10597 (00002965H)
  exportTagAdr=05018680H (UNKNOWN)
  relocateAdr=05021F60H (UNKNOWN)
  curRelocate=-1
  refsMissed=0
  prefix="../Test/"...
  suffix=".Obx"...
  loadObj=Linker1.LoadObj:537 pc=12536 [000030F8H] = 11999 + 537
  getProcs=TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, FALSE, FALSE...
  freeBlockTag=82957276 (04F1D3DCH)
  systemBlockTag=82957380 (04F1D444H)
  recordBlockTag=82957484 (04F1D4ACH)
  protRecBlockTag=82957588 (04F1D514H)
  arrayBlockTag=82957716 (04F1D594H)
  initBlock=04F6B1C0H (UNKNOWN)
  currentMarkValue=1 (00000001H)
Linker0.NewSys:132 pc=1890 [00000762H] = 1758 + 132
  p=00000000H (NIL)
  size=15753 (00003D89H)
  systemBlockSize=24 (00000018H)
  blockSize=15808 (00003DC0H)
  systemBlockAdr=0
  dataBlockAdr=0
  systemBlock=00000000H (NIL)
Linker1.AllocateModule.NewSysArray:30 pc=1511 [000005E7H] = 1481 + 30
  ptr=00000000H (NIL)
  elements=15737 (00003D79H)
  elemSize=1 (00000001H)
  adr=0
Linker1.AllocateModule:153 pc=1387 [0000056BH] = 1234 + 153
  m=050CDA98H (UNKNOWN)
  h=Rec@00000004H
  dataSize=8 (00000008H)
Linker1.LoadObj:1091 pc=13090 [00003322H] = 11999 + 1091
  name=193066712 (0B81F6D8H), 272 (00000110H)
  fileName=193066648 (0B81F698H), 64 (00000040H)
  res=0
  msg=0, 0
Linker0.ThisModule:127 pc=4442 [0000115AH] = 4315 + 127
  name=1684107084 (64616F4CH), 1962963557 (75007265H)
  res=0
  msg=0, 0
  m=00000000H (NIL)
  p=00000000H (NIL)
  fileName=""
  new=FALSE
Linker.Link:858 pc=1269 [000004F5H] = 411 + 858
  context=05032420H (UNKNOWN)
Commands.Runner.@Body:499 pc=1327 [0000052FH] = 828 + 499
Objects.Wrapper:363 pc=6951 [00001B27H] = 6588 + 363
  lpParameter=050325A0H (UNKNOWN)
  t=050325A0H (UNKNOWN)
  obj=05032498H (UNKNOWN)
  res=1 (00000001H)
  bp=193068980 (0B81FFB4H)
  sp=193068940 (0B81FF8CH)
  excpfrm=Rec@00000190H
Unknown PC=7C80B729H FP=0B81FFECH
---------------------------------
Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #6 on: April 08, 2011, 10:21:38 AM »

The trap occurs because the Linker0.HeapSize (630KB) is exceeded by the USB boot image. Unfortunately, increasing Linker0.HeapSize won't help since the boot image is loaded while the processor is still in real mode (at most 640KB memory available).

USB.Bin is only needed to boot A2 from USB. If you don't need this, simply don't execute the corresponding link command and remove USB.Bin from the build script.
Logged
Bernhard T.
Administrator
Full Member
*****
Posts: 164


« Reply #7 on: April 08, 2011, 01:09:58 PM »

Thanks Sven,

since I don't need the USB boot image, I skipped this step ...
the current crazy-fresh CD based on Revision 4047 can be found here
ftp://ftp.lrz.de/transfer/BlueBottle-A2/A2_Rev-4047_serial-trace.iso

it boots on a recent Intel Dual Core E5400 Fujitsu Mini Desktop system,
but I can't say much more ....

Salut
   Bernhard
« Last Edit: April 08, 2011, 01:56:58 PM by Bernhard T. » Logged
Bernhard T.
Administrator
Full Member
*****
Posts: 164


« Reply #8 on: May 11, 2011, 07:50:02 AM »

The trap occurs because the Linker0.HeapSize (630KB) is exceeded by the USB boot image. Unfortunately, increasing Linker0.HeapSize won't help since the boot image is loaded while the processor is still in real mode (at most 640KB memory available).

hmm, wouldn't it be worthwhile to create a Multiboot (see http://www.gnu.org/software/grub/manual/multiboot/multiboot.html) compatible bootlinker and an AosFS compatible module for Grub-2 (see http://www.gnu.org/software/grub/grub-documentation.en.html)?

Bernhard
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!