Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 May 2014 20:55:25 +0900 (JST)
From:      Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        turutani@scphys.kyoto-u.ac.jp
Subject:   ports/190138: building science/hdf5 fails
Message-ID:  <201405231155.s4NBtPjV054303@h116.65.226.10.32118.vlan.kuins.net>
Resent-Message-ID: <201405231200.s4NC007l014271@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190138
>Category:       ports
>Synopsis:       building science/hdf5 fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 23 12:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 8.4-STABLE amd64
>Organization:
>Environment:
System: FreeBSD h116.65.226.10.32118.vlan.kuins.net 8.4-STABLE FreeBSD 8.4-STABLE #3 r266560: Fri May 23 07:44:20 JST 2014 turutani@h116.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER13 amd64


	
>Description:
	building science/hdf5 fails.
	
>How-To-Repeat:
	% make
	t.c: In function 'h5_exit_c_':
	t.c:137: warning: function might be possible candidate for attribute 'noreturn'
	t.c: In function 'h5_cleanup_c_':
	t.c:117: warning: will never be executed
	t.c: In function 'h5_fixname_c_':
	t.c:66: warning: will never be executed
	  FC       fortranlib_test-tH5D.o
	tH5F.f90:43.12:
	tH5F.f90:43.12:
	 
	        USE TH5_MISC
	            1
	Fatal Error: Can't open module file 'th5_misc.mod' for reading at (1): No such file or directory
	        USE TH5_MISC
	            1
	Fatal Error: Can't open module file 'th5_misc.mod' for reading at (1): No such file or directory
	*** Error code 1
	*** Error code 1
	tH5D.f90:42.12:
	 
	        USE TH5_MISC
	            1
	Fatal Error: Can't open module file 'th5_misc.mod' for reading at (1): No such file or directory
	*** Error code 1
	3 errors
	*** Error code 1
	1 error
	*** Error code 1
	1 error
	===> Compilation failed unexpectedly.
	Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
	the maintainer.
	*** Error code 1
	 
	Stop in /usr/ports/science/hdf5.
	*** Error code 1
	 
	Stop in /usr/ports/science/hdf5.

	
>Fix:
	The file 'th5_misc.mod' exists.
	This might be caused by parallel building.
	Adding "MAKE_JOBS_UNSAFE=yes" to Makefile can avoid this.
	In addition, installing fails with wrong pkg-plist.
	Here is a patch:

diff -urN hdf5.orig/Makefile hdf5/Makefile
--- hdf5.orig/Makefile	2014-05-20 03:38:48.000000000 +0900
+++ hdf5/Makefile	2014-05-23 20:42:12.000000000 +0900
@@ -12,6 +12,7 @@
 COMMENT=	Hierarchical Data Format library (from NCSA)
 
 LICENSE=	BSD4CLAUSE
+MAKE_JOBS_UNSAFE=	yes
 
 CONFLICTS_INSTALL=	hdf-4.[0-9]* hdf5-1.6.[0-9]*
 
diff -urN hdf5.orig/pkg-plist hdf5/pkg-plist
--- hdf5.orig/pkg-plist	2014-05-20 03:38:48.000000000 +0900
+++ hdf5/pkg-plist	2014-05-23 20:39:59.000000000 +0900
@@ -148,4 +148,4 @@
 %%FORTRAN%%lib/libhdf5hl_fortran.a
 %%FORTRAN%%lib/libhdf5hl_fortran.so
 %%FORTRAN%%lib/libhdf5hl_fortran.so.8
-%%FORTRAN%%lib/libhdf5hl_fortran.so.8.0.1
+%%FORTRAN%%lib/libhdf5hl_fortran.so.8.0.2
	


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405231155.s4NBtPjV054303>