Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2022 14:22:53 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        freebsd-ports@freebsd.org
Cc:        "dim@freebsd.org" <dim@FreeBSD.org>
Subject:   Re: armv7 targeting context: www/qt5-webengine poudriere build used "/usr/bin/c++ -B/usr/local/bin . . ." and failed : 'cmath' file not found
Message-ID:  <6E658A82-E96B-40CA-B331-51C725BDF8C3@yahoo.com>
In-Reply-To: <47B36DBC-4175-46E2-B4D8-5628D1DB39F8@yahoo.com>
References:  <47B36DBC-4175-46E2-B4D8-5628D1DB39F8@yahoo.com>

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


On 2022-May-30, at 13:05, Mark Millard <marklmi@yahoo.com> wrote:

> [This is a separate problem from another I sent to the
> list earlier.]
>=20
> My attempted bulk -a -c targeting armv7 (on a aarch64 machine
> that can execute armv7 code) failed.
>=20
> Note, from the log file:

Hmm. I should have noticed that the below was nested inside
a "Installing mesa-dri-21.3.8...". So possibly not a direct
use context for llvm13.

> [CA72_UFS] |   |   `-- Installing llvm13-13.0.1_2...
> [CA72_UFS] |   |   | `-- Installing libedit-3.1.20210910,1...
> [CA72_UFS] |   |   | `-- Extracting libedit-3.1.20210910,1: .......... =
done
> [CA72_UFS] |   |   | `-- Installing lua53-5.3.6...
> [CA72_UFS] |   |   | `-- Extracting lua53-5.3.6: .......... done
> [CA72_UFS] |   |   | `-- Installing perl5-5.32.1_1...
> [CA72_UFS] |   |   | `-- Extracting perl5-5.32.1_1: .......... done
> [CA72_UFS] |   |   `-- Extracting llvm13-13.0.1_2: .......... done
>=20
> So I'd expect llvm13's clang/clang++ and such to be in use.
>=20
> But it ends up using /usr/bin/c++ as a path to a c++ but also using
> -B/usr/local/bin in the same command. The combination ends up not
> finding things like <cmath> --and that in turn leads to build
> failure. (I show the first example but others happen before the
> build  fully stops.)

Yet . . .

/usr/bin/c++ -B/usr/local/bin . . .

still seems odd and the error message reported did
happen.

> =46rom the logfile:
>=20
> [  0% 12/21219] CXX =
obj/base/third_party/double_conversion/double_conversion/bignum-dtoa.o
> FAILED: =
obj/base/third_party/double_conversion/double_conversion/bignum-dtoa.o=20=

> /usr/bin/c++ -B/usr/local/bin -MMD -MF =
obj/base/third_party/double_conversion/double_conversion/bignum-dtoa.o.d =
-DUSE_AURA=3D1 -DUSE_NSS_CERTS=3D1 -DUSE_OZONE=3D1 -DOFFICIAL_BUILD =
-DTOOLKIT_QT -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE =
-D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE =
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND =
-DDYNAMIC_ANNOTATIONS_ENABLED=3D0 -Igen =
-I../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium =
-fno-strict-aliasing --param=3Dssp-buffer-size=3D4 -fstack-protector =
-Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unknown-warning-option =
-fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread =
-fcolor-diagnostics -fmerge-all-constants --target=3Darm-linux-gnueabihf =
-march=3Darmv7-a -mfloat-abi=3Dhard -mtune=3Dgeneric-armv7-a =
-no-canonical-prefixes -mfpu=3Dvfpv3-d16 -marm -Wall -Wextra =
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -Wimplicit-fallthrough =
-Wunreachable-code -Wthread-safety -Wextra-semi =
-Wno-missing-field-initializers -Wno-unused-parameter =
-Wno-c++11-narrowing -Wno-unneeded-internal-declaration =
-Wno-undefined-var-template -O2 -fno-ident -fdata-sections =
-ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=3Dhidden =
-Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare =
-Wno-unused-const-variable -Wno-unused-function =
-Wno-parentheses-equality -Wno-tautological-compare =
-Wno-undefined-bool-conversion -Wno-tautological-undefined-compare =
-std=3Dc++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c =
../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/base/t=
hird_party/double_conversion/double-conversion/bignum-dtoa.cc -o =
obj/base/third_party/double_conversion/double_conversion/bignum-dtoa.o
> =
../../../../qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/base/t=
hird_party/double_conversion/double-conversion/bignum-dtoa.cc:28:10: =
fatal error: 'cmath' file not found
> #include <cmath>
>         ^~~~~~~
> 1 error generated.
>=20
>=20
>=20
> For reference:
>=20
> # ~/fbsd-based-on-what-commit.sh -C /usr/ports/
> branch: main
> merge-base: 0a2f0da65b65bb9b3abf7a06815854f3cff063fa
> merge-base: CommitDate: 2022-05-07 18:07:34 +0000
> 0a2f0da65b65 (HEAD -> main) devel/py-tabulate: update to version 0.8.9
> n582877 (--first-parent --count for merge-base)
>=20
> # poudriere jail -jmain-CA7-bulk_a -i
> Jail name:         main-CA7-bulk_a
> Jail version:      14.0-CURRENT
> Jail arch:         arm.armv7
> Jail method:       null
> Jail mount:        /usr/obj/DESTDIRs/main-CA7-poud-bulk_a
> Jail fs:          =20
> Jail updated:      2022-05-23 02:21:24
> Jail pkgbase:      disabled
>=20
> # uname -apKU # output line split for readability
> FreeBSD CA72_UFS 14.0-CURRENT FreeBSD 14.0-CURRENT #56
> main-n255745-77649f35a7e5-dirty: Sat May 21 18:48:32 PDT 2022
> =
root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6=
4.aarch64/sys/GENERIC-NODBG-CA72
> arm64 aarch64 1400059 1400059
>=20
> The jail is based on a armv7 build of the same source tree as
> used for the above.



=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E658A82-E96B-40CA-B331-51C725BDF8C3>