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

about clang #1

Open
liusiyu58 opened this issue May 28, 2021 · 11 comments
Open

about clang #1

liusiyu58 opened this issue May 28, 2021 · 11 comments

Comments

@liusiyu58
Copy link

seems git clone http://llvm.org/git/clang.git asap/tools/clang does not work now?

@Sjlver
Copy link
Contributor

Sjlver commented May 30, 2021 via email

@liusy58
Copy link

liusy58 commented May 30, 2021

thx a lot sir, but I encountered another question :

when I try ASAP on a small example, the error message shows

asap-clang -asap-init >/dev/null
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- parallel (LoadError)
        from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /Users/liusiyu/Downloads/asap/build/bin/asap-clang:24:in `<main>'

@Sjlver
Copy link
Contributor

Sjlver commented May 30, 2021 via email

@Sjlver
Copy link
Contributor

Sjlver commented May 30, 2021 via email

@liusy58
Copy link

liusy58 commented May 31, 2021

I solved the problem above but still some questions remaining:

asap-clang -asap-init >/dev/null
mkdir -p stamps
touch stamps/sum-asap-init
asap-clang -Wall -g -O1 -fsanitize=address   -c -o sum.o sum.c
sum.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
1 error generated.
sum.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
         ^
1 error generated.
/Users/liusiyu/Downloads/asap/lib/Transforms/SanityChecks/asap-clang-utils.rb:20:in `run!': Command /Users/liusiyu/Downloads/asap/build/bin/clang failed with status pid 63014 exit 1 (RunExternalCommandError)
        from /Users/liusiyu/Downloads/asap/build/bin/asap-clang:159:in `do_compile'
        from /Users/liusiyu/Downloads/asap/build/bin/asap-clang:238:in `do_compile'
        from /Users/liusiyu/Downloads/asap/build/bin/asap-clang:131:in `exec'
        from /Users/liusiyu/Downloads/asap/build/bin/asap-clang:484:in `main'
        from /Users/liusiyu/Downloads/asap/build/bin/asap-clang:526:in `<main>'
make: *** [sum.o] Error 1

It seems that the header file cannot be included.

Much thanks for your generous help!

@Sjlver
Copy link
Contributor

Sjlver commented Jun 1, 2021 via email

@liusy58
Copy link

liusy58 commented Jun 1, 2021

Thx a lot! I'll have a try~ And I'll make a pull request later for your updating ~

@Sjlver
Copy link
Contributor

Sjlver commented Jun 1, 2021 via email

@liusy58
Copy link

liusy58 commented Jun 1, 2021

Thx for your patient explanation~

@Sjlver
Copy link
Contributor

Sjlver commented Jun 8, 2021

Did you get it working? I'm curious ;-)

@liusy58
Copy link

liusy58 commented Jun 8, 2021

yeah, it works fine on ubuntu, but a pity that the library problem cannot be fixed on macOS now~

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