Bug 192364 - sysutils/dd_rescue build error after the update of ports tree
Summary: sysutils/dd_rescue build error after the update of ports tree
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: MANTANI Nobutaka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-03 19:47 UTC by Ivan Klymenko
Modified: 2014-08-06 20:59 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Klymenko 2014-08-03 19:47:19 UTC
FreeBSD 10.0-STABLE #1 r269429M: Sat Aug  2 16:07:23 EEST 2014

dmesg | grep CPU:
CPU: Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz (2294.83-MHz K8-class CPU)

portmaster -D dd_rescue-1.40

===>>> Currently installed version: dd_rescue-1.40
===>>> Port directory: /usr/ports/sysutils/dd_rescue

===>>> Launching 'make checksum' for sysutils/dd_rescue in background
===>>> Gathering dependency list for sysutils/dd_rescue from ports
===>>> Initial dependency check complete for sysutils/dd_rescue


===>>> Starting build for sysutils/dd_rescue <<<===

===>>> All dependencies are up to date

===>  Cleaning for dd_rescue-1.45
===>  License GPLv2 accepted by the user
===>  Found saved configuration for dd_rescue-1.40
===>   dd_rescue-1.45 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by dd_rescue-1.45 for building
===>  Extracting for dd_rescue-1.45
=> SHA256 Checksum OK for dd_rescue-1.45.tar.gz.
===>  Patching for dd_rescue-1.45
===>  Applying FreeBSD patches for dd_rescue-1.45
===>   dd_rescue-1.45 depends on executable: gmake - found
===>   dd_rescue-1.45 depends on file: /usr/local/bin/autoconf-2.69 - found
===>  Configuring for dd_rescue-1.45
configure: loading site script /usr/ports/Templates/config.site
checking for gcc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking how to run the C preprocessor... cpp
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking fallocate.h usability... no
checking fallocate.h presence... no
checking for fallocate.h... no
checking for dlfcn.h... (cached) yes
checking for unistd.h... (cached) yes
checking attr/xattr.h usability... no
checking attr/xattr.h presence... no
checking for attr/xattr.h... no
checking for sys/acl.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking linux/fs.h usability... no
checking linux/fs.h presence... no
checking for linux/fs.h... no
checking linux/fiemap.h usability... no
checking linux/fiemap.h presence... no
checking for linux/fiemap.h... no
checking for stdint.h... (cached) yes
checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking for ffs... yes
checking for ffsl... yes
checking for basename... yes
checking for fallocate64... no
checking for splice... no
checking for getopt_long... yes
checking for open64... no
checking for pread... (cached) yes
checking for pread64... no
checking for lseek64... no
checking for stat64... no
checking for posix_fadvise... yes
checking for posix_fadvise64... no
checking for __builtin_prefetch... no
checking for htobe64... no
checking for feof_unlocked... yes
checking for getline... (cached) yes
checking for dlsym in -ldl... no
checking for linux_fallocate64 in -lfallocate... no
checking for lzo1x_1_compress in -llzo2... no
checking if cc supports -msse4.2... yes
checking if cc supports -mavx2... yes
configure: creating ./config.status
config.status: creating config.h
===>  Building for dd_rescue-1.45
gmake[2]: Вход в каталог `/media/da0s1/obj/usr/ports/sysutils/dd_rescue/work/dd_rescue'
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -DHAVE_CONFIG_H -c frandom.c
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -DHAVE_CONFIG_H -c fmt_no.c
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -DHAVE_CONFIG_H -c find_nonzero.c 
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -fPIC -o libddr_MD5.po -c libddr_MD5.c
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -DHAVE_CONFIG_H -fPIC -o md5.po -c md5.c
libddr_MD5.c:417:9: warning: 'feof_unlocked' macro redefined
#define feof_unlocked(x) feof(x)
        ^
/usr/include/stdio.h:508:9: note: previous definition is here
#define feof_unlocked(p)        __sfeof(p)
        ^
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -DHAVE_CONFIG_H -fPIC -o sha256.po -c sha256.c
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -DHAVE_CONFIG_H -fPIC -o sha512.po -c sha512.c
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -DHAVE_CONFIG_H -fPIC -o sha1.po -c sha1.c
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -fPIC -o libddr_null.po -c libddr_null.c
cc -O2 -pipe -march=native  -fstack-protector -fno-strict-aliasing -std=gnu89 -DVERSION=\"1.45\"  -D__COMPILER__="\"FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512\"" -DHAVE_CONFIG_H  dd_rescue.c -o dd_rescue frandom.o fmt_no.o find_nonzero.o  
cc -shared -o libddr_null.so libddr_null.po
1 warning generated.
cc -shared -o libddr_hash.so libddr_MD5.po md5.po sha256.po sha512.po sha1.po
In file included from dd_rescue.c:125:
In file included from ./ddr_plugin.h:21:
./ddr_ctrl.h:13:19: warning: redefinition of typedef 'loff_t' is a C11 feature [-Wtypedef-redefinition]
typedef long long loff_t;
                  ^
./fmt_no.h:7:19: note: previous definition is here
typedef long long loff_t;
                  ^
dd_rescue.c:165:3: warning: No support for copying extended attributes / ACLs [-W#warnings]
# warning No support for copying extended attributes / ACLs
  ^
dd_rescue.c:175:3: warning: We lack stat64, may not handle >2GB files correctly [-W#warnings]
# warning We lack stat64, may not handle >2GB files correctly
  ^
dd_rescue.c:180:3: warning: We lack lseek64, may not handle >2GB files correctly [-W#warnings]
# warning We lack lseek64, may not handle >2GB files correctly
  ^
ln -sf libddr_hash.so libddr_MD5.so
4 warnings generated.
/tmp/dd_rescue-20ff9c.o: In function `blockiszero':
dd_rescue.c:(.text+0x3644): undefined reference to `find_nonzero_avx2'
dd_rescue.c:(.text+0x364e): undefined reference to `find_nonzero_sse2'
find_nonzero.o: In function `detect_cpu_cap':
find_nonzero.c:(.text+0xae): undefined reference to `probe_avx2'
find_nonzero.c:(.text+0xf2): undefined reference to `probe_sse42'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [dd_rescue] Ошибка 1
gmake[2]: Выход из каталога `/media/da0s1/obj/usr/ports/sysutils/dd_rescue/work/dd_rescue'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/sysutils/dd_rescue
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/dd_rescue

===>>> make build failed for sysutils/dd_rescue
===>>> Aborting update


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> sysutils/dd_rescue
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-03 20:37:10 UTC
over to maintainer
Comment 2 commit-hook freebsd_committer freebsd_triage 2014-08-06 14:12:13 UTC
A commit references this bug:

Author: nobutaka
Date: Wed Aug  6 14:11:16 UTC 2014
New revision: 364175
URL: http://svnweb.freebsd.org/changeset/ports/364175

Log:
  Fix build on amd64.

  PR:		192364
  Submitted by:	Ivan Klymenko <fidaj@ukr.net>
  MFH:		2014Q3

Changes:
  head/sysutils/dd_rescue/files/patch-Makefile
  head/sysutils/dd_rescue/files/patch-fmt_no.h
Comment 3 Ivan Klymenko 2014-08-06 20:59:19 UTC
(In reply to commit-hook from comment #2)
> A commit references this bug:
> 
> Author: nobutaka
> Date: Wed Aug  6 14:11:16 UTC 2014
> New revision: 364175
> URL: http://svnweb.freebsd.org/changeset/ports/364175
> 
> Log:
>   Fix build on amd64.
> 
>   PR:		192364
>   Submitted by:	Ivan Klymenko <fidaj@ukr.net>
>   MFH:		2014Q3
> 
> Changes:
>   head/sysutils/dd_rescue/files/patch-Makefile
>   head/sysutils/dd_rescue/files/patch-fmt_no.h

thanks!