facebook / facebook/zstd

ZSTD make command failing during installation

Open
#4,359 7 comments 0 reactions 0 assignees View on GitHub
build
Dominant language
C
Stars
27.9k
Forks
2.6k
Avg merge
1d 3h
Merged PRs (30d)
8

Description

**Describe the bug**
Hello! Has anyone encountered the issue

`collect2: error: ld returned 1 exit status`
`make[2]: *** [Makefile:161: obj/conf_20daa47e8058f816896e54abab38685b/zstd] Error 1`
`make[1]: *** [Makefile:149: zstd] Error 2`
`make: *** [Makefile:67: zstd-release] Error 2`

when installing ZSTD? I have tried the steps in the [xSqueezeIt](https://github.com/rwk-unil/xSqueezeIt) repository and it worked on 2 different machine with Ubuntu 24 and Ubuntu 20. However, it's always in my device where it encounters this error when running the `make` command of the zstd repo, not the `sudo make install`. I am sure that I followed all the steps given in the ReadMe and terminal prompts during installation.

**To Reproduce**
Steps to reproduce the behavior:
1. Follow the installation process for zstd in the xSqueezeIt repository

**Expected behavior**
It would proceed without errors.

**Screenshots and charts**

![Image](https://github.com/user-attachments/assets/f154ed1d-e4f4-4295-ad42-ef76956655db)

![Image](https://github.com/user-attachments/assets/b2cc4035-4c0e-4c35-a449-43a7d33ef9bf)

![Image](https://github.com/user-attachments/assets/08f6bd41-c983-4ef1-a48e-4ce9b08efec6)

![Image](https://github.com/user-attachments/assets/308bde71-90de-4345-9a2b-e045f741b1e6)

![Image](https://github.com/user-attachments/assets/c692964b-6b4d-4723-8fd4-d1167583cf60)

![Image](https://github.com/user-attachments/assets/c3586cc8-8e8f-4a09-9252-2551c7aac8aa)

**Desktop (please complete the following information):**
- OS: Windows but installing it into WSL
- Windows 11
- Build system: Makefile

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.