Menu

#521 Failed to make under CPP/7zip/Bundles/Alone2 (7Zip 23.01)

open
nobody
None
5
2023-12-15
2023-12-15
jiangzheng
No

Failed to make under CPP/7zip/Bundles/Alone2 (7Zip 23.01)

Environment
gcc: 7.3.0
ubuntu :18.04

How to reproduce:

cd CPP/7zip/Bundles/Alone2
make -j -f makefile.gcc 

The following error occured:

../../../../C/SwapBytes.c: In function ‘ShufBytes_256’:
../../../../C/SwapBytes.c:312:7: error: implicit declaration of function ‘_mm256_set_m128i’; did you mean ‘_mm256_set_epi8’? [-Werror=implicit-function-declaration]
       _mm256_set_m128i(
       ^~~~~~~~~~~~~~~~
       _mm256_set_epi8
../../../../C/SwapBytes.c:312:7: error: incompatible types when initializing type ‘__m256i {aka const __vector(4) long long int}’ using type ‘int’
cc1: all warnings being treated as errors
../../7zip_gcc.mak:1181: recipe for target '_o/SwapBytes.o' failed
make: *** [_o/SwapBytes.o] Error 1
make: *** Waiting for unfinished jobs....
cc1plus: all warnings being treated as errors
../../7zip_gcc.mak:400: recipe for target '_o/FileStreams.o' failed
make: *** [_o/FileStreams.o] Error 1
cc1plus: all warnings being treated as errors
../../7zip_gcc.mak:864: recipe for target '_o/UpdateCallback.o' failed
make: *** [_o/UpdateCallback.o] Error 1

Discussion

  • Sam Tansy

    Sam Tansy - 2023-12-15

    GCC < 8 does not support that instruction. You can work it around with this patch.

     
  • Igor Pavlov

    Igor Pavlov - 2023-12-15

    why recipe for target '_o/FileStreams.o' failed ?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.