Closed Bug 1663346 Opened 4 years ago Closed 4 years ago

[PATCH] e2k is 64-bit architecture too

Categories

(NSS :: Build, enhancement, P3)

Other
Linux
enhancement

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: shigorin, Assigned: shigorin)

Details

Attachments

(1 file)

Please consider applying this trivial patch adding e2k to 64-bit target architecture list (done against hg trunk).

PS: the problem is alike to bug 1389056, build failed due to NSS_USE_64 being not set:

gcc -MMD -MF obj/lib/freebl/freeblpriv3.drbg.o.d '-DSHLIB_SUFFIX="so"' '-DSHLIB_PREFIX="lib"' '-DSHLIB_VERSION="3"' '-DSOFTOKEN_SHLIB_VERSION="3"' -DRIJNDAEL_INCLUDE_TABLES -DMP_API_COMPATIBLE -DKRML_VERIFIED_UINT128 -DFREEBL_LOWHASH -DFREEBL_NO_DEPEND -DNSS_FIPS_DISABLED -DNSS_NO_INIT_SUPPORT -DSEED_ONLY_DEV_URANDOM -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DLINUX2_1 -DLINUX -Dlinux -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -DSQL_MEASURE_USE_TEMP_DIR -DHAVE_STRERROR -DXP_UNIX -D_REENTRANT -DNDEBUG -I../../lib/freebl/mpi -I../../lib/freebl/ecl -I../../lib/freebl/verified -I../../lib/freebl/verified/kremlin/include -I../../lib/freebl/verified/kremlin/kremlib/dist/minimal -I../../lib/freebl/deprecated -I/usr/include/nspr -I/usr/src/RPM/BUILD/nss-3.55.0/dist/private/nss -I/usr/src/RPM/BUILD/nss-3.55.0/dist/public/nss -fPIC -pipe -ffunction-sections -fdata-sections -Werror -Wall -Wshadow -O2 -std=c99 -c ../../lib/freebl/drbg.c -o obj/lib/freebl/freeblpriv3.drbg.o
lcc: "/usr/include/nspr/prtypes.h", line 556: error #94: the size of an array
must be greater than zero
extern void pr_static_assert(int arg[(condition) ? 1 : -1])
^
in expansion of macro "PR_STATIC_ASSERT" at line 609 of
"../../lib/freebl/drbg.c"
PR_STATIC_ASSERT(sizeof(size_t) <= 4);
^

PPS: the browser built with nss patched this way actually works for me.

Comment on attachment 9174123 [details] [diff] [review] 0001-config.gypi-e2k-is-64-bit-architecture-too.patch Review of attachment 9174123 [details] [diff] [review]: ----------------------------------------------------------------- LGTM
Attachment #9174123 - Flags: review+
Assignee: nobody → shigorin
Severity: -- → N/A
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P3
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.57

Thank you, JC ;-) I've verified revision 4767448ef85b to build on e2k.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: