This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC compiling issues


Hello,
I currently have GCC 4.1.2 installed and working. Unfortunately, this
version does not seem to support OpenMP, so I try to install some GCC that
does. So far , I tried to compile v. 4.3.3 and v. 4.4.0 , but both
encounter the same error
([EDIT:] Since yesterday, I have tried all versions from 4.4.0 through
4.1.2, with every version above 4.1.2 failing with the same error
message):

4.1.2 compiled just fine.
configuration was done via
../gcc-4.4.0/configure --prefix=/home/mibeer/prog --enable-threads
--with-arch=pentium4 --with-tune=pentium4 --enable-languages=c,c++,fortran
--with-gmp=/home/mibeer/prog --with-mpfr=/home/mibeer/prog

I used a separate directory for configuration/compilation. I also tried it
without the 'with-arch'/'with-tune' switches, but without success.

Then compilation was started by
make bootstrap

What I get is
gcc -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute -fno-common
-DHAVE_CONFIG_H -I. -I. -I../../gcc-4.4.0/gcc -I../../gcc-4.4.0/gcc/.
-I../../gcc-4.4.0/gcc/../include -I../../gcc-4.4.0/gcc/../libcpp/include
-I/home/mibeer/prog/include -I/home/mibeer/prog/include
-I../../gcc-4.4.0/gcc/../libdecnumber
-I../../gcc-4.4.0/gcc/../libdecnumber/bid -I../libdecnumber
../../gcc-4.4.0/gcc/c-lang.c -o c-lang.o
In file included from ../../gcc-4.4.0/gcc/input.h:25,
from ../../gcc-4.4.0/gcc/tree.h:27,
from ../../gcc-4.4.0/gcc/c-lang.c:27:
../../gcc-4.4.0/gcc/../libcpp/include/line-map.h:67: Fehler: ÂCHAR_BITÂ
ist hier nicht deklariert (nicht in einer Funktion)

I found out, that compilation just continues if I change line 61 in
gcc-4.4.0//libcpp/include/line-map.h from:
struct line_map GTY(())
to:
struct line_map GTY()

Unfortunately, then it fails some time later on complaining:
build/gengtype ../../gcc-4.4.0/gcc gtyp-input.list
../../gcc-4.4.0/gcc/../libcpp/include/line-map.h:61: parse error: expected
'(', have ')'../../gcc-4.4.0/gcc/../libcpp/include/line-map.h:62: parse
error: expected an option keyword, have
'{'../../gcc-4.4.0/gcc/../libcpp/include/line-map.h:63: parse error:
expected ')', have
'char'../../gcc-4.4.0/gcc/../libcpp/include/line-map.h:63: parse error:
expected ')', have '*'make[3]: *** [s-gtype] Fehler 1

I tried to just switch from the '(())' to the '()' version back and forth,
but at a certain point there was no further advance ( and I guess the
resulting compiler would not have worked that fine...)
I am using Suse Linux 10.2 on a Xeon/P4 box. I cant upgrade the box as do
not have the privileges (that is why I install the compilers into my local
directory - I did this with GCC 4.1.2 as well). This particular Suse
version does not seem to bring a GCC version that supports OpenMP...
Has anyone an idea why this happens and how one could solve this?

Thank you
Michael


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]