Re: [1.9.0] build broken for windows


Carles Perello
 

good, this and the proper Python tolos did the trick.

Now I need to check where in the make the -no-pie option is used

( echo -nostartfiles -nodefaultlibs -nostdlib -static -no-pie -Wl,-X -Wl,-N -Wl,--gc-sections -Wl,--build-id=none; echo "-Wl,-Map=zephyr.map"; echo "-L ./include/generated"; echo "-u _OffsetAbsSyms -u _ConfigAbsSyms"; echo "-e __start"; echo "-Wl,--start-group"; echo "-Wl,--whole-archive"; echo "libapplication.a"; echo "libzephyr.a"; echo "-Wl,--no-whole-archive"; echo "kernel/lib.a"; echo "./arch/x86/core/offsets/offsets.o"; echo "-Wl,--end-group"; echo "-L /home/perelloc/issm-toolchain-windows-2017-01-25/tools/compiler/gcc-ia/5.2.1/lib/gcc/i586-intel-elfiamcu/5.2.1 -L /home/perelloc/issm-toolchain-windows-2017-01-25/tools/compiler/gcc-ia/5.2.1/i586-intel-elfiamcu/lib -lgcc"; ) > zephyr.lnk

/home/perelloc/issm-toolchain-windows-2017-01-25/tools/compiler/gcc-ia/5.2.1/bin/i586-intel-elfiamcu-gcc -T linker.cmd @zephyr.lnk -o zephyr_prebuilt.elf

i586-intel-elfiamcu-gcc.exe: error: unrecognized command line option '-no-pie'


On Mon, Oct 9, 2017 at 5:48 PM, Boie, Andrew P <andrew.p.boie@...> wrote:

I had this same problem with xtools yesterday.

In scripts/Makefile.toolchain.issm, the "export" line on like 44 needs DTC added to it. Otherwise the variable is unset and you will get the error below.

DTC used to not be used for qemu this is a recent bug.

 

Andrew

 

From: zephyr-users-bounces@lists.zephyrproject.org [mailto:zephyr-users-bounces@lists.zephyrproject.org] On Behalf Of Carles Perello
Sent: Monday, October 9, 2017 6:52 AM
To: zephyr-users@lists.zephyrproject.org
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@lists.zephyrproject.org [mailto:zephyr-users-bounces@lists.zephyrproject.org] On Behalf Of Carles Perello
Sent: 06 October 2017 10:28
To: zephyr-users@lists.zephyrproject.org
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.