Cross-kompilujesz pod AVR z opcjami dla athlon-xp?
@p1r4te, te opcja wymagają tylko jednego '-'.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
Przepraszam , źle sie wyraziłem. To gcc co kompiluje ma działać na moim pc ale ma kompilować programy które będe wciskał do atmeg. Rekompilacja w oddzielnym katalogu nic nie zmienia. Sciągnołem właśnie 4.2.1 i zobacze jak z nim sie sprawy mają.
EDIT1:
Próbowałem zrobić 4.2.1 i nie ważne czy robie w katalogu ze źródłami czy uzywam oddzielnego kompilacja sypie się z takim samym błędem jak w moim pierwszym poście.
Binutils mam w /avr , dodałem odpowiednie ścieżki do $PATH. Czy może problemy wynikają z tego ze nie mam odpowiednich ścieżek w ld.so.conf ?? Albo też za wcześnie na dodawanie do $PATH ??
Na 11 było wszystko bez problemu gdy kompilowałem gcc z paczki z katalogu ze slackbuildami.
Nie ustawiaj flag kompilacji. Prawdopodobnie przy bootstrapie ich nie łyka. Próbowałeś wykorzystać buildroot?
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso
../.././libssp/ssp.c: In function '__guard_setup':
../.././libssp/ssp.c:70: warning: implicit declaration of function 'open'
../.././libssp/ssp.c:70: error: 'O_RDONLY' undeclared (first use in this function)
../.././libssp/ssp.c:70: error: (Each undeclared identifier is reported only once
../.././libssp/ssp.c:70: error: for each function it appears in.)
../.././libssp/ssp.c:73: error: 'ssize_t' undeclared (first use in this function)
../.././libssp/ssp.c:73: error: expected ';' before 'size'
../.././libssp/ssp.c:75: warning: implicit declaration of function 'close'
../.././libssp/ssp.c:76: error: 'size' undeclared (first use in this function)
../.././libssp/ssp.c: At top level:
../.././libssp/ssp.c:89: error: expected declaration specifiers or '...' before 'size_t'
../.././libssp/ssp.c: In function 'fail':
../.././libssp/ssp.c:100: error: 'O_WRONLY' undeclared (first use in this function)
../.././libssp/ssp.c:104: error: 'size_t' undeclared (first use in this function)
../.././libssp/ssp.c:104: error: expected ';' before 'progname_len'
../.././libssp/ssp.c:107: error: 'progname_len' undeclared (first use in this function)
../.././libssp/ssp.c:107: warning: implicit declaration of function 'strlen'
../.././libssp/ssp.c:107: warning: incompatible implicit declaration of built-in function 'strlen'
../.././libssp/ssp.c:108: error: 'len' undeclared (first use in this function)
../.././libssp/ssp.c:108: error: 'msg1len' undeclared (first use in this function)
../.././libssp/ssp.c:109: warning: implicit declaration of function 'alloca'
../.././libssp/ssp.c:109: warning: incompatible implicit declaration of built-in function 'alloca'
../.././libssp/ssp.c:111: warning: implicit declaration of function 'memcpy'
../.././libssp/ssp.c:111: warning: incompatible implicit declaration of built-in function 'memcpy'
../.././libssp/ssp.c:119: error: 'ssize_t' undeclared (first use in this function)
../.././libssp/ssp.c:119: error: expected ';' before 'wrote'
../.././libssp/ssp.c:120: error: 'wrote' undeclared (first use in this function)
../.././libssp/ssp.c:151: warning: implicit declaration of function '_exit'
../.././libssp/ssp.c:151: warning: incompatible implicit declaration of built-in function '_exit'
../.././libssp/ssp.c: In function '__stack_chk_fail':
../.././libssp/ssp.c:161: warning: incompatible implicit declaration of built-in function 'strlen'
../.././libssp/ssp.c:161: warning: passing argument 2 of 'fail' makes pointer from integer without a cast
../.././libssp/ssp.c:161: error: too many arguments to function 'fail'
../.././libssp/ssp.c: In function '__chk_fail':
../.././libssp/ssp.c:168: warning: incompatible implicit declaration of built-in function 'strlen'
../.././libssp/ssp.c:168: warning: passing argument 2 of 'fail' makes pointer from integer without a cast
../.././libssp/ssp.c:168: error: too many arguments to function 'fail'
make[3]: *** [ssp.lo] Bd 1
make[2]: *** [all] Bd 2
make[1]: *** [all-target-libssp] Bd 2
make: *** [all] Bd 2
-B/src/avr/gcc-4.2.1/host-i686-pc-linux-gnu/gcc/ -B/avr/avr/bin/ -B/avr/avr/lib/ -isystem /avr/avr/include -isystem /avr/avr/sys-include" "CXX=avr-c++ -B/avr/avr/bin/ -B/avr/avr/lib/ -isystem /avr/avr/include -isystem /avr/avr/sys-include" "LD=/src/avr/gcc-4.2.1/host-i686-pc-linux-gnu/gcc/collect-ld" "LIBCFLAGS=-O2 " "NM=/src/avr/gcc-4.2.1/host-i686-pc-linux-gnu/gcc/nm" "PICFLAG=" "RANLIB=/avr/avr/bin/ranlib" "DESTDIR=" all-am
make[3]: Wejcie do katalogu `/usr/src/avr/gcc-4.2.1/avr/libssp'
if /bin/sh ./libtool --mode=compile /src/avr/gcc-4.2.1/host-i686-pc-linux-gnu/gcc/xgcc -B/src/avr/gcc-4.2.1/host-i686-pc-linux-gnu/gcc/ -B/avr/avr/bin/ -B/avr/avr/lib/ -isystem /avr/avr/include -isystem /avr/avr/sys-include -DHAVE_CONFIG_H -I. -I../.././libssp -I. -Wall -O2 -MT ssp.lo -MD -MP -MF ".deps/ssp.Tpo" -c -o ssp.lo ../.././libssp/ssp.c; \
then mv -f ".deps/ssp.Tpo" ".deps/ssp.Plo"; else rm -f ".deps/ssp.Tpo"; exit 1; fi
/src/avr/gcc-4.2.1/host-i686-pc-linux-gnu/gcc/xgcc -B/src/avr/gcc-4.2.1/host-i686-pc-linux-gnu/gcc/ -B/avr/avr/bin/ -B/avr/avr/lib/ -isystem /avr/avr/include -isystem /avr/avr/sys-include -DHAVE_CONFIG_H -I. -I../.././libssp -I. -Wall -O2 -MT ssp.lo -MD -MP -MF .deps/ssp.Tpo -c ../.././libssp/ssp.c -o ssp.o
make[3]: Opuszczenie katalogu `/usr/src/avr/gcc-4.2.1/avr/libssp'
make[2]: Opuszczenie katalogu `/usr/src/avr/gcc-4.2.1/avr/libssp'
make[1]: Opuszczenie katalogu `/usr/src/avr/gcc-4.2.1'
Ostatnio zmieniony 2007-08-09, 15:55 przez bojleros, łącznie zmieniany 1 raz.
AVR GCC Wiki pisze:Note: If you are going to build gcc 4.1.1 or a similar version (even 4.2.x have this issue) you have to add the option --disable-libssp to the configure call above. If omitted, the build process will probably fail.
[url=http://bdtk.sourceforge.net][img]http://pin.if.uz.zgora.pl/~beton/bdt-ready.png[/img][/url] #337142
--------------------------------------------
"I had a letter in the post today. It said 'Gas Bill'. It sounds a tempting offer." -- Alan Cox
"Users have been trained that when a computer bluescreens and losing all of their data, it's either (a) just the way things are, or (b) it's microsoft's fault." -- Theodore Tso