X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=td+JF8A5eUZm11bdXtaTMO5Fs7TBkcyE90lhoxaKzdo=; b=GmSxSBvKGREirlkfsRSec7BlKl4z+u9Ad0yc9v6hkQbD2SmY2qKdbX9hjqQn/HKrur yRKH4B64ETR4T8Erpfm5MZdQBqCrHjJLsluCYVoF3klchRCXnGKvHrLueTvSN/U+To5J eWjq8Nr+TTeFxYzoUvz6vVdhTEs57NC20Gp9tZ6G5nARrlKptSUYuOAEjfdzGJQmyOIG iMV555dcpu9RDH7ZmpdY1Knyszck7gAqVEr0C+/rLugtAi4gUqEaYoZH+OOIqjzACvRJ PR+c6Qkg2tveVJiu4w3kU96Yy0Ap9TciOG7G3Fx2pvBePgFZfWm6GpN4QT/d8NJoLFl8 MYJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=td+JF8A5eUZm11bdXtaTMO5Fs7TBkcyE90lhoxaKzdo=; b=BsePo/TlReOVgU0brRovVSWIZgZL4o7xAHqFaWiLpb9xsoopjgv3Pjfp26txlLsQOi HoiSENYufvZpQUGMIzbDSn5ezr6ClVc3FPNESzvQI+fp9cDgxLVpzh6J35izc5HDlPV+ ww12tjn4u1MUkrwYcGjxv0cMUKTW/gMDs1TPprQmkpvB8oFs7RRY+tJ1Y3e9W9KUf17X 3JHZrlUv7sTCvf7J5qQMRq9F3qgoBOPA3qBLIDTyuxceh3r72C8QjHgJxUud1RWqx86C Uw4qxP06xO6TQq5+tGsRC5eHAvTXAZl59HVWUDPemCNJRr//nY73Yb8QrwB+omh6j9Qh qhPA== X-Gm-Message-State: AOAM532rjBm2NxMhyDI/lem3dMsJo6Z9oSO8LODmWzMvjFvAi73xQPy4 Gxb899vniPT0aEJHCNBvg8/SXr5JdY/QVUOu+TzdYHBHyWI= X-Google-Smtp-Source: ABdhPJzjztPpkAXVopqCZC0esNHpIHKw7pvjslBu2vhymIFKG3hsNrxmNgWd9d1BVpa5pee+Pi6uYoOnzfSCWqm9k1k= X-Received: by 2002:a1c:31d7:: with SMTP id x206mr3300991wmx.2.1598816454018; Sun, 30 Aug 2020 12:40:54 -0700 (PDT) MIME-Version: 1.0 References: <835z90xgab DOT fsf AT gnu DOT org> <833644xdzz DOT fsf AT gnu DOT org> In-Reply-To: From: "Damian Frank (damian DOT frank AT gmail DOT com) [via djgpp AT delorie DOT com]" Date: Sun, 30 Aug 2020 12:40:17 -0700 Message-ID: Subject: Re: SIGSEGV when trying to compile helloworld To: djgpp AT delorie DOT com Content-Type: multipart/alternative; boundary="000000000000cd8aaf05ae1d7606" Reply-To: djgpp AT delorie DOT com --000000000000cd8aaf05ae1d7606 Content-Type: text/plain; charset="UTF-8" DOSBox provides a (mostly) elegant solution to this -- just share your files directly. Unlike other VMs, DOSBox allows you to directly mount the host filesystem within the DOS VM -- so you can just edit the files directly using your editor of choice on Windows, then switch to DOSBox and build them. (You do need to watch out for long filenames, though.) In the odd occurrence of being out of sync, the DOSBox command "resync" will refresh its cached directory of the host FS. Damian On Sun, Aug 30, 2020 at 12:09 PM sleepy_dog AT gmx DOT de [via djgpp AT delorie DOT com] < djgpp AT delorie DOT com> wrote: > Hi, > > > I thought he was running DJGPP under DOSBox and not directly under > Windows 7. > > No no, I planned to make the programs run under DOSbox, but compiling is > from within windows. > I guess for debugging I would have to use RHIDE within DOSbox, esp. > because Graphics modes are involved. > But I'd prefer not to use it as an actual editor. > > > How about trying some other kind of virtual machine, eg. QEMU or VMWare? > > I was now thinking of running a VirtualBox WinXp32 image on my system, > with a shared folder for the sources, and a build script I trigger > manually. > That would be somewhat workable, I guess. > > I have no experience with QEMU or VMWare, and interoperability with > stuff that runs on the host system. > > > > Hi all, > > > > On Sun, 30 Aug 2020 at 17:10, Eli Zaretskii (eliz AT gnu DOT org) [via > > djgpp AT delorie DOT com] wrote: > >>> From: "sleepy_dog AT gmx DOT de [via djgpp AT delorie DOT com]" > >>> Date: Sun, 30 Aug 2020 18:32:41 +0200 > >>> > >>> go32/v2 version 2.0 built Oct 18 2015 09:41:08 > >>> Usage: go32 coff-image [args] > >>> Rename this to go32.exe only if you need a go32 that can run v2 > binaries as > >>> well as v1 binaries (old makefiles). Put ahead of the old go32 in > >>> your PATH > >>> but do not delete your old go32 - leave it in the PATH after this > one. > >>> Set GO32_V2_DEBUG=y in the environment to get verbose output. > >>> > >>> DPMI memory available: 704964 Kb > >>> DPMI swap space available: 0 Kb > >>> > >>> Hm. DPMI swap space 0 = bad? > >> No, that's OK. Many "modern" DPMI providers just lump all the memory > >> together (700MB in your case), and don't bother separating them into > >> RAM and swap. > >> > >> The memory amount sounds enough, so I'm puzzled what could be the > >> problem. Maybe some Windows 7 specific problem? I think someone > >> posted here long ago tricks to get the Windows DPMI provider more > >> friendly... Anyone? > > I thought he was running DJGPP under DOSBox and not directly under > > Windows 7. DOSBox is designed to be able to run old games, so not > > even long filenames are implemented. How about trying some other kind > > of virtual machine, eg. QEMU or VMWare? > > > > I've said it before, but NT series Windows support for DOS programs is > > pathetic (and on 64-bit versions it is nonexistent). Then again, > > Linux never directly supported DOS programs at all. In both cases, > > virtual machines are the solution. > > > > Cheers, > > Albert. > > > > > --000000000000cd8aaf05ae1d7606 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
DOSBox provides a (mostly) elegant solution to this -= - just share your files directly. Unlike other VMs, DOSBox allows you to di= rectly mount the host filesystem within the DOS VM -- so you can just edit = the files directly using your editor of choice on Windows, then switch to D= OSBox and build them. (You do need to watch out for long filenames, though.= ) In the odd occurrence of being out of sync, the DOSBox command "resy= nc" will refresh its cached directory of the host FS.

Damian


On Sun, Aug 30, 2020 at 12:09 PM sleepy_dog AT gmx DOT de [via djgpp AT delorie DOT com] <djgpp AT delorie DOT com> wrote:
Hi,

> I thought he was running DJGPP under DOSBox and not directly under Win= dows 7.

No no, I planned to make the programs run under DOSbox, but compiling is fr= om within windows.
I guess for debugging I would have to use RHIDE within DOSbox, esp. because= Graphics modes are involved.
But I'd prefer not to use it as an actual editor.

> How about trying some other kind of virtual machine, eg. QEMU or VMWar= e?

I was now thinking of running a VirtualBox WinXp32 image on my system,
with a shared folder for the sources, and a build script I trigger manually= .
That would be somewhat workable, I guess.

I have no experience with QEMU or VMWare, and interoperability with
stuff that runs on the host system.


> Hi all,
>
> On Sun, 30 Aug 2020 at 17:10, Eli Zaretskii (eliz AT gnu DOT org) [via
> djgpp AT delorie DOT c= om] <djgpp AT de= lorie.com> wrote:
>>> From: "sleepy_dog AT gmx DOT de [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
>>> Date: Sun, 30 Aug 2020 18:32:41 +0200
>>>
>>> go32/v2 version 2.0 built Oct 18 2015 09:41:08
>>> Usage: go32 coff-image [args]
>>> Rename this to go32.exe only if you need a go32 that can run v= 2 binaries as
>>>=C2=A0 =C2=A0 well as v1 binaries (old makefiles).=C2=A0 Put ah= ead of the old go32 in
>>> your PATH
>>>=C2=A0 =C2=A0 but do not delete your old go32 - leave it in the= PATH after this one.
>>> Set GO32_V2_DEBUG=3Dy in the environment to get verbose output= .
>>>
>>> DPMI memory available: 704964 Kb
>>> DPMI swap space available: 0 Kb
>>>
>>> Hm. DPMI swap space 0 =3D bad?
>> No, that's OK.=C2=A0 Many "modern" DPMI providers ju= st lump all the memory
>> together (700MB in your case), and don't bother separating the= m into
>> RAM and swap.
>>
>> The memory amount sounds enough, so I'm puzzled what could be = the
>> problem.=C2=A0 Maybe some Windows 7 specific problem?=C2=A0 I thin= k someone
>> posted here long ago tricks to get the Windows DPMI provider more<= br> >> friendly...=C2=A0 Anyone?
> I thought he was running DJGPP under DOSBox and not directly under
> Windows 7.=C2=A0 DOSBox is designed to be able to run old games, so no= t
> even long filenames are implemented.=C2=A0 How about trying some other= kind
> of virtual machine, eg. QEMU or VMWare?
>
> I've said it before, but NT series Windows support for DOS program= s is
> pathetic (and on 64-bit versions it is nonexistent).=C2=A0 Then again,=
> Linux never directly supported DOS programs at all.=C2=A0 In both case= s,
> virtual machines are the solution.
>
> Cheers,
> Albert.
>


--000000000000cd8aaf05ae1d7606--