GithubHelp home page GithubHelp logo

Comments (14)

jwatzman avatar jwatzman commented on May 15, 2024

@JoelMarcey and I were just looking at another issue with eaw_table.h -- the cmake build does regenerate it, except it wouldn't do it properly if you didn't have gawk installed. Joel is fixing that (require gawk), we should probably remove this file altogether?

from hhvm-third-party.

fredemmott avatar fredemmott commented on May 15, 2024
fred@hhvm-oss-bench:~$ gawk --version | head -n 1
GNU Awk 4.0.1
fred@hhvm-oss-bench:~$ awk --version | head -n 1
GNU Awk 4.0.1

(on Ubuntu 14.04)

from hhvm-third-party.

JoelMarcey avatar JoelMarcey commented on May 15, 2024

Does the fix not work then, @fredemmott ?

from hhvm-third-party.

fredemmott avatar fredemmott commented on May 15, 2024

Trying now - however, it sounded like it was expected to work with gawk previously - it didn't.

from hhvm-third-party.

fredemmott avatar fredemmott commented on May 15, 2024

Still broken - make -C third-party/libmbfl clean; make

re-running 'cmake' fixes this - but it should be built by 'make' if 'make clean' removes it.

from hhvm-third-party.

JoelMarcey avatar JoelMarcey commented on May 15, 2024

@fredemmott I don't have an Ubuntu machine anymore. Is there any output you can share?

from hhvm-third-party.

fredemmott avatar fredemmott commented on May 15, 2024
fred@hhvm-oss-bench:~/hhvm$ make -C third-party/libmbfl clean
make: Entering directory `/home/fred/hhvm/third-party/libmbfl'
make[1]: Entering directory `/home/fred/hhvm'
make[2]: Entering directory `/home/fred/hhvm'
make[2]: Leaving directory `/home/fred/hhvm'
make[1]: Leaving directory `/home/fred/hhvm'
make: Leaving directory `/home/fred/hhvm/third-party/libmbfl'
fred@hhvm-oss-bench:~/hhvm$ make
[  2%] Built target pcre
[  2%] Built target pcre_jit_test
[  2%] Built target pcrecpp
[  2%] Built target pcre_scanner_unittest
[  2%] Built target pcre_stringpiece_unittest
[  2%] Built target pcrecpp_unittest
[  2%] Built target pcreposix
[  2%] Built target pcregrep
[  3%] Built target pcretest
[  3%] Built target fastlz
[  3%] Built target afdt
[  3%] Building C object third-party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfilter.c.o
/home/fred/hhvm/third-party/libmbfl/mbfl/mbfilter.c:107:23: fatal error: eaw_table.h: No such file or directory
 #include "eaw_table.h"
                       ^
compilation terminated.
make[2]: *** [third-party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfilter.c.o] Error 1
make[1]: *** [third-party/libmbfl/mbfl/CMakeFiles/mbfl.dir/all] Error 2
make: *** [all] Error 2

from hhvm-third-party.

jwatzman avatar jwatzman commented on May 15, 2024

Oh, I see, the code to generate the file is run as part of the cmake configuration, but it's not part of an actual build rule. I think we can just remove this line which adds it to make clean, right? https://github.com/hhvm/hhvm-third-party/blob/master/libmbfl/mbfl/CMakeLists.txt#L7 Or should we go thru the work of making it an actual build target?

from hhvm-third-party.

fredemmott avatar fredemmott commented on May 15, 2024

lines 9-13 feel like they should be a build target that the rest depends on in an ideal world.

from hhvm-third-party.

kevinxucs avatar kevinxucs commented on May 15, 2024

(On Ubuntu 14.04)

After I run cmake (on a clean git clone), it generates a empty eaw_table.h, and the build fails.

When I try to manually run the generation command

awk -v TABLE_NAME=mbfl_eaw_table -f mk_eaw_tbl.awk EastAsianWidth.txt > eaw_table.h

It has following errors:

$ awk -v TABLE_NAME=mbfl_eaw_table -f mk_eaw_tbl.awk EastAsianWidth.txt > eaw_table.h
awk: mk_eaw_tbl.awk: line 83: function strtonum never defined
awk: mk_eaw_tbl.awk: line 83: function strtonum never defined
awk: mk_eaw_tbl.awk: line 83: function strtonum never defined

from hhvm-third-party.

JoelMarcey avatar JoelMarcey commented on May 15, 2024

@kevinxucs We need to look into this. But when manually running the generation command, can you try using gawk instead of awk? You may get the same error, but I am curious.

from hhvm-third-party.

kevinxucs avatar kevinxucs commented on May 15, 2024

@JoelMarcey Ah... I found the problem, awk was linked to mawk, after I installed and switched to gawk it works fine.

from hhvm-third-party.

JoelMarcey avatar JoelMarcey commented on May 15, 2024

@fredemmott @jwatzman The older mbfl/CMakeLists.txt before the libmbfl update did not have the clean line in it. And it also only generated the file if EastAsianWidth.txt wasn't available. But we had included that file in the repo along with eaw_table.h.

https://github.com/hhvm/hhvm-third-party/blob/1bb8025d4fc52188454c18b9df6a764dedd8bcb9/libmbfl/mbfl/CMakeLists.txt

Bottom line I think we can just remove the clean line and we might be good.

Agree?

from hhvm-third-party.

jwatzman avatar jwatzman commented on May 15, 2024

It depends on how you see this eaw_table.h as part of the build. Is it an artifact of configuration (i.e., cmake), like the actual makefiles, in which case we should just remove the clean line. Or is it a build artifact, like object files, in which case we should make it a real build target?

I don't feel strongly either way. It probably doesn't really matter. Removing the clean line is the easiest I think.

(Its historical status isn't terribly relevant, since the existing makefile is pretty clearly broken anyways.)

from hhvm-third-party.

Related Issues (16)

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.