Peer Janssen
2016-09-25 08:37:01 UTC
ethersex$ git pull
Already up-to-date.
ethersex$ make
avr-gcc -Wall -W -Wno-unused-parameter -Wno-sign-compare
-Wno-char-subscripts -g -Os -std=gnu99 -fdata-sections
-ffunction-sections -funsigned-char -funsigned-bitfields -fpack-struct
-fshort-enums -mcall-prologues -fshort-enums -fno-strict-aliasing
-Iprotocols/usb/usbdrv -Iprotocols/usb -DAVR_BUILD -DF_CPU=16000000UL
-mmcu=atmega32 -I. -c -o ethersex.o ethersex.c
In file included from ethersex.c:22:0:
config.h:80:24: fatal error: avr/wdt.h: Datei oder Verzeichnis nicht
gefunden
# include <avr/wdt.h>
^
compilation terminated.
make: *** [ethersex.o] Fehler 1
ethersex$ find . -name "wdt.h"
./core/host/avr/wdt.h
ethersex$ find . -name ethersex.c
./ethersex.c
#less ethersex.c
/* [... snip ...]
* http://www.gnu.org/copyleft/gpl.html
*/
#include "config.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
#include <util/delay.h>
#include <stdlib.h>
[... snip ...]
Just here?
ethersex$ grep -R wdt.h *
config.h:# include <avr/wdt.h>
ethersex.c:#include <avr/wdt.h>
hardware/camera/dc3840.c:#include <avr/wdt.h>
hardware/clock/dcf77/dcf77.c:#include <avr/wdt.h>
hardware/lcd/s1d13305/s1d13305.c:#include <avr/wdt.h>
hardware/lcd/s1d15g10/s1d15g10.c:#include <avr/wdt.h>
meta.c:#include <avr/wdt.h>
protocols/radio/ask/ask.c:#include <avr/wdt.h>
protocols/dmx/dmx.c:#include <avr/wdt.h>
protocols/usb/usb_net.c:#include <avr/wdt.h>
protocols/usb/usb_hid_mouse.c:#include <avr/wdt.h>
protocols/usb/usb_hid_keyboard.c:#include <avr/wdt.h>
protocols/usb/ecmd_usb.c:#include <avr/wdt.h>
protocols/usb/usb.c:#include <avr/wdt.h>
scripts/meta_magic.m4:#include <avr/wdt.h>
scripts/meta_magic_scheduler.m4:#include <avr/wdt.h>
services/glcdmenu/glcdmenu.c:#include <avr/wdt.h>
=> Something is seriously messed up!
- Why was wdt.h put inteo ./core/host/avr/wdt.h without adapting the
includes?
- Why was this not picked up by the simplest of test, as in "make"?
Greetz!
Already up-to-date.
ethersex$ make
avr-gcc -Wall -W -Wno-unused-parameter -Wno-sign-compare
-Wno-char-subscripts -g -Os -std=gnu99 -fdata-sections
-ffunction-sections -funsigned-char -funsigned-bitfields -fpack-struct
-fshort-enums -mcall-prologues -fshort-enums -fno-strict-aliasing
-Iprotocols/usb/usbdrv -Iprotocols/usb -DAVR_BUILD -DF_CPU=16000000UL
-mmcu=atmega32 -I. -c -o ethersex.o ethersex.c
In file included from ethersex.c:22:0:
config.h:80:24: fatal error: avr/wdt.h: Datei oder Verzeichnis nicht
gefunden
# include <avr/wdt.h>
^
compilation terminated.
make: *** [ethersex.o] Fehler 1
ethersex$ find . -name "wdt.h"
./core/host/avr/wdt.h
ethersex$ find . -name ethersex.c
./ethersex.c
#less ethersex.c
/* [... snip ...]
* http://www.gnu.org/copyleft/gpl.html
*/
#include "config.h"
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
#include <util/delay.h>
#include <stdlib.h>
[... snip ...]
Just here?
ethersex$ grep -R wdt.h *
config.h:# include <avr/wdt.h>
ethersex.c:#include <avr/wdt.h>
hardware/camera/dc3840.c:#include <avr/wdt.h>
hardware/clock/dcf77/dcf77.c:#include <avr/wdt.h>
hardware/lcd/s1d13305/s1d13305.c:#include <avr/wdt.h>
hardware/lcd/s1d15g10/s1d15g10.c:#include <avr/wdt.h>
meta.c:#include <avr/wdt.h>
protocols/radio/ask/ask.c:#include <avr/wdt.h>
protocols/dmx/dmx.c:#include <avr/wdt.h>
protocols/usb/usb_net.c:#include <avr/wdt.h>
protocols/usb/usb_hid_mouse.c:#include <avr/wdt.h>
protocols/usb/usb_hid_keyboard.c:#include <avr/wdt.h>
protocols/usb/ecmd_usb.c:#include <avr/wdt.h>
protocols/usb/usb.c:#include <avr/wdt.h>
scripts/meta_magic.m4:#include <avr/wdt.h>
scripts/meta_magic_scheduler.m4:#include <avr/wdt.h>
services/glcdmenu/glcdmenu.c:#include <avr/wdt.h>
=> Something is seriously messed up!
- Why was wdt.h put inteo ./core/host/avr/wdt.h without adapting the
includes?
- Why was this not picked up by the simplest of test, as in "make"?
Greetz!
--
Peer Janssen - ***@pjk.de
Peer Janssen - ***@pjk.de