RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
...
Gliffy Diagram size 1200 name ERR1_Emu pagePin 78
Patch file for changes in memfd.c attached below:
...
Gliffy Diagram size 1200 name ERR1_Emu pagePin 78
Patch file for changes in memfd.c attached below:
...
draw.io Diagram border true diagramName Create_inode.c simpleViewer false width links auto tbstyle top lbox true diagramWidth 121 revision 1
Error
/home2/jared_huang/rdk-20194q/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-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....
| /home2/jared_huang/rdk-20194q/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/path.c: In function ‘follow_path’:
| /home2/jared_huang/rdk-20194q/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-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->populated_entries)
| ^~
| /home2/jared_huang/rdk-20194q/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-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: /home2/jared_huang/rdk-20194q/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/temp/run.do_compile.8435:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home2/jared_huang/rdk-20194q/build-raspberrypi3-64-rdk-broadband/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/temp/log.do_compile.8435)
ERROR: Task (virtual:native:/home2/jared_huang/rdk-20194q/openembedded-core/meta/recipes-devtools/qemu/qemu_2.7.0.bb:do_compile) failed with exit code '1'
Solution:
Removed #ifdef CONFIG_MEMFD, #include <sys/memfd.h>, #elif defined CONFIG_LINUX and added #include <sys/mman.h>, #if defined CONFIG_LINUX && !defined CONFIG_MEMFD in /x86_64-linux/qemu-native/2.7.0-r1/qemu-2.7.0/util/memfd.c
Pictorial representation of changes in memfd.c file:
Gliffy Diagram size 1200 name ERR4 pagePin 1
Patch file for changes in memfd.c attached below:
Path for changes in memfd.c file:
draw.io Diagram border true diagramName Mem simpleViewer false width links auto tbstyle top lbox true diagramWidth 241 revision 1
Contact | Organization | Phone | Role | |
Rajkumar Narayanan | L&T Technology Services | Nill | rajkumar.narayanan@ltts.com | Program Manager |
...