Coder Social home page Coder Social logo

Roundtrip error under am64 about lz4 HOT 6 CLOSED

docker-j avatar docker-j commented on July 26, 2024
Roundtrip error under am64

from lz4.

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024

Original comment by [email protected] on 17 Mar 2012 at 12:41

Attachments:

from lz4.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I will look into it.

Original comment by [email protected] on 17 Mar 2012 at 9:04

  • Changed state: Accepted

from lz4.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
For some reason, i was unable to reproduce the issue using the file input.txt 
provided here.

The test is done in a vmWare Ubuntu64 11.10 VM, host CPU is Core 2 Duo. The 
binary compiled is a 64-bit one (provided in attached file). I made 3 
verification tests, using your program (roundtrip), a comparison script (cmp) 
and internal checksum (-b). All seem to work so far on input.txt.

Original comment by [email protected] on 17 Mar 2012 at 9:27

Attachments:

from lz4.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
After paying closer attention to your Makefile, I see the difference. Within 
roundtrip.c, I am including the c file instead of the header file and simply 
compiling like so 'gcc roundtrip.c'. This has worked fine for me in the past 
with other libraries. When I switch to how you're doing it with multiple c 
files (include the header file instead of the c file and compile with 'gcc 
lz4.c rountrip.c') the problem disappears. I'm not fluent enough in C to 
understand why it matters in this particular case, but as long as I see a 
resolution, we can call this issue closed.

Original comment by [email protected] on 17 Mar 2012 at 10:23

from lz4.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
OK.
It's strange, because i've compiled graytest64 using your methodology 
(including lz4.c), and it did not advertised any issue.

Using separated lz4.h/lz4.c is necessary in case LZ4 functions are called in 
several places of the code. Otherwise, including several times lz4.c would 
generate duplicate, and linking stage would fail.

But in this particular situation, there is only one single file, so it should 
work the same...

Well, anyway, as long as you've got a solution... Let's call it closed, for now.

Original comment by [email protected] on 17 Mar 2012 at 11:06

from lz4.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024

Original comment by [email protected] on 17 Mar 2012 at 11:07

  • Changed state: Fixed

from lz4.

Related Issues (20)

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.