This is the mail archive of the gcc-bugs@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]

[Bug bootstrap/12396] build of gcc 3.4 20030920 fails during compilation of fixincl.c


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12396



------- Additional Comments From p dot van-hoof at qub dot ac dot uk  2003-09-25 02:58 -------
Subject: Re:  build of gcc 3.4 20030920 fails during
 compilation of fixincl.c

The last succesful build I did was 3.4 20030613. I tried building a newer 
version several times since, starting with 20030830, but they all failed as 
reported here. Apart from installing some Solaris patches, nothing changed on my 
machine. The only difference I can think of is that Kaveh is using Solaris 7 
while I am using Solaris 9, although I don't know why that would make a difference.

I have tried compiling gcc again and got the same error. This is what the gcc 
configure script states:

checking if mkdir takes one argument... yes

If you look at the test in gcc/configure around line 5028 you see that mkdir is 
actually called with two arguments, even though it is supposed to test whether 
mkdir can be called with one parameter. This looks very suspicious to me...

# mkdir takes a single argument on some systems.
echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6
echo "configure:5010: checking if mkdir takes one argument" >&5
if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
else
   cat > conftest.$ac_ext <<EOF
#line 5015 "configure"
#include "confdefs.h"

#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
# include <direct.h>
#endif
int main() {
mkdir ("foo", 0);
; return 0; }
EOF
if { (eval echo configure:5032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; 
}; then
   rm -rf conftest*
   gcc_cv_mkdir_takes_one_arg=no
else
   echo "configure: failed program was:" >&5
   cat conftest.$ac_ext >&5
   rm -rf conftest*
   gcc_cv_mkdir_takes_one_arg=yes
fi
rm -f conftest*
fi

echo "$ac_t""$gcc_cv_mkdir_takes_one_arg" 1>&6
if test $gcc_cv_mkdir_takes_one_arg = yes ; then
   cat >> confdefs.h <<\EOF
#define MKDIR_TAKES_ONE_ARG 1
EOF


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