Skip to content

Fail to build master on Mac #9924

@yanshay

Description

@yanshay

I am able to build 3.6.1 integration branch on my my mac, but when I try to build master it fails.

I have rust installed which I know is required for master to build.

along the build I see warning about missing cxx.h:

  cargo:warning=/Users/username/OpenSourceProj/forked/fish-shell/fish-rust/../src/env.h:16:10: fatal error: 'cxx.h' file not found
  cargo:warning=#include "cxx.h"
  cargo:warning=         ^~~~~~~
  exit status: 0

And at the end of the build I get the following errors:

  --- stderr
  Undefined symbols for architecture x86_64:
    "_gettext", referenced from:
        _main in gettext-test-0-759087.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  ld: warning: dylib (/usr/local/lib//libintl.dylib) was built for newer macOS version (11.0) than being linked (10.10)
  ld: warning: dylib (/usr/local/lib//libgettextlib.dylib) was built for newer macOS version (11.0) than being linked (10.10)
  Undefined symbols for architecture x86_64:
    "_gettext", referenced from:
        _main in gettext-test-4-6e7c27.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  Undefined symbols for architecture x86_64:
    "__nl_msg_cat_cntr", referenced from:
        _main in _nl_msg_cat_cntr-test-6-8c6f64.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  ld: warning: dylib (/usr/local/lib//libintl.dylib) was built for newer macOS version (11.0) than being linked (10.10)
  ld: warning: dylib (/usr/local/lib//libgettextlib.dylib) was built for newer macOS version (11.0) than being linked (10.10)
  Undefined symbols for architecture x86_64:
    "__nl_msg_cat_cntr", referenced from:
        _main in _nl_msg_cat_cntr-test-10-4de4d5.o
  ld: symbol(s) not found for architecture x86_64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

  CXX include path:
    /Users/username/OpenSourceProj/forked/fish-shell/build/Debug/cargo/build/x86_64-apple-darwin/debug/build/fish-rust-8405e192a7cae123/out/cxxbridge/include
    /Users/username/OpenSourceProj/forked/fish-shell/build/Debug/cargo/build/x86_64-apple-darwin/debug/build/fish-rust-8405e192a7cae123/out/cxxbridge/crate


  error occurred: Command "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-gdwarf-2" "-fno-omit-frame-pointer" "-m64" "-arch" "x86_64" "-I" "/Users/username/OpenSourceProj/forked/fish-shell/build/Debug/cargo/build/x86_64-apple-darwin/debug/build/fish-rust-8405e192a7cae123/out/cxxbridge/include" "-I" "/Users/username/OpenSourceProj/forked/fish-shell/build/Debug/cargo/build/x86_64-apple-darwin/debug/build/fish-rust-8405e192a7cae123/out/cxxbridge/crate" "-I" "/Users/username/OpenSourceProj/forked/fish-shell/fish-rust/../src/" "-I" "/Users/username/OpenSourceProj/forked/fish-shell/build" "-I" "/Users/username/OpenSourceProj/forked/fish-shell/build/cargo/build/x86_64-apple-darwin/cxxbridge/rust/" "-Wall" "-Wextra" "-Wno-comment" "-std=c++11" "-o" "/Users/username/OpenSourceProj/forked/fish-shell/build/Debug/cargo/build/x86_64-apple-darwin/debug/build/fish-rust-8405e192a7cae123/out/7bdb9fe4de4d9a53-shared.rs.o" "-c" "/Users/username/OpenSourceProj/forked/fish-shell/build/Debug/cargo/build/x86_64-apple-darwin/debug/build/fish-rust-8405e192a7cae123/out/cxxbridge/sources/fish-rust/src/builtins/shared.rs.cc" with args "c++" did not execute successfully (status code exit status: 1).



** BUILD FAILED **


The following build commands failed:
        PhaseScriptExecution Generate\ CMakeFiles/_cargo-build_fish-rust /Users/username/OpenSourceProj/forked/fish-shell/build/build/fish.build/Debug/_cargo-build_fish-rust.build/Script-9F4C23F88B708F208E116C9F.sh (in target '_cargo-build_fish-rust' from project 'fish')
(1 failure)

Any idea how to resolve that? I tried installing all packages described in the build instructions.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions