Re: [1.9.0] build broken for windows


Carles Cufi
 

Hi Carles,

 

can you run this on an MSYS2 shell:

 

$ which dtc

/usr/bin/dtc

 

You should get /usr/bin/dtc, if you don’t that means that dtc for some reason failed to install.

 

Device Tree is a hardware description language and mechanism. Instead of describing the particularities of each SoC and board through a set of header files or Makefiles, you do so by using the DT language, which is then compiled by dtc to generated the required information for the build system and source code. More information can be found here:

 

https://www.zephyrproject.org/doc/devices/dts/device_tree.html

 

Zephyr 1.8 probably did not use DT for the x86 targets, since this was introduced recently.

 

Regards,

 

Carles

 

From: zephyr-users-bounces@... [mailto:zephyr-users-bounces@...] On Behalf Of Carles Perello
Sent: 09 October 2017 16:14
To: zephyr-users@...
Subject: Re: [Zephyr-users] [1.9.0] build broken for windows

 

sure dtc was installed via pacman.

 

citrix on here is Windows..I am using ISSM toolchain.

 

 

what is dts exactly? seems it was not existing on 1.8.0....probably I can avoid it?

 

regards

 

On Mon, Oct 9, 2017 at 3:57 PM, Cufi, Carles <Carles.Cufi@...> wrote:

Hi Carles,

 

Do you have dtc installed? It looks like it could not find your Device Tree Compiler (dtc).

 

I am not sure if Citrix and Works is Windows (MSYS2) or not, but if you are building on Linux then you need to install the Zephyr SDK, which includes dtc.

 

Regards,

 

Carles

 

From: zephyr-users-bounces@... [mailto:zephyr-users-bounces@...] On Behalf Of Carles Perello
Sent: 09 October 2017 15:52
To: zephyr-users@...
Subject: Re: [Zephyr-users] [1.9.0] build broken for windows

 

Ok. msys2 on Windows 7 Enterprise is BSOD.

 

So I tried it under citrix and Works but still have the same error:

 

make -f /home/perelloc/zephyr/scripts/Makefile.build obj=scripts/basic

make -f /home/perelloc/zephyr/scripts/Makefile.build obj=dts/x86

echo '#include "arduino_101.dts"' > dts/x86/arduino_101.dts_pre_compiled ; if test -e Z:/perelloc/msys32/home/perelloc/zephyr/samples/hello_world/arduino_101.overlay; then echo '#include "Z:/perelloc/msys32/home/perelloc/zephyr/samples/hello_world/arduino_101.overlay"' >> dts/x86/arduino_101.dts_pre_compiled ; fi ; /home/perelloc/issm-toolchain-windows-2017-01-25/tools/compiler/gcc-ia/5.2.1/bin/i586-intel-elfiamcu-gcc -E -Wp,-MD,dts/x86/.arduino_101.dts_compiled.d.pre.tmp -nostdinc -I/home/perelloc/zephyr/kernel/include -I/home/perelloc/zephyr/arch/x86/include -I/home/perelloc/zephyr/arch/x86/soc/intel_quark/quark_se -I/home/perelloc/zephyr/boards/x86/arduino_101 -I/home/perelloc/zephyr/include -I/home/perelloc/zephyr/include -I/home/perelloc/zephyr/samples/hello_world/outdir/arduino_101/include/generated -include /home/perelloc/zephyr/samples/hello_world/outdir/arduino_101/include/generated/autoconf.h -I/home/perelloc/zephyr/ext/hal/qmsi/include -I/home/perelloc/zephyr/ext/hal/qmsi/drivers/include -I/home/perelloc/zephyr/ext/hal/qmsi/soc/quark_se/include/ -I/home/perelloc/zephyr/lib/libc/minimal/include -I/home/perelloc/zephyr/arch/x86/soc -I/home/perelloc/zephyr/dts/common -I/home/perelloc/zephyr/dts -I/home/perelloc/zephyr/dts/x86 -I/home/perelloc/zephyr/drivers/of/testcase-data -I/home/perelloc/zephyr/samples/hello_world -undef -D__DTS__ -x assembler-with-cpp -o dts/x86/.arduino_101.dts_compiled.dts.tmp dts/x86/arduino_101.dts_pre_compiled ; -O dts -o dts/x86/arduino_101.dts_compiled -b 0 -i /home/perelloc/zephyr/dts/x86/ -d dts/x86/.arduino_101.dts_compiled.d.dtc.tmp dts/x86/.arduino_101.dts_compiled.dts.tmp ; cat dts/x86/.arduino_101.dts_compiled.d.pre.tmp dts/x86/.arduino_101.dts_compiled.d.dtc.tmp > dts/x86/.arduino_101.dts_compiled.d

/bin/sh: -O: command not found

make[3]: *** [scripts/Makefile.lib:307: dts/x86/arduino_101.dts_compiled] Error 127

make[2]: *** [/home/perelloc/zephyr/Makefile:1008: include/generated/generated_dts_board.h] Error 2

make[2]: Leaving directory '/home/perelloc/zephyr/samples/hello_world/outdir/arduino_101'

make[1]: *** [Makefile:178: sub-make] Error 2

make[1]: Leaving directory '/home/perelloc/zephyr'

make: *** [/home/perelloc/zephyr/Makefile.inc:82: all] Error 2

 

 

On Fri, Oct 6, 2017 at 10:35 AM, Cufi, Carles <Carles.Cufi@...> wrote:

Hi Carles,

 

MinGW is no longer supported as a build environment for Zephyr, it was removed from the documentation accordingly.

 

Could you try using MSYS2 instead, as per the instructions here:

https://www.zephyrproject.org/doc/getting_started/installation_win.html#using-msys2

 

Regards,

 

Carles

 

From: zephyr-users-bounces@... [mailto:zephyr-users-bounces@...] On Behalf Of Carles Perello
Sent: 06 October 2017 10:28
To: zephyr-users@...
Subject: [Zephyr-users] [1.9.0] build broken for windows

 

Hi

 

I was able to buil zephyr under Windows/MinGW until versión 1.8.0 (targets quemu and arduino_101)

 

Seems this got broken on 1.9.0

 

make -f d:/zephyr-1.9.0/scripts/Makefile.build obj=dts/x86
  echo '#include "arduino_101.dts"' > dts/x86/arduino_101.dts_pre_compiled ; if test -e d:/zephyr-1.9.0/samples/hello_world/arduino_101.overlay; then echo '#include "d:/zephyr-1.9.0/samples/hello_world/arduino_101.overlay"' >> dts/x86/arduino_101.dts_pre_compiled ; fi ; /d/IntelSWTools/ISSM_2016.1.067/tools/compiler/gcc-ia/5.2.1/bin/i586-intel-elfiamcu-gcc -E -Wp,-MD,dts/x86/.arduino_101.dts_compiled.d.pre.tmp -nostdinc -I/d/zephyr-1.9.0/kernel/include -I/d/zephyr-1.9.0/arch/x86/include -I/d/zephyr-1.9.0/arch/x86/soc/intel_quark/quark_se -I/d/zephyr-1.9.0/boards/x86/arduino_101  -I/d/zephyr-1.9.0/include -I/d/zephyr-1.9.0/include -I/d/zephyr-1.9.0/samples/hello_world/outdir/arduino_101/include/generated -include /d/zephyr-1.9.0/samples/hello_world/outdir/arduino_101/include/generated/autoconf.h  -I/d/zephyr-1.9.0/ext/hal/qmsi/include -I/d/zephyr-1.9.0/ext/hal/qmsi/drivers/include -I/d/zephyr-1.9.0/ext/hal/qmsi/soc/quark_se/include/ -I/d/zephyr-1.9.0/lib/libc/minimal/include -I/d/zephyr-1.9.0/arch/x86/soc -I/d/zephyr-1.9.0/dts/common -I/d/zephyr-1.9.0/dts -I/d/zephyr-1.9.0/dts/x86 -I/d/zephyr-1.9.0/drivers/of/testcase-data -Id:/zephyr-1.9.0/samples/hello_world -undef -D__DTS__ -x assembler-with-cpp -o dts/x86/.arduino_101.dts_compiled.dts.tmp dts/x86/arduino_101.dts_pre_compiled ;  -O dts -o dts/x86/arduino_101.dts_compiled -b 0 -i /d/zephyr-1.9.0/dts/x86/  -d dts/x86/.arduino_101.dts_compiled.d.dtc.tmp dts/x86/.arduino_101.dts_compiled.dts.tmp ; cat dts/x86/.arduino_101.dts_compiled.d.pre.tmp dts/x86/.arduino_101.dts_compiled.d.dtc.tmp > dts/x86/.arduino_101.dts_compiled.d
/bin/sh: -O: command not found
make[3]: *** [dts/x86/arduino_101.dts_compiled] Error 127

 

any hint?

 

regards

 

 

Join users@lists.zephyrproject.org to automatically receive all group messages.