From: "Alexei K." Newsgroups: comp.os.msdos.djgpp Subject: Re: SIGILL 386 (illegal opcode) Date: Thu, 1 May 2003 17:30:26 +0500 Organization: Communication Company MARK-ITT Lines: 30 Message-ID: References: <3eb08a5a$0$79355$cc7c7865 AT news DOT luth DOT se> NNTP-Posting-Host: d2-237.net.mark-itt.net Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: hq.mark-itt.ru 1051794017 803 217.14.194.237 (1 May 2003 13:00:17 GMT) X-Complaints-To: abuse AT mark-itt DOT ru NNTP-Posting-Date: Thu, 1 May 2003 13:00:17 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Andrew" wrote: news:rc02bvkd2ubsau4hftukvbq7t6lt12d9ee AT 4ax DOT com... > ..SNIP.. > >My project works fine with 386 CPU, if it compiles by DJGPP gpp 2.952. > >I have just recompiled my project by DJGPP gpp 3.2.2 > >(with -m386 option enabled) and program has failed only on 386 PC. > >I deeply use STL. Was libstdxx.a library compiled for 386 CPU? > The GCC 3.2.2 target default is:- > target=i586-pc-msdosdjgpp > > >How can I rebuild libstdxx.a? > If you download the GCC322S.ZIP and follw the directions in the > readme.djgpp file in the gnu\gcc-3.22 directory. > > In the gcc\buiild.gcc directory modify the djmake.sh to change the > target to the following before you do any builds:- > target=i386-pc-msdosdjgpp > > You may also need to re-build the binutils as well, but I would start > with GCC first and see what happens. This should take about 70-90 > minutes on a P4 2Ghz and about 3-4 hours or more on a Celleron 800. I don't need to run GCC on 386 PC. I just need to run only programs which are compiled by GCC on 386. Should I still need to rebuild GCC and binutils for target i386? And, if so which compiler should I use? [skipped ...] Alexei K.