Coder Social home page Coder Social logo

Comments (6)

robe2 avatar robe2 commented on June 16, 2024

I think SYNCHRONIZE might be a reserved keyword. If I replace it with something like SYNCHRONIZE_NOCROSS then I get past that step.

from mobilitydb.

estebanzimanyi avatar estebanzimanyi commented on June 16, 2024

It seems that is indeed the case. In the file \mingw-w64-v9.0.0\mingw-w64-headers\include\winnt.h there is the following definition
#define SYNCHRONIZE (__MSABI_LONG(0x00100000))
I changed the definition in MobilityDB as you suggested. This is already in the develop branch.

from mobilitydb.

estebanzimanyi avatar estebanzimanyi commented on June 16, 2024

BTW when using mingw (the traditional 32 bit version) for running the tests it is necessary to create the database and this is done calling initdb. However, this complains about the permissions of the repertory used for initdb.

esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ initdb -D db
The files belonging to this database system will be owned by user "esteban".
This user must also own the server process.

The database cluster will be initialized with locale "C.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory db ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 20
selecting default shared_buffers ... 400kB
selecting default time zone ... Europe/Brussels
creating configuration files ... ok
running bootstrap script ... 2021-07-22 11:21:25.046 CEST [3929] FATAL:  data directory "/mnt/c/MobilityDB-develop/build/tmptest/db" has invalid permissions
2021-07-22 11:21:25.046 CEST [3929] DETAIL:  Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
child process exited with exit code 1
initdb: removing contents of data directory "db"
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$

However, it is reported that chmod does not work for windows

esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build$ ls
CMakeCache.txt       DartConfiguration.tcl  cmake_install.cmake   mobilitydb--1.0.sql    sqlin
CMakeFiles           Makefile               install_manifest.txt  mobilitydb--1.0.sql.c  tmptest
CTestTestfile.cmake  Testing                libMobilityDB.so      mobilitydb.control
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build$ cd tmptest
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls
db  lock  log  out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls -l
total 0
drwxrwxrwx 1 esteban esteban 512 Jul 21 15:32 db
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 lock
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 log
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ chmod 700 db
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls -l
total 0
drwxrwxrwx 1 esteban esteban 512 Jul 21 15:32 db
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 lock
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 log
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$

Maybe you know how to cope with this issue

from mobilitydb.

cvvergara avatar cvvergara commented on June 16, 2024

ah, nice catch @robe2
Without the need to modify postgresql.conf, I can do this in my computer

create extension mobilitydb CASCADE;
NOTICE:  installing required extension "postgis"
CREATE EXTENSION
mobtest=# select mobilitydb_version();
  mobilitydb_version   
-----------------------
 MobilityDB 1.0 beta 3
(1 row)

Will add a test on the actions that displays the version, on my next PR

from mobilitydb.

robe2 avatar robe2 commented on June 16, 2024

BTW when using mingw (the traditional 32 bit version) for running the tests it is necessary to create the database and this is done calling initdb. However, this complains about the permissions of the repertory used for initdb.

esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ initdb -D db
The files belonging to this database system will be owned by user "esteban".
This user must also own the server process.

The database cluster will be initialized with locale "C.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory db ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 20
selecting default shared_buffers ... 400kB
selecting default time zone ... Europe/Brussels
creating configuration files ... ok
running bootstrap script ... 2021-07-22 11:21:25.046 CEST [3929] FATAL:  data directory "/mnt/c/MobilityDB-develop/build/tmptest/db" has invalid permissions
2021-07-22 11:21:25.046 CEST [3929] DETAIL:  Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
child process exited with exit code 1
initdb: removing contents of data directory "db"
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$

However, it is reported that chmod does not work for windows

esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build$ ls
CMakeCache.txt       DartConfiguration.tcl  cmake_install.cmake   mobilitydb--1.0.sql    sqlin
CMakeFiles           Makefile               install_manifest.txt  mobilitydb--1.0.sql.c  tmptest
CTestTestfile.cmake  Testing                libMobilityDB.so      mobilitydb.control
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build$ cd tmptest
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls
db  lock  log  out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls -l
total 0
drwxrwxrwx 1 esteban esteban 512 Jul 21 15:32 db
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 lock
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 log
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ chmod 700 db
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$ ls -l
total 0
drwxrwxrwx 1 esteban esteban 512 Jul 21 15:32 db
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 lock
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 log
drwxrwxrwx 1 esteban esteban 512 Jul 21 14:54 out
esteban@DESKTOP-9FBND60:/mnt/c/MobilityDB-develop/build/tmptest$

Maybe you know how to cope with this issue

Yah chmod isn't supported under windows to my knowledge but I use msys2 for my tool chain and it understands chmod. That said I've never had to use that command. So not sure it really works under msys2 either, might just fake it. Are you only getting this on 32-bit chain? I don't ship any new major releases of anything on the 32-bit chain anymore because EDB stopped supporting 32-bit since so few people use it. So 32-bit is only relevant for supporting PG 10 and lower on windows - https://www.enterprisedb.com/download-postgresql-binaries

from mobilitydb.

estebanzimanyi avatar estebanzimanyi commented on June 16, 2024

from mobilitydb.

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.