2013/12/3 Antonio Caruso <[email protected]>
> Dear Mingw-W64 community
>
> I'm a CS professor in Italy (University of Salento), I'll teach in the
> period March-July a programming course for the undergrads in Mathematics,
> and I usually teach C with mingw.
>
> I'd like to switch to mingw-w64 in particular for the better support
> for C99 features.
>
> So, I actually works on a desktop with windows seven 32 bit. I do
> not have mingw installed (clear desktop, just after windows seven sp1
> installation).
>
> I downloaded one of the builds in particular:
>
> i686-w64-mingw32-gcc-4.8.0-win32_rubenvb.7z
>
> I unzipped the file in the C:\ dir, and from the command prompt
> I moved in the dir mingw32 and run the script mingw32env.bat so
> I got gcc in the path, and I'd like to test it with a simple program.
>
> I compiled the basic hello world:
> "
> #include <stdio.h>
> int main(...) {
> printf("Hello\n");
> return 0;
> }"
>
> and I try to compile it with gcc -std=c99 test.c -o test
> but the answer was:
>
> test.c:1:0: internal compiler error: Illegal instruction
>
> ^
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <[email protected]> for instructions.
>
>
> So, it's just this particular build that it's not working, could you
> point me to a build that it's easy to install, and works without
> problems.
>
Well, my builds were an interim solution until proper packagers stepped up.
I compiled with more optimization than default, meaning I used
-march=nocona, which means that the executable uses instructions up to
those introduced in the improved Pentium 4. From the GCC documentation:
> nocona
> Improved version of Intel Pentium4 CPU with 64-bit extensions, MMX,
SSE, SSE2 and SSE3 instruction set support.
So I'm guessing your CPU does not support one of these intstruction sets.
Anyways, as I said these are old builds that had their inception in me
wanting a toolchain. Currently there are various build projects, including
mingw-builds that are hosted on the MinGW-w64 Downloads
page<http://mingw-w64.sourceforge.net/download.php>.
This is a direct link to the installer:
http://sourceforge.net/projects/mingwbuilds/files/mingw-builds-install/mingw-builds-install.exe/download
These toolchains are used in the Qt open source releases, so they are
widely exposed to the masses ;-). I don't think there are any fancy
optimization options used that might fail on your older generation CPU.
Cheers,
Ruben
>
> In my opinion its FUNDAMENTAL in order to promote mingw-w64 to have
> a EASY and STRAINGFORWARD build, something that I can point to a
> student that is not a developer and that works with minimum effort.
>
> Thanks
> Antonio Caruso
>
>
>
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public