vnmakarov / yaep

Yet Another Earley Parser
Other
137 stars 14 forks source link

Installing on Linux Fails After Compilation with Clang #9

Closed sanssecours closed 6 years ago

sanssecours commented 6 years ago

Steps to Reproduce the Problem

  1. Clone the Repository

    git clone git clone https://github.com/vnmakarov/yaep.git
  2. Compile and Install YAEP using Clang

    ./configure
    cd src
    make
    make test
    sudo make install

Expected Result

The last command should work without problems.

Actual Result

The last command fails printing the following output:

bison -y ./sgramm.y
mv y.tab.c sgramm.c
clang -c -g  -Ofast -DHAVE_CONFIG_H -I.. -I. -I. -DNDEBUG -fPIC -o C/yaep.o ../src/../src/yaep.c
make: clang: Command not found
make: *** [C/yaep.o] Error 127

System Information

OS: Ubuntu Trusty Tahr Compiler: Clang 5.0

Additional Information

vnmakarov commented 6 years ago

It looks like clang is not installed on the build machine.

sanssecours commented 6 years ago

Thank you for the quick response.

It looks like clang is not installed on the build machine.

If that is the case, how could Travis translate YAEP using clang++?

sanssecours commented 6 years ago

I think I found the problem. It seems like Travis changes PATH for super users. Thank you for your help.