locked
Library1.h: No such file or directory RRS feed

  • Question

  • Fatal error happend when static library project on Japanese Folder.

    1>Library1.c:1:10: fatal error: Library1.h: No such file or directory
    1> #include <Library1.h>
    1>          ^~~~~~~~~~~~
    

    When enable verbose mode:

    1>------ すべてのリビルド開始: プロジェクト:Library1, 構成: Debug ARM ------
    1>Using built-in specs.
    1>COLLECT_GCC=C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\tools\gcc\arm-poky-linux-musleabi-gcc.exe
    1>Target: arm-poky-linux-musleabi
    1>Configured with: ../../../../../../work-shared/gcc-7.3.0-r0/gcc-7.3.0/configure --build=x86_64-linux --host=i686-pokysdk-mingw32 --target=arm-poky-linux-musleabi --prefix=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr --exec_prefix=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr --bindir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/bin/arm-poky-linux-musleabi --sbindir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/bin/arm-poky-linux-musleabi --libexecdir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/libexec/arm-poky-linux-musleabi --datadir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/share --sysconfdir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/etc --sharedstatedir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/com --localstatedir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/var --libdir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/lib/arm-poky-linux-musleabi --includedir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/include --oldincludedir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/include --infodir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/share/info --mandir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot --enable-clocale=generic --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-musleabi- --without-local-prefix --enable-lto --enable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/7.3.0 --with-build-time-tools=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot-native/usr/arm-poky-linux-musleabi/bin --with-sysroot=/not/exist --with-build-sysroot=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot --without-long-double-128 --enable-poison-system-directories --with-mpfr=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot --with-mpc=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot --disable-static --disable-nls --enable-initfini-array --disable-multilib --enable-default-pie --disable-nls
    1>Thread model: posix
    1>gcc version 7.3.0 (GCC)
    1>COLLECT_GCC_OPTIONS='--sysroot=C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1' '-c' '-I' 'C:\AzureSphere\日本語\Library1\Inc\Public' '-I' 'C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\usr\include' '-g2' '-gdwarf-2' '-o' 'obj\ARM\Debug\Library1.o' '-Wall' '-Wstrict-prototypes' '-Wswitch' '-Wno-deprecated-declarations' '-Wempty-body' '-Wconversion' '-Wreturn-type' '-Wparentheses' '-Wno-pointer-sign' '-Wformat=0' '-Wuninitialized' '-Wunused-function' '-Wunused-value' '-Wunused-variable' '-v' '-O0' '-fno-strict-aliasing' '-fno-omit-frame-pointer' '-D' '_POSIX_C_SOURCE' '-fno-exceptions' '-std=c11' '-Werror=implicit-function-declaration' '-B' 'C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\tools\gcc' '-march=armv7ve' '-mthumb' '-mfpu=neon' '-mfloat-abi=hard' '-mcpu=cortex-a7' '-mtls-dialect=gnu'
    1> C:/Program Files (x86)/Microsoft Azure Sphere SDK/Sysroots/1/tools/gcc/cc1.exe -quiet -v -I C:\AzureSphere\日本語\Library1\Inc\Public -I C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\usr\include -iprefix c:\program files (x86)\microsoft azure sphere sdk\sysroots\1\tools\gcc\../../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/ -isysroot C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1 -D _POSIX_C_SOURCE Library1.c -quiet -dumpbase Library1.c -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -mtls-dialect=gnu -auxbase-strip obj\ARM\Debug\Library1.o -g2 -gdwarf-2 -O0 -Wall -Wstrict-prototypes -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-pointer-sign -Wformat=0 -Wuninitialized -Wunused-function -Wunused-value -Wunused-variable -Werror=implicit-function-declaration -std=c11 -version -fno-strict-aliasing -fno-omit-frame-pointer -fno-exceptions -o C:\Users\takashi\AppData\Local\Temp\ccRHoHun.s
    1>GNU C11 (GCC) version 7.3.0 (arm-poky-linux-musleabi)
    1>	compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.1.0, isl version none
    1>GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    1>ignoring nonexistent directory "c:\program files (x86)\microsoft azure sphere sdk\sysroots\1\tools\gcc\../../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/../../../../../arm-poky-linux-musleabi/include"
    1>ignoring nonexistent directory "c:\program files (x86)\microsoft azure sphere sdk\sysroots\1\tools\gcc\../../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/include"
    1>ignoring nonexistent directory "C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/../../../../include"
    1>ignoring nonexistent directory "c:/program files (x86)/microsoft azure sphere sdk/sysroots/1/lib/../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/../../../../../arm-poky-linux-musleabi/include"
    1>ignoring nonexistent directory "c:/program files (x86)/microsoft azure sphere sdk/sysroots/1/lib/../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/include"
    1>ignoring nonexistent directory "C:\AzureSphere\日本語\Library1\Inc\Public"
    1>ignoring duplicate directory "C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\usr\include"
    1>  as it is a non-system directory that duplicates a system directory
    1>#include "..." search starts here:
    1>#include <...> search starts here:
    1> C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1/usr/include
    1>End of search list.
    1>GNU C11 (GCC) version 7.3.0 (arm-poky-linux-musleabi)
    1>	compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.1.0, isl version none
    1>GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    1>Compiler executable checksum: 43bac43d1319bbe5a20c85a6791947fd
    1>Library1.c:1:10: fatal error: Library1.h: No such file or directory
    1> #include <Library1.h>
    1>          ^~~~~~~~~~~~
    1>compilation terminated.

    Sunday, January 27, 2019 1:33 AM

Answers

  • Hi!

    I confirmed that this should have been fixed on version 19.02, can you update and try it again? For older versions, as a workaround we recommend adding the .h file by hand to the project property.

    Thank you!

    Wednesday, February 27, 2019 10:46 AM

All replies

  • Try to change brackets to quotes (from #include <Library1.h> to #include "Library1.h").

    Usually, GCC search files by the following rule: file in brackets located in the system folder, file in quotes in the local folder.

    Sunday, January 27, 2019 9:33 AM
  • 1>------ すべてのリビルド開始: プロジェクト:Library1, 構成: Debug ARM ------
    1>Using built-in specs.
    1>COLLECT_GCC=C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\tools\gcc\arm-poky-linux-musleabi-gcc.exe
    1>Target: arm-poky-linux-musleabi
    1>Configured with: ../../../../../../work-shared/gcc-7.3.0-r0/gcc-7.3.0/configure --build=x86_64-linux --host=i686-pokysdk-mingw32 --target=arm-poky-linux-musleabi --prefix=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr --exec_prefix=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr --bindir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/bin/arm-poky-linux-musleabi --sbindir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/bin/arm-poky-linux-musleabi --libexecdir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/libexec/arm-poky-linux-musleabi --datadir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/share --sysconfdir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/etc --sharedstatedir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/com --localstatedir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/var --libdir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/lib/arm-poky-linux-musleabi --includedir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/include --oldincludedir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/include --infodir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/share/info --mandir=/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot --enable-clocale=generic --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-musleabi- --without-local-prefix --enable-lto --enable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/7.3.0 --with-build-time-tools=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot-native/usr/arm-poky-linux-musleabi/bin --with-sysroot=/not/exist --with-build-sysroot=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot --without-long-double-128 --enable-poison-system-directories --with-mpfr=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot --with-mpc=/home/exp23svc/agent/_work/7/b/out/out/work/i686-nativesdk-mingw32-pokysdk-mingw32/gcc-cross-canadian-arm/7.3.0-r0/recipe-sysroot --disable-static --disable-nls --enable-initfini-array --disable-multilib --enable-default-pie --disable-nls
    1>Thread model: posix
    1>gcc version 7.3.0 (GCC)
    1>COLLECT_GCC_OPTIONS='--sysroot=C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1' '-c' '-I' 'C:\AzureSphere\日本語\Library1\Inc\Public' '-I' 'C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\usr\include' '-g2' '-gdwarf-2' '-o' 'obj\ARM\Debug\Library1.o' '-Wall' '-Wstrict-prototypes' '-Wswitch' '-Wno-deprecated-declarations' '-Wempty-body' '-Wconversion' '-Wreturn-type' '-Wparentheses' '-Wno-pointer-sign' '-Wformat=0' '-Wuninitialized' '-Wunused-function' '-Wunused-value' '-Wunused-variable' '-v' '-O0' '-fno-strict-aliasing' '-fno-omit-frame-pointer' '-D' '_POSIX_C_SOURCE' '-fno-exceptions' '-std=c11' '-Werror=implicit-function-declaration' '-B' 'C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\tools\gcc' '-march=armv7ve' '-mthumb' '-mfpu=neon' '-mfloat-abi=hard' '-mcpu=cortex-a7' '-mtls-dialect=gnu'
    1> C:/Program Files (x86)/Microsoft Azure Sphere SDK/Sysroots/1/tools/gcc/cc1.exe -quiet -v -I C:\AzureSphere\日本語\Library1\Inc\Public -I C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\usr\include -iprefix c:\program files (x86)\microsoft azure sphere sdk\sysroots\1\tools\gcc\../../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/ -isysroot C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1 -D _POSIX_C_SOURCE Library1.c -quiet -dumpbase Library1.c -march=armv7ve -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -mtls-dialect=gnu -auxbase-strip obj\ARM\Debug\Library1.o -g2 -gdwarf-2 -O0 -Wall -Wstrict-prototypes -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-pointer-sign -Wformat=0 -Wuninitialized -Wunused-function -Wunused-value -Wunused-variable -Werror=implicit-function-declaration -std=c11 -version -fno-strict-aliasing -fno-omit-frame-pointer -fno-exceptions -o C:\Users\takashi\AppData\Local\Temp\ccn49zwJ.s
    1>GNU C11 (GCC) version 7.3.0 (arm-poky-linux-musleabi)
    1>	compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.1.0, isl version none
    1>GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    1>ignoring nonexistent directory "c:\program files (x86)\microsoft azure sphere sdk\sysroots\1\tools\gcc\../../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/../../../../../arm-poky-linux-musleabi/include"
    1>ignoring nonexistent directory "c:\program files (x86)\microsoft azure sphere sdk\sysroots\1\tools\gcc\../../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/include"
    1>ignoring nonexistent directory "C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1/opt/exp23/2.5/sysroots/i686-pokysdk-mingw32/usr/lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/../../../../include"
    1>ignoring nonexistent directory "c:/program files (x86)/microsoft azure sphere sdk/sysroots/1/lib/../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/../../../../../arm-poky-linux-musleabi/include"
    1>ignoring nonexistent directory "c:/program files (x86)/microsoft azure sphere sdk/sysroots/1/lib/../lib/arm-poky-linux-musleabi/gcc/arm-poky-linux-musleabi/7.3.0/include"
    1>ignoring nonexistent directory "C:\AzureSphere\日本語\Library1\Inc\Public"
    1>ignoring duplicate directory "C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1\usr\include"
    1>  as it is a non-system directory that duplicates a system directory
    1>#include "..." search starts here:
    1>#include <...> search starts here:
    1> C:\Program Files (x86)\Microsoft Azure Sphere SDK\Sysroots\1/usr/include
    1>End of search list.
    1>GNU C11 (GCC) version 7.3.0 (arm-poky-linux-musleabi)
    1>	compiled by GNU C version 7.3.0, GMP version 6.1.2, MPFR version 3.1.5, MPC version 1.1.0, isl version none
    1>GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
    1>Compiler executable checksum: 43bac43d1319bbe5a20c85a6791947fd
    1>Library1.c:1:10: fatal error: Library1.h: No such file or directory
    1> #include "Library1.h"
    1>          ^~~~~~~~~~~~
    1>compilation terminated.
    

    Sunday, January 27, 2019 12:03 PM
  • I'm sorry you are experiencing this. I recalled that you reported a related bug in November.

     https://social.msdn.microsoft.com/Forums/en-US/423a1fa9-4143-4eb4-a275-a5c71b14289e/library1h-no-such-file-or-directory-when-create-static-library?forum=azuresphere

    Just to confirm. Does the English naming work for you?

    Thanks again for your valuable feedback!

    Friday, February 1, 2019 11:50 PM
  • Hi!

    I confirmed that this should have been fixed on version 19.02, can you update and try it again? For older versions, as a workaround we recommend adding the .h file by hand to the project property.

    Thank you!

    Wednesday, February 27, 2019 10:46 AM