Bug 231363 - www/minio: Minio Server build broken
Summary: www/minio: Minio Server build broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-14 19:01 UTC by Dean E. Weimer
Modified: 2018-09-18 14:50 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (swills)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean E. Weimer 2018-09-14 19:01:14 UTC
Minio Server build is broken a 

===>  Configuring for minio-2018.08.02.23.11.36
===>  Building for minio-2018.08.02.23.11.36
# github.com/minio/minio
github.com/minio/minio/vendor/github.com/minio/highwayhash.supportsAVX2: relocation target runtime.support_avx2 not defined
*** Error code 2

Stop.
make: stopped in /usr/ports/www/minio

Searching on error lead to this:
https://github.com/minio/highwayhash/issues/6
 reading through the thread it appears the issue was aidentified and fixed prior to this release, perhaps only certain CPUs are effected, my system is running what is now a rather old AMD processor AMD FX(tm)-6300 Six-Core Processor              (3516.18-MHz K8-class CPU).
Comment 1 Nathan 2018-09-14 19:46:42 UTC
(In reply to Dean E. Weimer from comment #0)
What version of FreeBSD. I tried 12-current i386 and got no error
Comment 2 Dean E. Weimer 2018-09-14 20:07:34 UTC
(In reply to Nathan from comment #1)
FreeBSD 11.2-RELEASE-p3  r338612 attempting to install in a jail, both host and jail are running the same release compiled from source. Going to go ahead and try a temporary install on host in case its a jail specific issue.
Comment 3 Dean E. Weimer 2018-09-14 20:22:35 UTC
(In reply to Dean E. Weimer from comment #2)
Same result on host.

===>  Cleaning for minio-2018.08.02.23.11.36
===>  License APACHE20 accepted by the user
===>   minio-2018.08.02.23.11.36 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by minio-2018.08.02.23.11.36 for building
===>  Extracting for minio-2018.08.02.23.11.36
=> SHA256 Checksum OK for minio-minio-2018.08.02.23.11.36-RELEASE.2018-08-02T23-11-36Z_GH0.tar.gz.
===>  Patching for minio-2018.08.02.23.11.36
===>   minio-2018.08.02.23.11.36 depends on package: go>=1.9.4 - found
===>   minio-2018.08.02.23.11.36 depends on file: /usr/local/bin/ccache - found
===>  Configuring for minio-2018.08.02.23.11.36
===>  Building for minio-2018.08.02.23.11.36
# github.com/minio/minio
github.com/minio/minio/vendor/github.com/minio/highwayhash.supportsAVX2: relocation target runtime.support_avx2 not defined
*** Error code 2

Stop.
make: stopped in /usr/ports/www/minio


Are you running an Intel CPU? Looks like the reference that leads to the error maybe in specific amd64 code. Going to try an build on a different machine running an Intel CPU.

/var/ports/usr/ports/www/minio/work/minio-RELEASE.2018-08-02T23-11-36Z# grep -R -I "supportsAVX2" *
src/github.com/minio/minio/vendor/github.com/minio/highwayhash/highwayhashAVX2_amd64.s:// func supportsAVX2() bool
src/github.com/minio/minio/vendor/github.com/minio/highwayhash/highwayhashAVX2_amd64.s:TEXT ·supportsAVX2(SB), 4, $0-1
src/github.com/minio/minio/vendor/github.com/minio/highwayhash/highwayhashAVX2_amd64.go:        useAVX2 = supportsAVX2()
src/github.com/minio/minio/vendor/github.com/minio/highwayhash/highwayhashAVX2_amd64.go:func supportsAVX2() bool
grep: warning: src/github.com/minio/minio/src: recursive directory loop
vendor/github.com/minio/highwayhash/highwayhashAVX2_amd64.s:// func supportsAVX2() bool
vendor/github.com/minio/highwayhash/highwayhashAVX2_amd64.s:TEXT ·supportsAVX2(SB), 4, $0-1
vendor/github.com/minio/highwayhash/highwayhashAVX2_amd64.go:   useAVX2 = supportsAVX2()
vendor/github.com/minio/highwayhash/highwayhashAVX2_amd64.go:func supportsAVX2() bool
Comment 4 Dean E. Weimer 2018-09-14 20:38:20 UTC
(In reply to Dean E. Weimer from comment #3)
Same error on machine running with the following intel processor. 
CPU: Intel(R) Xeon(R) CPU E5620  @ 2.40GHz (2394.05-MHz K8-class CPU)
Comment 5 Nathan 2018-09-15 00:26:08 UTC
(In reply to Dean E. Weimer from comment #4)
Tried it on 11.2 i386 no issue for me. Sorry I can not recreate to try and fix it
Comment 6 Nathan 2018-09-15 01:40:55 UTC
(In reply to Nathan from comment #5)
I think I know what it could be, the processor doesn't support avx2. The Xeon doesn't have it atleast, according to http://cpu.userbenchmark.com/Compare/Intel-Xeon-E5620-vs-Intel-Core-i9-7900X/m6971vs3936

If you look at line 
github.com/minio/minio/vendor/github.com/minio/highwayhash.supportsAVX2: relocation target runtime.support_avx2 <-AVX2
Comment 7 Steve Wills freebsd_committer freebsd_triage 2018-09-18 03:05:08 UTC
Was able to reproduce the issue, and it seems to be solved with the update in r479968. Please let me know if it's not fixed for you. Thanks!
Comment 8 Dean E. Weimer 2018-09-18 14:50:03 UTC
(In reply to Steve Wills from comment #7)
Build succeeded, thanks for getting that fixed.