EMC software Compile Problems With Mandrake 7.1


Date: Tue, 27 Jun 2000 16:20:32 -0400 (EDT)
From: "Bert Eding" <b.eding@chello.nl>

I used the Cookbook/emcinst22/install.html to install the june 7 version on mandrake 7.1 with compiler 2.95.3.  This one is even worse as the 2.95.2 version of Mandrake 7.0.

Except from the problems in the installation notes, there is an additional problem.  Everywhere where &lt;asm/io.h&gt; or &lt;sys/io.h&gt; is included there are compiler problems.  To make the problem as small as possible I created a small c file with only the include and then tried to compile with several options, see below.

The first problem I had was with drotest.c (emcmot dir), while being a c-file it&nbsp;is compiled with g++ by the EMC makefile instead of gcc.   I could solve the problem by changing the makefile to use gcc instead of g++ and added the -O2 optimize option.

The next file where I encountered this problem was in debug.cc (emctask dir), here I cannot solve it because whatever options I try with g++ I cannot compile.  Added the problems in emcsh.cc, which is all perfect C/C++ code, I get bad feelings with the famous GNU compiler. My question here is whats wrong, did mandrake put an unstable version in the 7.0 and even worse in the 7.1 release or what?

Can anybody tell me how to get and install a better compiler, I am new to Linux.  Should I report these bugs to GNU ?

Bert