Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1703 Discussions

Getting error while compiling same Opticm6 environment commands in docker container.

dipti_thorat
Employee
1,169 Views

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(32): catastrophic error: cannot open source file "stddef.h"
  #include <stddef.h>
                     ^

 

compilation aborted for ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c (code 4)
make[1]: *** [/local/bgowdakx/sg8_test/sofia-oe-buildsystem/poky/../../android/out/target/product/m7272trio_mphy/bootloader/M7272_TRIO_XMM7272_DVFS_VMM_REV_1.0_IOSM_RPC_NAND_userdebug/obj/bionic_libc_common/__memcpy_chk.o] Error 3
make[1]: Leaving directory `/local/bgowdakx/sg8_test/modem/system-build/make'
make: *** [bionic_libc_common.lib] Error 2
WARNING: exit code 2 from a shell command.
ERROR: Function failed: do_fls_image (log file is located at /local/bgowdakx/sg8_test/sofia-oe-buildsystem/build-m7272trio_mphy/tmp-m7272-trio-mphy/work/x86_64-linux/misc-fls-mini/1.0-r0/temp/log.do_fls_image.11218)

0 Kudos
7 Replies
JyothisV_Intel
Employee
1,155 Views

Hi,


Good day to you.


Thanks for posting in Intel Communities.


From your query, we are not exactly sure what issue you are facing or the steps to replicate it from our side. To assist you better, can you get back to us with the following information:

1. Are you using Intel DevCloud? Is yes, is it Intel DevCloud for oneAPI or Intel DevCloud for Edge?

2. A sample reproducer code that replicates this error.

3. The exact steps/commands that you followed/executed that led you to this error.


Regards,

Jyothis V James


0 Kudos
dipti_thorat
Employee
1,144 Views

1. Are you using Intel DevCloud? Is yes, is it Intel DevCloud for oneAPI or Intel DevCloud for Edge?

--> I am using docker container with linux environment

2. A sample reproducer code that replicates this error.

I attached with same as build.log 

3. The exact steps/commands that you followed/executed that led you to this error.

->git config --global url."https://".insteadOf git://

 

->source setup-build-env-ext build -m m7272-trio-mphy -var m7272trio_mphy -d xmm7272-slim-nonatt -swv XMM7272_V2_TRIO_2043.00_BL01_DPACKS

 

->export PATH=`echo $PATH | sed 's/\:\.//g'`

->bitbake fota-mini 2>&1 | tee build.log

0 Kudos
JyothisV_Intel
Employee
1,118 Views

Hi,


Good day to you.


Thanks for getting back to us.


This forum primarily supports queries related to Intel DevCloud. Kindly confirm if you are facing issues using any Intel products, hardware, software or services. If yes, do get back to us to assist you better with those products.


Regards,

Jyothis V James


0 Kudos
AnaWilliam850
New Contributor I
1,109 Views

Hi 

The error message indicates that the file stddef.h could not be found by the compiler. This is likely because the necessary include path is not set up correctly.

Here are some steps you can try to resolve this issue:

  1. Check if the file stddef.h exists in the expected location. If it doesn't, make sure it is installed or copied to the appropriate directory.

  2. Check if the include path is set up correctly. You can do this by looking at the compiler command that was used to compile the code. Make sure that the necessary include paths are specified with the -I option.

  3. If you are using a build system or IDE, check the project settings to make sure that the include path is set up correctly.

  4. If the issue persists, try running a clean build to make sure that any cached files are cleared and the build system picks up the correct include path.

  5. If you are still unable to resolve the issue, try consulting the documentation or seeking help from the community or the toolchain support team.

0 Kudos
dipti_thorat
Employee
1,095 Views

Hi AnaWilliam850,

 

Thanks for your support. I will let you know after completion.

 

Thanks & Regards

Dipti 

0 Kudos
dipti_thorat
Employee
1,087 Views

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(69): error: identifier "size_t" is undefined
  extern size_t strnlen(const char *, size_t) __purefunc;
                                      ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(70): error: identifier "size_t" is undefined
  extern char*  strncat(char *, const char *, size_t);
                                              ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(71): error: identifier "size_t" is undefined
  extern char*  strndup(const char *, size_t);
                                      ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(72): error: identifier "size_t" is undefined
  extern int    strncmp(const char *, const char *, size_t) __purefunc;
                                                    ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(73): error: identifier "size_t" is undefined
  extern char*  strncpy(char *, const char *, size_t);
                                              ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(75): error: identifier "size_t" is undefined
  extern size_t strlcat(char *, const char *, size_t);
         ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(75): error: identifier "size_t" is undefined
  extern size_t strlcat(char *, const char *, size_t);
                                              ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(76): error: identifier "size_t" is undefined
  extern size_t strlcpy(char *, const char *, size_t);
         ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(76): error: identifier "size_t" is undefined
  extern size_t strlcpy(char *, const char *, size_t);
                                              ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(78): error: identifier "size_t" is undefined
  extern size_t strcspn(const char *, const char *) __purefunc;
         ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(81): error: identifier "size_t" is undefined
  extern size_t strspn(const char *, const char *);
         ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(86): error: identifier "size_t" is undefined
  extern size_t strxfrm(char *, const char *, size_t);
         ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(23),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/string.h(86): error: identifier "size_t" is undefined
  extern size_t strxfrm(char *, const char *, size_t);
                                              ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(26),
                 from ../../3p_oss_bsd/bionic/src/libc/include/stdlib.h(40),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/stdlib.h(23),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(26),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../msw_platform_services/runtime_services/stdlib/inc/stdlib.h(39): error: identifier "size_t" is undefined
  typedef size_t rsize_t;
          ^

 

In file included from ../../3p_oss_bsd/bionic/src/libc/include/stdlib.h(40),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/stdlib.h(23),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(26),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../msw_platform_services/runtime_services/stdlib/inc/string.h(264): error: identifier "size_t" is undefined
  size_t strnlen_s(const char *s, size_t maxsize);
  ^

 

In file included from ../../3p_oss_bsd/bionic/src/libc/include/stdlib.h(40),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/stdlib.h(23),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(26),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../msw_platform_services/runtime_services/stdlib/inc/string.h(264): error: identifier "size_t" is undefined
  size_t strnlen_s(const char *s, size_t maxsize);
                                  ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/stdlib.h(23),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(26),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/stdlib.h(172): error: identifier "wchar_t" is undefined
  extern size_t   mbstowcs(wchar_t *, const char *, size_t);
                           ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/stdlib.h(23),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(26),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/stdlib.h(173): error: identifier "wchar_t" is undefined
  extern int      mbtowc(wchar_t *, const char *, size_t);
                         ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/stdlib.h(23),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(26),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/stdlib.h(176): error: identifier "wchar_t" is undefined
  extern int    wctomb(char *, wchar_t);
                               ^

 

In file included from ../../msw_platform_services/runtime_services/stdlib/inc/stdlib.h(23),
                 from ../../msw_platform_services/runtime_services/stdlib/inc/string.h(26),
                 from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(30):
../../3p_oss_bsd/bionic/src/libc/include/stdlib.h(177): error: identifier "wchar_t" is undefined
  extern size_t    wcstombs(char *, const wchar_t *, size_t);
                                          ^

 

In file included from ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c(32):
../../3p_oss_bsd/bionic/src/libc/private/logd.h(31): catastrophic error: cannot open source file "stdarg.h"
  #include <stdarg.h>
                     ^

 

compilation aborted for ../../3p_oss_bsd/bionic/src/libc/string/__memcpy_chk.c (code 4)
make[1]: *** [/local/bgowdakx/2043_ZIP/sofia-oe-buildsystem/poky/../../android/out/target/product/m7272trio_mphy/bootloader/M7272_TRIO_XMM7272_DVFS_VMM_REV_1.0_IOSM_RPC_NAND_userdebug/obj/bionic_libc_common/__memcpy_chk.o] Error 3

 

 

Whole file is incorrect it's showing

0 Kudos
JyothisV_Intel
Employee
1,024 Views

Hi,


Good day to you.


We have not heard back from you. This thread will no longer be monitored by Intel and all interactions in this thread will be community only.


Thanks and Regards,

Jyothis V James


0 Kudos
Reply