Menu

Failed to build on Alpine Linux with UASM - "core dumped"

Help
pavel
2024-05-20
2024-05-21
  • pavel

    pavel - 2024-05-20

    Could anyone help with that?

    /tmp/build/7z2405-src # make MY_ASM=uasm DISABLE_RAR=1 -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_gcc_x64.mak -j$(nproc)
    make: Entering directory '/tmp/build/7z2405-src/CPP/7zip/Bundles/Alone2'
    uasm -nologo -elf64 -DABI_LINUX -Fob/g_x64/ ../../../../Asm/x86/LzmaDecOpt.asm
    gcc      -O2 -c -Werror -Wall -Wextra -Waddress -Waggressive-loop-optimizations -Wattributes -Wcast-align -Wcomment -Wdiv-by-zero -Wformat-contains-nul -Winit-self -Wint-to-pointer-cast -Wunused -Wunused-macros  -Wbool-compare -Wduplicated-cond  -Waddress-of-packed-member -Wbool-operation -Wcast-align=strict -Wconversion -Wdangling-else -Wduplicated-branches -Wimplicit-fallthrough=5 -Wint-in-bool-context -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-attributes -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC   -o b/g_x64/7zBuf2.o ../../../../C/7zBuf2.c
    LzmaDecOpt.asm: 1303 lines, 3 passes, 16524 ms, 0 warnings, 0 errors
    gcc      -O2 -c -Werror -Wall -Wextra -Waddress -Waggressive-loop-optimizations -Wattributes -Wcast-align -Wcomment -Wdiv-by-zero -Wformat-contains-nul -Winit-self -Wint-to-pointer-cast -Wunused -Wunused-macros  -Wbool-compare -Wduplicated-cond  -Waddress-of-packed-member -Wbool-operation -Wcast-align=strict -Wconversion -Wdangling-else -Wduplicated-branches -Wimplicit-fallthrough=5 -Wint-in-bool-context -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-attributes -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC   -o b/g_x64/7zCrc.o ../../../../C/7zCrc.c
    uasm -nologo -elf64 -DABI_LINUX -Fob/g_x64/ ../../../../Asm/x86/7zCrcOpt.asm
    7zCrcOpt.asm: 258 lines, 3 passes, 5073 ms, 0 warnings, 0 errors
    gcc      -O2 -c -Werror -Wall -Wextra -Waddress -Waggressive-loop-optimizations -Wattributes -Wcast-align -Wcomment -Wdiv-by-zero -Wformat-contains-nul -Winit-self -Wint-to-pointer-cast -Wunused -Wunused-macros  -Wbool-compare -Wduplicated-cond  -Waddress-of-packed-member -Wbool-operation -Wcast-align=strict -Wconversion -Wdangling-else -Wduplicated-branches -Wimplicit-fallthrough=5 -Wint-in-bool-context -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-attributes -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC   -o b/g_x64/7zStream.o ../../../../C/7zStream.c
    gcc      -O2 -c -Werror -Wall -Wextra -Waddress -Waggressive-loop-optimizations -Wattributes -Wcast-align -Wcomment -Wdiv-by-zero -Wformat-contains-nul -Winit-self -Wint-to-pointer-cast -Wunused -Wunused-macros  -Wbool-compare -Wduplicated-cond  -Waddress-of-packed-member -Wbool-operation -Wcast-align=strict -Wconversion -Wdangling-else -Wduplicated-branches -Wimplicit-fallthrough=5 -Wint-in-bool-context -Wmaybe-uninitialized -Wmisleading-indentation -Wmissing-attributes -DNDEBUG -D_REENTRANT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC   -o b/g_x64/Aes.o ../../../../C/Aes.c
    uasm -nologo -elf64 -DABI_LINUX -Fob/g_x64/ ../../../../Asm/x86/AesOpt.asm
    "++ VAES 256"
    "x86-64"
    "ABI : LINUX"
    make: *** [../../7zip_gcc.mak:1288: b/g_x64/AesOpt.o] Illegal instruction (core dumped)
    make: *** Deleting file 'b/g_x64/AesOpt.o'
    make: *** Waiting for unfinished jobs....
    make: Leaving directory '/tmp/build/7z2405-src/CPP/7zip/Bundles/Alone2'
    
     
  • Igor Pavlov

    Igor Pavlov - 2024-05-20

    if uasm doesn't support required aes instructions, you can try c code instead of asm:

    make USE_X86_ASM_AES=
    
     
  • pavel

    pavel - 2024-05-21

    @ipavlov This works, thanks. I think uasm support aes - on ubuntu/debian uasm works like a charm with 7-zip. I would like to figure out what is wrong in this case with Alpine. Musl libc?

     

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.