Dear John,
Thanks for the reply. Please find below a list of problems that were
encountered when compiling fastbit on windows.
With each problem a quick fix is provided, applying them will make the
projects ardea and isis build succesfully on windows with visual
studio 2015 for 32bit.
However this might also break builds on other platforms/compilers
because the correct conditional preprocessor statements have not been
included.
Only the resulting ardea.exe program has been tested on a very limited
testset, the programs in the test and example subdirectories have not
been converted.
If desirable I could provide the visual studio 2015 project/solution
files and/or patch with all changes.
I didn't succeed in building for 64 bit (yet), the problem originates
from not being able to find FlexLexer.h included at line 22 in the
file fromLexer.h.
I have only very limited experience with bison and did not find a
solution. Any help would be appreciated.
Best regards,
Matthieu
1)
Problem: redefinition of types
Fix in const.h line 80:
from:
#include <string.h>
to:
#include <string>
2)
Problem: missing function
Fix in util.h line 258:
inserted:
inline uint32_t _rotl32(uint32_t x, int8_t r) {
return (x << r) | (x >> (32 - r));
}
inline uint64_t _rotl64(uint64_t x, int8_t r) {
return (x << r) | (x >> (64 - r));
}
3)
Problem: missing function
Fix in column.cpp replaced line 12326 to 12343
#if defined(_MSC_VER)
(void)gmtime_s(&mytm, &tt);
else
(void)localtime_s(&mytm, &tt);
#else
(void)gmtime_r(&tt, &mytm);
else
(void)localtime_r(&tt, &mytm);
#endif
(void)strftime(buf, 80, format_, &mytm);
out << buf;
} // ibis::column::unixTimeScribe::operator()
void ibis::column::unixTimeScribe::operator()
(std::ostream &out, double ut) const {
char buf[80];
struct tm mytm;
const time_t tt = static_cast<time_t>(ut);
if (timezone_ != 0 && (*timezone_ == 'g' || *timezone_ == 'G' ||
*timezone_ == 'u' || *timezone_ == 'U'))
#if defined(_MSC_VER)
(void)gmtime_s(&mytm, &tt);
else
(void)localtime_s(&mytm, &tt);
#else
(void)gmtime_r(&tt, &mytm);
else
(void)localtime_r(&tt, &mytm);
#endif
4)
Problem: header not found
Fix: in fileManager.cpp line 27
//#include <sys/resource.h>
5)
Problem: missing functions
Fix: in qExpr.cpp line 4099
#if defined (_MSC_VER)
(void)gmtime_s(&mytm, &sec);
else
(void)localtime_s(&mytm, &sec);
#else
(void)gmtime_r(&sec, &mytm);
else
(void)localtime_r(&sec, &mytm);
#endif
Fix: in qExpr.cpp line 4162
#if defined (_MSC_VER)
#define timegm _mkgmtime
#endif
Fix: in qExpr.cpp line 4230
#if defined (_MSC_VER)
(void)gmtime_s(&mytm, &sec);
else
(void)localtime_s(&mytm, &sec);
#else
(void)gmtime_r(&sec, &mytm);
else
(void)localtime_r(&sec, &mytm);
#endif
On Sun, Nov 1, 2015 at 9:00 PM, <[email protected]> wrote:
>
> Send FastBit-users mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of FastBit-users digest..."
>
>
> Today's Topics:
>
> 1. Re: IO bottleneck in text::startPositions (K. John Wu)
> 2. Re: suggested optimization for groupBy on multi-part category
> columns (K. John Wu)
> 3. Re: fastbit speed comparison (K. John Wu)
> 4. Re: fastbit on windows 7 64bit (K. John Wu)
>
>
> ----------------------------------------------------------------------
> ....
> Message: 4
> Date: Sat, 31 Oct 2015 22:14:33 -0700
> From: "K. John Wu" <[email protected]>
> Subject: Re: [FastBit-users] fastbit on windows 7 64bit
> To: FastBit Users <[email protected]>
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8
>
> You are right, we have not been testing FastBit source code on windows
> for quite a while. However, the code was originally developed on a
> windows machine and we are interested in keeping it useable on
> windows. We would very much like to hear about the problems you've
> encountered. Please feel free to let us know of the problems.
>
> Thanks.
>
> John
>
>
>
>
> On 10/28/15 12:16 AM, Matthieu Bolt wrote:
> > All,
> >
> > I would like to use fastbit for a windows 7 64bit (desktop)
> > application. It seems to me that the projects in the win subdirectory
> > are not maintained. I have converted the projects to visual studio
> > 2015 and with a few quick hacks they compiled and seem to work for
> > 32bit. Given the effort required to achieve this I'm wondering whether
> > this approach is going to work in the long run. Therefore I'm wondering:
> >
> > - Is there any experience with fastbit on windows 7 64 bit?
> > - and are there known/foreseeable issues which have to be resolved to
> > use fastbit on windows 7 64bit?
> > - Is the win subdirectory maintained?
> > - and if not would there be any interest in incorporating the visual
> > studio 2015 projects and required code changes in the main development
> > branch?
> >
> > Best regards,
> >
> > Matthieu
> >
> >
> >
> > _______________________________________________
> > FastBit-users mailing list
> > [email protected]
> > https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
> >
>
>
> ------------------------------
>
> _______________________________________________
> FastBit-users mailing list
> [email protected]
> https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users
>
>
> End of FastBit-users Digest, Vol 99, Issue 1
> ********************************************
_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users