deemru / Chromium-Gost

Chromium с поддержкой алгоритмов ГОСТ
https://www.cryptopro.ru/forum2/default.aspx?g=posts&t=9991
MIT License
388 stars 43 forks source link

Ошибка при сборке пакета в Linux #40

Closed DeadMozay closed 1 year ago

DeadMozay commented 2 years ago

При сборке пакета в msspi

[  756s] FAILED: obj/third_party/boringssl/boringssl/msspi.o 
[  756s] g++ -MMD -MF obj/third_party/boringssl/boringssl/msspi.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBORINGSSL_ALLOW_CXX_RUNTIME -DBORINGSSL_IMPLEMENTATION -DBORINGSSL_NO_STATIC_INITIALIZER -DOPENSSL_SMALL -D_XOPEN_SOURCE=700 -I../.. -Igen -I../../third_party/boringssl/src/include -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -fno-omit-frame-pointer -flto -fvisibility=hidden -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -std=gnu++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-narrowing -Wno-class-memaccess -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -Wno-return-type -Wno-pedantic -Wno-unused-result -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations -Wno-return-type -Wno-parentheses -Wno-misleading-indentation -Wno-attributes -Wno-ignored-attributes -Wno-address -Wno-dangling-else -I/usr/include/wayland -I/usr/include/libxkbcommon -Wno-unused-but-set-variable -Wno-packed-not-aligned -Wno-subobject-linkage -Wno-class-memaccess -Wno-invalid-offsetof -fpermissive -c ../../third_party/boringssl/msspi.cpp -o obj/third_party/boringssl/boringssl/msspi.o
[  756s] ../../third_party/boringssl/msspi.cpp: In function 'int msspi_read(MSSPI_HANDLE, void*, int)':
[  756s] ../../third_party/boringssl/msspi.cpp:41:31: error: exception handling disabled, use '-fexceptions' to enable
[  756s]    41 | #define MSSPIEHCATCH } catch( ... ) {
[  756s]       |                               ^~~
[  756s] ../../third_party/boringssl/msspi.cpp:42:37: note: in expansion of macro 'MSSPIEHCATCH'
[  756s]    42 | #define MSSPIEHCATCH_HERRRET( ret ) MSSPIEHCATCH; h->state |= MSSPI_ERROR; return ret; }
[  756s]       |                                     ^~~~~~~~~~~~
[  756s] ../../third_party/boringssl/msspi.cpp:894:5: note: in expansion of macro 'MSSPIEHCATCH_HERRRET'
[  756s]   894 |     MSSPIEHCATCH_HERRRET( 0 );
[  756s]       |     ^~~~~~~~~~~~~~~~~~~~

Если добавить опцию -fexceptions

[ 3953s] FAILED: obj/base/base/allocator_shim.o 
[ 3953s] g++ -MMD -MF obj/base/base/allocator_shim.o.d -DPA_PCSCAN_STACK_SUPPORTED -DUSE_SYMBOLIZE -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DUSE_X11=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBASE_IMPLEMENTATION -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DU_IMPORT=U_EXPORT -I../.. -Igen -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/zlib_shim -Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/protoc_out -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -funwind-tables -fPIC -pipe -pthread -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -Wno-comments -Wno-packed-not-aligned -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-pointer -flto -fvisibility=hidden -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -Wno-return-type -Wno-pedantic -Wno-unused-result -Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations -Wno-return-type -Wno-parentheses -Wno-misleading-indentation -Wno-attributes -Wno-ignored-attributes -Wno-address -Wno-dangling-else -I/usr/include/wayland -I/usr/include/libxkbcommon -Wno-unused-but-set-variable -Wno-packed-not-aligned -Wno-subobject-linkage -Wno-class-memaccess -Wno-invalid-offsetof -fpermissive -fexceptions -c ../../base/allocator/allocator_shim.cc -o obj/base/base/allocator_shim.o
[ 3953s] ../../base/allocator/allocator_shim.cc:411:2: error: #error This code cannot be used when exceptions are turned on.
[ 3953s]   411 | #error This code cannot be used when exceptions are turned on.
[ 3953s]       |  ^~~~~

Пробовал отключить allocator в chromium, ошибка error This code cannot be used when exceptions are turned on. повторяется раз за разом при сборке в других местах.

OS openSUSE Tumbleweed

deemru commented 2 years ago

OS openSUSE Tumbleweed

https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/linux/build_instructions.md

mikhailnov commented 2 years ago

См. https://abf.io/import/chromium-browser-stable, все собирается