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

"file was built for archive which is not the architecture being linked (x86_64)" #107

Closed
cschwenz opened this issue Nov 27, 2016 · 2 comments

Comments

@cschwenz
Copy link

cschwenz commented Nov 27, 2016

Per tpoechtrager/osxcross#11 and https://stackoverflow.com/questions/18500923/issue-with-archive-which-is-not-the-architecture-being-linked-x86-64-in-c , it would appear rakudobrew isn't doing the correct thing on macOS.

Below is the full output of rakudobrew build moar 2016.11. Current OS is macOS 10.12.1 (Sierra).

cal$ rakudobrew build moar 2016.11
HEAD is now at f66f8be... [release] bump VERSION to 2016.11
ATTENTION: no --prefix supplied, building and installing to /Users/cal/.rakudobrew/moar-2016.11/install
sh: /Users/cal/.rakudobrew/moar-2016.11/install/bin/nqp-m: No such file or directory
HEAD is now at e8433d7... Temporarily fudge tests for release
Building NQP ...
/Users/cal/perl5/perlbrew/perls/perl-5.24.0/bin/perl Configure.pl --prefix=/Users/cal/.rakudobrew/moar-2016.11/install --backends=moar --make-install --git-protocol=https --git-reference=/Users/cal/.rakudobrew/bin/../git_reference --gen-moar

Creating tools/build/install-jvm-runner.pl ...
Can't exec "/Users/cal/.rakudobrew/moar-2016.11/install/bin/moar": No such file or directory at tools/lib/NQP/Configure.pm line 284.
HEAD is now at 81fd0ac... Missed a Changelog entry.

Configuring and building MoarVM ...
/Users/cal/perl5/perlbrew/perls/perl-5.24.0/bin/perl Configure.pl --optimize --prefix=/Users/cal/.rakudobrew/moar-2016.11/install --make-install
Welcome to MoarVM!

Updating submodules .................................... OK
Configuring native build environment ................... OK
    trying to compile a simple C program ............... YES
    probing whether your compiler thinks that it is gcc  YES
    probing how your compiler does static inline ....... static __inline__
    your CPU can read unaligned values for all of int32 int64 num64
    probing the size of pointers ....................... 8
JIT isn't supported on darwin-thread-multi-ld-2level yet.
    probing C type support for: _Bool, bool ............ YES: _Bool,bool
    probing computed goto support ...................... YES
    probing pthread_yield support ...................... NO

        make: make
     compile: clang -fno-omit-frame-pointer -fno-optimize-sibling-calls -O3 -DNDEBUG -Wno-logical-op-parentheses -D_DARWIN_USE_64_BIT_INODE=1
    includes:  -I3rdparty/libuv/include -I3rdparty/libuv/src -I3rdparty/libatomic_ops/src -I3rdparty/libtommath -I3rdparty/dynasm -I3rdparty/dyncall/dynload -I3rdparty/dyncall/dyncall -I3rdparty/dyncall/dyncallback
        link: clang  -O3 -DNDEBUG -Wl,-rpath,"/@libdir@" -Wl,-rpath,"@prefix@/share/perl6/site/lib"
        libs: -lpthread

  byte order: little endian

Configuring 3rdparty libs .............................. OK

  3rdparty: 3rdparty/dyncall/dyncall/libdyncall_s.a
            3rdparty/dyncall/dyncallback/libdyncallback_s.a
            3rdparty/dyncall/dynload/libdynload_s.a
            3rdparty/libatomic_ops/src/libatomic_ops.a
            3rdparty/libtommath/libtommath.a
            3rdparty/libuv/libuv.a
            3rdparty/sha1/libsha1.a
            3rdparty/tinymt/libtinymt.a

Generating src/gen/config.c ............................ OK
Generating src/gen/config.h ............................ OK
Generating Makefile .................................... OK
Generating tools/check.mk .............................. OK
Generating build/mk-moar-pc.pl ......................... OK

Configuration SUCCESS.

Type 'make' to build and 'make help' to see a list of
available make targets.
compiling src/main.o
compiling src/core/callsite.o
compiling src/core/args.o
compiling src/core/exceptions.o
compiling src/core/interp.o
compiling src/core/threadcontext.o
compiling src/core/compunit.o
compiling src/core/bytecode.o
compiling src/core/frame.o
compiling src/core/callstack.o
compiling src/core/validation.o
compiling src/core/bytecodedump.o
compiling src/core/threads.o
compiling src/core/ops.o
compiling src/core/hll.o
compiling src/core/loadbytecode.o
compiling src/math/num.o
compiling src/core/coerce.o
compiling src/core/dll.o
compiling src/core/ext.o
compiling src/core/nativecall.o
compiling src/core/nativecall_dyncall.o
compiling src/core/continuation.o
compiling src/core/intcache.o
compiling src/core/fixedsizealloc.o
compiling src/gen/config.o
compiling src/gc/orchestrate.o
compiling src/gc/allocation.o
compiling src/gc/worklist.o
compiling src/gc/roots.o
compiling src/gc/collect.o
compiling src/gc/gen2.o
compiling src/gc/wb.o
compiling src/gc/objectid.o
compiling src/gc/finalize.o
compiling src/io/io.o
compiling src/io/eventloop.o
compiling src/io/syncfile.o
compiling src/io/syncstream.o
compiling src/io/syncpipe.o
compiling src/io/syncsocket.o
compiling src/io/fileops.o
compiling src/io/dirops.o
compiling src/io/procops.o
compiling src/io/timers.o
compiling src/io/filewatchers.o
compiling src/io/signals.o
compiling src/io/asyncsocket.o
compiling src/io/asyncsocketudp.o
compiling src/6model/reprs.o
compiling src/6model/reprconv.o
compiling src/6model/containers.o
compiling src/6model/parametric.o
compiling src/6model/reprs/MVMString.o
compiling src/6model/reprs/MVMArray.o
compiling src/6model/reprs/MVMHash.o
compiling src/6model/reprs/MVMCFunction.o
compiling src/6model/reprs/KnowHOWREPR.o
compiling src/6model/reprs/KnowHOWAttributeREPR.o
compiling src/6model/reprs/P6str.o
compiling src/6model/reprs/P6opaque.o
compiling src/6model/reprs/MVMCode.o
compiling src/6model/reprs/MVMOSHandle.o
compiling src/6model/reprs/MVMCompUnit.o
compiling src/6model/reprs/MVMStaticFrame.o
src/6model/reprs/MVMStaticFrame.c:360:30: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
                while (c_ptr = MVM_gc_worklist_get(tc, ss->gcwl)) {
                       ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/6model/reprs/MVMStaticFrame.c:360:30: note: place parentheses around the assignment to silence this warning
                while (c_ptr = MVM_gc_worklist_get(tc, ss->gcwl)) {
                             ^
                       (                                        )
src/6model/reprs/MVMStaticFrame.c:360:30: note: use '==' to turn this assignment into an equality comparison
                while (c_ptr = MVM_gc_worklist_get(tc, ss->gcwl)) {
                             ^
                             ==
1 warning generated.
compiling src/6model/reprs/P6int.o
compiling src/6model/reprs/P6num.o
compiling src/6model/reprs/Uninstantiable.o
compiling src/6model/reprs/HashAttrStore.o
compiling src/6model/reprs/MVMThread.o
compiling src/6model/reprs/MVMIter.o
compiling src/6model/reprs/MVMContext.o
compiling src/6model/reprs/SCRef.o
compiling src/6model/reprs/Lexotic.o
compiling src/6model/reprs/MVMCallCapture.o
compiling src/6model/reprs/P6bigint.o
compiling src/6model/reprs/NFA.o
compiling src/6model/reprs/MVMException.o
compiling src/6model/reprs/MVMDLLSym.o
compiling src/6model/reprs/MVMMultiCache.o
compiling src/6model/reprs/MVMContinuation.o
compiling src/6model/reprs/NativeCall.o
compiling src/6model/reprs/CPointer.o
compiling src/6model/reprs/CStr.o
compiling src/6model/reprs/CArray.o
compiling src/6model/reprs/CStruct.o
compiling src/6model/reprs/CUnion.o
compiling src/6model/reprs/ReentrantMutex.o
compiling src/6model/reprs/ConditionVariable.o
compiling src/6model/reprs/Semaphore.o
compiling src/6model/reprs/ConcBlockingQueue.o
compiling src/6model/reprs/MVMAsyncTask.o
compiling src/6model/reprs/MVMNull.o
compiling src/6model/reprs/CPPStruct.o
compiling src/6model/reprs/NativeRef.o
compiling src/6model/reprs/MultiDimArray.o
compiling src/6model/reprs/Decoder.o
compiling src/6model/6model.o
compiling src/6model/bootstrap.o
compiling src/6model/sc.o
compiling src/6model/serialization.o
src/6model/serialization.c:1653:89: warning: format specifies type 'int' but the argument has type 'MVMint64' (aka 'long long') [-Wformat]
        fail_deserialize(tc, reader, "Cannot read a c string with negative length %d.", len);
                                                                                  ~~    ^~~
                                                                                  %lld
1 warning generated.
compiling src/mast/compiler.o
compiling src/mast/driver.o
compiling src/spesh/dump.o
compiling src/spesh/graph.o
compiling src/spesh/codegen.o
compiling src/spesh/candidate.o
compiling src/spesh/manipulate.o
compiling src/spesh/args.o
compiling src/spesh/facts.o
compiling src/spesh/optimize.o
compiling src/spesh/deopt.o
compiling src/spesh/log.o
compiling src/spesh/threshold.o
compiling src/spesh/inline.o
compiling src/spesh/osr.o
compiling src/jit/graph.o
compiling src/jit/compile.o
src/jit/compile.c:134:18: warning: format specifies type 'unsigned int' but the argument has type 'void *' [-Wformat]
                 label, code->func_ptr, code->size, ((char*)label) - ((char*)code->func_ptr),
                 ^~~~~
src/jit/compile.c:134:25: warning: format specifies type 'unsigned int' but the argument has type 'MVMJitFunc' (aka 'int (*)(struct MVMThreadContext *, struct
      MVMCompUnit *, void *)') [-Wformat]
                 label, code->func_ptr, code->size, ((char*)label) - ((char*)code->func_ptr),
                        ^~~~~~~~~~~~~~
src/jit/compile.c:134:41: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
                 label, code->func_ptr, code->size, ((char*)label) - ((char*)code->func_ptr),
                                        ^~~~~~~~~~
src/jit/compile.c:134:53: warning: format specifies type 'int' but the argument has type 'long' [-Wformat]
                 label, code->func_ptr, code->size, ((char*)label) - ((char*)code->func_ptr),
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
compiling src/jit/log.o
compiling src/strings/decode_stream.o
compiling src/strings/ascii.o
compiling src/strings/utf8.o
compiling src/strings/utf8_c8.o
compiling src/strings/nfg.o
compiling src/strings/ops.o
compiling src/strings/unicode.o
compiling src/strings/normalize.o
compiling src/strings/latin1.o
compiling src/strings/utf16.o
compiling src/strings/windows1252.o
compiling src/math/bigintops.o
compiling src/profiler/instrument.o
compiling src/profiler/log.o
compiling src/profiler/profile.o
compiling src/profiler/heapsnapshot.o
src/profiler/heapsnapshot.c:282:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
    while (c_ptr = MVM_gc_worklist_get(tc, ss->gcwl)) {
           ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/profiler/heapsnapshot.c:282:18: note: place parentheses around the assignment to silence this warning
    while (c_ptr = MVM_gc_worklist_get(tc, ss->gcwl)) {
                 ^
           (                                        )
src/profiler/heapsnapshot.c:282:18: note: use '==' to turn this assignment into an equality comparison
    while (c_ptr = MVM_gc_worklist_get(tc, ss->gcwl)) {
                 ^
                 ==
src/profiler/heapsnapshot.c:771:13: warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]
            s->references[i].description & ((1 << MVM_SNAPSHOT_REF_KIND_BITS) - 1),
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro
      'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
src/profiler/heapsnapshot.c:772:13: warning: format specifies type 'unsigned long' but the argument has type 'MVMuint64' (aka 'unsigned long long') [-Wformat]
            s->references[i].description >> MVM_SNAPSHOT_REF_KIND_BITS,
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro
      'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
src/profiler/heapsnapshot.c:773:13: warning: format specifies type 'unsigned long' but the argument has type 'MVMuint64' (aka 'unsigned long long') [-Wformat]
            s->references[i].collectable_index);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro
      'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
4 warnings generated.
compiling src/instrument/crossthreadwrite.o
compiling src/moar.o
compiling src/platform/posix/mmap.o
compiling src/platform/posix/time.o
compiling src/platform/posix/sys.o
compiling src/jit/stub.o
linking libmoar.dylib
ld: warning: ld: warning: ld: warning: ignoring file 3rdparty/libatomic_ops/src/libatomic_ops.a, file was built for archive which is not the architecture being linked (x86_64): 3rdparty/libatomic_ops/src/libatomic_ops.aignoring file 3rdparty/tinymt/libtinymt.a, file was built for archive which is not the architecture being linked (x86_64): 3rdparty/tinymt/libtinymt.aignoring file 3rdparty/sha1/libsha1.a, file was built for archive which is not the architecture being linked (x86_64): 3rdparty/sha1/libsha1.a


ld: warning: ld: warning: ignoring file 3rdparty/libtommath/libtommath.a, file was built for archive which is not the architecture being linked (x86_64): 3rdparty/libtommath/libtommath.aignoring file 3rdparty/libuv/libuv.a, file was built for archive which is not the architecture being linked (x86_64): 3rdparty/libuv/libuv.a

Undefined symbols for architecture x86_64:
  "_SHA1Final", referenced from:
      _MVM_sha1 in serialization.o
  "_SHA1Init", referenced from:
      _MVM_sha1 in serialization.o
  "_SHA1Update", referenced from:
      _MVM_sha1 in serialization.o
  "_mp_abs", referenced from:
      _MVM_bigint_abs in bigintops.o
  "_mp_add", referenced from:
      _MVM_bigint_add in bigintops.o
  "_mp_add_d", referenced from:
      _MVM_bigint_or in bigintops.o
      _MVM_bigint_xor in bigintops.o
      _MVM_bigint_and in bigintops.o
      _MVM_bigint_shl in bigintops.o
      _MVM_bigint_shr in bigintops.o
      _MVM_bigint_not in bigintops.o
      _MVM_bigint_radix in bigintops.o
      ...
  "_mp_and", referenced from:
      _MVM_bigint_and in bigintops.o
  "_mp_clamp", referenced from:
      _MVM_bigint_mp_set_uint64 in bigintops.o
      _MVM_bigint_abs in bigintops.o
      _MVM_bigint_neg in bigintops.o
      _MVM_bigint_add in bigintops.o
      _MVM_bigint_sub in bigintops.o
      _MVM_bigint_mul in bigintops.o
      _MVM_bigint_gcd in bigintops.o
      ...
  "_mp_clear", referenced from:
      _gc_free in P6bigint.o
      _gc_cleanup in P6bigint.o
      _MVM_bigint_add in bigintops.o
      _clear_temp_bigints in bigintops.o
      _MVM_bigint_sub in bigintops.o
      _MVM_bigint_mul in bigintops.o
      _MVM_bigint_lcm in bigintops.o
      ...
  "_mp_cmp", referenced from:
      _MVM_bigint_cmp in bigintops.o
  "_mp_cmp_d", referenced from:
      _get_int in P6bigint.o
      _get_uint in P6bigint.o
      _MVM_bigint_div in bigintops.o
      _MVM_bigint_pow in bigintops.o
      _MVM_bigint_is_prime in bigintops.o
  "_mp_copy", referenced from:
      _MVM_bigint_div in bigintops.o
      _MVM_bigint_pow in bigintops.o
      _MVM_bigint_radix in bigintops.o
  "_mp_count_bits", referenced from:
      _get_int in P6bigint.o
      _get_uint in P6bigint.o
  "_mp_div", referenced from:
      _MVM_bigint_div in bigintops.o
  "_mp_div_2d", referenced from:
      _MVM_bigint_shl in bigintops.o
      _MVM_bigint_shr in bigintops.o
      _MVM_bigint_div_num in bigintops.o
  "_mp_expt_d", referenced from:
      _MVM_bigint_pow in bigintops.o
  "_mp_exptmod", referenced from:
      _MVM_bigint_expmod in bigintops.o
  "_mp_gcd", referenced from:
      _MVM_bigint_gcd in bigintops.o
  "_mp_get_int", referenced from:
      _MVM_bigint_pow in bigintops.o
  "_mp_grow", referenced from:
      _MVM_bigint_from_num in bigintops.o
      _grow_and_negate in bigintops.o
  "_mp_init", referenced from:
      _set_int in P6bigint.o
      _set_uint in P6bigint.o
      _deserialize in P6bigint.o
      _MVM_bigint_abs in bigintops.o
      _MVM_bigint_neg in bigintops.o
      _MVM_bigint_add in bigintops.o
      _MVM_bigint_sub in bigintops.o
      ...
  "_mp_init_copy", referenced from:
      _copy_to in P6bigint.o
  "_mp_lcm", referenced from:
      _MVM_bigint_lcm in bigintops.o
  "_mp_mod", referenced from:
      _MVM_bigint_mod in bigintops.o
      _MVM_bigint_rand in bigintops.o
  "_mp_mul", referenced from:
      _MVM_bigint_mul in bigintops.o
  "_mp_mul_2d", referenced from:
      _MVM_bigint_mp_set_uint64 in bigintops.o
      _MVM_bigint_abs in bigintops.o
      _MVM_bigint_neg in bigintops.o
      _MVM_bigint_add in bigintops.o
      _MVM_bigint_sub in bigintops.o
      _MVM_bigint_mul in bigintops.o
      _MVM_bigint_gcd in bigintops.o
      ...
  "_mp_mul_d", referenced from:
      _MVM_bigint_radix in bigintops.o
  "_mp_neg", referenced from:
      _set_int in P6bigint.o
      _get_int in P6bigint.o
      _MVM_bigint_abs in bigintops.o
      _MVM_bigint_neg in bigintops.o
      _MVM_bigint_add in bigintops.o
      _MVM_bigint_sub in bigintops.o
      _MVM_bigint_mul in bigintops.o
      ...
  "_mp_or", referenced from:
      _MVM_bigint_or in bigintops.o
  "_mp_prime_is_prime", referenced from:
      _MVM_bigint_is_prime in bigintops.o
  "_mp_radix_size", referenced from:
      _serialize in P6bigint.o
      _MVM_bigint_to_str in bigintops.o
  "_mp_rand", referenced from:
      _MVM_bigint_rand in bigintops.o
  "_mp_read_radix", referenced from:
      _deserialize in P6bigint.o
      _MVM_bigint_from_str in bigintops.o
  "_mp_set_int", referenced from:
      _MVM_bigint_pow in bigintops.o
      _MVM_bigint_radix in bigintops.o
  "_mp_set_long", referenced from:
      _MVM_bigint_add in bigintops.o
      _MVM_bigint_sub in bigintops.o
      _MVM_bigint_mul in bigintops.o
      _MVM_bigint_lcm in bigintops.o
      _MVM_bigint_gcd in bigintops.o
      _MVM_bigint_or in bigintops.o
      _MVM_bigint_xor in bigintops.o
      ...
  "_mp_shrink", referenced from:
      _MVM_bigint_from_num in bigintops.o
  "_mp_sub", referenced from:
      _MVM_bigint_sub in bigintops.o
  "_mp_sub_d", referenced from:
      _MVM_bigint_div in bigintops.o
      _MVM_bigint_shl in bigintops.o
      _MVM_bigint_shr in bigintops.o
  "_mp_toradix", referenced from:
      _serialize in P6bigint.o
  "_mp_toradix_n", referenced from:
      _MVM_bigint_to_str in bigintops.o
  "_mp_xor", referenced from:
      _MVM_bigint_xor in bigintops.o
      _MVM_bigint_rand in bigintops.o
  "_mp_zero", referenced from:
      _MVM_bigint_mp_set_uint64 in bigintops.o
      _MVM_bigint_abs in bigintops.o
      _MVM_bigint_neg in bigintops.o
      _MVM_bigint_add in bigintops.o
      _MVM_bigint_sub in bigintops.o
      _MVM_bigint_mul in bigintops.o
      _MVM_bigint_gcd in bigintops.o
      ...
  "_tinymt64_generate_double", referenced from:
      _MVM_proc_rand_n in procops.o
      _MVM_proc_randscale_n in procops.o
  "_tinymt64_generate_uint64", referenced from:
      _MVM_proc_rand_i in procops.o
  "_tinymt64_init", referenced from:
      _MVM_proc_seed in procops.o
  "_uv_accept", referenced from:
      _socket_accept in syncsocket.o
      _on_connection in asyncsocket.o
  "_uv_async_init", referenced from:
      _enter_loop in eventloop.o
  "_uv_async_send", referenced from:
      _MVM_gc_enter_from_allocator in orchestrate.o
      _MVM_io_eventloop_queue_work in eventloop.o
      _MVM_io_eventloop_cancel_work in eventloop.o
  "_uv_buf_init", referenced from:
      _read_to_buffer in syncfile.o
      _write_str in syncfile.o
      _write_bytes in syncfile.o
      _MVM_io_syncstream_write_str in syncstream.o
      _MVM_io_syncstream_write_bytes in syncstream.o
      _write_setup in procops.o
      _write_setup in asyncsocket.o
      ...
  "_uv_chdir", referenced from:
      _MVM_dir_chdir in dirops.o
  "_uv_close", referenced from:
      _gc_free in syncstream.o
      _closefh in syncstream.o
      _do_close in syncpipe.o
      _gc_free in syncsocket.o
      _close_socket in syncsocket.o
      _socket_accept in syncsocket.o
      _spawn_on_exit in procops.o
      ...
  "_uv_cond_broadcast", referenced from:
      _MVM_conditionvariable_signal_all in ConditionVariable.o
  "_uv_cond_destroy", referenced from:
      _gc_free in ConditionVariable.o
      _gc_free in ConcBlockingQueue.o
  "_uv_cond_init", referenced from:
      _MVM_conditionvariable_from_lock in ConditionVariable.o
      _initialize in ConcBlockingQueue.o
  "_uv_cond_signal", referenced from:
      _MVM_conditionvariable_signal_one in ConditionVariable.o
      _MVM_concblockingqueue_poll in ConcBlockingQueue.o
      _push in ConcBlockingQueue.o
      _shift in ConcBlockingQueue.o
  "_uv_cond_wait", referenced from:
      _MVM_conditionvariable_wait in ConditionVariable.o
      _shift in ConcBlockingQueue.o
  "_uv_cwd", referenced from:
      _MVM_dir_cwd in dirops.o
  "_uv_default_loop", referenced from:
      _MVM_tc_create in threadcontext.o
  "_uv_fileno", referenced from:
      _mvm_fileno in syncstream.o
      _mvm_fileno in syncpipe.o
  "_uv_fs_chmod", referenced from:
      _MVM_file_chmod in fileops.o
  "_uv_fs_close", referenced from:
      _MVM_cu_map_from_file in compunit.o
      _MVM_file_open_fh in syncfile.o
      _closefh in syncfile.o
      _MVM_file_copy in fileops.o
  "_uv_fs_event_init", referenced from:
      _setup in filewatchers.o
  "_uv_fs_event_start", referenced from:
      _setup in filewatchers.o
  "_uv_fs_fstat", referenced from:
      _MVM_cu_map_from_file_handle in compunit.o
      _MVM_file_open_fh in syncfile.o
      _slurp in syncfile.o
      _mvm_eof in syncfile.o
  "_uv_fs_fsync", referenced from:
      _flush in syncfile.o
  "_uv_fs_ftruncate", referenced from:
      _truncatefh in syncfile.o
  "_uv_fs_link", referenced from:
      _MVM_file_link in fileops.o
  "_uv_fs_lstat", referenced from:
      _MVM_file_stat in fileops.o
      _MVM_file_exists in fileops.o
      _file_info in fileops.o
      _MVM_file_isreadable in fileops.o
      _MVM_file_iswritable in fileops.o
      _MVM_file_isexecutable in fileops.o
      _MVM_file_in_libpath in fileops.o
      ...
  "_uv_fs_open", referenced from:
      _MVM_cu_map_from_file in compunit.o
      _MVM_file_open_fh in syncfile.o
      _MVM_file_copy in fileops.o
  "_uv_fs_read", referenced from:
      _read_to_buffer in syncfile.o
  "_uv_fs_readlink", referenced from:
      _MVM_file_readlink in fileops.o
  "_uv_fs_rename", referenced from:
      _MVM_file_rename in fileops.o
  "_uv_fs_req_cleanup", referenced from:
      _MVM_file_open_fh in syncfile.o
  "_uv_fs_rmdir", referenced from:
      _MVM_dir_rmdir in dirops.o
  "_uv_fs_sendfile", referenced from:
      _MVM_file_copy in fileops.o
  "_uv_fs_stat", referenced from:
      _MVM_cu_map_from_file in compunit.o
      _MVM_file_stat in fileops.o
      _MVM_file_exists in fileops.o
      _file_info in fileops.o
      _MVM_file_copy in fileops.o
      _MVM_file_isreadable in fileops.o
      _MVM_file_iswritable in fileops.o
      ...
  "_uv_fs_symlink", referenced from:
      _MVM_file_symlink in fileops.o
  "_uv_fs_unlink", referenced from:
      _MVM_file_delete in fileops.o
  "_uv_fs_write", referenced from:
      _write_str in syncfile.o
      _write_bytes in syncfile.o
  "_uv_guess_handle", referenced from:
      _is_tty in syncfile.o
      _MVM_file_get_stdstream in fileops.o
  "_uv_hrtime", referenced from:
      _MVM_frame_find_contextual_by_name in frame.o
      _MVM_profile_instrumented_end in instrument.o
      _MVM_profile_log_enter in log.o
      _MVM_profile_log_enter_native in log.o
      _MVM_profile_log_exit in log.o
      _MVM_profile_log_unwind in log.o
      _MVM_profile_log_continuation_control in log.o
      ...
  "_uv_is_closing", referenced from:
      _do_close in syncpipe.o
      _close_perform in asyncsocket.o
      _write_setup in asyncsocket.o
      _close_perform in asyncsocketudp.o
      _write_setup in asyncsocketudp.o
  "_uv_listen", referenced from:
      _socket_bind in syncsocket.o
      _listen_setup in asyncsocket.o
  "_uv_loop_delete", referenced from:
      _MVM_tc_destroy in threadcontext.o
  "_uv_loop_new", referenced from:
      _MVM_tc_create in threadcontext.o
  "_uv_mutex_destroy", referenced from:
      _MVM_fixed_size_destroy in fixedsizealloc.o
      _gc_free in MVMOSHandle.o
      _gc_free in ReentrantMutex.o
      _gc_free in ConcBlockingQueue.o
      _MVM_vm_destroy_instance in moar.o
  "_uv_mutex_init", referenced from:
      _MVM_fixed_size_create in fixedsizealloc.o
      _initialize in MVMOSHandle.o
      _initialize in ReentrantMutex.o
      _deserialize in ReentrantMutex.o
      _initialize in ConcBlockingQueue.o
      _setup_property_mutex in unicode.o
      _MVM_vm_create_instance in moar.o
      ...
  "_uv_mutex_lock", referenced from:
      _MVM_callsite_try_intern in callsite.o
      _MVM_interp_run in interp.o
      _MVM_bytecode_unpack in bytecode.o
      _MVM_hll_get_config_for in hll.o
      _MVM_hll_enter_compilee_mode in hll.o
      _MVM_hll_leave_compilee_mode in hll.o
      _MVM_hll_sym_get in hll.o
      ...
  "_uv_mutex_unlock", referenced from:
      _MVM_callsite_try_intern in callsite.o
      _MVM_interp_run in interp.o
      _MVM_tc_release_ex_release_mutex in threadcontext.o
      _MVM_bytecode_unpack in bytecode.o
      _MVM_hll_get_config_for in hll.o
      _MVM_hll_enter_compilee_mode in hll.o
      _MVM_hll_leave_compilee_mode in hll.o
      ...
  "_uv_once", referenced from:
      _MVM_unicode_init in unicode.o
  "_uv_pipe_init", referenced from:
      _MVM_io_syncpipe in syncpipe.o
      _MVM_file_get_stdstream in fileops.o
      _spawn_setup in procops.o
  "_uv_pipe_open", referenced from:
      _MVM_file_get_stdstream in fileops.o
  "_uv_process_kill", referenced from:
      _spawn_cancel in procops.o
  "_uv_read_start", referenced from:
      _read_to_buffer in syncstream.o
      _spawn_setup in procops.o
      _read_setup in asyncsocket.o
  "_uv_read_stop", referenced from:
      _on_read in syncstream.o
      _on_read in asyncsocket.o
  "_uv_ref", referenced from:
      _read_to_buffer in syncstream.o
      _MVM_io_syncstream_write_str in syncstream.o
      _MVM_io_syncstream_write_bytes in syncstream.o
      _socket_connect in syncsocket.o
      _socket_accept in syncsocket.o
      _MVM_proc_shell in procops.o
      _MVM_proc_spawn in procops.o
      ...
  "_uv_resident_set_memory", referenced from:
      _MVM_gc_enter_from_interrupt in orchestrate.o
      _MVM_gc_enter_from_allocator in orchestrate.o
  "_uv_run", referenced from:
      _MVM_tc_destroy in threadcontext.o
      _enter_loop in eventloop.o
      _read_to_buffer in syncstream.o
      _MVM_io_syncstream_write_str in syncstream.o
      _MVM_io_syncstream_write_bytes in syncstream.o
      _gc_free in syncstream.o
      _do_close in syncpipe.o
      ...
  "_uv_sem_destroy", referenced from:
      _get_or_vivify_loop in eventloop.o
      _gc_free in Semaphore.o
  "_uv_sem_init", referenced from:
      _get_or_vivify_loop in eventloop.o
      _set_int in Semaphore.o
  "_uv_sem_post", referenced from:
      _enter_loop in eventloop.o
      _MVM_semaphore_release in Semaphore.o
  "_uv_sem_trywait", referenced from:
      _MVM_semaphore_tryacquire in Semaphore.o
  "_uv_sem_wait", referenced from:
      _get_or_vivify_loop in eventloop.o
      _MVM_semaphore_acquire in Semaphore.o
  "_uv_signal_init", referenced from:
      _setup in signals.o
  "_uv_signal_start", referenced from:
      _setup in signals.o
  "_uv_spawn", referenced from:
      _MVM_proc_shell in procops.o
      _MVM_proc_spawn in procops.o
      _spawn_setup in procops.o
  "_uv_strerror", referenced from:
      _MVM_cu_map_from_file in compunit.o
      _MVM_cu_map_from_file_handle in compunit.o
      _MVM_fixed_size_create in fixedsizealloc.o
      _get_or_vivify_loop in eventloop.o
      _MVM_file_open_fh in syncfile.o
      _closefh in syncfile.o
      _slurp in syncfile.o
      ...
  "_uv_tcp_bind", referenced from:
      _socket_bind in syncsocket.o
      _listen_setup in asyncsocket.o
  "_uv_tcp_connect", referenced from:
      _socket_connect in syncsocket.o
      _connect_setup in asyncsocket.o
  "_uv_tcp_init", referenced from:
      _socket_connect in syncsocket.o
      _socket_bind in syncsocket.o
      _socket_accept in syncsocket.o
      _connect_setup in asyncsocket.o
      _listen_setup in asyncsocket.o
      _on_connection in asyncsocket.o
  "_uv_thread_create", referenced from:
      _MVM_thread_run in threads.o
  "_uv_thread_join", referenced from:
      _MVM_thread_join in threads.o
      _MVM_thread_join_foreground in threads.o
  "_uv_thread_self", referenced from:
      _start_thread in threads.o
      _MVM_vm_create_instance in moar.o
  "_uv_timer_init", referenced from:
      _setup in timers.o
  "_uv_timer_start", referenced from:
      _setup in timers.o
  "_uv_timer_stop", referenced from:
      _cancel in timers.o
  "_uv_tty_init", referenced from:
      _MVM_file_get_stdstream in fileops.o
  "_uv_udp_bind", referenced from:
      _setup_setup in asyncsocketudp.o
  "_uv_udp_init", referenced from:
      _setup_setup in asyncsocketudp.o
  "_uv_udp_recv_start", referenced from:
      _read_setup in asyncsocketudp.o
  "_uv_udp_recv_stop", referenced from:
      _on_read in asyncsocketudp.o
  "_uv_udp_send", referenced from:
      _write_setup in asyncsocketudp.o
  "_uv_udp_set_broadcast", referenced from:
      _setup_setup in asyncsocketudp.o
  "_uv_unref", referenced from:
      _MVM_io_syncstream_write_str in syncstream.o
      _write_cb in syncstream.o
      _MVM_io_syncstream_write_bytes in syncstream.o
      _on_read in syncstream.o
      _do_close in syncpipe.o
      _socket_bind in syncsocket.o
      _on_connect in syncsocket.o
      ...
  "_uv_write", referenced from:
      _MVM_io_syncstream_write_str in syncstream.o
      _MVM_io_syncstream_write_bytes in syncstream.o
      _write_setup in procops.o
      _write_setup in asyncsocket.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: *** [libmoar.dylib] Error 1
sh: /Users/cal/.rakudobrew/moar-2016.11/install/bin/moar: No such file or directory
Cleaning up ...
/Users/cal/perl5/perlbrew/perls/perl-5.24.0/bin/perl -MExtUtils::Command -e mkpath gen/moar/stage1/gen
/Users/cal/perl5/perlbrew/perls/perl-5.24.0/bin/perl tools/build/gen-cat.pl moar src/how/Archetypes.nqp src/how/RoleToRoleApplier.nqp src/how/NQPConcreteRoleHOW.nqp src/how/RoleToClassApplier.nqp src/how/NQPCurriedRoleHOW.nqp src/how/NQPParametricRoleHOW.nqp src/how/NQPClassHOW.nqp src/how/NQPNativeHOW.nqp src/how/NQPAttribute.nqp src/how/NQPModuleHOW.nqp src/how/EXPORTHOW.nqp  > gen/moar/stage1/nqpmo.nqp
/Users/cal/.rakudobrew/moar-2016.11/install/bin/moar --libpath=src/vm/moar/stage0 src/vm/moar/stage0/nqp.moarvm --bootstrap --setting=NULL --no-regex-lib --target=mbc \
	    --output=gen/moar/stage1/nqpmo.moarvm gen/moar/stage1/nqpmo.nqp
sh: /Users/cal/.rakudobrew/moar-2016.11/install/bin/moar: No such file or directory
make: *** [gen/moar/stage1/nqpmo.moarvm] Error 127
Command failed (status 512): make
Command failed (status 512): /Users/cal/perl5/perlbrew/perls/perl-5.24.0/bin/perl Configure.pl --prefix=/Users/cal/.rakudobrew/moar-2016.11/install --backends=moar --make-install --git-protocol=https --git-reference=/Users/cal/.rakudobrew/bin/../git_reference --gen-moar
Failed running /Users/cal/perl5/perlbrew/perls/perl-5.24.0/bin/perl Configure.pl --backends=moar --gen-moar --git-reference="/Users/cal/.rakudobrew/bin/../git_reference" --make-install  at /Users/cal/.rakudobrew/bin/rakudobrew line 58.
	main::run("/Users/cal/perl5/perlbrew/perls/perl-5.24.0/bin/perl Configur"...) called at /Users/cal/.rakudobrew/bin/rakudobrew line 386
	main::build_impl("moar", 2016.11, "") called at /Users/cal/.rakudobrew/bin/rakudobrew line 116
cal$
@mojca
Copy link

mojca commented Dec 28, 2016

Completely off-topic. I found this ticket while searching for any clues about how to solve

linking libmoar.dylib
Undefined symbols for architecture x86_64:
  "_mp_set_long", referenced from:
      _force_bigint in bigintops.o
      _MVM_bigint_to_str in bigintops.o
ld: symbol(s) not found for architecture x86_64

when building MoarVM itself (with system libraries, but I think it was libtommath that was causing problems).

@tadzik
Copy link
Owner

tadzik commented May 14, 2017

This looks like a problem with MoarVM itself, not rakudobrew. Please report the bug there if still applicable.

@tadzik tadzik closed this as completed May 14, 2017
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