Giter Club home page Giter Club logo

Comments (7)

vraghavan78 avatar vraghavan78 commented on August 17, 2024

@d @oarap can u help here

from gporca.

hlinnaka avatar hlinnaka commented on August 17, 2024

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.

davecramer avatar davecramer commented on August 17, 2024

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.

dhanashreek89 avatar dhanashreek89 commented on August 17, 2024

@VinnyPembe
Could you please provide the contents of CMakeSystem.cmake file from your gporca/build/CMakeFiles dir ?

from gporca.

khannaekta avatar khannaekta commented on August 17, 2024

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 under gporca/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.

vraghavan78 avatar vraghavan78 commented on August 17, 2024

Please reopen issue if you need more help

from gporca.

wormwang avatar wormwang commented on August 17, 2024

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)

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.