Simulator on Linux or Windows

This forum is dedicated to feedback, discussions about ongoing or future developments, ideas and suggestions regarding the ChibiOS projects are welcome. This forum is NOT for support.
mingthemad
Posts: 12
Joined: Wed Sep 26, 2012 4:33 am

Simulator on Linux or Windows

Postby mingthemad » Tue Oct 02, 2012 3:48 am

I've been looking at the simulator code for Posix and Win32 and unless I am mistaken, it is
quite out of date. I can't get it to compile anything - the warnings are too numerous
to include. Note that I have STM32F4 samples compiling and running just fine

Can anybody indicate the current state of the simulators? Is there any
chance of it being fixed soon, or should I spend time on it myself ?

Craig

User avatar
Giovanni
Site Admin
Posts: 14026
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 989 times
Been thanked: 833 times
Contact:

Re: Simulator on Linux or Windows

Postby Giovanni » Tue Oct 02, 2012 7:53 am

Which ChibiOS version are you using, simulators are supposed to work, I used the Win32 one just yesterday.

Giovanni

mabl
Posts: 417
Joined: Tue Dec 21, 2010 10:19 am
Location: Karlsruhe, Germany
Been thanked: 1 time
Contact:

Re: Simulator on Linux or Windows

Postby mabl » Tue Oct 02, 2012 8:25 am

For me the POSIX one also does not compile:

Code: Select all

mabl@mikrocanonix [09:24:06] [~/Programming/ARM/Projects/ChibiOS_openocd/demos/Posix-GCC] [master *]
-> % make clean
rm -f  ../../os/ports/GCC/SIMIA32/chcore.o ../../os/kernel/src/chsys.o ../../os/kernel/src/chdebug.o ../../os/kernel/src/chlists.o ../../os/kernel/src/chvt.o ../../os/kernel/src/chschd.o ../../os/kernel/src/chthreads.o ../../os/kernel/src/chdynamic.o ../../os/kernel/src/chregistry.o ../../os/kernel/src/chsem.o ../../os/kernel/src/chmtx.o ../../os/kernel/src/chcond.o ../../os/kernel/src/chevents.o ../../os/kernel/src/chmsg.o ../../os/kernel/src/chmboxes.o ../../os/kernel/src/chqueues.o ../../os/kernel/src/chmemcore.o ../../os/kernel/src/chheap.o ../../os/kernel/src/chmempools.o ../../test/test.o ../../test/testthd.o ../../test/testsem.o ../../test/testmtx.o ../../test/testmsg.o ../../test/testmbox.o ../../test/testevt.o ../../test/testheap.o ../../test/testpools.o ../../test/testdyn.o ../../test/testqueues.o ../../test/testbmk.o ../../os/hal/src/hal.o ../../os/hal/src/adc.o ../../os/hal/src/can.o ../../os/hal/src/ext.o ../../os/hal/src/gpt.o ../../os/hal/src/i2c.o ../../os/hal/src/icu.o ../../os/hal/src/mac.o ../../os/hal/src/mmc_spi.o ../../os/hal/src/mmcsd.o ../../os/hal/src/pal.o ../../os/hal/src/pwm.o ../../os/hal/src/rtc.o ../../os/hal/src/sdc.o ../../os/hal/src/serial.o ../../os/hal/src/serial_usb.o ../../os/hal/src/spi.o ../../os/hal/src/tm.o ../../os/hal/src/uart.o ../../os/hal/src/usb.o ../../os/hal/platforms/Posix/hal_lld.o ../../os/hal/platforms/Posix/pal_lld.o ../../os/hal/platforms/Posix/serial_lld.o ../../boards/simulator/board.o ../../os/various/shell.o ../../os/various/chprintf.o main.o
rm -f ch
rm -f ch.map
rm -f ../../os/ports/GCC/SIMIA32/chcore.c.bak ../../os/kernel/src/chsys.c.bak ../../os/kernel/src/chdebug.c.bak ../../os/kernel/src/chlists.c.bak ../../os/kernel/src/chvt.c.bak ../../os/kernel/src/chschd.c.bak ../../os/kernel/src/chthreads.c.bak ../../os/kernel/src/chdynamic.c.bak ../../os/kernel/src/chregistry.c.bak ../../os/kernel/src/chsem.c.bak ../../os/kernel/src/chmtx.c.bak ../../os/kernel/src/chcond.c.bak ../../os/kernel/src/chevents.c.bak ../../os/kernel/src/chmsg.c.bak ../../os/kernel/src/chmboxes.c.bak ../../os/kernel/src/chqueues.c.bak ../../os/kernel/src/chmemcore.c.bak ../../os/kernel/src/chheap.c.bak ../../os/kernel/src/chmempools.c.bak ../../test/test.c.bak ../../test/testthd.c.bak ../../test/testsem.c.bak ../../test/testmtx.c.bak ../../test/testmsg.c.bak ../../test/testmbox.c.bak ../../test/testevt.c.bak ../../test/testheap.c.bak ../../test/testpools.c.bak ../../test/testdyn.c.bak ../../test/testqueues.c.bak ../../test/testbmk.c.bak ../../os/hal/src/hal.c.bak ../../os/hal/src/adc.c.bak ../../os/hal/src/can.c.bak ../../os/hal/src/ext.c.bak ../../os/hal/src/gpt.c.bak ../../os/hal/src/i2c.c.bak ../../os/hal/src/icu.c.bak ../../os/hal/src/mac.c.bak ../../os/hal/src/mmc_spi.c.bak ../../os/hal/src/mmcsd.c.bak ../../os/hal/src/pal.c.bak ../../os/hal/src/pwm.c.bak ../../os/hal/src/rtc.c.bak ../../os/hal/src/sdc.c.bak ../../os/hal/src/serial.c.bak ../../os/hal/src/serial_usb.c.bak ../../os/hal/src/spi.c.bak ../../os/hal/src/tm.c.bak ../../os/hal/src/uart.c.bak ../../os/hal/src/usb.c.bak ../../os/hal/platforms/Posix/hal_lld.c.bak ../../os/hal/platforms/Posix/pal_lld.c.bak ../../os/hal/platforms/Posix/serial_lld.c.bak ../../boards/simulator/board.c.bak ../../os/various/shell.c.bak ../../os/various/chprintf.c.bak main.c.bak
rm -f ../../os/ports/GCC/SIMIA32/chcore.lst ../../os/kernel/src/chsys.lst ../../os/kernel/src/chdebug.lst ../../os/kernel/src/chlists.lst ../../os/kernel/src/chvt.lst ../../os/kernel/src/chschd.lst ../../os/kernel/src/chthreads.lst ../../os/kernel/src/chdynamic.lst ../../os/kernel/src/chregistry.lst ../../os/kernel/src/chsem.lst ../../os/kernel/src/chmtx.lst ../../os/kernel/src/chcond.lst ../../os/kernel/src/chevents.lst ../../os/kernel/src/chmsg.lst ../../os/kernel/src/chmboxes.lst ../../os/kernel/src/chqueues.lst ../../os/kernel/src/chmemcore.lst ../../os/kernel/src/chheap.lst ../../os/kernel/src/chmempools.lst ../../test/test.lst ../../test/testthd.lst ../../test/testsem.lst ../../test/testmtx.lst ../../test/testmsg.lst ../../test/testmbox.lst ../../test/testevt.lst ../../test/testheap.lst ../../test/testpools.lst ../../test/testdyn.lst ../../test/testqueues.lst ../../test/testbmk.lst ../../os/hal/src/hal.lst ../../os/hal/src/adc.lst ../../os/hal/src/can.lst ../../os/hal/src/ext.lst ../../os/hal/src/gpt.lst ../../os/hal/src/i2c.lst ../../os/hal/src/icu.lst ../../os/hal/src/mac.lst ../../os/hal/src/mmc_spi.lst ../../os/hal/src/mmcsd.lst ../../os/hal/src/pal.lst ../../os/hal/src/pwm.lst ../../os/hal/src/rtc.lst ../../os/hal/src/sdc.lst ../../os/hal/src/serial.lst ../../os/hal/src/serial_usb.lst ../../os/hal/src/spi.lst ../../os/hal/src/tm.lst ../../os/hal/src/uart.lst ../../os/hal/src/usb.lst ../../os/hal/platforms/Posix/hal_lld.lst ../../os/hal/platforms/Posix/pal_lld.lst ../../os/hal/platforms/Posix/serial_lld.lst ../../boards/simulator/board.lst ../../os/various/shell.lst ../../os/various/chprintf.lst main.lst
rm -f
rm -f
rm -fR .dep
mabl@mikrocanonix [09:24:08] [~/Programming/ARM/Projects/ChibiOS_openocd/demos/Posix-GCC] [master *]
-> % make
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/ports/GCC/SIMIA32/chcore.lst -MD -MP -MF .dep/chcore.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/ports/GCC/SIMIA32/chcore.c -o ../../os/ports/GCC/SIMIA32/chcore.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chsys.lst -MD -MP -MF .dep/chsys.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chsys.c -o ../../os/kernel/src/chsys.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chdebug.lst -MD -MP -MF .dep/chdebug.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chdebug.c -o ../../os/kernel/src/chdebug.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chlists.lst -MD -MP -MF .dep/chlists.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chlists.c -o ../../os/kernel/src/chlists.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chvt.lst -MD -MP -MF .dep/chvt.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chvt.c -o ../../os/kernel/src/chvt.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chschd.lst -MD -MP -MF .dep/chschd.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chschd.c -o ../../os/kernel/src/chschd.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chthreads.lst -MD -MP -MF .dep/chthreads.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chthreads.c -o ../../os/kernel/src/chthreads.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chdynamic.lst -MD -MP -MF .dep/chdynamic.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chdynamic.c -o ../../os/kernel/src/chdynamic.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chregistry.lst -MD -MP -MF .dep/chregistry.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chregistry.c -o ../../os/kernel/src/chregistry.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chsem.lst -MD -MP -MF .dep/chsem.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chsem.c -o ../../os/kernel/src/chsem.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chmtx.lst -MD -MP -MF .dep/chmtx.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chmtx.c -o ../../os/kernel/src/chmtx.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chcond.lst -MD -MP -MF .dep/chcond.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chcond.c -o ../../os/kernel/src/chcond.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chevents.lst -MD -MP -MF .dep/chevents.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chevents.c -o ../../os/kernel/src/chevents.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chmsg.lst -MD -MP -MF .dep/chmsg.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chmsg.c -o ../../os/kernel/src/chmsg.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chmboxes.lst -MD -MP -MF .dep/chmboxes.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chmboxes.c -o ../../os/kernel/src/chmboxes.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chqueues.lst -MD -MP -MF .dep/chqueues.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chqueues.c -o ../../os/kernel/src/chqueues.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chmemcore.lst -MD -MP -MF .dep/chmemcore.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chmemcore.c -o ../../os/kernel/src/chmemcore.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chheap.lst -MD -MP -MF .dep/chheap.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chheap.c -o ../../os/kernel/src/chheap.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/kernel/src/chmempools.lst -MD -MP -MF .dep/chmempools.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/kernel/src/chmempools.c -o ../../os/kernel/src/chmempools.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/test.lst -MD -MP -MF .dep/test.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/test.c -o ../../test/test.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testthd.lst -MD -MP -MF .dep/testthd.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testthd.c -o ../../test/testthd.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testsem.lst -MD -MP -MF .dep/testsem.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testsem.c -o ../../test/testsem.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testmtx.lst -MD -MP -MF .dep/testmtx.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testmtx.c -o ../../test/testmtx.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testmsg.lst -MD -MP -MF .dep/testmsg.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testmsg.c -o ../../test/testmsg.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testmbox.lst -MD -MP -MF .dep/testmbox.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testmbox.c -o ../../test/testmbox.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testevt.lst -MD -MP -MF .dep/testevt.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testevt.c -o ../../test/testevt.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testheap.lst -MD -MP -MF .dep/testheap.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testheap.c -o ../../test/testheap.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testpools.lst -MD -MP -MF .dep/testpools.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testpools.c -o ../../test/testpools.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testdyn.lst -MD -MP -MF .dep/testdyn.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testdyn.c -o ../../test/testdyn.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testqueues.lst -MD -MP -MF .dep/testqueues.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testqueues.c -o ../../test/testqueues.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../test/testbmk.lst -MD -MP -MF .dep/testbmk.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../test/testbmk.c -o ../../test/testbmk.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/hal.lst -MD -MP -MF .dep/hal.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/hal.c -o ../../os/hal/src/hal.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/adc.lst -MD -MP -MF .dep/adc.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/adc.c -o ../../os/hal/src/adc.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/can.lst -MD -MP -MF .dep/can.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/can.c -o ../../os/hal/src/can.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/ext.lst -MD -MP -MF .dep/ext.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/ext.c -o ../../os/hal/src/ext.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/gpt.lst -MD -MP -MF .dep/gpt.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/gpt.c -o ../../os/hal/src/gpt.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/i2c.lst -MD -MP -MF .dep/i2c.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/i2c.c -o ../../os/hal/src/i2c.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/icu.lst -MD -MP -MF .dep/icu.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/icu.c -o ../../os/hal/src/icu.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/mac.lst -MD -MP -MF .dep/mac.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/mac.c -o ../../os/hal/src/mac.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/mmc_spi.lst -MD -MP -MF .dep/mmc_spi.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/mmc_spi.c -o ../../os/hal/src/mmc_spi.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/mmcsd.lst -MD -MP -MF .dep/mmcsd.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/mmcsd.c -o ../../os/hal/src/mmcsd.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/pal.lst -MD -MP -MF .dep/pal.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/pal.c -o ../../os/hal/src/pal.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/pwm.lst -MD -MP -MF .dep/pwm.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/pwm.c -o ../../os/hal/src/pwm.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/rtc.lst -MD -MP -MF .dep/rtc.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/rtc.c -o ../../os/hal/src/rtc.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/sdc.lst -MD -MP -MF .dep/sdc.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/sdc.c -o ../../os/hal/src/sdc.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/serial.lst -MD -MP -MF .dep/serial.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/serial.c -o ../../os/hal/src/serial.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/serial_usb.lst -MD -MP -MF .dep/serial_usb.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/serial_usb.c -o ../../os/hal/src/serial_usb.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/spi.lst -MD -MP -MF .dep/spi.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/spi.c -o ../../os/hal/src/spi.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/tm.lst -MD -MP -MF .dep/tm.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/tm.c -o ../../os/hal/src/tm.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/uart.lst -MD -MP -MF .dep/uart.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/uart.c -o ../../os/hal/src/uart.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/src/usb.lst -MD -MP -MF .dep/usb.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/src/usb.c -o ../../os/hal/src/usb.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/platforms/Posix/hal_lld.lst -MD -MP -MF .dep/hal_lld.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/platforms/Posix/hal_lld.c -o ../../os/hal/platforms/Posix/hal_lld.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/platforms/Posix/pal_lld.lst -MD -MP -MF .dep/pal_lld.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/platforms/Posix/pal_lld.c -o ../../os/hal/platforms/Posix/pal_lld.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/hal/platforms/Posix/serial_lld.lst -MD -MP -MF .dep/serial_lld.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/hal/platforms/Posix/serial_lld.c -o ../../os/hal/platforms/Posix/serial_lld.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../boards/simulator/board.lst -MD -MP -MF .dep/board.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../boards/simulator/board.c -o ../../boards/simulator/board.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/various/shell.lst -MD -MP -MF .dep/shell.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/various/shell.c -o ../../os/various/shell.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/various/chprintf.lst -MD -MP -MF .dep/chprintf.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/various/chprintf.c -o ../../os/various/chprintf.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=main.lst -MD -MP -MF .dep/main.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various main.c -o main.o
main.c: In function ‘console_thread’:
main.c:115:5: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
main.c:116:5: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration]
main.c:116:12: error: ‘stdout’ undeclared (first use in this function)
main.c:116:12: note: each undeclared identifier is reported only once for each function it appears in
make: *** [main.o] Error 1


Could it be that the Makefile is still the old behaviour - not building in the ./build directory etc.?

mobyfab
Posts: 483
Joined: Sat Nov 19, 2011 6:47 pm
Location: Versailles, France
Has thanked: 21 times
Been thanked: 30 times

Re: Simulator on Linux or Windows

Postby mobyfab » Tue Oct 02, 2012 10:27 am

I get the same exact error.
It compiled fine a couple weeks ago.

Seems like some headers are missing.

mingthemad
Posts: 12
Joined: Wed Sep 26, 2012 4:33 am

Re: Simulator on Linux or Windows

Postby mingthemad » Tue Oct 02, 2012 10:45 am

Giovanni wrote:Which ChibiOS version are you using, simulators are supposed to work, I used the Win32 one just yesterday.

Giovanni


I'm using 2.4.2 stable on Linux. I'll give the Windows version a try tomorrow.

Thanks for the info!

Craig

User avatar
Giovanni
Site Admin
Posts: 14026
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 989 times
Been thanked: 833 times
Contact:

Re: Simulator on Linux or Windows

Postby Giovanni » Tue Oct 02, 2012 11:05 am

I will verify the Posix version.

Giovanni

mingthemad
Posts: 12
Joined: Wed Sep 26, 2012 4:33 am

Re: Simulator on Linux or Windows [FIXED]

Postby mingthemad » Wed Oct 03, 2012 3:58 pm

I was able to get the Linux emulator working after some Makefile munging.

It looks like the Makefile for demos/Posix-GCC assumes an older make environment.
I've created a new one based on the STM32 demos.

I've also added a rules.mk file to ports/GCC/SIMIA32 directory to be consistent with
the other ports.

To test this, I have implemented the Ethernet MAC device in the Linux emulator using
libpcap. The simple LWIP HTTP demo from the STM32-LWIP runs and I can ping the
endpoint from other machines. I will be testing this code more more over the upcoming
days.

How should I contribute these changes back? Are patches OK?

Craig

User avatar
Giovanni
Site Admin
Posts: 14026
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 989 times
Been thanked: 833 times
Contact:

Re: Simulator on Linux or Windows

Postby Giovanni » Wed Oct 03, 2012 4:21 pm

Just post the files on the forum.

Giovanni

mabl
Posts: 417
Joined: Tue Dec 21, 2010 10:19 am
Location: Karlsruhe, Germany
Been thanked: 1 time
Contact:

Re: Simulator on Linux or Windows

Postby mabl » Wed Oct 03, 2012 4:25 pm

Or push them to Github to convince Giovanni of the greatness of GIT :mrgreen:

mabl
Posts: 417
Joined: Tue Dec 21, 2010 10:19 am
Location: Karlsruhe, Germany
Been thanked: 1 time
Contact:

Re: Simulator on Linux or Windows [FIXED]

Postby mabl » Sun Nov 11, 2012 5:22 pm

mingthemad wrote:I was able to get the Linux emulator working after some Makefile munging.

It looks like the Makefile for demos/Posix-GCC assumes an older make environment.
I've created a new one based on the STM32 demos.

I've also added a rules.mk file to ports/GCC/SIMIA32 directory to be consistent with
the other ports.

To test this, I have implemented the Ethernet MAC device in the Linux emulator using
libpcap. The simple LWIP HTTP demo from the STM32-LWIP runs and I can ping the
endpoint from other machines. I will be testing this code more more over the upcoming
days.

How should I contribute these changes back? Are patches OK?

Craig

The POSIX simulator is still broken in trunk...

Code: Select all

./test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/various/shell.c -o ../../os/various/shell.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=../../os/various/chprintf.lst -MD -MP -MF .dep/chprintf.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various ../../os/various/chprintf.c -o ../../os/various/chprintf.o
gcc -c -ggdb -O2 -fomit-frame-pointer -Wall -Wextra -Wstrict-prototypes -fverbose-asm -DSIMULATOR -DSHELL_USE_IPRINTF=FALSE   -m32 -Wa,-alms=main.lst -MD -MP -MF .dep/main.o.d -I . -I../../os/ports/GCC/SIMIA32 -I../../os/kernel/include -I../../test -I../../os/hal/include -I../../os/hal/platforms/Posix -I../../boards/simulator -I../../os/various main.c -o main.o
main.c: In function ‘console_thread’:
main.c:115:5: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
main.c:116:5: warning: implicit declaration of function ‘fflush’ [-Wimplicit-function-declaration]
main.c:116:12: error: ‘stdout’ undeclared (first use in this function)
main.c:116:12: note: each undeclared identifier is reported only once for each function it appears in
make: *** [main.o] Error 1


Craig, do you have update/code?


Return to “Development and Feedback”

Who is online

Users browsing this forum: No registered users and 4 guests