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

the example "master/packages/clang" is no more on page? #3

Open
pflegende opened this issue Nov 2, 2021 · 1 comment
Open

the example "master/packages/clang" is no more on page? #3

pflegende opened this issue Nov 2, 2021 · 1 comment

Comments

@pflegende
Copy link

example "master/packages/clang" is no more on page?

this is the description

on your website:
https://github.com/hmage/norm
the link in
To see a more complex example, take a look at how clang is built.

how clang is built. -> "https://github.com/hmage/norm/blob/master/packages/clang"

and also in the readme on gh
the link to clang-example https://github.com/hmage/norm/blob/master/packages/clang
seems no longer doesnt work.



anotation:

great tool!

try to use it with jor1k
on 1st try it fails with "Error: your compiler can't compile!"

but it seems it causes by other reason:

bash-4.3$ norm install mc                                                       
Testing if cc compiles '#define _GNU_SOURCE                                     
#include <stdio.h>                                                              
int main() { printf("Hello, world!\n");; return 0;}' ... no                     
[02/Nov/2021:10:24:36 +0000] [norm] Error: your compiler can't compile!         
[02/Nov/2021:10:24:37 +0000] [norm] Check that your have it installed correctly 

bash-4.3$ # so we copy&paste your test-cc-string in a file ts1.cc
bash-4.3$ cat ts1.cc                                                            
#define _GNU_SOURCE                                                             
#include <stdio.h>                                                              
int main() { printf("Hello, world!\n");; return 0;}                             

bash-4.3$ # and now compile with jor1k-onboard gcc, without errors                                     
bash-4.3$ gcc ts1.cc; a.out                                                     
ts1.cc:1:0: warning: "_GNU_SOURCE" redefined                                    
 #define _GNU_SOURCE                                                            
 ^                                                                              
<command-line>:0:0: note: this is the location of the previous definition  
Hello, world!                                                                   
bash-4.3$ 

so I next try to read the c-lang example, like is your suggestion
:)

CU

@pflegende
Copy link
Author

really great tool!
I like it.

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

1 participant