Help: gcc 4.3.2 installation problem:
Posted: April 20 2009
This problem appeared in my laptop. The ubuntu version is 8.10 and so it requires g95 compiler. When I installed Healpix, I met the following problem. I do hope someone can give me some notes. Thanks a lot.
I did according to the link http://www.g95.org/source.shtml
download and decompress ,then
cd gcc-4.0.3
mkdir g95
cd g95
../configure --enable-languages=c
make
------------------------------------
I got the following error report:
In function ‘open’,
inlined from ‘collect_execute’ at ../../gcc/collect2.c:1580:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [collect2.o] Error 1
make[1]: Leaving directory `/home/wly/software/gcc-4.0.3/g95/gcc'
make: *** [all-gcc] Error 2
I did according to the link http://www.g95.org/source.shtml
download and decompress ,then
cd gcc-4.0.3
mkdir g95
cd g95
../configure --enable-languages=c
make
------------------------------------
I got the following error report:
In function ‘open’,
inlined from ‘collect_execute’ at ../../gcc/collect2.c:1580:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [collect2.o] Error 1
make[1]: Leaving directory `/home/wly/software/gcc-4.0.3/g95/gcc'
make: *** [all-gcc] Error 2