Comments (5)
Hi @Ludea
I have the very same issue but on a different platform.
I've fixed it by adding required information to the config.
In my case (for Raspberry Pi / ARMv7).
Content of ~/.cargo/config
[target.armv7-unknown-linux-gnueabihf]
strip = "/usr/bin/arm-linux-gnueabihf-strip"
objcopy = "/usr/bin/arm-linux-gnueabihf-objcopy"
linker = "/usr/bin/arm-linux-gnueabihf-gcc"
from cargo-deb.
You can't use strip
command when cross compiling, because it is platform specific, like your compiler and linker are. You need a special version for the target, configured like the error says.
from cargo-deb.
[target.armv7-unknown-linux-gnueabihf]
strip = "/usr/bin/arm-linux-gnueabihf-strip"
objcopy = "/usr/bin/arm-linux-gnueabihf-objcopy"
linker = "/usr/bin/arm-linux-gnueabihf-gcc"
Can we use env var to setup strip ?
I already do this when building app and creating deb
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++
from cargo-deb.
@Ludea
It seems there is no such option.
from cargo-deb.
closing, I use cargo config to specify strip and objcopy path
from cargo-deb.
Related Issues (20)
- Consider using `zopfli`'s new streaming encoder feature HOT 4
- cargo-deb looks up README.md in wrong dir when using workspace HOT 1
- Clarification on the "native" nature of packages HOT 3
- Consider adding 'target-dir' option HOT 1
- Allow dpkg-shlibdeps flags or Debian rules file HOT 1
- `conf-files` generates a `conffiles` file with a trailing empty line HOT 1
- Test failures for manifest and control tests on Arch Linux HOT 8
- [Feature-Request] Advanced Usage, "append" option for assets HOT 3
- rodio HOT 1
- warning: Command dpkg-shlibdeps failed to launch (no auto deps for ...) HOT 1
- [Feature Request] Option To Disable Variant Naming HOT 1
- Custom profile is not honored
- [Feature Request] Allow writing `depends` as a list instead of a string HOT 1
- [Feature Request]: Parallel Building HOT 1
- Including example binaries does not work HOT 2
- cargo deb does not handle links files
- Add a proper support for SOURCE_DATE_EPOCH HOT 1
- Introduce a separate library crate for working with deb files? HOT 2
- Support switching between xz and gzip formats at runtime HOT 1
- Mention in warnings that README contents are used if description field is missing
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 cargo-deb.