GithubHelp home page GithubHelp logo

Comments (3)

atomberg avatar atomberg commented on May 30, 2024

Hi joy369,

This warning message happens because of an error on line 309 of utils/sw_models/thot_pbs_gen_batch_sw_model.sh script. It can be removed by fixing this file as follows:

309: -  log_ext=`echo $file | $AWK '{print substr($1,length($1)-3)==".log"}'`
309: +  log_ext=`echo $file | $AWK '{print (substr($1,length($1)-3)==".log")}'` 

You should replace the version without the parentheses (top line) with the one with the parentheses around substr (bottom line). Rerunning make should copy this file to /usr/local/bin/thot_pbs_gen_batch_sw_model and the warning messages should disappear.

Let me know if it worked for you,
Cheers.

from thot.

daormar avatar daormar commented on May 30, 2024

Hi,
first of all, thanks very much to atomberg for pointing out to the exact cause of the problem and proposing a solution. I think it is a portability issue related to awk, since I have never found the errors reported by joy369 when using the tool across different platforms.

I have added a patch to solve the problem permanently. It is necessary to execute git pull and reinstall the package. It would be great if you can confirm that now everything works correctly.

Regards.

from thot.

joy369 avatar joy369 commented on May 30, 2024

Hi again,

Thank both of you a lot, It works perfectly now.
I think it might be related to the platform I used is MAC OS sierra.
At first I try to assign AWK = gawk, and the error seem to be fixed.
Then I try the method that @atomberg mentioned and it also can solve this problem.
Thank @daormar for upgrading a new version.

from thot.

Related Issues (10)

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.