Skip to content

Instantly share code, notes, and snippets.

@petabyt
Last active September 5, 2021 06:00
Show Gist options
  • Save petabyt/dcd3bbaff54ddc0e6db0d855187858c1 to your computer and use it in GitHub Desktop.
Save petabyt/dcd3bbaff54ddc0e6db0d855187858c1 to your computer and use it in GitHub Desktop.
Fixing "error: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value"
Qemu issue:
```
error: taking address of packed member of ‘struct QCowHeader’ may result in an unaligned pointer value
```
Went into `configure` and removed all `-Werror`
Also had to edit `/home/daniel/Pulled/qemu-eos/qemu-2.5.0/hw/arm/../eos/dbi/backtrace.c:768` and
replace `scnprintf` with `sprintf`.
Also make sure you install everything:
```
sudo apt install mercurial build-essential gcc-arm-none-eabi gcc-multilib libc6-dev:i386 python-docutils
```
`module_strings.h` may not be included if you don't
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment