insane-adding-machines / frosted

Frosted: Free POSIX OS for tiny embedded devices
GNU General Public License v2.0
215 stars 39 forks source link

fatal error: sys/reboot.h #53

Closed FabHer74 closed 8 years ago

FabHer74 commented 8 years ago

Hello,

The file reboot.h is missing when I compile my project (result hereafter). My git clone is up-to-date (git submodule init && git submodule update).

I use arm-frosted-eabi-5.3.0_16.06.004 but the file reboot.h is not included.

Any idea ?

Thanks

_arm-frosted-eabi-gcc -mthumb -mlittle-endian -mthumb-interwork -ffunction-sections -mcpu=cortex-m3 -DCOREM3 -Dfrosted -nostartfiles -fPIC -mlong-calls -fno-common -msingle-pic-base -mno-pic-data-is-text-relative -Wstack-usage=1024 -ggdb -I../lib/include -c -o reboot.o reboot.c reboot.c:23:24: fatal error: sys/reboot.h: No such file or directory compilation terminated. make[2]: *\ [reboot.o] Erreur 1

danielinux commented 8 years ago

Hi again @FabHer74

16.06.004 is not the latest toolchain. The reboot() syscall has been added in version 16.07, which you can find here as usual: https://github.com/insane-adding-machines/crosstool-ng/releases (Check toolchain changelog, a few new features have been added in our July release).

If you want to use the newest syscalls, you need a new toolchain. The alternative would be to run menuconfig from the frosted-userland directory and exclude the reboot and the renice binaries from your XIPFS build.

HTH.

FabHer74 commented 8 years ago

Hello,

It compiles now, thanks. I didn't saw the toolchain 2 days ago.

Fab

Le 05/07/2016 08:56, Daniele Lacamera a écrit :

Hi again @FabHer74 https://github.com/FabHer74

16.06.004 is not the latest toolchain. The reboot() syscall has been added in version 16.07, which you can find here as usual: https://github.com/insane-adding-machines/crosstool-ng/releases (Check toolchain changelog, a few new features have been added in our July release).

If you want to use the newest syscalls, you need a new toolchain. The alternative would be to run menuconfig from the |frosted-userland| directory and exclude the reboot and the renice binaries from your XIPFS build.

HTH.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/insane-adding-machines/frosted/issues/53#issuecomment-230400757, or mute the thread https://github.com/notifications/unsubscribe/ATWTZUPrOMwGO46JSNMkhx3_nwPFHEVPks5qSgAUgaJpZM4JEpFp.

danielinux commented 8 years ago

yes, we move rather fast :)