Date: Fri, 24 Aug 2018 11:06:43 +0900 From: Kouichi Hirabayashi <kh@mogami.com> To: freebsd-users-jp@freebsd.org Subject: [FreeBSD-users-jp 96301] Re: =?iso-2022-jp?b?RnJlZUZlbSsrIBskQiROJSQlcyU5JUghPCVrTGQbKEI=?= =?iso-2022-jp?b?GyRCQmobKEI=?= Message-ID: <20180824110643.16b6f63c4a31dedf696c1fdb@mogami.com> In-Reply-To: <20180821204725.543a729a216c70bc5cc0a440@mogami.com> References: <20180611144018.f90de42d7d9a3713f86b8e4e@mogami.com> <20180615073842.961e6e59b803165b171f2b87@mogami.com> <57cd8d34-b8aa-b55e-afd6-07b331e0f13f@fmp.to> <20180618200817.b4e564b0b0c99d2b5dee27b2@mogami.com> <7cc354e1-5c75-a256-befe-5aa8dd3f8232@fmp.to> <20180620172334.8bb52c2a3beaa71947c8c2de@mogami.com> <d6346920-767c-c4bf-90e9-932c05db4b0c@fmp.to> <20180622120023.a76633b9ebd8ab335a2ab4e7@mogami.com> <8f160012-28c6-5265-28e6-66da804feac2@fmp.to> <20180623093352.68ffe98669dd7f41bd92a079@dec.sakura.ne.jp> <fae1bacc-40e7-6c5a-05e7-af1fdc905442@fmp.to> <20180628142026.be52082bc4e9a983b3ef9f6b@mogami.com> <7a620cc5-9c98-600f-115d-d91f814427ab@fmp.to> <20180629110545.393b1c9b6fc9c90f45749cdf@mogami.com> <b46ca778-bdb8-d337-591e-16432765ec7a@fmp.to> <20180809200439.5318d0a6ee84c58fb5945ab6@mogami.com> <0c87c945-b11e-6150-4638-cb8af73b165f@fmp.to> <20180820184612.14cd9960430a7100844e9fcd@mogami.com> <20180821204725.543a729a216c70bc5cc0a440@mogami.com>
next in thread | previous in thread | raw e-mail | index | archive | help
FreeBSD-11.2 $B$G(B FreeFem++ $B$r(B gcc+gfortran $B$G(B compile $B$7$?>l9g(B $B$N%i%$%V%i%jIT@09g$N:,K\E*BP:v$H$7$F(B gcc-free $B$G(B compile $B$9$kJ}K!$r(B $B9M$($F$_$^$7$?!#(B $B8=;~E@$N(B FreeBSD $B$H$7$F$O!"A02s$N(B gcc $B$G(B compile $B$7$?(B libGLU.so.a $B$r:n$C$F(B static link $B$9$kJ}K!$h$j!"$3$NJ}?K$N$[$&$,MxE@$,Bg$-$$$H;W$$(B $B$^$9!#(B $B0J2<!"(Bports $B$N%a%+%K%:%`$r;H$o$:$K(B compile $B$9$kJ}K!$r=q$-$^$9$,!"(B shells/bash, ftp/wget, lang/perl5X, graphics/freeglut, devel/flang $B$OA0$b$C$F(B ports $B$+$i(B install $B$7$F$*$$$F$/$@$5$$!#(B freefem++-3.61-1.tar.gz $B$rE83+$7$?%G%#%l%/%H%j$G2<5-$N<j=g$G%3%s%Q(B $B%$%k$7$^$9!#(B 1) freefem++-3.61-1.tar.gz $B$rE83+$7!"2<5-$N%Q%C%A$r$"$F$k(B --- src/femlib/CheckPtr.cpp.orig 2018-03-28 16:02:20.000000000 +0900 +++ src/femlib/CheckPtr.cpp 2018-08-23 11:24:23.000000000 +0900 @@ -27,6 +27,8 @@ */ #if __APPLE__ #include <malloc/malloc.h> +#elif __FreeBSD__ +#include <stdlib.h> #else #include <malloc.h> #endif --- src/medit/Makefile.am.orig 2018-06-20 21:46:49.000000000 +0900 +++ src/medit/Makefile.am 2018-08-23 11:27:40.000000000 +0900 @@ -25,7 +25,7 @@ ffmedit_DEPENDENCIES=picking.$(OBJEXT) picking.$(OBJEXT):picking.c - ${CC} -c $< $(CNOFLAGS) -o $@ + ${CC} -c $< $(CNOFLAGS) $(CFLAGS) -o $@ #pinking.no-optffmedit$(EXEEXT):picking.c # rm picking.$(OBJEXT) --- src/medit/Makefile.in.orig 2018-07-12 18:59:19.000000000 +0900 +++ src/medit/Makefile.in 2018-08-23 19:31:55.000000000 +0900 @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -845,7 +845,7 @@ compil.date: $(ffmedit_SOURCES) echo "#define COMPIL " '"' `date` '(with ff++ $(VERSION))''"' > compil.date picking.$(OBJEXT):picking.c - ${CC} -c $< $(CNOFLAGS) -o $@ + ${CC} -c $< $(CNOFLAGS) $(CFLAGS) -o $@ #pinking.no-optffmedit$(EXEEXT):picking.c # rm picking.$(OBJEXT) --- download/blas/Makefile.am.orig 2018-03-28 16:02:20.000000000 +0900 +++ download/blas/Makefile.am 2018-08-23 18:05:26.000000000 +0900 @@ -109,7 +109,7 @@ BLAS/fait:$(BLAS_TGZ) mkdir -p ../include ../lib - pxerbla=`tar tf $(BLAS_TGZ) | grep xerbla.f`; \ + pxerbla=`tar tf $(BLAS_TGZ) | grep _xerbla.f`; \ dirblas=`dirname $$pxerbla` ;\ case $$dirblas in \ BLAS) tar xvzf $(BLAS_TGZ) ;; \ --- download/blas/Makefile.in.orig 2018-07-12 18:59:19.000000000 +0900 +++ download/blas/Makefile.in 2018-08-23 19:31:54.000000000 +0900 @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.15 from Makefile.am. +# Makefile.in generated by automake 1.15.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2014 Free Software Foundation, Inc. +# Copyright (C) 1994-2017 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -4282,7 +4282,7 @@ BLAS/fait:$(BLAS_TGZ) mkdir -p ../include ../lib - pxerbla=`tar tf $(BLAS_TGZ) | grep xerbla.f`; \ + pxerbla=`tar tf $(BLAS_TGZ) | grep _xerbla.f`; \ dirblas=`dirname $$pxerbla` ;\ case $$dirblas in \ BLAS) tar xvzf $(BLAS_TGZ) ;; \ --- download/fftw/Makefile.am.orig 2018-03-28 16:02:20.000000000 +0900 +++ download/fftw/Makefile.am 2018-08-24 07:39:31.000000000 +0900 @@ -17,7 +17,7 @@ $(MAKE) WHERE $(SRCDIR)/FAIT:$(SRCDIR)/FAIT-1 - cd $(SRCDIR) && ./configure --disable-dependency-tracking --disable-fortran --prefix=`pwd`/../.. CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP='gcc -E' CXXFLAGS="$(CXXFLAGS)" + cd $(SRCDIR) && ./configure --disable-dependency-tracking --disable-fortran --prefix=`pwd`/../.. CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CXXCPP)" CXXFLAGS="$(CXXFLAGS)" cd $(SRCDIR) && make cd $(SRCDIR) && make install touch $(SRCDIR)/FAIT --- download/fftw/Makefile.in.orig 2018-08-23 19:31:54.000000000 +0900 +++ download/fftw/Makefile.in 2018-08-24 07:41:13.000000000 +0900 @@ -607,7 +607,7 @@ $(MAKE) WHERE $(SRCDIR)/FAIT:$(SRCDIR)/FAIT-1 - cd $(SRCDIR) && ./configure --disable-dependency-tracking --disable-fortran --prefix=`pwd`/../.. CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP='gcc -E' CXXFLAGS="$(CXXFLAGS)" + cd $(SRCDIR) && ./configure --disable-dependency-tracking --disable-fortran --prefix=`pwd`/../.. CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CXXCPP)" CXXFLAGS="$(CXXFLAGS)" cd $(SRCDIR) && make cd $(SRCDIR) && make install touch $(SRCDIR)/FAIT --- download/fftw/Makefile.am.orig 2018-03-28 16:02:20.000000000 +0900 +++ download/fftw/Makefile.am 2018-08-24 07:39:31.000000000 +0900 @@ -17,7 +17,7 @@ $(MAKE) WHERE $(SRCDIR)/FAIT:$(SRCDIR)/FAIT-1 - cd $(SRCDIR) && ./configure --disable-dependency-tracking --disable-fortran --prefix=`pwd`/../.. CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP='gcc -E' CXXFLAGS="$(CXXFLAGS)" + cd $(SRCDIR) && ./configure --disable-dependency-tracking --disable-fortran --prefix=`pwd`/../.. CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CXXCPP)" CXXFLAGS="$(CXXFLAGS)" cd $(SRCDIR) && make cd $(SRCDIR) && make install touch $(SRCDIR)/FAIT --- download/fftw/Makefile.in.orig 2018-08-23 19:31:54.000000000 +0900 +++ download/fftw/Makefile.in 2018-08-24 07:41:13.000000000 +0900 @@ -607,7 +607,7 @@ $(MAKE) WHERE $(SRCDIR)/FAIT:$(SRCDIR)/FAIT-1 - cd $(SRCDIR) && ./configure --disable-dependency-tracking --disable-fortran --prefix=`pwd`/../.. CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP='gcc -E' CXXFLAGS="$(CXXFLAGS)" + cd $(SRCDIR) && ./configure --disable-dependency-tracking --disable-fortran --prefix=`pwd`/../.. CXX="$(CXX)" CC="$(CC)" CFLAGS="$(CFLAGS)" CPP="$(CXXCPP)" CXXFLAGS="$(CXXFLAGS)" cd $(SRCDIR) && make cd $(SRCDIR) && make install touch $(SRCDIR)/FAIT -- patch $B$r$"$F$?8e!"2<5-$r<B9T$7$F$*$-$^$9!#(B $ autoreconf -i Makefile $B$N(B patch $B$O:#$^$GI=LL2=$7$J$+$C$?(B bug $B$r9M$($FNI$$$H;W$$$^$9!#(B 2) $B4D6-$r(B Linux $B$K9g$o$;$k(B # ln -s /usr/local/bin/wget /usr/bin/wget # ln -s /usr/local/bin/perl /usr/bin/perl # ln -s /usr/local/bin/bash /bin/bash # mv /usr/bin/make /usr/bin/make.bsd # ln -s /usr/local/bin/gmake /usr/bin/make $B$3$NItJ,$O(B wget, perl, bash $B$r@dBP(B PATH $B$G;XDj$7$F$$$k(B build/download, build/cleancrlf, build/ff-md5, build/links2files, build/orgindex, download/getall, examples++-load/ff-pkg-download.in $B$J$I$r(B FreeBSD $BMQ$K=q$-49$($F(B $B$bNI$$$H;W$$$^$9$,!":G=*E*$K(B ports $B%a%+%K%:%`$G2r7h$G$7$g$&$+!#(Bgmake $B$r(B $B;H$&ItJ,$O(B compile $B;~E@$G(B gmake $B$X$N(B link $B$r(B ~/bin $B$K$G$bCV$$$F!"(B PATH $BJQ?t$G0l;~E*$K(B /usr/bin $B$h$j@h$K8+IU$1$k$h$&$K$7$F$bNI$$$H;W$$$^$9!#(B 3) freefem++-3.61-1 $B$r(B compile $B$9$k(B $ ./configure --enable-download -without-mpi CC=clang CXX=clang++ FC=flang \ CXXCPP="flang -E" \ F77=flang -with-glut="-lglut -lGLU -lGL" \ CFLAGS="-I/usr/local/include -Wno-comment" \ CXXFLAGS="-I/usr/local/include -DHAVE_DRAND48" $ make # $B$d$j$J$*$9>l9g$O(B make clean $B<B9T8e(B 4) install $B$9$k(B # cd freefem++-3.61-1 # make install # make clean # $BF0:n3NG'8e(B 5) $B4D6-$r(B BSD $B$KLa$9(B # rm /usr/bin/wget /usr/bin/perl /bin/bash # rm /usr/bin/make # ln -s /usr/local/bin/make.bsd /usr/bin/make $BCm0U(B - flang $B$,B8:_$7$J$$8E$$(B FreeBSD $B$G$O;H$($^$;$s$,!"(Bfc2 $B$r(B $B;H$&$H$+(B Intel $B$N(B compiler $B$GBP1~$G$-$k$+$b$7$l$^$;$s!#(B $BJ?NS(B $B9@0l(B
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180824110643.16b6f63c4a31dedf696c1fdb>