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

Undefined symbols - Servo build (Mac OS X 10.11.1) #64

Closed
HarryLovesCode opened this issue Nov 16, 2015 · 3 comments
Closed

Undefined symbols - Servo build (Mac OS X 10.11.1) #64

HarryLovesCode opened this issue Nov 16, 2015 · 3 comments

Comments

@HarryLovesCode
Copy link

Attempting to build Servo on Mac OS X 10.11.1. Mach fails to build when it reaches the mozjs_sys crate.

Possibly similar to the second part of this document: issue?

Mach output:

--- stderr
makefile.cargo:58: Extraneous text after `else' directive
/Users/harrisongould/Documents/servo/.cargo/git/checkouts/mozjs-06d7f04b6dbb8a8e/master/mozjs/js/src/configure: line 1665: /Users/harrisongould/Documents/servo/.cargo/git/checkouts/mozjs-06d7f04b6dbb8a8e/master/mozjs/js/src/../../python/mozbuild/mozbuild/milestone.py: Permission denied
/Users/harrisongould/Documents/servo/.cargo/git/checkouts/mozjs-06d7f04b6dbb8a8e/master/mozjs/js/src/configure: line 1666: /Users/harrisongould/Documents/servo/.cargo/git/checkouts/mozjs-06d7f04b6dbb8a8e/master/mozjs/js/src/../../python/mozbuild/mozbuild/milestone.py: Permission denied
/Users/harrisongould/Documents/servo/.cargo/git/checkouts/mozjs-06d7f04b6dbb8a8e/master/mozjs/js/src/configure: line 1667: /Users/harrisongould/Documents/servo/.cargo/git/checkouts/mozjs-06d7f04b6dbb8a8e/master/mozjs/js/src/../../python/mozbuild/mozbuild/milestone.py: Permission denied
Reticulating splines...
Finished reading 34 moz.build files in 0.05s
Processed into 108 build config descriptors in 0.03s
Backend executed in 0.18s
80 total backend files; 0 created; 0 updated; 80 unchanged; 0 deleted; 10 -> 20 Makefile
Total wall time: 0.30s; CPU time: 0.18s; Efficiency: 59%; Untracked: 0.05s
make[5]: warning: -jN forced in submake: disabling jobserver mode.
ld: warning: ld: warning: ld: warning: ld: warning: ignoring file ../../lib/libicutu.a, file was built for archive which is not the architecture being linked (x86_64): ../../lib/libicutu.aignoring file ../../lib/libicuuc.a, file was built for archive which is not the architecture being linked (x86_64): ../../lib/libicuuc.aignoring file ../../lib/libicui18n.a, file was built for archive which is not the architecture being linked (x86_64): ../../lib/libicui18n.aignoring file ../../stubdata/libicudata.a, file was built for archive which is not the architecture being linked (x86_64): ../../stubdata/libicudata.a



Undefined symbols for architecture x86_64:
  "_T_FileStream_close", referenced from:
      _readFile in makeconv.o
  "_T_FileStream_open", referenced from:
      _readFile in makeconv.o
  "_T_FileStream_readLine", referenced from:
      _readFile in makeconv.o
  "_findBasename", referenced from:
      _main in makeconv.o
  "_getLongPathname", referenced from:
      _main in makeconv.o
  "_u_errorName_52", referenced from:
      _main in makeconv.o
  "_u_getDataDirectory_52", referenced from:
      _main in makeconv.o
  "_u_getVersion_52", referenced from:
      _main in makeconv.o
  "_u_parseArgs", referenced from:
      _main in makeconv.o
  "_u_skipWhitespace", referenced from:
      _readFile in makeconv.o
  "_u_strFromUTF32_52", referenced from:
      _generateToUTable in gencnvex.o
  "_ucm_checkBaseExt", referenced from:
      _main in makeconv.o
  "_ucm_checkValidity", referenced from:
      _main in makeconv.o
  "_ucm_close", referenced from:
      _main in makeconv.o
  "_ucm_countChars", referenced from:
      _main in makeconv.o
      MBCSIsValid(NewConverter*, unsigned char const*, int) in genmbcs.o
  "_ucm_findFallback", referenced from:
      MBCSAddToUnicode(MBCSData*, unsigned char const*, int, int, signed char) in genmbcs.o
  "_ucm_moveMappings", referenced from:
      _main in makeconv.o
  "_ucm_open", referenced from:
      _readFile in makeconv.o
  "_ucm_optimizeStates", referenced from:
      MBCSAddTable(NewConverter*, UCMTable*, UConverterStaticData*) in genmbcs.o
  "_ucm_parseBytes", referenced from:
      _readFile in makeconv.o
  "_ucm_parseHeaderLine", referenced from:
      _readFile in makeconv.o
  "_ucm_printMapping", referenced from:
      _CnvExtAddTable in gencnvex.o
      _generateToUTable in gencnvex.o
      _generateFromUTable in gencnvex.o
  "_ucm_processStates", referenced from:
      _readFile in makeconv.o
  "_ucm_readTable", referenced from:
      _readFile in makeconv.o
  "_ucm_sortTable", referenced from:
      _main in makeconv.o
  "_udata_create", referenced from:
      _main in makeconv.o
  "_udata_finish", referenced from:
      _main in makeconv.o
  "_udata_writeBlock", referenced from:
      _main in makeconv.o
      MBCSWrite(NewConverter*, UConverterStaticData const*, UNewDataMemory*, int) in genmbcs.o
      _CnvExtWrite in gencnvex.o
  "_uprv_free_52", referenced from:
      MBCSClose(NewConverter*) in genmbcs.o
      _CnvExtClose in gencnvex.o
  "_uprv_isInvariantString_52", referenced from:
      _main in makeconv.o
  "_uprv_malloc_52", referenced from:
      _MBCSOpen in genmbcs.o
      MBCSAddTable(NewConverter*, UCMTable*, UConverterStaticData*) in genmbcs.o
      _CnvExtOpen in gencnvex.o
  "_uprv_stricmp_52", referenced from:
      _main in makeconv.o
  "_utm_alloc", referenced from:
      _CnvExtAddTable in gencnvex.o
      _CnvExtWrite in gencnvex.o
  "_utm_allocN", referenced from:
      _generateToUTable in gencnvex.o
      _getFromUBytesValue in gencnvex.o
      _generateFromUTable in gencnvex.o
  "_utm_close", referenced from:
      _CnvExtClose in gencnvex.o
  "_utm_countItems", referenced from:
      _CnvExtAddTable in gencnvex.o
      _CnvExtWrite in gencnvex.o
      _generateToUTable in gencnvex.o
      _getFromUBytesValue in gencnvex.o
      _generateFromUTable in gencnvex.o
  "_utm_getStart", referenced from:
      _CnvExtWrite in gencnvex.o
  "_utm_open", referenced from:
      _CnvExtAddTable in gencnvex.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[7]: *** [../../bin/makeconv] Error 1
make[6]: *** [all-recursive] Error 2
make[5]: *** [all-recursive] Error 2
make[4]: *** [buildicu] Error 2
make[3]: *** [config/external/icu/target] Error 2
make[2]: *** [compile] Error 2
make[1]: *** [default] Error 2
make: *** [all] Error 2
thread '<main>' panicked at 'assertion failed: result.success()', /Users/harrisongould/Documents/servo/.cargo/git/checkouts/mozjs-06d7f04b6dbb8a8e/master/build.rs:17
@jdm
Copy link
Member

jdm commented Nov 16, 2015

Looks like ld: warning: ld: warning: ld: warning: ld: warning: ignoring file ../../lib/libicutu.a, file was built for archive which is not the architecture being linked (x86_64): ../../lib/libicutu.aignoring file ../../lib/libicuuc.a, file was built for archive which is not the architecture being linked (x86_64): ../../lib/libicuuc.aignoring file ../../lib/libicui18n.a, file was built for archive which is not the architecture being linked (x86_64): ../../lib/libicui18n.aignoring file ../../stubdata/libicudata.a, file was built for archive which is not the architecture being linked (x86_64): ../../stubdata/libicudata.a is the culprit. I assume this is a 32 bit build?

@HarryLovesCode
Copy link
Author

The machine I'm attempting to build Servo on is 64 bit so I'm unsure why it would be attempting to build for a 32 bit target, but I guess it's possible.

This is an earlier piece of Mach's output for this crate:

checking host system type... x86_64-apple-darwin15.0.0
checking target system type... x86_64-apple-darwin15.0.0
checking build system type... x86_64-apple-darwin15.0.0

@HarryLovesCode
Copy link
Author

I'm closing this because I can't reproduce this issue

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

2 participants