[En-Nut-Discussion] Ethernut compile problem.
Matthias Ringwald
mringwal at inf.ethz.ch
Sat Mar 19 10:09:29 CET 2005
hi tamas
using mac os x is no problem. so where is the problem when you compile
nut/os?
maybe you tried to use to "configurator" tool. i have never used it but
I'm afraid
I doesn't compile on mac. you can still use the ./configure script in
nut/os, then
just run make.
about the tools: I've made fink packages of the tools: avr-binutils,
avr-gcc and avr-libc,
so if you're not sure, you can install them with fink.sf.net. (and they
work)
regards,
matthias
On Mar 18, 2005, at 23:38, Tamas Virag wrote:
> Dear developers,
>
> First of all sorry for my bad english. I am a hungarian student, and i
> will write my degree work from emblended microcontroller systems. I
> found yours project about 2 days ago, it is the one of best project in
> atmel what i see. Congratulations.
> I downloaded the ethernut source distribution. I am use MacOS X. I
> compiled the gcc for avr platform, and the binutils for avr, and
> libc-avr. The compiler looks like good. I tried some other C examples,
> and thats works fine. If i compile the ethernut project it fails. I do
> not know what is the problem. Could you help me?
>
> Yours,
> Tamas Virag
>
> =============================
>
> The software versions:
> avr-gcc : 3.3.2
> avr-libc 1.2.3
> binutils 2.14
> ethernut 3.9-5
>
> =============================
>
> The output:
> ----------------
> sh-2.05b$ ./configure
> Select a target device:
>
> 1) Atmel ATmega128
> 2) Atmel ATmega103
> 3) Renesas H8/3068F
> 4) UNIX Emulation
>
> Selection -> 1
> Which isp programmer are you using?
>
> 1) stk200, stk300 or compatible
> 2) skt500
>
> Selection -> 2
> Your system is now configured to build for atmega128.
> Type `make` to build the system.
> sh-2.05b$ make
> make -C os
> avr-gcc -c -mmcu=atmega128 -Os -Wall -Werror -Wstrict-prototypes
> -Wa,-ahlms=nutinit.lst -D__HARVARD_ARCH__ -I../include nutinit.c -o
> nutinit.o
> In file included from ../include/arch/avr.h:234,
> from ../include/compiler.h:66,
> from nutinit.c:89:
> /opt/avr/include/avr/signal.h:7:2: #warning "please include sig-avr.h
> instead"
> In file included from nutinit.c:111:
> arch/avr_nutinit.c: In function `NutInitXRAM':
> arch/avr_nutinit.c:241: warning: implicit declaration of function `_BV'
> arch/avr_nutinit.c:241: error: `SRW10' undeclared (first use in this
> function)
> arch/avr_nutinit.c:241: error: (Each undeclared identifier is reported
> only once
> arch/avr_nutinit.c:241: error: for each function it appears in.)
> arch/avr_nutinit.c:241: error: invalid lvalue in assignment
> arch/avr_nutinit.c: In function `NutIdle':
> arch/avr_nutinit.c:392: error: invalid lvalue in assignment
> arch/avr_nutinit.c:393: error: invalid lvalue in assignment
> arch/avr_nutinit.c:393: error: invalid lvalue in assignment
> arch/avr_nutinit.c:394: error: invalid lvalue in assignment
> arch/avr_nutinit.c: In function `NutInit':
> arch/avr_nutinit.c:445: error: `SP' undeclared (first use in this
> function)
> /opt/avr/include/avr/pgmspace.h: In function `__elpm_inline':
> /opt/avr/include/avr/pgmspace.h:80: warning: asm operand 2 probably
> doesn't match constraints
> make[1]: *** [nutinit.o] Error 1
> make: *** [all] Error 2
> sh-2.05b$
>
> =================================
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list