miniscript | Miniscript site and implementation
kandi X-RAY | miniscript Summary
kandi X-RAY | miniscript Summary
Go to the Miniscript website.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of miniscript
miniscript Key Features
miniscript Examples and Code Snippets
Community Discussions
Trending Discussions on miniscript
QUESTION
I've compiled and built a C++ program (that uses SDL2, in case that matters) on Ubuntu 20.0.4, but when I try to run it, it just prints "Invalid argument". If I try to run it via gdb, it also prints "Invalid argument" and then "During startup program exited with code 126." (This before it hits a breakpoint set at main
.)
Things I have tried:
- Verified that the execute bit is set on the file.
- Added the -no-pie linker flag, which makes it build a normal ELF executable rather than a relocatable one (see here).
readelf
andfile
now both agree it is an executable.file
now prints:
ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=432e038be2c1180ec019b585ffbca182a80f6c55, for GNU/Linux 3.2.0, with debug_info, not stripped
- Checked its library dependencies with
ldd
. A couple dozen libraries are listed but all appear to be found successfully. - Tried executing it via
sudo
, in case it was some weird ownership/permission problem. Same error occurs.
My Makefile is pretty simple, but it ends up doing the whole compile & link process with just this one command:
...ANSWER
Answered 2021-Oct-24 at 22:07I finally stumbled upon the answer. I was working in a Parallels shared folder, i.e. a folder from the host OS (macOS, in this case) which has been mounted as a drive in the Linux file system (of the Parallels virtual machine).
Apparently, running any executable from such a shared folder simply does not work. Copying the same executable to my Linux home directory, and running it from there, works fine. Conversely if I build a program in my Linux directory (where it works fine), and then copy it to a shared folder and try to run it from there, I get the "Invalid argument" error.
Many thanks to all who attempted to help, and I hope the next poor sap who runs into this gotcha finds this question.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install miniscript
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page