[MONGOCRYPT-532] CLONE - Build failure on 32-bit Created: 06/Feb/23  Updated: 28/Oct/23  Resolved: 09/Feb/23

Status: Closed
Project: Libmongocrypt
Component/s: Build
Affects Version/s: 1.7.0
Fix Version/s: 1.7.2

Type: Bug Priority: Unknown
Reporter: Remi Collet Assignee: Colby Pike
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Cloners
clones MONGOCRYPT-524 Build failure on 32-bit Closed

 Description   

{{[ 11%] Building C object kms-message/CMakeFiles/kms_message_static.dir/src/kms_kmip_response_parser.c.o In file included from /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/dpml_private.h:46, from /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/dpml_exception.c:43: /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/architecture.h:716:9: error: #error Architecture must be specified. 716 | # error Architecture must be specified. | ^~~~~ cd /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/kms-message && /usr/bin/gcc -DKMS_MESSAGE_ENABLE_CRYPTO -DKMS_MESSAGE_ENABLE_CRYPTO_LIBCRYPTO -DKMS_MESSAGE_LITTLE_ENDIAN -DKMS_MSG_COMPILATION -DKMS_MSG_STATIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wall -Wno-unused-function -Wsign-compare -fvisibility=hidden -Werror=implicit -Werror=return-type -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=discarded-qualifiers -Werror=uninitialized -fPIC -Wconversion -Wsign-conversion -std=gnu90 -MD -MT kms-message/CMakeFiles/kms_message_static.dir/src/kms_kmip_response_parser.c.o -MF CMakeFiles/kms_message_static.dir/src/kms_kmip_response_parser.c.o.d -o CMakeFiles/kms_message_static.dir/src/kms_kmip_response_parser.c.o -c /builddir/build/BUILD/libmongocrypt-1.7.0/kms-message/src/kms_kmip_response_parser.c In file included from /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/dpml_private.h:48: /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/f_format.h:199:43: error: division by zero in #if 199 | #define WORDS_PER_S_TYPE (BITS_PER_S_TYPE / BITS_PER_WORD) | ^ /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/f_format.h:238:6: note: in expansion of macro 'WORDS_PER_S_TYPE' 238 | #if (WORDS_PER_S_TYPE > 0) | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/f_format.h:200:43: error: division by zero in #if 200 | #define WORDS_PER_D_TYPE (BITS_PER_D_TYPE / BITS_PER_WORD) | ^ /builddir/build/BUILD/libmongocrypt-1.7.0/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/f_format.h:263:6: note: in expansion of macro 'WORDS_PER_D_TYPE' 263 | #if (WORDS_PER_D_TYPE > 0) | ^~~~~~~~~~~~~~~~ }}



 Comments   
Comment by Githook User [ 10/Feb/23 ]

Author:

{'name': 'Remi Collet', 'email': 'remi@remirepo.net', 'username': 'remicollet'}

Message: MONGOCRYPT-532 Fix i686 (32-bit) build (#561)

Match more 32-bit arches when building IntelDFP
Branch: master
https://github.com/mongodb/libmongocrypt/commit/00b0f73fb278e5c29106620c23239d178193a2c8

Comment by Githook User [ 07/Feb/23 ]

Author:

{'name': 'Remi Collet', 'email': 'remi@remirepo.net', 'username': 'remicollet'}

Message: MONGOCRYPT-532 Fix i686 (32-bit) build (#561)

Match more 32-bit arches when building IntelDFP
Branch: r1.7
https://github.com/mongodb/libmongocrypt/commit/fa1012f1734c082e6eda453373f25a214fa777b1

Comment by Remi Collet [ 06/Feb/23 ]

Fixed by https://github.com/mongodb/libmongocrypt/pull/561

Comment by Remi Collet [ 06/Feb/23 ]

Version 1.7.1 is still affected

 

See  https://koji.fedoraproject.org/koji/taskinfo?taskID=97193234

 

{{[ 2%] Building C object CMakeFiles/intel_dfp_obj.dir/_deps/intel_dfp-src/LIBRARY/float128/dpml_exception.c.o /usr/bin/gcc -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DLINUX=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -DUSE_COMPILER_F80_TYPE=0 -DUSE_NATIVE_QUAD_TYPE=0 -Dlinux=1 -I/builddir/build/BUILD/libmongocrypt-1.7.1/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/src -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m32 -march=i686 -mtune=generic -msse2 -mfpmath=sse -mstackrealign -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -w -std=gnu99 -MD -MT CMakeFiles/intel_dfp_obj.dir/_deps/intel_dfp-src/LIBRARY/float128/dpml_exception.c.o -MF CMakeFiles/intel_dfp_obj.dir/_deps/intel_dfp-src/LIBRARY/float128/dpml_exception.c.o.d -o CMakeFiles/intel_dfp_obj.dir/_deps/intel_dfp-src/LIBRARY/float128/dpml_exception.c.o -c /builddir/build/BUILD/libmongocrypt-1.7.1/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/dpml_exception.c In file included from /builddir/build/BUILD/libmongocrypt-1.7.1/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/dpml_private.h:46, from /builddir/build/BUILD/libmongocrypt-1.7.1/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/dpml_exception.c:43: /builddir/build/BUILD/libmongocrypt-1.7.1/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/architecture.h:716:9: error: #error Architecture must be specified. 716 | # error Architecture must be specified. | ^~~~~ In file included from /builddir/build/BUILD/libmongocrypt-1.7.1/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/dpml_private.h:48: /builddir/build/BUILD/libmongocrypt-1.7.1/redhat-linux-build/_deps/intel_dfp-src/LIBRARY/float128/f_format.h:199:43: error: division by zero in #if 199 | #define WORDS_PER_S_TYPE (BITS_PER_S_TYPE / BITS_PER_WORD) | ^ }}

Generated at Thu Feb 08 09:08:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.