Re: [Freedos-devel] Error compiling FreeDOS Kernel

2023-11-09 Thread perditionc--- via Freedos-devel
On Wed, Nov 8, 2023 at 3:21 AM Walter Oesch via Freedos-devel <
freedos-devel@lists.sourceforge.net> wrote:

> I want to build the FreeDOS Kernel.
> I use Dosbox in Ubuntu Linux and watcom comiler from FreeDOS, version 1.9.
>
> I changed config.b to use watcom and copied to config.bat, then start with
> buildall.bat.
> The compilation hangs in BOOT/boot.asm:437 Warning Must update constant
> offset (17Bh)...
>
> What did i wrong?
>
> Freundliche Grüsse
> Walter Oesch
>
>
That error means that neither ISFAT12 or ISFAT16 was defined during the
assembly of the boot sector or the boot sector file did not assemble such
that the expected offset to patch by sys is at the same place [either
changes were made, possibly assembled differently, or something else
happened].

You will want to use BUILD.BAT not BUILDALL.BAT as the 1st will build a
kernel as you have configured whereas the second is used to build the
kernel multiple times with different options and compilers. If you have
Ubuntu, it will probably be easier to build directly in Linux as that is
how the CI builds are done on GitHub.  I have never tried building in
DOSBox, but that should not affect the build of the boot sector unless it
is somehow causing build options to not be passed to Nasm.

I will try to replicate this weekend.

Jeremy
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Error compiling FreeDOS Kernel

2023-11-09 Thread Walter Oesch via Freedos-devel
Hallo

I have downloaded the ZIP from https://github.com/FDOS/kernel, Version 2.43
(2043).

I have nothing changed. Later I want to change some parts.

Ubuntu 22.04.3 LTS

I downloaded the assembler NASM version 0.98.39 compiled on Oct 12 2019
(renamed to nasm.exe and put it in the bin folder of watcom.

DOSBox Version 0.74-3

I use dosbox with the old compiler microsoft MSCV70, every ding worked
fine. And i can execute the produce exe on dosbox, everything worked
flawlessly.

I have not installed UPX. May be leads to an error later?
Nor did i export TERMINFO=/lib/terminfo

Freundliche Grüsse
Walter Oesch

Walter Oesch
Erlenweg 12
3806 Bönigen
www.webdesign-oesch.ch
Tel: 033 822 22 75
Mobile: 076 382 55 58


[image: Mailtrack]

Sender
notified by
Mailtrack

09.11.23,
10:34:21

Am Do., 9. Nov. 2023 um 09:14 Uhr schrieb Rugxulo via Freedos-devel <
freedos-devel@lists.sourceforge.net>:

> Hi,
>
> On Wed, Nov 8, 2023 at 2:21 AM Walter Oesch via Freedos-devel
>  wrote:
> >
> > I want to build the FreeDOS Kernel.
>
> Kernel 2043? Any particular reason to not use the stock build? Did you
> modify anything or add any patches? Just curiosity?
>
> > I use Dosbox in Ubuntu Linux and watcom comiler from FreeDOS, version
> 1.9.
>
> Which version of DOSBox? 0.74-3? Which Ubuntu? 20.04 LTS 64-bit?
>
> OpenWatcom can also run natively atop Linux. The old 1.9 installer had
> a bug where it needed "export TERMINFO=/lib/terminfo" first. You could
> also probably unzip it and manually install. (I assume it has a Linux
> makefile somewhere. It also had a MinGW makefile, IIRC.)
>
> You also need NASM and UPX. (You might need one older [or newer??]
> than 2.16.01.)
>
> > I changed config.b to use watcom and copied to config.bat, then start
> with buildall.bat.
> > The compilation hangs in BOOT/boot.asm:437 Warning Must update constant
> offset (17Bh)...
> >
> > What did i wrong?
>
> I don't know, but I'm not sure DOSBox is recommended (or even
> supported) for this kind of task.
>
> The only times I really rebuilt the kernel were atop FreeDOS itself
> (under QEMU or VirtualBox).
>
>
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Error compiling FreeDOS Kernel

2023-11-09 Thread Rugxulo via Freedos-devel
Hi,

On Wed, Nov 8, 2023 at 2:21 AM Walter Oesch via Freedos-devel
 wrote:
>
> I want to build the FreeDOS Kernel.

Kernel 2043? Any particular reason to not use the stock build? Did you
modify anything or add any patches? Just curiosity?

> I use Dosbox in Ubuntu Linux and watcom comiler from FreeDOS, version 1.9.

Which version of DOSBox? 0.74-3? Which Ubuntu? 20.04 LTS 64-bit?

OpenWatcom can also run natively atop Linux. The old 1.9 installer had
a bug where it needed "export TERMINFO=/lib/terminfo" first. You could
also probably unzip it and manually install. (I assume it has a Linux
makefile somewhere. It also had a MinGW makefile, IIRC.)

You also need NASM and UPX. (You might need one older [or newer??]
than 2.16.01.)

> I changed config.b to use watcom and copied to config.bat, then start with 
> buildall.bat.
> The compilation hangs in BOOT/boot.asm:437 Warning Must update constant 
> offset (17Bh)...
>
> What did i wrong?

I don't know, but I'm not sure DOSBox is recommended (or even
supported) for this kind of task.

The only times I really rebuilt the kernel were atop FreeDOS itself
(under QEMU or VirtualBox).


___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] Error compiling FreeDOS Kernel

2023-11-08 Thread Walter Oesch via Freedos-devel
I want to build the FreeDOS Kernel.
I use Dosbox in Ubuntu Linux and watcom comiler from FreeDOS, version 1.9.

I changed config.b to use watcom and copied to config.bat, then start with
buildall.bat.
The compilation hangs in BOOT/boot.asm:437 Warning Must update constant
offset (17Bh)...

What did i wrong?

Freundliche Grüsse
Walter Oesch

Walter Oesch
Erlenweg 12
3806 Bönigen
www.webdesign-oesch.ch
Tel: 033 822 22 75
Mobile: 076 382 55 58

[image: Mailtrack]

Sender
notified by
Mailtrack

08.11.23,
08:56:28
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel