yandex-load / phantom Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mamchits/phantom
I/O engine with some modules
License: GNU Lesser General Public License v2.1
This project forked from mamchits/phantom
I/O engine with some modules
License: GNU Lesser General Public License v2.1
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)
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
На 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.