You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The combination of rv1126 profile will lead tools.get_gnu_triplet("Linux","armv7","gcc") to return gnueabi,but --target-os= option doesn't support it,then report Unknown OS 'gnueabi and stop compile.
The related code at conanfile.py(ffmpeg/5.0) is
if tools.cross_building(self):
if self._target_os == "emscripten":
args.append("--target-os=none")
else:
args.append("--target-os={}".format(self._target_os))
def _target_os(self):
if self._is_msvc:
return "win32"
else:
_, _, target_os = tools.get_gnu_triplet(
"Macos" if tools.is_apple_os(
self.settings.os) else str(self.settings.os),
str(self.settings.arch),
str(self.settings.compiler) if self.settings.os == "Windows" else None,
).split("-")
if target_os == "gnueabihf":
target_os = "gnu" # could also be "linux"
return target_os
Description
I was attempting to cross-compile some code on ubuntu using a cmd as
conan create . xxxx -pr:b default -pr:h rv1126 --build missing
the default profile is
while the rv1126 profile is
The combination of rv1126 profile will lead tools.get_gnu_triplet("Linux","armv7","gcc") to return gnueabi,but --target-os= option doesn't support it,then report Unknown OS 'gnueabi and stop compile.
The related code at conanfile.py(ffmpeg/5.0) is
Package and Environment Details
Conan profile
[settings]
os=Linux
arch=armv7
compiler=gcc
compiler.version=8.3
compiler.libcxx=libstdc++11
build_type=Release
[build_requires]
rv1126/8.3.0@screenshare_public/stable
Steps to reproduce
use cmd to cross-compile code which requiring ffmpeg/5.0
conan create . xxxx -pr:b default -pr:h rv1126 --build missing
The host profile is:
Just like a simple demo following,it will return gnueabi which option "--target-os=" doesn't support:
Logs
Click to expand log
ffmpeg/5.0: Applying build-requirement: rv1126/8.3.0@screenshare_public/stable
ffmpeg/5.0: Applying build-requirement: pkgconf/1.7.4
ffmpeg/5.0: WARN: Build folder is dirty, removing it: /home/hao/.conan/data/ffmpeg/5.0///build/e075b4f4491320467d8995247d10f1fe84c9d7ee
ffmpeg/5.0: Copying sources to build folder
ffmpeg/5.0: Building your package in /home/hao/.conan/data/ffmpeg/5.0///build/e075b4f4491320467d8995247d10f1fe84c9d7ee
ffmpeg/5.0: Aggregating env generators
ffmpeg/5.0: Calling build()
ffmpeg/5.0: Calling:
The text was updated successfully, but these errors were encountered: