Code Monkey home page Code Monkey logo

Comments (12)

picca avatar picca commented on August 25, 2024 1

from c-blosc2.

kif avatar kif commented on August 25, 2024

Apparently it has to be C11, not C99 ... it compiles a bit further

from c-blosc2.

kif avatar kif commented on August 25, 2024

The auto-guess of the version of the glibc apparently is the root of the bug ...

from c-blosc2.

FrancescAlted avatar FrancescAlted commented on August 25, 2024

So are you finally able to compile blosc2 in your pine64 box?

from c-blosc2.

kif avatar kif commented on August 25, 2024

from c-blosc2.

FrancescAlted avatar FrancescAlted commented on August 25, 2024

Ha, it is curious because I don't remeber having this problems with struct_timespec.h in Ubuntu 16.04/18.04 for Raspberry. Maybe the issue is just in Debian? Very strange...

Regarding bshuf_trans_bit_elem_scal() name inconsistencies, yeah, currently that is quite a mess of naming, but fortunately, this is not part of the public API, so if you want to put some order in this naming jungle, you are welcome.

from c-blosc2.

kif avatar kif commented on August 25, 2024

Maybe it is debian ... I just got access (again) to the power9 with debian 10 and it is the same issue. I'll check twice on amd64 and arm32 but surprisingly it works there without complain.

About the unconsistency of the private API, I noticed it only because I benchmarked those functions.

from c-blosc2.

kif avatar kif commented on August 25, 2024

Coming back on this "failed to build from scratch", I tested on the power9 and arm64:

#include <time.h>
#include <stdio.h>
int main()
{
   printf("Posix is %d",__USE_POSIX199309);
   return 0;
}

And guess what? both are properly defined. May the error be in the cmake default options ?

from c-blosc2.

kif avatar kif commented on August 25, 2024

I tested if "features.h" was properly included or not and apparently it was. The error is somewhere else.
@picca this issue looks to be specific to debian10, any idea ?

from c-blosc2.

kif avatar kif commented on August 25, 2024

I just "debootstrapped" a ubuntu 18.04 system (gcc7) on ppc64le and the issue is apparently the same.

It should not be a debian issue. I will git-bisect.

from c-blosc2.

kif avatar kif commented on August 25, 2024

It compiles with clang7 but neither with gcc7 nor gcc8. The problem is apparently in the expand of the macros. It looks like std=c99 is not having effect, or at least not as much as on amd64

from c-blosc2.

kif avatar kif commented on August 25, 2024

I got it:
https://stackoverflow.com/questions/3875197/gcc-with-std-c99-complains-about-not-knowing-struct-timespec

PR under creation

from c-blosc2.

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.