Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issues #1

Open
mehrdadn opened this issue May 25, 2016 · 7 comments
Open

Compilation issues #1

mehrdadn opened this issue May 25, 2016 · 7 comments
Assignees

Comments

@mehrdadn
Copy link
Collaborator

mehrdadn commented May 25, 2016

Isn't Array::RangeEquals purely virtual and unimplemented in PrimitiveArray? How is PrimitiveArray being instantiated?

@pcmoritz
Copy link
Collaborator

Hey Mehrdad,

this was changed very recently: apache/arrow@cd1d770

For now you can just use an older commit of arrow. At the moment, much of the code is just a quick hack to measure the performance of arrow. It was also written at a time when arrow was much less complete than it is now (and we knew that, so didn't try hard to make the current numbuf library nice); at some point during the summer, we will write a better version of the library that can be open-sourced, but it is not super high priority right now.

-- Philipp.

@mehrdadn
Copy link
Collaborator Author

Oh! It totally didn't occur to me to check if arrow had changed underneath. Got it, thanks!

@mehrdadn mehrdadn changed the title How is PrimitiveArray being instantiated here? Compilation issues May 26, 2016
@mehrdadn
Copy link
Collaborator Author

Another question: it seems like logging.h is taken from arrow, but both of them are included (indirectly) by worker.cc. Is this intentional? Did you want to get rid of one of them? I'm not even sure how it's compiling right now to be honest, my compiler is complaining about the redefinition of DCHECK_LE but not about the redefinition of FatalLog...

@pcmoritz
Copy link
Collaborator

Hey,

the compiler is not complaining about FatalLog, because it is in the numbuf namespace. Not the DCHECK macros however, they should probably be prefixed by NUMBUF_ (or removed). Let's change it together when we meet tomorrow!

-- Philipp.

@mehrdadn
Copy link
Collaborator Author

Whoops, momentarily forgot the namespace change :) sounds good!

@mehrdadn
Copy link
Collaborator Author

mehrdadn commented Jun 18, 2016

Hey, could you fix this Windows compatibility issue? In src/pynumbuf/numbuf.h, change

    ftruncate(fileno(file), size);

to

#ifdef _WIN32
    _chsize_s(fileno(file), size);
#else
    ftruncate(fileno(file), size);
#endif

@pcmoritz
Copy link
Collaborator

working on this in ray-project/ray-legacy#123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants