Giter Club home page Giter Club logo

Comments (4)

akimd avatar akimd commented on July 16, 2024

Hi!
This is weird, since "LEX src/scan-code.c" was run before. Could you please run make V=1, so that we get more details? And ls src in your build dir.
TIA!

from bison.

Hannah1746 avatar Hannah1746 commented on July 16, 2024

So if I run make V=1:

/bin/bash ./build-aux/ylwrap src/scan-code.l .c src/scan-code.c -- :  
/bin/bash ./build-aux/ylwrap src/scan-gram.l .c src/scan-gram.c -- :  
/bin/bash ./build-aux/ylwrap src/scan-skel.l .c src/scan-skel.c -- :  
/home/krablab/Documents/apps/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -DEXEEXT=\"\"   -I. -I./lib -I. -I./lib -DINSTALLDIR=\"/usr/local/bin\" -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/krablab/Documents/apps/anaconda3/include -I/home/krablab/Documents/apps/anaconda3/include   -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/krablab/Documents/apps/anaconda3/include -MT src/bison-scan-code-c.o -MD -MP -MF src/.deps/bison-scan-code-c.Tpo -c -o src/bison-scan-code-c.o `test -f 'src/scan-code-c.c' || echo './'`src/scan-code-c.c
src/scan-code-c.c:3:10: fatal error: src/scan-code.c: No such file or directory
 #include "src/scan-code.c"
          ^~~~~~~~~~~~~~~~~
compilation terminated.

and when I run ls src:

AnnotationList.c          bison-print-xml.o  InadequacyList.c    reduce.c
AnnotationList.h          bison-reader.o     InadequacyList.h    reduce.h
assoc.c                   bison-reduce.o     lalr.c              relation.c
assoc.h                   bison-relation.o   lalr.h              relation.h
bison-AnnotationList.o    bison-Sbitset.o    local.mk            Sbitset.c
bison-assoc.o             closure.c          location.c          Sbitset.h
bison-closure.o           closure.h          location.h          scan-code-c.c
bison-complain.o          complain.c         lr0.c               scan-code.h
bison-conflicts.o         complain.h         lr0.h               scan-code.l
bison-counterexample.o    conflicts.c        lssi.c              scan-gram-c.c
bison-derivation.o        conflicts.h        lssi.h              scan-gram.h
bison-derives.o           counterexample.c   main.c              scan-gram.l
bison-files.o             counterexample.h   muscle-tab.c        scan-skel-c.c
bison-fixits.o            derivation.c       muscle-tab.h        scan-skel.h
bison-getargs.o           derivation.h       named-ref.c         scan-skel.l
bison-glyphs.o            derives.c          named-ref.h         state.c
bison-gram.o              derives.h          nullable.c          state.h
bison-graphviz.o          files.c            nullable.h          state-item.c
bison-ielr.o              files.h            output.c            state-item.h
bison-InadequacyList.o    fixits.c           output.h            symlist.c
bison-lalr.o              fixits.h           parse-gram.c        symlist.h
bison-location.o          flex-scanner.h     parse-gram.h        symtab.c
bison-lr0.o               getargs.c          parse-gram.y        symtab.h
bison-lssi.o              getargs.h          parse-simulation.c  system.h
bison-main.o              glyphs.c           parse-simulation.h  tables.c
bison-muscle-tab.o        glyphs.h           print.c             tables.h
bison-named-ref.o         gram.c             print-graph.c       uniqstr.c
bison-nullable.o          gram.h             print-graph.h       uniqstr.h
bison-output.o            graphviz.c         print.h             yacc
bison-parse-gram.o        graphviz.h         print-xml.c         yacc.in
bison-parse-simulation.o  i18n-strings.c     print-xml.h
bison-print-graph.o       ielr.c             reader.c
bison-print.o             ielr.h             reader.h

Its looking like scan-code.c is not in the src but I directly downloaded it from this github using git clone.

from bison.

akimd avatar akimd commented on July 16, 2024

Your problem is:

/bin/bash ./build-aux/ylwrap src/scan-code.l .c src/scan-code.c -- :  
/bin/bash ./build-aux/ylwrap src/scan-gram.l .c src/scan-gram.c -- :  
/bin/bash ./build-aux/ylwrap src/scan-skel.l .c src/scan-skel.c -- :  

The bad parts are .c and :. On my machine, I have:

/bin/sh /Users/akim/src/gnu/bison/build-aux/ylwrap /Users/akim/src/gnu/bison/src/scan-gram.l lex.yy.c src/scan-gram.c -- flex  

So I guess configure did not find flex. Flex is not needed when you start from a tarball, but it is required if you start from git. Install it, and reconfigure.

Cheers!

from bison.

Hannah1746 avatar Hannah1746 commented on July 16, 2024

Worked great. Thank you!!

from bison.

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.