Error: Command failed: /bin/sh: 1: c-preload/compiler-wrapper: Permission denied
Show HN: Online C/C++ to assembly visualizer [Weekend Project]
31–40 of 47 posts
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#32Error: Command failed: /tmp/test969394043.c:1:0: fatal error: can’t open /root/assembler/ccMEBJ3B.s for writing: Permission denied compilation terminated. The bug is not reproducible, so it is likely a hardware or OS problem. Really.
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#33 #include int main() { printf("Hello World"); }Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#34Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#35Earlier quoted context omitted.
I have now fixed it. But I think there must be an other way to make it safe. Maybe a sandbox
This is part of your /etc/shadow file: root:censored We can still read /etc/ssh/ssh_host_rsa_key, etc. Edit: removed hash, sorry
Please, don't ever run your application code as root. Less so when it's facing the Internet.
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#36My only suggestion right now is to have it so you can have the assembly on the left or right side. Maybe it's just me, but my focus seems to be on the left side more than the right.
Since this is a focused on assembly it seems, wouldn't you want the focus on the assembly, not the C? It could be different for different people though.
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#37you can compile C/C++ to LLVM IR and also 32 or 64 bit intel assembler. you can also see the effects of different optimizations, etc
Re: Show HN: Online C/C++ to assembly visualizer [Weekend Project]
#38 #include __FILE__
:-D