GithubHelp home page GithubHelp logo

yandex-load / phantom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mamchits/phantom

71.0 71.0 23.0 639 KB

I/O engine with some modules

License: GNU Lesser General Public License v2.1

C++ 25.58% Assembly 0.58% C 70.61% Objective-C 0.04% Max 2.35% Makefile 0.84%

phantom's People

Contributors

amdei avatar direvius avatar mamchits avatar nnugumanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phantom's Issues

Build failed on ubuntu 16.04 ARM

make -R all:

g++ -c -g -O3 -std=gnu++0x -fvisibility=hidden -fvisibility-inlines-hidden -fno-default-inline -fno-omit-frame-pointer -fno-common -fsigned-char -Wall -W -Werror -Wsign-promo -Woverloaded-virtual -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -isystem . -isystem ./pd/fixinclude -D_GNU_SOURCE=1  -Wundef  -MD -MF deps/pd%bq%bq_cont.o.d pd/bq/bq_cont.C -o pd/bq/bq_cont.o
pd/bq/bq_cont.C:40:2: error: #error Not implemented yet
 #error Not implemented yet
  ^
pd/bq/bq_cont.C:96:21: error: ‘MISC_REG_NUM’ was not declared in this scope
  unsigned long misc[MISC_REG_NUM];
                     ^
pd/bq/bq_cont.C: In member function ‘char* pd::bq_stack_pool_t::item_t::stack()’:
pd/bq/bq_cont.C:344:44: error: ‘STACK_SIZE’ was not declared in this scope
    return ((char *)this) + sizeof(*this) - STACK_SIZE;
                                            ^
pd/bq/bq_cont.C: In static member function ‘static pd::bq_stack_pool_t::item_t* pd::bq_stack_pool_t::item_t::obj(char*)’:
pd/bq/bq_cont.C:348:30: error: ‘STACK_SIZE’ was not declared in this scope
    return (item_t *)(stack + STACK_SIZE - sizeof(item_t));
                              ^
pd/bq/bq_cont.C: In member function ‘char* pd::bq_stack_pool_t::alloc()’:
pd/bq/bq_cont.C:378:10: error: ‘STACK_SIZE’ was not declared in this scope
    NULL, STACK_SIZE, PROT_READ | PROT_WRITE,
          ^
pd/bq/bq_cont.C:385:23: error: ‘PAGE_SIZE’ was not declared in this scope
   if (mprotect(stack, PAGE_SIZE, 0) < 0)
                       ^
pd/bq/bq_cont.C: In member function ‘void pd::bq_stack_pool_t::free(char*)’:
pd/bq/bq_cont.C:413:17: error: ‘STACK_SIZE’ was not declared in this scope
   munmap(stack, STACK_SIZE);
                 ^
pd/bq/bq_cont.C: In destructor ‘pd::bq_stack_pool_t::~bq_stack_pool_t()’:
pd/bq/bq_cont.C:423:26: error: ‘STACK_SIZE’ was not declared in this scope
    munmap(item->stack(), STACK_SIZE);
                          ^
pd/bq/bq_cont.C: In static member function ‘static void* pd::bq_cont_t::operator new(size_t)’:
pd/bq/bq_cont.C:443:22: error: ‘STACK_SIZE’ was not declared in this scope
  void *ptr = stack + STACK_SIZE - size;
                      ^
opts.mk:44: recipe for target 'pd/bq/bq_cont.o' failed
make: *** [pd/bq/bq_cont.o] Error 1

Не собирается

pd/base/config.C: В функции-члене «const pd::string_t* pd::config::environ_t::item_t::lookup(const pd::string_t&) const»:
pd/base/config.C:104:4: ошибка: nonnull argument «this» compared to NULL [-Werror=nonnull-compare]
    if(!this)
    ^~

При комментировании в opts.mk флага -Werror сборка идет дальше, однако некоторое время спустя падает уже с реальной ошибкой:

./pd/base/config_named_list.H:30:44: ошибка: «pd::config::ctor_base_t<phantom::io_client::proto_t>* pd::list_item_t<pd::config::ctor_base_t<phantom::io_client::proto_t> >::next» is protected within this context
   for(x_t *item = list; item; item = item->next)
                                      ~~~~~~^~~~

В попытке поменять "ну вдруг" видимость на паблик, возникает похожая ошибка, но дальше "дебажить" меня уже не хватило

Arch x86_64, 4.8.11-1
gcc 6.2.1 20160830 (GCC)

Fedora not build

make -R all

g++ -c -g -O3 -std=gnu++0x -fvisibility=hidden -fvisibility-inlines-hidden -fno-default-inline -fno-omit-frame-pointer -fno-common -fsigned-char -Wall -W -Werror -Wsign-promo -Woverloaded-virtual -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -isystem . -isystem ./pd/fixinclude -D_GNU_SOURCE=1  -Wundef  -MD -MF deps/pd%base%config.o.d pd/base/config.C -o pd/base/config.o
pd/base/config.C: В функции-члене «const pd::string_t* pd::config::environ_t::item_t::lookup(const pd::string_t&) const»:
pd/base/config.C:104:4: ошибка: nonnull аргумент «this» сравнивается с NULL [-Werror=nonnull-compare]
    if(!this)
    ^~
cc1plus: все предупреждения считаются ошибками
make: *** [opts.mk:44: pd/base/config.o] Ошибка 1

Не собирается на i586

На x86_64 с помощью gcc5 собирается почти нормально, но на i586 уже нет:

g++ -c -g -O3 -std=gnu++0x -fvisibility=hidden -fvisibility-inlines-hidden -fno-default-inline -fno-omit-frame-pointer -fno-common -fsigned-char -Wall -W -Werror -Wsign-promo -Woverloaded-virtual -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -isystem . -isystem ./pd/fixinclude -D_GNU_SOURCE=1  -Wundef  -MD -MF deps/phantom%io_stream%proto_http%handler_monitor%handler_monitor.s.o.d -fPIC phantom/io_stream/proto_http/handler_monitor/handler_monitor.C -o phantom/io_stream/proto_http/handler_monitor/handler_monitor.s.o
phantom/io_stream/proto_http/handler_monitor/handler_monitor.C: In member function 'virtual bool phantom::io_stream::proto_http::handler_monitor_t::content_t::print(pd::out_t&) const':
phantom/io_stream/proto_http/handler_monitor/handler_monitor.C:167:30: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
      size_t limit = sizeval::unlimited;
                              ^
cc1plus: all warnings being treated as errors
make: *** [phantom/io_stream/proto_http/handler_monitor/handler_monitor.s.o] Error 1

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.