-
Notifications
You must be signed in to change notification settings - Fork 16
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
Error when compiling on OSX #42
Comments
Hopefully fixed in https://github.com/COMP1511UNSW/dcc/releases/tag/2.3 |
EDITED It seems something is incompatible with stdin.. <stdin>:515:44: error: unknown type name 'off64_t'; did you mean 'off_t'? |
I didn't use any flag and here is the test file #include <stdio.h> |
Could you compile with -fsanitize=address e.g.
and let me know how that goes? |
Error messages(I missed some brackets in previous comment, error messages should be from <stdin>, edited): <stdin>:1033:5: warning: implicitly declaring library function 'va_start' with type 'void (struct __va_list_tag *, ...)' [-Wimplicit-function-declaration] <stdin>:1035:5: warning: implicitly declaring library function 'va_end' with type 'void (struct __va_list_tag *)' [-Wimplicit-function-declaration] Undefined symbols for architecture x86_64: |
Could report if https://github.com/COMP1511UNSW/dcc/releases/tag/2.4 works please |
warning: unknown warning option '-Wunused-but-set-variable'; did you mean '-Wunused-const-variable'? [-Wunknown-warning-option]warning: unknown warning option '-Wduplicated-cond'; did you mean '-Wduplicate-enum'? [-Wunknown-warning-option]warning: unknown warning option '-Wduplicated-branches' [-Wunknown-warning-option]warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]4 warnings generated.error: cannot parse the debug map for '/dev/null': The file was not recognized as a valid object fileclang: error: dsymutil command failed with exit code 1 (use -v to see invocation)
only 1 or sanitizers supported |
Similar error to two weeks ago, except it's in different lines of stdin. <stdin>:301:39: error: unknown type name 'off64_t'; did you mean 'off_t'? |
Same except line index changed. <stdin>:308:39: error: unknown type name 'off64_t'; did you mean 'off_t'? |
Something wrong with format. I didn't realise. |
Sorry to trouble, could you help fix this?
macOS 10.14.5
Apple Clang 10.0.1
Following error messages:
$ dcc test.c
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/bin/dcc/main.py", line 48, in
File "/usr/local/bin/dcc/main.py", line 45, in main
File "/usr/local/bin/dcc/compile.py", line 102, in compile
UnboundLocalError: local variable 'clang_version_float' referenced before assignment
Thank you.
The text was updated successfully, but these errors were encountered: