Comments (5)
I'm not sure I understand: if BOX64_VERSION
is set to something not 0, the program passed to box64 should be launch without box64?
How is that supposed to work? If you launch a x86_64 program, binfmt will redirect to box64, that, if BOX64_VERSION is set will redirect to launch natively, wich, with binfmt, will redirect to box64 and will loop indefently? Or am I missing something?
from box64.
No, the program should not launch at all. That's what QEMU_VERSION
does as well. If QEMU_VERSION
is set in the environment, then the program will not launch and qemu itself will just print its version string and exit.
Here is what qemu does if QEMU_VERSION
is set:
https://gitlab.com/qemu-project/qemu/-/blob/master/linux-user/main.c?ref_type=heads#L419
from box64.
I'm really confused on what use case this could serve.
The is BOX64_EXIT
that just exit box64 that is define. It's only on rcfile for now but could be extended to command line too I guess
from box64.
Yes, if I could set BOX64_EXIT=1
as an environment variable, that would solve this issue as well.
I described the use-case in my initial message. Let me rephrase:
- I have a tool like
arch-test
which is supposed to tell me whether architecture X can be executed or not. The tool allows me to disable binfmt misc support in user-space for known emulators like qemu or wine using environment variables. It doesn't support box64 yet, because it does not yet have such an environment variable as qemu and wine have. If box64 would gain such an environment variable, thenarch-test
could gain support for box64 as well. Currently, when having box64 installed, the output ofarch-test -n ${arch}
is incorrect becausearch-test
cannot disable box64. - I have a tool which knows that if box64 is the one doing the x86_64 emulation, it will break (for example because it runs the foreign architecture binaries inside a chroot where box64 is not available and box64 is not compiled statically). That tool would like to be able to give the user a descriptive error message about the fact that right now, x86_64 is emulated box64 and that cannot work. Currently, it cannot find out whether box64 is the binfmt_misc provider.
I can propose a pull request that implements BOX64_VERSION
equivalent to what QEMU_VERSION
does for qemu if you like.
from box64.
You can submit a PR yes.
from box64.
Related Issues (20)
- Error: Tibia crashing - PltResolver: Symbol dbus_connection_close HOT 2
- Help to start Stardew Valley on K1 board HOT 6
- Unimplemented Opcode (0F 38 F6 E8) 67 F3 4D 0F 38 F6 F7 C4 62 FB F6 7E 38 48 89 HOT 4
- cursor.com editor on M1 mac ahasi fedora remix 40 HOT 8
- Getting the native Linux version of steam working on Apple silicon HOT 21
- Corekeeper Dedicated server - segfault on run HOT 2
- Trying to make Knime work on Box 64: Error: PltResolver in /lib/x86_64-linux-gnu/libstdc++.so.6 and /org.eclipse.osgi/276/0/.cp/libswt-pi3-gtk-4964r8.so
- Where did those libraries come from? HOT 2
- CPU type is not detected in log.
- Error loading needed lib libzstd.so.1 HOT 3
- Dynarec stopped because of x64 Opcode 67 66 48 0F 7E DA F3 4C 0F 38 F6 D8 66 4D 0F HOT 2
- SeaMonkey Browser - Only Linux x64 - Won't start HOT 7
- Error: Symbol libusb_dev_mem_alloc not found when running X64 Openocd HOT 4
- Missing symbols running AppImage on Asahi HOT 2
- Error loading needed lib libhidapi-hidraw.so.0 HOT 4
- Recent commits broke some unity games HOT 6
- RISC-V Vector Extension Seems Not Working Well HOT 25
- Failing to load libraries that are present in the current directory (as well custom directories specified in `BOX64_LD_LIBRARY_PATH`)
- Raspberry PI 5 Box64 HOT 1
- Missing symbols for ALSA? Trying to run Zotero but Global symbols not found and PltResolver: Symbol not found. Mostly related to libxul.so's use of ALSA? 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 box64.