Comments (18)
Thanks, was able to reproduce it in a VM, fixing rn!
from cspydr.
Which Ubuntu version?
from cspydr.
Ubuntu 23.10
from cspydr.
Hopefully fixed with cffa67d
from cspydr.
Did this fix it?
from cspydr.
I'm currently at work so I will test it once I'm back home and have access to my laptop
from cspydr.
Sure, no pressure
from cspydr.
Sure, no pressure
That worked, built fine. However it fails to run the executable when running cspc run ...
cspc run helloworld.csp
Compiling helloworld.csp
Optimizing (2/2) evaluate constant expressions
Generating assembly for x86_64-linux-gnu
Linking helloworld.out (executable; dynamic) (c)
Executing helloworld.out
error executing helloworld.out: No such file or directory
The executable is created and present in current directory as well.
from cspydr.
Can you check your dynamic linker using ldd on the generated executable?
It works in my Ubuntu 23.10 VM
from cspydr.
Or try linking statically
from cspydr.
Can you check your dynamic linker using ldd on the generated executable? It works in my Ubuntu 23.10 VM
ldd helloworld.out
linux-vdso.so.1 (0x00007ffd35ad8000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f343b800000)
/lib64/ld-linux-x86-64.so.2 (0x00007f343bb11000)
from cspydr.
That seems alright. Can you try linking statically using --static
on the compiler?
Also, what error does your shell give you if you just try to run helloworld.out
Sorry for all the questions, I just cannot reproduce this behavior.
from cspydr.
That seems alright. Can you try linking statically using
--static
on the compiler? Also, what error does your shell give you if you just try to runhelloworld.out
Sorry for all the questions, I just cannot reproduce this behavior.
Same error when running it with --static. Just FYI that the file builds fine into an executable, its the running part that fails when using cspc run
Running the executable manually gives no error, it only fails when doing cspc run ...
Running it with that results in errors:
error executing helloworld.out: No such file or directory
[helloworld.out terminated with exit code 255]
from cspydr.
Ok that's very weird... The "No such file or directory" error could also mean an issue during the linking process, which is much more common in my experience.
What is the path you're trying to run this from? (output of pwd
)
It could be that spaces or special characters mess things up.
from cspydr.
Ok that's very weird... The "No such file or directory" error could also mean an issue during the linking process, which is much more common in my experience. What is the path you're trying to run this from? (output of
pwd
) It could be that spaces or special characters mess things up.
Sorry for the delay.
pwd:
/home/ishimachi/Downloads
exactly the same location where the .csp file exists.
from cspydr.
Please excuse me, but I'm really at a loss with this... The compiler can't see the file or can't execute it, even though the file exists and runs normally from the shell, is that correct?
from cspydr.
thats correct
from cspydr.
Okay, I'll keep this issue in mind for when I work on that part of the compiler again, as I can't think of any obvious thing wrong right now. I'll keep you updated.
Thank you for your patience :D
from cspydr.
Related Issues (20)
- Incorrect library name when building - glfw HOT 6
- Gtk4 bingings for CSpydr HOT 7
- Error on build - json-c/json_object.h: No such file or directory HOT 5
- Error while loading shared libs HOT 2
- Allow for alias naming when utilising extern "C" HOT 13
- Odd behaviour with floats & printf HOT 7
- Macros in namespaces & calling them with namespace HOT 3
- Interface implementation HOT 3
- Types not found when importing from a namespace in a different file HOT 1
- Allow alias export directive with extern scopes HOT 2
- What is the plan for CSpydr. HOT 8
- LLVM no longer dependency? HOT 1
- File imports getting duplicated when using ./ or ../
- Assigning and returning arrays results in stack corruption HOT 3
- TCP/UDP library bindings? HOT 11
- Reimplement arrays HOT 1
- Programmiersprache HOT 1
- What are the plans for the language? HOT 8
- VSC Extension as VSIX HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cspydr.