Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

../build-raspberrypi-rdk-broadband/tmp/deploy/images/raspberrypi-rdk-broadband/rdkb-generic-broadband-image_default_20200206062343.rootfs.rpi-sdimg

Troubleshooting

Error Messages during bitbake

/home/amrita/Desktop/EmuFeb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/memfd.c:40:12: error: static declaration of ‘memfdcreate’ follows non-static declaration | static int memfdcreate(const char name, unsigned int flags) | ^~~~~~~~~~~~ | In file included from /usr/include/x8664-linux-gnu/bits/mman-linux.h:115:0, | from /usr/include/x8664-linux-gnu/bits/mman.h:45, | from /usr/include/x8664-linux-gnu/sys/mman.h:41, | from /home/amrita/Desktop/EmuFeb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/include/sysemu/os-posix.h:29, | from /home/amrita/Desktop/EmuFeb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/include/qemu/osdep.h:104, | from /home/amrita/Desktop/EmuFeb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/memfd.c:28: | /usr/include/x8664-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfdcreate’ was here | int memfdcreate (const char name, unsigned int flags) Feb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/rules.mak:59: recipe for target 'util/memfd.o' failed | make: [util/memfd.o] Error 1 | make: Waiting for unfinished jobs.... | /home/amrita/Desktop/EmuFeb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/path.c: In function ‘followpath’: | /home/amrita/Desktop/EmuFeb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/path.c:126:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] | if (!cursor-&gtpopulatedentries) | ^~ | /home/amrita/Desktop/EmuFeb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/path.c:128:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ | cursor = *source; | ^~~~~~ | WARNING: exit code 1 from a shell command. | ERROR: Function failed: docompile (log file is located at /home/amrita/Desktop/EmuFeb3/build-qemux86broadband/tmp/work/x8664-linux/qemu-native/2.7.0-r1/temp/log.docompile.9718) ERROR: Task (virtual:native:/home/amrita/Desktop/EmuFeb3/openembedded-core/meta/recipes-devtools/qemu/qemu2.7.0.bb:docompile) failed with exit code '1'

Solution:

Remove static keyword in function int memfdcreate in file /x8664-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/memfd.c

Patch file for changes in memfd.c attached below:

memfd.patch

Pictorial representation of changes in memfd.c file:


  • Special Considerations

<If applicable, describe any special circumstances, actions, exceptions, etc., that should be considered for troubleshooting.>

...