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

Fatal error: Invalid --compress-debug-sections option: `zstd' #5

Closed
eduardolucioac opened this issue Oct 17, 2023 · 3 comments
Closed

Comments

@eduardolucioac
Copy link

Any ideas on how to resolve this issue?

I'm using Manjaro with Linux Kernel 6.5.5-1.

Thanks! S2

[eduardolac@eduardolac-pc ms912x]$ make all
make CHECK="/usr/bin/sparse" -C /lib/modules/6.5.5-1-MANJARO/build M=/home/eduardolac/Data1/Temp/20231016.1224.0/ms912x modules
make[1]: Entering directory '/usr/lib/modules/6.5.5-1-MANJARO/build'
  CC [M]  /home/eduardolac/Data1/Temp/20231016.1224.0/ms912x/ms912x_registers.o
Assembler messages:
Fatal error: Invalid --compress-debug-sections option: `zstd'
make[3]: *** [scripts/Makefile.build:243: /home/eduardolac/Data1/Temp/20231016.1224.0/ms912x/ms912x_registers.o] Error 1
make[2]: *** [/usr/lib/modules/6.5.5-1-MANJARO/build/Makefile:2034: /home/eduardolac/Data1/Temp/20231016.1224.0/ms912x] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.5.5-1-MANJARO/build'
make: *** [Makefile:15: modules] Error 2
@rhgndf
Copy link
Owner

rhgndf commented Oct 17, 2023

Unfortunately I have no idea, since I tested it on manjaro 6.5.5 also. Maybe try installing zstd packages?

@eduardolucioac
Copy link
Author

eduardolucioac commented Oct 17, 2023

My "ld" doesn't support "zstd"... See..

[eduardolac@eduardolac-pc ms912x]$ ld --help | grep "compress-debug sections"
    --compress-debug-sections=[none|zlib|zlib-gnu|zlib-gabi]

But, if I use Kernel 6.6 ("linux-amd-drm-fixes" and "linux-amd-drm-fixes-headers" packages in Manjaro), I can build "ms912x".

Kernel 6.6 is "experimental"...

But, despite having compiled it, the driver didn't work.

"Maybe try installing zstd packages?" -> Doesn't work, too.

👀

@eduardolucioac
Copy link
Author

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

2 participants