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

[Bug] build icu failed on mac (master branch) #110

Open
lucky-chen opened this issue Jun 13, 2019 · 9 comments
Open

[Bug] build icu failed on mac (master branch) #110

lucky-chen opened this issue Jun 13, 2019 · 9 comments

Comments

@lucky-chen
Copy link

lucky-chen commented Jun 13, 2019

Bug

ld: archive has no table of contents file 'uconvmsg/libuconvmsg.a' for architecture x86_64

detail

 uconvmsg/uconvmsg_dat.S
pkgdata: ar r -c uconvmsg/libuconvmsg.a uconvmsg/uconvmsg_dat.o
/opt/local/bin/ranlib: object: uconvmsg/libuconvmsg.a(uconvmsg_dat.o) malformed object (unknown load command 1)
ar: internal ranlib command failed
-- return status = 256
Error generating library file. Failed command: ar r -c uconvmsg/libuconvmsg.a uconvmsg/uconvmsg_dat.o
Error generating assembly code for data.
config.status: creating extra/uconv/uconv.1
clang++ --std=c++11 -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long  -Qunused-arguments -Wno-parentheses-equality   -o ../../bin/uconv uconv.o uwmsg.o -L../../lib -licui18n -L../../lib -licuuc -L../../stubdata -licudata -lpthread -lm   uconvmsg/libuconvmsg.a

ld: archive has no table of contents file 'uconvmsg/libuconvmsg.a' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Environment info

ndk: r17c
branch:master (fork today)
jsc:jsc-android@241213.2.0
macos:10.14 (18A391)

Library version: x.x.x

Steps To Reproduce

on mac, follow doc

  1. clone master
  2. set env
  3. npm download
  4. npm run start
@lucky-chen
Copy link
Author

need help, blocked by this issue

@Kudo
Copy link
Member

Kudo commented Jun 25, 2019

@lucky-chen Will this help? https://stackoverflow.com/a/53569790

@lucky-chen
Copy link
Author

@Kudo Thanks Reply,still not work. and i see log

Running ./configure  --prefix=xxx/jsc-android-buildscripts/build/target/icu/host/prebuilts CFLAGS=-Os CXXFLAGS=--std=c++11 --disable-tests --disable-samples --disable-layout --disable-layoutex for Linux using the clang or else GNU C++ compiler

may be compile-toochain's problem? should be ndk-tool-chain?

@Kudo
Copy link
Member

Kudo commented Jun 27, 2019

Yes, it should be environment problem for sure.
The thing is that I always build by mac 10.14, so to confirm it.

Could your further check if /opt/local/bin/ranlib existed in your environment?

@lucky-chen
Copy link
Author

@Kudo exist . both file and $PATH (~/.zshrc)

@Kudo
Copy link
Member

Kudo commented Jun 27, 2019

How about temporarily remove it from $PATH?
Supposedly it should use cross compiler in NDK to build, not the system toolchain.

@lucky-chen
Copy link
Author

@Kudo still not work. where the code position which check the env to use ndk or system toolchain (for build icu), so i can check my env by code

@bunnyblueair
Copy link

bunnyblueair commented Jul 3, 2019

solved by brew uninstall binutils,but new problem found

In file included from ../../Source/WTF/wtf/text/WTFString.h:31:
../../Source/WTF/wtf/text/StringImpl.h:26:10: fatal error: 'unicode/ustring.h' file not found
#include <unicode/ustring.h>

icu may be find error

@bunnyblueair
Copy link

solved by brew uninstall binutils,but new problem found

In file included from ../../Source/WTF/wtf/text/WTFString.h:31:
../../Source/WTF/wtf/text/StringImpl.h:26:10: fatal error: 'unicode/ustring.h' file not found
#include <unicode/ustring.h>

icu may be find error

update, build success , maybe src dowload error, i download https://s3-us-west-2.amazonaws.com/archives.webkit.org/WebKit-SVN-source.tar.bz2 and co

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

No branches or pull requests

3 participants