Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folders contrib/amd64, contrib/asm686, contrib/masmx64, contrib/masmx86 were removed in 1.2.12 but not from the CMakeLists.txt #609

Closed
Andreas-Schniertshauer opened this issue Mar 28, 2022 · 10 comments

Comments

@Andreas-Schniertshauer
Copy link

so when building on Windows with cmake and flags -D AMD64:BOOL=ON or -D ASM686:BOOL=ON the following error occurs:

CMake Error at CMakeLists.txt:187 (add_library):
Cannot find source file:
contrib/masmx64/gvmat64.asm
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .ispc
CMake Error at CMakeLists.txt:187 (add_library):
No SOURCES given to target: zlib
CMake Error at CMakeLists.txt:188 (add_library):
No SOURCES given to target: zlibstatic
@madler
Copy link
Owner

madler commented Mar 29, 2022

The obvious answer to this is: don't use those flags. The assembler code has been removed from the contributions due to bugs, no one updating them, and questionable value.

I could edit CMakeLists.txt to remove the assembler support, but I'd probably break something. Can someone provide a patch for that?

@THE-GOD-OF-WORLD-OF-WARCRAFT
Copy link

THE-GOD-OF-WORLD-OF-WARCRAFT commented Mar 29, 2022

The obvious answer to this is: don't use those flags. The assembler code has been removed from the contributions due to bugs, no one updating them, and questionable value.

I could edit CMakeLists.txt to remove the assembler support, but I'd probably break something. Can someone provide a patch for that?

hi Madler, sorry offtopic
can you tell me please were i can view that fille "inffas32.asm" i want to learn from it :)
this was removed :(
https://github.com/madler/zlib/blob/master/contrib/masmx86/inffas32.asm

@madler
Copy link
Owner

madler commented Mar 29, 2022

Adenilson added a commit to Adenilson/zlib that referenced this issue Mar 29, 2022
With the release of 1.2.12, all the legacy ASM code was
removed from the 'contrib' folder.

This patch will update the CMake buildsystem to reflect that
and fix the report on issue madler#609.
@Adenilson
Copy link

Just added a pull request removing the options for enabling build of the legacy ASM code.

@toxieainc
Copy link

Note that (at least) the visual studio files (contrib/vstudio/vcXX) also still contain all the ASMxxx and masmx86 things, so these also do not compile out of the box.

@Adenilson
Copy link

@toxieainc could you please open another issue for that MSVC specific problem? Feel free to add me on it.

I think I can try to find a Windows machine and try to address it.

@toxieainc
Copy link

@Adenilson I already just filed a PR that removes these references

@topwizprogramming
Copy link

topwizprogramming commented Apr 6, 2022

Back in 2018 I downloaded 1.2.11 and compiled the project under vstudio\vc11 using VS 2012 and didn't have any problems. Yesterday I downloaded 1.2.12 (from zlib.org) and tried the same. First it says that a bat file is missing, I found this thread and removed the bat file from build events, Now I get a bunch of compile errors which I have attached. Also, the project files all contain Itanium platform entries, those probably could be removed.

compile_errors.txt

@toxieainc
Copy link

As mentioned above i filed a PR to fix things, but it was not merged yet

@madler
Copy link
Owner

madler commented Oct 6, 2022

Incorporated. Thanks @Adenilson and @toxieainc .

@madler madler closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants