Page MenuHomeFreeBSD

www/firefox, www/seamonkey: unbreak build with base libstdc++ on i386, powerpc
ClosedPublic

Authored by jbeich on Jan 20 2015, 9:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 6:37 PM
Unknown Object (File)
Sep 14 2025, 1:51 PM
Unknown Object (File)
Sep 5 2025, 9:20 PM
Unknown Object (File)
Aug 17 2025, 3:59 PM
Unknown Object (File)
Jul 27 2025, 10:16 PM
Unknown Object (File)
Jul 11 2025, 11:01 PM
Unknown Object (File)
Jun 14 2025, 1:09 AM
Unknown Object (File)
Jun 10 2025, 12:31 PM
Subscribers

Details

Reviewers
flo
Summary

Unbreak build with base libstdc++ on i386 and powerpc

std::abs(int64_t) for 32bit archs or std::llabs are not available in
base libstdc++ or before 10.0-RELEASE (r255294) for libstdc++ in
lang/gcc47 and earlier (libstdc++/54686). To avoid the build error use
mozilla::Abs which implements overloads for all signed natural types
but has unsigned return value.

This change won't be requried for Firefox 36 et al.

PR: 196772
Reported by: many
Patch by: bar (initial version)
Obtained from: https://github.com/mozilla/gecko-dev/commit/e664fe8
Approved by: flo (mentor)
MFH: 2015Q1

Test Plan

A few |poudriere bulk| logs are attached to the bug. The rest is
assumed to work fine - too many combinations to test.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

jbeich retitled this revision from to www/firefox, www/seamonkey: unbreak build with base libstdc++ on i386, powerpc.
jbeich updated this object.
jbeich edited the test plan for this revision. (Show Details)
jbeich added a reviewer: flo.
jbeich added a subscriber: beat.
flo edited edge metadata.

Approved.

This revision is now accepted and ready to land.Jan 20 2015, 9:58 PM