Comments (7)
from gporca.
Make sure you're building from a fresh checkout of git master, the way the platform-flags in config.h were set was broken between commits 76af819 and 3a0921d. That might explain the assertion on Backtrace.
You might also need to disable -Werror in the top-level CMakeLists.txt. I have to do that when building on my laptop, with a modern GCC version.
from gporca.
I had trouble getting it to run as well, I think it's necessary to use --with-libs in configuring gpdb afterwards to use the libs in /usr/local/lib
from gporca.
@VinnyPembe
Could you please provide the contents of CMakeSystem.cmake
file from your gporca/build/CMakeFiles
dir ?
from gporca.
We can't seem to reproduce your problem. We believe that your platform isn't being properly set in cmake. Can you provide the following to help us?
- Distro/OS versions (Centos 7)
- Compiler versions (GCC 4.8)
- Contents of
CMakeSystem.cmake
from somewhere undergporca/build/CMakeFiles
- version of ORCA you are trying to build, is it the latest?
- version of gp-xerces that you are trying link with ORCA, is it the latest?
- Steps for us to reproduce your issue
from gporca.
Please reopen issue if you need more help
from gporca.
Ubuntu 18.04 with gcc 7.3
meet the error again.
-- Build files have been written to: /root/gpdb-5.10.0/gporca/build
ninja: Entering directory `build'
[1/1073] Building CXX object libgpos/CMakeFiles/gpos.dir/src/common/CHeapObject.cpp.o
[2/1073] Building CXX object libgpos/CMakeFiles/gpos.dir/src/common/CStackDescriptor.cpp.o
FAILED: libgpos/CMakeFiles/gpos.dir/src/common/CStackDescriptor.cpp.o
/usr/bin/c++ -Dgpos_EXPORTS -I../libgpos/include -Ilibgpos/include -g -O2 -fdebug-prefix-map=/root/gpdb-5.10.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -Wextra -pedantic-errors -Wno-variadic-macros -fno-omit-frame-pointer -O2 -g -DNDEBUG -g3 -fPIC -std=gnu++98 -MD -MT libgpos/CMakeFiles/gpos.dir/src/common/CStackDescriptor.cpp.o -MF libgpos/CMakeFiles/gpos.dir/src/common/CStackDescriptor.cpp.o.d -o libgpos/CMakeFiles/gpos.dir/src/common/CStackDescriptor.cpp.o -c ../libgpos/src/common/CStackDescriptor.cpp
In file included from ../libgpos/include/gpos/types.h:28:0,
from ../libgpos/include/gpos/utils.h:18,
from ../libgpos/src/common/CStackDescriptor.cpp:12:
../libgpos/src/common/CStackDescriptor.cpp: In member function ‘void gpos::CStackDescriptor::BackTrace(gpos::ULONG)’:
../libgpos/include/gpos/assert.h:47:67: error: size of array ‘assert_array’ is negative
#define GPOS_CPL_ASSERT(x) extern int assert_array[ (x) ? 1 : -1 ]
^
../libgpos/src/common/CStackDescriptor.cpp:167:2: note: in expansion of macro ‘GPOS_CPL_ASSERT’
GPOS_CPL_ASSERT(!"Backtrace is not supported for this platform");
^~~~~~~~~~~~~~~
../libgpos/include/gpos/assert.h:47:40: warning: unused variable ‘gpos::assert_array’ [-Wunused-variable]
#define GPOS_CPL_ASSERT(x) extern int assert_array[ (x) ? 1 : -1 ]
^
../libgpos/src/common/CStackDescriptor.cpp:167:2: note: in expansion of macro ‘GPOS_CPL_ASSERT’
GPOS_CPL_ASSERT(!"Backtrace is not supported for this platform");
from gporca.
Related Issues (20)
- make error on aarch64 with gcc 8.3.0 on archlinuxarm 64 HOT 8
- Memory leak when running JoinPlanWithRedistribute.mdp in debug mode
- Incorrect join partition elimination HOT 3
- Long plan generation utilising all available memory HOT 1
- make error on solaris HOT 3
- GPORCA doesn't support aarch64 platform.
- can orca apply to innodb?
- gporca occurs exception when using statistic from numeric(30, 8) column to optimize plan
- clang-format in Allman style always indents the contents of extern "C" blocks in C headers
- no <dxl:DistrOpfamilies> tag in gporca/server/dxl.xsd
- CHistogram should keep track of row count (cardinality)
- Orca optimizer single-threaded vs. multi-threaded HOT 3
- why COptCtxt to tls
- [question] why use `virtual` instead of `override`
- Delegating query optimization task to Orca HOT 1
- Orca - how to use
- Is there any formal grammar for the definition of query/plan?
- Should consider startup cost of inner table in NLJ? HOT 1
- Is a bug of CExpression.cpp:505?
- Incorrect result about group by SQL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gporca.