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

Universal build (i386 + x86_64) on OS X broken #414

Open
mojca opened this issue Sep 26, 2016 · 1 comment
Open

Universal build (i386 + x86_64) on OS X broken #414

mojca opened this issue Sep 26, 2016 · 1 comment

Comments

@mojca
Copy link

mojca commented Sep 26, 2016

Building MoarVM as universal binary on OS X worked in 2016.07, but fails with 2016.09:

src/jit/emit_x64.dasc:2381:181: warning: shift count >= width of type [-Wshift-count-overflow]
        dasm_put(Dst, 3847, Dt20([invoke->code_register]), invoke->spesh_cand, (unsigned int)((uintptr_t)&MVM_frame_invoke_code), (unsigned int)(((uintptr_t)&MVM_frame_invoke_code)>>32));
                                                                                                                                                                                    ^ ~~
39 warnings generated.
linking libmoar.dylib
linking moar
ld: warning: ignoring file /opt/local/lib/libmoar.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (i386): /opt/local/lib/libmoar.dylib
Undefined symbols for architecture i386:
  "_MVM_crash_on_error", referenced from:
      _main in main.o
  "_MVM_jit_support", referenced from:
      _main in main.o
  "_MVM_vm_create_instance", referenced from:
      _main in main.o
  "_MVM_vm_destroy_instance", referenced from:
      _main in main.o
  "_MVM_vm_dump_file", referenced from:
      _main in main.o
  "_MVM_vm_exit", referenced from:
      _main in main.o
  "_MVM_vm_run_file", referenced from:
      _main in main.o
  "_MVM_vm_set_clargs", referenced from:
      _main in main.o
  "_MVM_vm_set_exec_name", referenced from:
      _main in main.o
  "_MVM_vm_set_lib_path", referenced from:
      _main in main.o
  "_MVM_vm_set_prog_name", referenced from:
      _main in main.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [moar] Error 1

I would like to add @coke to discussion as well.

@barracuda156
Copy link
Contributor

@mojca Has the reason of the issue been discovered ever since?

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