Bug 205768 - math/gmp: Fails to build for armv6: configuration and/or compilation issue
Summary: math/gmp: Fails to build for armv6: configuration and/or compilation issue
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Only Me
Assignee: Alex Dupre
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2015-12-31 20:48 UTC by mmitchel
Modified: 2018-02-26 09:31 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (ale)
koobs: merge-quarterly?


Attachments
poudriere bulk build log (9.98 KB, text/plain)
2015-12-31 20:48 UTC, mmitchel
no flags Details
poudriere bulk log (36.58 KB, text/plain)
2016-01-06 16:51 UTC, mmitchel
no flags Details
ARMv6 build fix (390 bytes, patch)
2017-07-15 15:11 UTC, Matthew Rezny
rezny: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mmitchel 2015-12-31 20:48:38 UTC
Created attachment 164914 [details]
poudriere bulk build log

===>  Configuring for gmp-5.1.3_2
configure: loading site script /usr/ports/Templates/config.site
checking build system type... armv6-portbld-freebsd11.0
checking host system type... armv6-portbld-freebsd11.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... (cached) /bin/mkdir -p
checking for gawk... (cached) /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: error: ABI=32 is not among the following valid choices: standard
===>  Script "configure" failed unexpectedly.
Please report the problem to ale@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3/config.log" including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/math/gmp
====>> Cleaning up wrkdir

poudriere jail build armv6, make.conf contains .export ABI 32
Comment 1 Alex Dupre freebsd_committer freebsd_triage 2016-01-02 09:15:12 UTC
Don't enable CPU_OPTS build option.
Comment 2 mmitchel 2016-01-06 16:51:22 UTC
Created attachment 165165 [details]
poudriere bulk log

moved forward to math/gmp from ports head. different issue, log file attached. uses the native tool chain in the armv6 jail.

/nxb-bin/usr/bin/make  all-recursive
Making all in tests
Making all in .
Making all in devel
Making all in mpn
Making all in mpz
Making all in mpq
Making all in mpf
Making all in rand
Making all in misc
Making all in cxx
Making all in mpn
*** [fib_table.lo] Error code 1

make[3]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3/mpn
1 error

make[3]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3/mpn
*** [all-recursive] Error code 1

make[2]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3
1 error

make[2]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3
*** [all] Error code 2

make[1]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3
1 error

make[1]: stopped in /wrkdirs/usr/ports/math/gmp/work/gmp-5.1.3
*** Error code 1

Stop.
make: stopped in /usr/ports/math/gmp
====>> Cleaning up wrkdir
===>  Cleaning for gmp-5.1.3_2
Comment 3 mmitchel 2016-01-06 16:54:14 UTC
(In reply to Alex Dupre from comment #1)
1. Ports resync to head revision
2. Poudriere Cross Compilation Performed Removing Specific Ports Options Flags
3. Different Failure Logged and Log Submitted
Comment 4 mmitchel 2016-01-06 17:21:44 UTC
Typical commands to create and initialize a poudriere jail:

1. Obtain a ports tree (HEAD)
poudriere ports -c -m svn+https -U https://svn.freebsd.org/ports -p HEAD -B head

2. Create a cross compile jail (ARMV6)
poudriere jails -c -m svn+https -U https://svn.freebsd.org/base -j ARMV6 -a arm.armv6 -x -v head@292858

3. Run the bulk command to build the specific port (math/gmp)
poudriere bulk ... -j ARMV6 -p HEAD math/gmp
Comment 5 Mikael Urankar freebsd_committer freebsd_triage 2016-01-07 14:58:55 UTC
It builds fine on beefy8:
http://beefy8.nyi.freebsd.org/data/head-armv6-default/p405059_s293048/logs/gmp-5.1.3_2.log
Comment 6 mmitchel 2016-01-07 16:39:11 UTC
(In reply to mikael.urankar from comment #5)

the armv6 jail revision is different, i select the revision that reflects images available at download.freebsd.org

building for: FreeBSD head-armv6-default-job-16 11.0-CURRENT FreeBSD 11.0-CURRENT r293048 arm

vs

building for: FreeBSD pkg.brainhoard.com 11.0-CURRENT FreeBSD 11.0-CURRENT r292858 arm

is there a user mode change that could be responsible?

thx
Comment 7 Christoph Sold 2016-12-28 15:37:54 UTC
Affects all Raspberry Pi builds, depends on CPU optimization flag (c/f comment 1), checked on FreeBSD 12.0-CURRENT #0 r307523
Comment 8 Matthew Rezny freebsd_committer freebsd_triage 2017-07-15 15:11:12 UTC
Created attachment 184374 [details]
ARMv6 build fix

It seems this port needs MAKE_JOBS_UNSAFE for ARM. Adding that fixes the build for armv6.
Comment 9 Mikael Urankar freebsd_committer freebsd_triage 2018-01-04 15:22:32 UTC
it's fixed with ports r458016