Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libmbfl failed to build #4433

Closed
kevinxucs opened this issue Dec 12, 2014 · 4 comments
Closed

libmbfl failed to build #4433

kevinxucs opened this issue Dec 12, 2014 · 4 comments
Labels

Comments

@kevinxucs
Copy link
Contributor

On latest master, HHVM failed to build (on Ubuntu 14.04) because of one of the third party library libmbfl fails.

[  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
/p/hhvm/third-party/libmbfl/mbfl/mbfilter.c: In function 'is_fullwidth':
/p/hhvm/third-party/libmbfl/mbfl/mbfilter.c:1757:10: error: 'mbfl_eaw_table' undeclared (first use in this function)
  if (c < mbfl_eaw_table[0].begin) {
          ^
/p/hhvm/third-party/libmbfl/mbfl/mbfilter.c:1757:10: note: each undeclared identifier is repo

So it turns out, after cmake . is run, all the content of the third-party/libmbfl/mbfl/eaw_table.h is erased, which is the cause of the compilation error.

@Majkl578
Copy link
Contributor

I can confirm this, master was currently unbuildable, after git pull. But I was able to work around this by cleaning the tree, removing /third-party and recursively updating git submodules.

/build/hhvm/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[3]: *** [third-party/libmbfl/mbfl/CMakeFiles/mbfl.dir/mbfilter.c.o] Error 1
make[2]: *** [third-party/libmbfl/mbfl/CMakeFiles/mbfl.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

@paulbiss paulbiss added the build label Dec 12, 2014
@kevinxucs
Copy link
Contributor Author

btw, the workaround for me is after running cmake, go to third-party, run git checkout -- .

@kevinxucs
Copy link
Contributor Author

my problem was that awk command was linked to mawk, install gawk fixes the problem

@Majkl578
Copy link
Contributor

This should be fixed by hhvm/hhvm-third-party@d53dc7a, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants