Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

"make prereq" trouble in libf2c

From: <itojun(at)iijlab.net>
Date: Tue Feb 25 2003 - 20:37:08 EST

	i'm having trouble in "cd include; make prereq" process during the
	build.  my guess is that this is due to some $OBJDIR issue.

1. 
	gnu/egcs/libf2c/Makefile.bsd-wrapper has the following clause:

	# fake g771 existence
	cd $(EGCS_OBJDIR)/gcc && touch f771

	$EGCS_OBJDIR = gnu/egcs/libf2c/../obj, so $EGCS_OBJDIR/gcc would be
	gnu/egcs/libf2c/obj/../gcc.  the directory does not exist.  
	should it be gnu/egcs/libf2c/gcc/obj?

2.
	even if i work around the problem by the following diff, no joy.

itojun
itojun[tapioca:~/OpenBSD/src] ( cd include/ ; sudo make prereq )

preparing in /home/itojun/OpenBSD/src/include/../kerberosIV/lib/kadm
preparing in /home/itojun/OpenBSD/src/include/../kerberosIV/lib/krb
preparing in /home/itojun/OpenBSD/src/include/../usr.sbin/httpd
preparing in /home/itojun/OpenBSD/src/include/../gnu/egcs/libf2c
mkdir -p libE77
cd /home/itojun/OpenBSD/src/gnu/egcs/libf2c/../gcc && make -f Makefile.bsd-wrapper config.status tree-check.h
`config.status' is up to date.
`tree-check.h' is up to date.

# fake g771 existence
cd /home/itojun/OpenBSD/src/gnu/egcs/libf2c/../gcc/obj && touch f771
PATH="/bin:/usr/bin:/sbin:/usr/sbin"  r=/home/itojun/OpenBSD/src/gnu/egcs/libf2c/../gcc/obj  INSTALL_PROGRAM="install -c -s"  /bin/sh /home/itojun/OpenBSD/src/gnu/egcs/libf2c/configure  --prefix=/usr --with-local-prefix=/usr   && touch config.status
loading cache ./config.cache

checking if compiler f771 has been built... yes checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c checking whether make sets ${MAKE}... yes checking how to run the C preprocessor... gcc -E checking for stdio.h... yes
checking f2c integer type... configure: error: Can't run check for integer sizes -- see config.log *** Error code 1

Stop in /home/itojun/OpenBSD/src/gnu/egcs/libf2c (line 141 of /home/itojun/OpenBSD/src/gnu/egcs/libf2c/Makefile.bsd-wrapper). *** Error code 1

Stop in /home/itojun/OpenBSD/src/include (line 75 of Makefile). Index: gnu/egcs/libf2c/Makefile.bsd-wrapper



RCS file: /cvs/src/gnu/egcs/libf2c/Makefile.bsd-wrapper,v retrieving revision 1.5
diff -u -r1.5 Makefile.bsd-wrapper
--- gnu/egcs/libf2c/Makefile.bsd-wrapper	30 May 2002 20:46:04 -0000	1.5
+++ gnu/egcs/libf2c/Makefile.bsd-wrapper	26 Feb 2003 01:38:20 -0000
@@ -11,6 +11,11 @@
 		else \
 			echo $(EGCS_DIR); \
 		fi
+GCC_OBJDIR!=	if [ -d $(EGCS_DIR)/gcc/$(OBJDIR) ]; then \
+			echo $(EGCS_DIR)/gcc/$(OBJDIR); \
+		else \
+			echo $(EGCS_DIR)/gcc; \
+		fi
 

 # for libfrtbegin
 SUBDIR=libF77
@@ -137,9 +142,9 @@

 	cd ${.CURDIR}/../gcc && \
 		make -f Makefile.bsd-wrapper config.status tree-check.h 
 	# fake g771 existence
-	cd $(EGCS_OBJDIR)/gcc && touch f771
+	cd $(GCC_OBJDIR) && touch f771
 	PATH="/bin:/usr/bin:/sbin:/usr/sbin" \
-	r=$(EGCS_OBJDIR) \
+	r=$(GCC_OBJDIR) \
 	INSTALL_PROGRAM="${INSTALL} ${INSTALL_COPY} ${INSTALL_STRIP}" \
 	/bin/sh ${.CURDIR}/configure \
 		--prefix=/usr --with-local-prefix=/usr ${CF} \
Received on Tue Feb 25 20:41:42 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:48:30 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library