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

mac: Compiler bug when trying to run the 2048 example #15519

Open
kjarex opened this issue Aug 24, 2022 · 3 comments
Open

mac: Compiler bug when trying to run the 2048 example #15519

kjarex opened this issue Aug 24, 2022 · 3 comments
Labels
OS: Mac Bugs/feature requests, that are specific to Mac OS.

Comments

@kjarex
Copy link

kjarex commented Aug 24, 2022

V doctor:

OS: macos, Mac OS X, 10.14.6, 18G6032
Processor: 24 cpus, 64bit, little endian, Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz
CC version: Apple clang version 11.0.0 (clang-1100.0.33.17)

getwd: /Users/kjarex/Downloads/v
vmodules: /Users/kjarex/.vmodules
vroot: /Users/kjarex/Downloads/v
vexe: /Users/kjarex/Downloads/v/v
vexe mtime: 2022-08-24 16:02:14
is vroot writable: true
is vmodules writable: true
V full version: V 0.3.0 3ad22eb

Git version: git version 2.35.1
Git vroot status: Error: fatal: not a git repository (or any of the parent directories): .git
.git/config present: false
thirdparty/tcc status: thirdparty-macos-amd64 46662e20

What did you do?
v -g -o vdbg cmd/v && vdbg examples/2048/2048.v
See attached file examples/2048/2048.v

What did you expect to see?

the example application to compile and then to start

What did you see instead?

==================
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
...
==================
(Use `v -cg` to print the entire error message)

builder error: 
==================
C error. This should never happen.

This is a compiler bug, please report it using `v bug file.v`.

https://github.com/vlang/v/issues/new/choose

You can also use #help on Discord: https://discord.gg/vlang

As I have not modified or (even touched) the example files at all, I'm not attaching them.
The missing symbol is "_objc_loadClassref", referenced from: __ARCLite__load() in libarclite_macosx.a(arclite.o)

Not necessarily a compiler bug per se, other than the compiler claiming it to be a compiler bug (and asking the user to report it)

@eptx
Copy link

eptx commented Aug 10, 2023

Same issue.

V full version: V 0.4.0 e5a727c.6813a12
OS: macos, macOS, 13.4.1, 22F770820d
Processor: 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
CC version: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
thirdparty/tcc status: thirdparty-macos-amd64 46662e2

@gchiappe
Copy link

Same here, there is a way to change the minimum deployment target of the backend compiler in macOS?

Error:

clang: error: SDK does not contain 'libarclite' at the path '/Library/Developer/CommandLineTools/usr/lib/arc/libarclite_macosx.a'; try increasing the minimum deployment target
V full version: V 0.4.3 782bf86
OS: macos, macOS, 14.1.1, 23B81
Processor: 12 cpus, 64bit, little endian, Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz

getwd: /Users/gchiappe/v-project
vexe: /Users/gchiappe/.bin/v/v
vexe mtime: 2023-11-29 01:35:00

vroot: OK, value: /Users/gchiappe/.bin/v
VMODULES: OK, value: /Users/gchiappe/.vmodules
VTMP: OK, value: /tmp/v_501

Git version: git version 2.39.3 (Apple Git-145)
Git vroot status: weekly.2023.48-8-g782bf865-dirty
.git/config present: true

CC version: Apple clang version 15.0.0 (clang-1500.0.40.1)
thirdparty/tcc status: thirdparty-macos-amd64 46662e20

@JalonSolov JalonSolov changed the title Compiler bug when trying to run the 2048 example mac: Compiler bug when trying to run the 2048 example Nov 29, 2023
@JalonSolov JalonSolov added the OS: Mac Bugs/feature requests, that are specific to Mac OS. label Nov 29, 2023
@medvednikov
Copy link
Member

medvednikov commented Nov 29, 2023

Yes, try v -macosx-version-min 14.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS: Mac Bugs/feature requests, that are specific to Mac OS.
Projects
None yet
Development

No branches or pull requests

5 participants