Skip to content

maintaining-zlib.md is out of sync with chromium upstream #32856

Description

@sam-github

I just ran through https://github.com/nodejs/node/blob/master/doc/guides/maintaining-zlib.md#updating-zlib, and it didn't produce a buildable zlib, see below.

This isn't an immediate problem, but if we have to update zlib for any reason (sec release, performance, portability), whoever is doing that will find the docs not quite sufficient.

If anyone wants to figure out what it would take to fix the docs, it'd be good to do it sooner than later.

Also, it might be useful to extend the docs to see how to determine what upstream SHA has actually been released in a chromium, so we don't grab pre-release/untested code.

cc: @mhdawson @richardlau @MylesBorins (to whom I mentioned that I don't think the guide is still in working order).

[19/1004] CC obj/deps/zlib/zlib.adler32_simd.o
FAILED: obj/deps/zlib/zlib.adler32_simd.o 
clang-11 -MMD -MF obj/deps/zlib/zlib.adler32_simd.o.d -DV8_DEPRECATION_WARNINGS -DV8_IMMINENT_DEPRECATION_WARNINGS -D__STDC_FORMAT_MACROS -DOPENSSL_NO_PINSHARED -DOPENSSL_THREADS -DHAVE_HIDDE
N -DADLER32_SIMD_SSSE3 -DINFLATE_CHUNK_SIMD_SSE2 -DCRC32_SIMD_SSE42_PCLMUL -DINFLATE_CHUNK_READ_64LE -I../../deps/zlib -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-po
inter   -c ../../deps/zlib/adler32_simd.c -o obj/deps/zlib/zlib.adler32_simd.o
../../deps/zlib/adler32_simd.c:116:34: error: always_inline function '_mm_maddubs_epi16' requires target feature 'ssse3', but would be inlined into function 'adler32_simd_' that is compiled w
ithout support for 'ssse3'
            const __m128i mad1 = _mm_maddubs_epi16(bytes1, tap1);
                                 ^
../../deps/zlib/adler32_simd.c:120:34: error: always_inline function '_mm_maddubs_epi16' requires target feature 'ssse3', but would be inlined into function 'adler32_simd_' that is compiled w
ithout support for 'ssse3'
            const __m128i mad2 = _mm_maddubs_epi16(bytes2, tap2);
                                 ^
2 errors generated.
[24/1003] CC obj/tools/icu/gen/icudata.icudt66_dat.o

Activity

  1. added
    zlibIssues and PRs related to the zlib module and its compression dependencies.
    on Apr 14, 2020
  2. addaleax commented on Apr 14, 2020

    @addaleax
    Member

    Err, yeah, this is my fault I guess. I assume that dccdc51 would need to be re-floated on top of zlib after updating, at least for the time being until somebody has the time to address that issue using gyp modifications only?

  3. sam-github commented on Apr 14, 2020

    @sam-github
    ContributorAuthor

    Maybe all that's needed is a note to cherry-pick that back? I just tried to check, but while it picks clean, v8 is rebuilding. That will take a while.

  4. Neustradamus commented on Dec 4, 2022

    @Neustradamus

    To follow

  5. cjihrig commented on Dec 4, 2022

    @cjihrig
    Contributor

    @Neustradamus if you are interested in following an issue, please use the "Subscribe" button in the GitHub UI instead of spamming everyone with comments. Just search for "subscribe" on the page to find the button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    zlibIssues and PRs related to the zlib module and its compression dependencies.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions