Giter Site home page Giter Site logo

build fails about deckard HOT 6 OPEN

skyhover avatar skyhover commented on June 18, 2024
build fails

from deckard.

Comments (6)

sils avatar sils commented on June 18, 2024

Here;s a fix for you, you need to explicitly use python2 since python3 is now getting default on mre and more systems:

diff --git a/src/ptgen/gcc/mainc.py b/src/ptgen/gcc/mainc.py
index 9226bba..fdcf253 100755
--- a/src/ptgen/gcc/mainc.py
+++ b/src/ptgen/gcc/mainc.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python2

 #
 # 

from deckard.

sils avatar sils commented on June 18, 2024

this must also be applied to other python files of course

from deckard.

tomgu1991 avatar tomgu1991 commented on June 18, 2024

Hi,
I met the same problem. But I found this,
#2
Currently, it works fine on my Ubuntu 15.04.

from deckard.

skyhover avatar skyhover commented on June 18, 2024

Thanks for the fix suggestion for the issue with python 3!

from deckard.

FroilanYue avatar FroilanYue commented on June 18, 2024

While installing on windows, use Cygwin instead of MinGW(-64).
And install packages:

  • Bison,
  • Flex,
  • gcc-core,
  • gcc-g++.
  • Python 2

Hope helpful for this issue.

from deckard.

Lawliar avatar Lawliar commented on June 18, 2024

Hi all,
I met exactly the same problem as I was running build.sh in src/main/, in version 1.2

rm -f *.o cvecgen jvecgen cbugfilters jbugfilters out2html phpvecgen phpbugfilters out2xml cParseTreeMain jParseTreeMain phpParseTreeMain
g++ -I../include -I../vgen/treeTra -o ptreeC.o -O3 -c -DCLANG ptree.cc
make: *** No rule to make target ../ptgen/gcc/gccptgen.a', needed by cvecgen'. Stop.
Error: main make failed. Exit.

And I took all the fixes mentioned above,but it still wouldn't work(Install Bison,Flex and so on, specify python2 in/src/ptgen/gcc/mainc.py ).
My Ubuntu version is ubuntu 14.04 LTS, any suggestion with this?

from deckard.

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.