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

Build errors when compiling with emscripten #138

Open
hsdk123 opened this issue Nov 13, 2020 · 1 comment
Open

Build errors when compiling with emscripten #138

hsdk123 opened this issue Nov 13, 2020 · 1 comment

Comments

@hsdk123
Copy link

hsdk123 commented Nov 13, 2020

In file included from _deps/csvparser-src/include/internal/csv_utility.hpp:4:
_deps/csvparser-src/include/internal/csv_reader.hpp:136:20: warning: explicitly defaulted move assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
        CSVReader& operator=(CSVReader&& other) = default;
                   ^
_deps/csvparser-src/include/internal/csv_reader.hpp:202:23: note: move assignment operator of 'CSVReader' is implicitly deleted because field 'records' has a deleted move assignment operator
        RowCollection records = RowCollection(100);
                      ^
_deps/csvparser-src/include/internal/basic_csv_parser.hpp:177:24: note: copy assignment operator of 'ThreadSafeDeque<csv::CSVRow>' is implicitly deleted because field '_lock' has a deleted copy assignment operator
            std::mutex _lock;
                       ^
C:\Users\daego\Desktop\Projects\emsdk\upstream\emscripten\system\include\libcxx\__mutex_base:41:12: note: 'operator=' has been explicitly marked deleted here
    mutex& operator=(const mutex&) = delete;

It looks like the mutex is the problem

@hsdk123
Copy link
Author

hsdk123 commented Nov 14, 2020

More warnings:

../src/.\Code/99.External/csv.hpp:4854:33: warning: use of old-style cast [-Wold-style-cast]
            return (ParseFlags)((int)flag & ~((int)ParseFlags::QUOTE * quote_escape));
                                ^    ~~~~
../src/.\Code/99.External/csv.hpp:4854:47: warning: use of old-style cast [-Wold-style-cast]
            return (ParseFlags)((int)flag & ~((int)ParseFlags::QUOTE * quote_escape));
                                              ^    ~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:4854:20: warning: use of old-style cast [-Wold-style-cast]
            return (ParseFlags)((int)flag & ~((int)ParseFlags::QUOTE * quote_escape));
                   ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5020:44: warning: use of old-style cast [-Wold-style-cast]
            this->variable_column_policy = (VariableColumnPolicy)policy;
                                           ^                     ~~~~~~
../src/.\Code/99.External/csv.hpp:5204:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<signed char>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5208:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<short>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5212:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<int>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5216:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<long int>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5220:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<long long int>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5235:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<unsigned char>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5239:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<unsigned short>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5243:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<unsigned int>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5247:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<unsigned long int>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5251:24: warning: use of old-style cast [-Wold-style-cast]
                return (long double)std::numeric_limits<unsigned long long int>::max();
                       ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5487:58: warning: use of old-style cast [-Wold-style-cast]
            CSVFieldList(size_t single_buffer_capacity = (size_t)(internals::PAGE_SIZE / sizeof(RawCSVField))) :
                                                         ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:5708:17: warning: use of old-style cast [-Wold-style-cast]
            if ((int)_type < 0) {
                ^    ~~~~~
../src/.\Code/99.External/csv.hpp:5910:17: warning: use of old-style cast [-Wold-style-cast]
            ret[(size_t)quote_char + 128] = ParseFlags::QUOTE;
                ^       ~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:6198:18: warning: use of old-style cast [-Wold-style-cast]
                ((std::string*)(this->data_ptr->_data.get()))->assign(buff.get(), length);
                 ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/.\Code/99.External/csv.hpp:6201:42: warning: use of old-style cast [-Wold-style-cast]
                this->data_ptr->data = *((std::string*)this->data_ptr->_data.get());

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

1 participant