Coder Social home page Coder Social logo

liblzma's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

liblzma's Issues

no version information available

Hi, I tried to instlall with
./configure --enable-shared --prefix=
and I can compile, but when I try to call
xz --version
I get the following error:

no version information available (required by xz)
xz: symbol lookup error: xz: undefined symbol: lzma_stream_encoder_mt_memusage, version XZ_5.2

Thanks for any help!

For compilation with __INTEL_COMPILER, please #include <immintrin.h> when using an Intel intrinsic

When building cmake 3.9.3 with an experimental version of the Intel compiler, we are unable to link because there is a direct reference to the Intel intrinsic __bit_scan_reverse without definition--leading to undefined symbols at link time. This is a request to modify liblzma to #include the intrinsic definition file . We recommend this modification as good programming practice, and additionally a new version of the Intel compiler may require you to have the include. The intrinsic will be supported through an inline assembly function definition which is part of immintrin.h, it will no longer be recognized directly by the compiler.

This appears in the file Utilities/cmliblzma/common/tuklib_integer.h

static inline uint32_t
bsr32(uint32_t n)
{
// Check for ICC first, since it tends to define GNUC too.
#if defined(__INTEL_COMPILER)
return _bit_scan_reverse(n);

Building liblzma on Ubuntu 16.04.7 fails

Operating system:
64-bit Ubuntu 16.04.7 LTS

Compiler:
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609

Steps to reproduce the behavior:
Download xz-5.6.0.tar.gz or xz-5.6.1.tar.gz and build it using these commands,

./configure --disable-shared make

I get these errors,

/bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/liblzma/api -I../../src/liblzma/common -I../../src/liblzma/check -I../../src/liblzma/lz -I../../src/liblzma/rangecoder -I../../src/liblzma/lzma -I../../src/liblzma/delta -I../../src/liblzma/simple -I../../src/common -DTUKLIB_SYMBOL_PREFIX=lzma_ -pthread -fvisibility=hidden -Wall -Wextra -Wvla -Wformat=2 -Winit-self -Wmissing-include-dirs -Wstrict-overflow=3 -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wdate-time -Wsign-conversion -Wfloat-conversion -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -g -O2 -MT liblzma_la-lzma_decoder.lo -MD -MP -MF .deps/liblzma_la-lzma_decoder.Tpo -c -o liblzma_la-lzma_decoder.lo test -f 'lzma/lzma_decoder.c' || echo './'lzma/lzma_decoder.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/liblzma/api -I../../src/liblzma/common -I../../src/liblzma/check -I../../src/liblzma/lz -I../../src/liblzma/rangecoder -I../../src/liblzma/lzma -I../../src/liblzma/delta -I../../src/liblzma/simple -I../../src/common -DTUKLIB_SYMBOL_PREFIX=lzma_ -pthread -fvisibility=hidden -Wall -Wextra -Wvla -Wformat=2 -Winit-self -Wmissing-include-dirs -Wstrict-overflow=3 -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wdate-time -Wsign-conversion -Wfloat-conversion -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -g -O2 -MT liblzma_la-lzma_decoder.lo -MD -MP -MF .deps/liblzma_la-lzma_decoder.Tpo -c lzma/lzma_decoder.c -o liblzma_la-lzma_decoder.o lzma/lzma_decoder.c: Assembler messages: lzma/lzma_decoder.c:371: Error: no such instruction: movzw 2(%r15),%esi'
lzma/lzma_decoder.c:373: Error: no such instruction: movzw 4(%r15),%edi' lzma/lzma_decoder.c:388: Error: no such instruction: movzw 6(%r15),%edx'
lzma/lzma_decoder.c:398: Error: no such instruction: movzw (%r15,%r14,4),%esi' lzma/lzma_decoder.c:413: Error: no such instruction: movzw 2(%r15,%r14,4),%edx'
lzma/lzma_decoder.c:424: Error: no such instruction: movzw (%r15,%r14,4),%edi' lzma/lzma_decoder.c:439: Error: no such instruction: movzw 2(%r15,%r14,4),%edx'
lzma/lzma_decoder.c:450: Error: no such instruction: movzw (%r15,%r14,4),%esi' lzma/lzma_decoder.c:465: Error: no such instruction: movzw 2(%r15,%r14,4),%edx'
lzma/lzma_decoder.c:476: Error: no such instruction: movzw (%r15,%r14,4),%edi'

There were many more no such instruction messages. I just felt it was not necessary to add this all to this issue report.

I also tried to configure using this command,

./configure --disable-shared --disable-assembler

but make produced the same errors.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.