Hi, To compile g77 with 'gcc-3.4.4.1.sh',, I followed the above steps and 'install2' step gives error ( I attached the outputs. See attachments): ./gcc-3.4.4-1.sh prep --OK ./gcc-3.4.4-1.sh conf --OK ./gcc-3.4.4-1.sh build --OK ./gcc-3.4.4-1.sh build_gnatlib_and_tools --No rules for this step (?) ./gcc-3.4.4-1.sh build_info --OK ./gcc-3.4.4-1.sh check (optional) --OK (see the attachment log file) ./gcc-3.4.4-1.sh install --OK ./gcc-3.4.4-1.sh strip_exe --OK ./gcc-3.4.4-1.sh install2 -ERROR (error in the install2_long.out file) ./gcc-3.4.4-1.sh pre_pkg ./gcc-3.4.4-1.sh pkg ./gcc-3.4.4-1.sh spkg
Thanks for your help semih -----Özgün İleti----- Kimden: Gerrit P. Haase [mailto:[EMAIL PROTECTED] Gönderilmiş: Çar 27.07.2005 19:29 Kime: Semih Ergintav Bilgi: cygwin@cygwin.com Konu: Re: Problem on the re-compling of g77 for the increasing of MXUNIT in fio.h Semih Ergintav wrote: > > > Hi, > Default version of gcc/g77 only allows a maximum unit number (MXUNIT) of 99. However my software requires a MXUNIT 9999. I tried to re-compile gcc/g77 after the editing the correct fıle (gcc/lıbf2c/lıbI77/fıo.h) > > I have two main problem: > > --The above packages have an installation shell. But, it tries to compile every different compiler (e.g. ada, d). I commented out many lines and succesfully run it (I HOPE) It depends on the presence of the source packages if you're using the build script included with the gcc-core source package. Unless there is a bug in my script, if a specific source is present it will be extracted and compiled, if there is no source the script shouldn't try to build it, except gcc-core which is the base package and required. > -- After the re-compiling, my codes dıdn't accept big numbers which is greater than 99. I can help with bugs in my build script or answer general questions about building gcc, however I cannot help you with internals about g77 in fıo.h or elsewhere. How did you define MXUNIT? I only know that it must be at least one greater than the required maximum, according to the docs: #define MXUNIT 10000 > > Please advice a correct solution or re-compile the g77 for me. Basically the compilation works? Gerrit -- =^..^=
+ echo ./gcc-3.4.4-1.sh + sed s%[\/][^\/][^\/]*$%% + tdir=. + test x. = x./gcc-3.4.4-1.sh + cd . + pwd + scriptdir=/usr/src + echo /usr/src + sed s%/SPECS$%% + topdir1=/usr/src + echo /usr/src + sed s%/CYGWIN-PATCHES$%% + topdir2=/usr/src + [ x/usr/src != x/usr/src ] + [ x/usr/src != x/usr/src ] + cd /usr/src + pwd + topdir=/usr/src + basename ./gcc-3.4.4-1.sh .sh + tscriptname=gcc-3.4.4-1 + echo gcc-3.4.4-1 + sed -e s/\-[^\-]*\-[^\-]*$// + export PKG=gcc + echo gcc-3.4.4-1 + sed -e s/gcc\-// -e s/\-[^\-]*$// + export VER=3.4.4 + echo gcc-3.4.4-1 + sed -e s/gcc\-3.4.4\-// + export REL=1 + export FULLPKG=gcc-3.4.4-1 + [ -e gcc-3.4.4-src.tar.gz ] + [ -e gcc-3.4.4-src.tar.bz2 ] + export src_orig_pkg_name=gcc-3.4.4-src.tar. + export src_pkg_name=gcc-3.4.4-1-src.tar.bz2 + export src_patch_name=gcc-3.4.4-1.patch + export bin_pkg_name=gcc-3.4.4-1.tar.bz2 + export src_orig_pkg=/usr/src/gcc-3.4.4-src.tar. + export src_pkg=/usr/src/gcc-3.4.4-1-src.tar.bz2 + export src_patch=/usr/src/gcc-3.4.4-1.patch + export bin_pkg=/usr/src/gcc-3.4.4-1.tar.bz2 + export srcdir=/usr/src/gcc-3.4.4-1 + export objdir=/usr/src/gcc-3.4.4-1/.build + export instdir=/usr/src/gcc-3.4.4-1/.inst + export srcinstdir=/usr/src/gcc-3.4.4-1/.sinst + export checkfile=/usr/src/log.gcc-3.4.4-1.check + prefix=/usr + sysconfdir=/etc + host=i686-pc-cygwin + target=i686-pc-cygwin + cygpath -m /usr/src + winbase=H:/cygwin/usr/src + mount_base=H:/cygwin/usr/src + mount_target=/usr/src + MY_CFLAGS=-O3 -pipe -march=i486 -funroll-loops + MY_CXXFLAGS=-O3 -pipe -march=i486 -funroll-loops + MY_LIBCFLAGS=-O3 -pipe -march=i486 -funroll-loops + MY_LIBCXXFLAGS=-O3 -pipe -march=i486 -funroll-loops + MY_DFLAGS=-O3 -pipe -march=i486 -funroll-loops + MY_LDFLAGS=-Wl,-s -Wl,--stack=0x00800000 + MY_JCFLAGS=-O3 -pipe -march=i486 -funroll-loops + MY_GCJFLAGS=-O3 + MY_LIBGCJ_CFLAGS=-O3 -pipe -march=i486 -D__NO_MATH_INLINES -ffloat-store -fno-omit-frame-pointer -funroll-loops + MY_LIBGCJ_CXXFLAGS=-O3 -pipe -march=i486 -D__NO_MATH_INLINES -ffloat-store -fno-omit-frame-pointer -funroll-loops + MY_LIBGCJ_JAVAFLAGS=-O3 -pipe -march=i486 -ffloat-store -fno-omit-frame-pointer -funroll-loops + MY_GNATLIBCFLAGS=-O3 -pipe -march=i486 -funroll-loops + export TCL_LIBRARY=/usr/share/tcl8.4 + export DEJAGNULIBS=/usr/share/dejagnu + SOURCE_DIRECTORY=gcc-3.4.4-1 + ADA_DIRS=gcc-3.4.4-1/gcc/ada + CPLUSPLUS_DIRS=gcc-3.4.4-1/gcc/cp gcc-3.4.4-1/libstdc++-v3 + FORTRAN_DIRS=gcc-3.4.4-1/gcc/f gcc-3.4.4-1/libf2c + JAVA_DIRS=gcc-3.4.4-1/gcc/java gcc-3.4.4-1/libjava gcc-3.4.4-1/libffi gcc-3.4.4-1/fastjar gcc-3.4.4-1/zlib gcc-3.4.4-1/boehm-gc + OBJECTIVEC_DIRS=gcc-3.4.4-1/gcc/objc gcc-3.4.4-1/libobjc + TESTSUITE_DIRS=gcc-3.4.4-1/gcc/testsuite + GPC_DIRS=gcc-3.4.4-1/gcc/p + GDC_DIRS=gcc-3.4.4-1/gcc/d + languages_to_build=c + all_source_packages=gcc-core-3.4.4.tar.bz2 gcc-ada-3.4.4.tar.bz2 gcc-g++-3.4.4.tar.bz2 gcc-g77-3.4.4.tar.bz2 gcc-java-3.4.4.tar.bz2 gcc-objc-3.4.4.tar.bz2 gcc-testsuite-3.4.4.tar.bz2 + PKG1=/usr/src/gcc-3.4.4-1/.inst/package-gcc + PKG2=/usr/src/gcc-3.4.4-1/.inst/package-gcc-g++ + PKG3=/usr/src/gcc-3.4.4-1/.inst/package-gcc-g77 + PKG4=/usr/src/gcc-3.4.4-1/.inst/package-gcc-gnat + PKG5=/usr/src/gcc-3.4.4-1/.inst/package-gcc-java + PKG6=/usr/src/gcc-3.4.4-1/.inst/package-gcc-objc + PKG7=/usr/src/gcc-3.4.4-1/.inst/package-gcc-gpc + PKG8=/usr/src/gcc-3.4.4-1/.inst/package-gcc-gm2 + PKG9=/usr/src/gcc-3.4.4-1/.inst/package-gcc-gdc + install2 + cd /usr/src/gcc-3.4.4-1/.build + rm -f /usr/src/gcc-3.4.4-1/.inst/package-gcc/usr/lib/libiberty.a + cd /usr/src/gcc-3.4.4-1/.inst/package-gcc/usr/bin + [ -f i686-pc-cygwin-gcc-3.4.4.exe ] + true + rm -f i686-pc-cygwin-c++.exe + rm -f i686-pc-cygwin-g++.exe + rm -f i686-pc-cygwin-gcc.exe + rm -f i686-pc-cygwin-gcj.exe + rm -f i686-pc-cygwin-gcjh.exe + rm -f i686-pc-cygwin-gdc.exe + ln -sf g77.exe f77.exe + ln -sf gcc.exe cc.exe + ln -sf g++.exe c++.exe + ln -sf gcc.exe i686-pc-cygwin-gcc.exe + ln -sf g++.exe i686-pc-cygwin-c++.exe + ln -sf g++.exe i686-pc-cygwin-g++.exe + ln -sf gcj.exe i686-pc-cygwin-gcj.exe + ln -sf gcjh.exe i686-pc-cygwin-gcjh.exe + ln -sf gdc.exe i686-pc-cygwin-gdc.exe + cd /usr/src/gcc-3.4.4-1/.inst/package-gcc/usr/share/info + rm -f dir + gzip -fq9 cpp.info.gz cppinternals.info.gz g77.info.gz gcc.info.gz gccinstall.info.gz gccint.info.gz jar.info.gz gzip: jar.info.gz: No such file or directory + STATUS=1 + exit 1
make[1]: Entering directory `/usr/src/gcc-3.4.4-1/.build/gcc' Making a new config file... echo "set tmpdir /usr/src/gcc-3.4.4-1/.build/gcc/testsuite" >> ./tmp0 test -d testsuite || mkdir testsuite rm -f testsuite/site.exp sed '/set tmpdir/ s|testsuite|testsuite|' < site.exp > testsuite/site.exp (rootme=`${PWDCMD-pwd}`; export rootme; \ srcdir=`cd /usr/src/gcc-3.4.4-1/gcc; ${PWDCMD-pwd}` ; export srcdir ; \ cd testsuite; \ EXPECT=expect ; export EXPECT ; \ if [ -f ${rootme}/../expect/expect ] ; then \ TCL_LIBRARY=`cd .. ; cd /usr/src/gcc-3.4.4-1/gcc/../tcl/library ; ${PWDCMD-pwd}` ; \ export TCL_LIBRARY ; fi ; \ runtest --tool gcc ) Test Run By sergintav on Mon Aug 1 10:08:06 2005 Native configuration is i686-pc-cygwin === gcc tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. === gcc Summary === (rootme=`${PWDCMD-pwd}`; export rootme; \ srcdir=`cd /usr/src/gcc-3.4.4-1/gcc; ${PWDCMD-pwd}` ; export srcdir ; \ cd testsuite; \ EXPECT=expect ; export EXPECT ; \ if [ -f ${rootme}/../expect/expect ] ; then \ TCL_LIBRARY=`cd .. ; cd /usr/src/gcc-3.4.4-1/gcc/../tcl/library ; ${PWDCMD-pwd}` ; \ export TCL_LIBRARY ; fi ; \ runtest --tool g77 ) Test Run By sergintav on Mon Aug 1 10:08:06 2005 Native configuration is i686-pc-cygwin === g77 tests === Schedule of variations: unix Running target unix Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/share/dejagnu/config/unix.exp as generic interface file for target. === g77 Summary === make[1]: Leaving directory `/usr/src/gcc-3.4.4-1/.build/gcc' make[1]: Entering directory `/usr/src/gcc-3.4.4-1/.build/intl' make[1]: Nothing to be done for `check'. make[1]: Leaving directory `/usr/src/gcc-3.4.4-1/.build/intl' make[1]: Entering directory `/usr/src/gcc-3.4.4-1/.build/libiberty' make[2]: Entering directory `/usr/src/gcc-3.4.4-1/.build/libiberty/testsuite' gcc -DHAVE_CONFIG_H -O3 -pipe -march=i486 -funroll-loops -I.. -I/usr/src/gcc-3.4.4-1/libiberty/testsuite/../../include -o test-demangle \ /usr/src/gcc-3.4.4-1/libiberty/testsuite/test-demangle.c ../libiberty.a ./test-demangle < /usr/src/gcc-3.4.4-1/libiberty/testsuite/demangle-expected ./test-demangle: 745 tests, 0 failures make[2]: Leaving directory `/usr/src/gcc-3.4.4-1/.build/libiberty/testsuite' make[1]: Leaving directory `/usr/src/gcc-3.4.4-1/.build/libiberty' make[1]: Entering directory `/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libf2c' cd libU77; make G77DIR=../../../gcc/ check make[2]: Entering directory `/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libf2c/libU77' ../../../gcc/g77 -B../../../gcc/ -L.. -g /usr/src/gcc-3.4.4-1/libf2c/libU77/u77-test.f \ -lg2c -lm -o a.out && ./a.out 1 GNU libU77 test at: Mon Aug 1 10:08:11 2005 Logical units 5 and 6 correspond (FNUM) to Unix i/o units 0, 1 Command-line arguments: 0 Arg 0 is: ./a.out and 6 isn't a tty device (ISATTY) Process id (GETPID): 3916 User id (GETUID): 11907 Group id (GETGID): 10545 If you have the `id' program, the following call of SYSTEM should agree with the above: uid=11907(sergintav) gid=10545(mkgroup-l-d) groups=0(root),544(Administrators),545(Users),10545(mkgroup-l-d) Login name (GETLOG): sergintav Login name (GETENV of LOGNAME): UMASK returns 18 FDATE returns: Mon Aug 1 10:08:11 2005 CALL FDATE returns: Mon Aug 1 10:08:11 2005 LTIME returns: 11 8 10 1 7 105 1 212 1 GMTIME returns: 11 8 7 1 7 105 1 212 0 SYSTEM_CLOCK returns: 407551187 1000 2147483647 DATE_AND_TIME returns: 20050801 100811.603 +0300 2005 8 1 180 10 8 11 603 Sleeping for 1 second (SLEEP) ... Elapsed total, user, system time (ETIME): 0.020 0.010 0.010 Looping until clock ticks at least once... Differences in total, user, system time (DTIME): 0.010 0.010 0.000 Elapsed total, user, system time (ETIME): 0.030 0.020 0.010 (Clock-tick detected after 251 1K loops.) IDATE (date,month,year): 1 8 2005 ... and the VXT version (month,date,year): 8 1 5 DATE (dd-mmm-yy): 1-Aug-05 ITIME (hour,minutes,seconds): 10 8 12 TIME: 10:08:12 SECNDS(0.0) returns: 36492. SECOND returns: 0.0299999993 CALL SECOND returns: 0.0299999993 Current directory is "/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libf2c/libU77" Host name is dgps Creating file "foo" for testing... with stat array -2077366090 65989169 33188 1 11907 10545 -2077366090 2 1122843600 1122880094 1122880094 1024 16 The current error number is: 2 and the corresponding message is: No such file or directory This is sent to stderr prefixed by the program name MCLOCK returns 270 MCLOCK8 returns 270 CPU_TIME returns 0.109999998 You should see exit status 1 rm -f a.out make[2]: Leaving directory `/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libf2c/libU77' make[1]: Leaving directory `/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libf2c' make[1]: Entering directory `/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libiberty' make[2]: Entering directory `/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libiberty/testsuite' make[2]: Nothing to be done for `check'. make[2]: Leaving directory `/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libiberty/testsuite' make[1]: Leaving directory `/usr/src/gcc-3.4.4-1/.build/i686-pc-cygwin/libiberty'
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/