[Freedos-user] DJGPP / gcc crash

2012-08-30 Thread Mateusz Viste
Hello,

I installed recently the FreeDOS 1.1 distro on a VirtualBox machine, 
installed the latest DJGPP, and tried to run gcc from there...

Unfortunately, all I got is this:

C:\DJGPP\BINgcc
Exiting due to signal SIGSEGV
Page fault at eip=00041381, error=0004
eax= ebx=0016bba0 ecx=0001 edx= esi=001f22b8 
edi=b078
ebp=001f2298 esp=001f20d0 program=C:\DJGPP\BIN\GCC.EXE
cs: sel=00a7  base=0040  limit=001f
ds: sel=00af  base=0040  limit=001f
es: sel=00af  base=0040  limit=001f
fs: sel=008f  base=a380  limit=
gs: sel=00bf  base=  limit=0010
ss: sel=00af  base=0040  limit=001f
App stack: [001f2394..00172394]  Exceptn stack: [00171d9c..0016fe5c]

Call frame traceback EIPs:
   0x00041381
   0x0004080a
   0x0014b108
C:\DJGPP\BIN

Anybody knows what this could be? Is there any known incompatibility 
between the DJGPP GCC and FreeDOS? I'm using the stock Jemmex manager, 
but tried with bare HIMEMX and XMGR with same result...

regards,
Mateusz

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] DJGPP / gcc crash

2012-08-30 Thread Rugxulo
Hi,

On Thu, Aug 30, 2012 at 9:13 AM, Mateusz Viste mate...@viste-family.net wrote:

 I installed recently the FreeDOS 1.1 distro on a VirtualBox machine,

Which version of VirtualBox? (Latest stable is 4.1.20.) Was VT-X
enabled? What host OS (Windows?) ?

 installed the latest DJGPP, and tried to run gcc from there...

From /current/ ? GCC 4.7.1 only?

 Unfortunately, all I got is this:

 C:\DJGPP\BINgcc
 Exiting due to signal SIGSEGV

 Anybody knows what this could be?

The last time it did that to me, I had accidentally forgotten to
install some needed too (e.g. BinUtils!!) or setup %DJGPP% correctly.
Latest versions don't seem to tell you very well when that happens.

At risk of stating the obvious (to someone who clearly knows what he's
doing), what does your /manifest/ directory look like?

At (ultra bare) minimum, you need these three files:

djdev203.zip
bnu222br4.zip
gcc471b.zip

unzip -q *.zip -d c:\djgpp
path c:\djgpp\bin;%PATH%
set DJGPP=c:\djgpp\djgpp.env
gcc -v

Should work fine then. I don't know the minimum RAM needed, but I
assume you had a reasonable amount setup.

 Is there any known incompatibility
 between the DJGPP GCC and FreeDOS?

No, because I run it natively atop FreeDOS (at least /beta/ , same
version, but I blindly assume /current/ works too), and it's fine.

 I'm using the stock Jemmex manager,
 but tried with bare HIMEMX and XMGR with same result...

I use XMGR, so if you tried that and it still failed, you either
misconfigured it or something else is afoot.

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] DJGPP / gcc crash

2012-08-30 Thread Mateusz Viste
Hello Rugxulo,

Thank you very much for your expert reply.

I have some quite extensive experience with GCC on linux, but actually 
never tried to use the monster on FreeDOS. I see that DJGPP is not as 
much user friendly as the gcc I'm used to.

  set DJGPP=c:\djgpp\djgpp.env

This was exactly the problem. First, I had no DJGPP environnement 
variable at all, then I was setting it naively to point to the directory 
where DJGPP is installed (C:\DJGPP\) - but only setting it to the value 
you gave actually solved the problem, and made GCC not crash anymore. 
Hooray!

I'm quite surprised that GCC doesn't checks if the %DJGPP% variable is 
set, and makes some sense... On the other hand, I should have read the 
readme file, which provides the correct content for the variable at line 
#224... :)

Thank you!
Mateusz





On 08/30/2012 08:07 PM, Rugxulo wrote:
 Hi,

 On Thu, Aug 30, 2012 at 9:13 AM, Mateusz Viste mate...@viste-family.net 
 wrote:

 I installed recently the FreeDOS 1.1 distro on a VirtualBox machine,

 Which version of VirtualBox? (Latest stable is 4.1.20.) Was VT-X
 enabled? What host OS (Windows?) ?

 installed the latest DJGPP, and tried to run gcc from there...

From /current/ ? GCC 4.7.1 only?

 Unfortunately, all I got is this:

 C:\DJGPP\BINgcc
 Exiting due to signal SIGSEGV

 Anybody knows what this could be?

 The last time it did that to me, I had accidentally forgotten to
 install some needed too (e.g. BinUtils!!) or setup %DJGPP% correctly.
 Latest versions don't seem to tell you very well when that happens.

 At risk of stating the obvious (to someone who clearly knows what he's
 doing), what does your /manifest/ directory look like?

 At (ultra bare) minimum, you need these three files:

 djdev203.zip
 bnu222br4.zip
 gcc471b.zip

 unzip -q *.zip -d c:\djgpp
 path c:\djgpp\bin;%PATH%
 set DJGPP=c:\djgpp\djgpp.env
 gcc -v

 Should work fine then. I don't know the minimum RAM needed, but I
 assume you had a reasonable amount setup.

 Is there any known incompatibility
 between the DJGPP GCC and FreeDOS?

 No, because I run it natively atop FreeDOS (at least /beta/ , same
 version, but I blindly assume /current/ works too), and it's fine.

 I'm using the stock Jemmex manager,
 but tried with bare HIMEMX and XMGR with same result...

 I use XMGR, so if you tried that and it still failed, you either
 misconfigured it or something else is afoot.

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 Freedos-user mailing list
 Freedos-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/freedos-user



--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user