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/simple; d=gmx.net; s=badeba3b8450; t=1598801420; bh=vcIaD3OQxQ52QLnvS2LjmOELd1ydVLD31Gq1zunFFic=; h=X-UI-Sender-Class:From:Subject:To:Date; b=N9XuLckmHjs1M9phV2vkyWQ79T2ofvo5J9K20D+3lItp05+KG29sCiw8JmNUxnUsn LsIiVxBTvwL8bxgKkPX46hLnI7ab5Y/+Kzv/yD0uYPaH1cIz2j61uEfOsvNQCblDCr 3fdSBgcERzxN1a02eElRA2l+Pcz/0HaigJpi6vUY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c From: "sleepy_dog AT gmx DOT de [via djgpp AT delorie DOT com]" Subject: SIGSEGV when trying to compile helloworld To: djgpp AT delorie DOT com Message-ID: Date: Sun, 30 Aug 2020 17:30:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed X-Provags-ID: V03:K1:5BLEtSPjMA2l3jx24tF7rDh7trw9HP58rzd034nhu4JSZJmguUf paqz9yZMsArZeQKIJBsthUwm37LpvunVsjKztZP1djisrydMbVwLOi/HSdgGQbtJSODCEiW woZXtRXiU34pHMmEV4CQkrN9txgeYRUWyd7hGJoaUafRU3cX8vLtzuZUZe4L+AuRDbLHwDn fHF+GDjVz3J+GotM8dL+A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:hE3QK47lR9w=:eYWIstJEhUzsL5pvRcTQ1Q SY06+boxL81xWbCC1Ms3sJLyqT0i6rYvtIIxYzsSURTqfu8Y+43G5XAwZO07XyF1qOecZjq1k kpBd2JEnT4YxTmCQpcighsFrjrs7TAabPTqqQxeCY/Q8V2RGOKOJRTPZXJoRSymK3HB8sV5hz 91nlWm0Wvai+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5ebBc5V 9wvyt6VfpqUYl5hk6D8xwDuyz2uOG611JAW+o2w== Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 07UFV7wF021457 Reply-To: djgpp AT delorie DOT com Hello there, if anyone's still listening on here... (site seems to be down since today?) wanted to play a bit with DOSBox and DIY programs to run on it. I went to the DJGPP site and used the file picker to give me the list of needed files for compiling on a windows host, with Allegro. (Although I did not link Allegro at this point.) Unzipped everything into a folder: C:\DJGPP_GCC9 and set up env variables for DJGPP to the .env file and DJDIR to this dir. (the gcc9 appendix because I also tried some guy from the internet's gcc4.2.1 with allegro all-in-one package, and I did get stuff compiled with it, but when I saw there's actually a GCC9 version, I needed to try that) I literally made a helloworld program: #include int main(const int argc, const char** argv) { printf( "Hello World!" ); } Saved in: C:\DOSBOX_dos_projects\DJGPP\testproj\test.cpp With Windows7 (32bit) Cmd shell in that folder, called this, and got the output: C:\DOSBOX~3\DJGPP\testproj>gcc -g test.cpp -o test.exe Exiting due to signal SIGSEGV Stack Fault at eip=00000a11 eax=00010001 ebx=01c40080 ecx=0165a400 edx=004207bf esi=000023c2 edi=000023b2 ebp=0042773a esp=0042773a program=C:\DJGPP_~1\BIN\GCC.EXE cs: sel=00cf base=0000d150 limit=00000db0 ds: sel=00b7 base=00005860 limit=0000ffff es: sel=0040 invalid fs: sel=0000 gs: sel=0000 ss: sel=00b7 base=00005860 limit=0000ffff App stack: [00423b78..00223b7c] Exceptn stack: [00223ac8..00221b88] . Since the delorie.com site is currently down I looked elsewhere and found some FAQ where it says this could come from the .env file having extra whitespace somewhere... although supposedly fixed by now. And I did not edit that file, it's the one I just unzipped. Any ideas what could be wrong? - Steve