# Got OSError When Using kas to build an image for Raspberry Pi 4

**URL:** <https://hub.mender.io/t/got-oserror-when-using-kas-to-build-an-image-for-raspberry-pi-4/6718>\
**Category:** Yocto Project\
**Created:** [April 9, 2024, 2:14am UTC](https://hub.mender.io/t/got-oserror-when-using-kas-to-build-an-image-for-raspberry-pi-4/6718 "2024-04-09T02:14:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cin200618](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@cin200618](https://hub.mender.io/u/cin200618)\
**Post date:** [April 9, 2024, 2:14am UTC](https://hub.mender.io/t/got-oserror-when-using-kas-to-build-an-image-for-raspberry-pi-4/6718/1 "2024-04-09T02:14:38Z")

</div>

# Board description

Raspberry Pi 4, 64 bit

I have been following this GitHub  
URL: [GitHub - mendersoftware/meta-mender-community: Community supported Yocto Project layers (Board integrations) for Mender for different boards](https://github.com/mendersoftware/meta-mender-community?tab=readme-ov-file)

# Test results

My host machine is MacBook Pro. In Mac terminal, after installing kas tool and cloning meta-mender-community, I have tried both

1. Quick start command, “kas build meta-mender-community/kas/raspberrypi4-64.yml”
2. “kas build ../kas/raspberrypi4-64.yml”

I got pretty much the same results:  
OSError: dlopen(libgcc\_s.so.1, 0x0006): tried: ‘libgcc\_s.so.1’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OSlibgcc\_s.so.1’ (no such file), ‘/usr/lib/libgcc\_s.so.1’ (no such file, not in dyld cache), ‘libgcc\_s.so.1’ (no such file)

Btw, I have installed gcc by checking  
% gcc --version  
Apple clang version 15.0.0 (clang-1500.3.9.4)  
Target: arm64-apple-darwin23.4.0  
Thread model: posix  
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

How to resolve the error? Thank you.

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [April 9, 2024, 5:23am UTC](https://hub.mender.io/t/got-oserror-when-using-kas-to-build-an-image-for-raspberry-pi-4/6718/2 "2024-04-09T05:23:56Z")

</div>

Hi @cin200618,

Building Yocto on Mac OS is not supported, `bitbake` has some pretty strong requirements to the Linux platform. You can either use a native Linux installation (recommended), or some form of virtualization. For MacOS, maybe check out UTM. To set up a functional build host, please see the documentation: [2 Setting Up to Use the Yocto Project — The Yocto Project ® 4.3.999 documentation](https://docs.yoctoproject.org/dev-manual/start.html#preparing-the-build-host)

Greets,  
Josef
