- Labornetzteil AliExpress         
Ergebnis 1 bis 9 von 9

Thema: [AVR-gcc] Installation unter Linux

  1. #1
    Erfahrener Benutzer Fleißiges Mitglied
    Registriert seit
    13.05.2007
    Alter
    32
    Beiträge
    183

    [AVR-gcc] Installation unter Linux

    Anzeige

    Powerstation Test
    Hallo.

    Das ganze Thema ist ja sehr schön im Wiki beschrieben.
    Ich habe soweit alles befolgt und die binutils schon kompiliert. Nun versuche ich GCC selber zu kompilieren, dabei kommt nach etwa 5min rechnen folgender Fehler:
    Code:
    make[2]: *** Keine Regel vorhanden, um das Target »/usr/local/avr/bin/avr-as«,
      benötigt von »stamp-as«, zu erstellen.  Schluss.
    make[2]: Leaving directory `/home/johannes/gcc-4.1.2/obj-avr/gcc'
    make[1]: *** [all-gcc] Fehler 2
    make[1]: Leaving directory `/home/johannes/gcc-4.1.2/obj-avr'
    make: *** [all] Fehler 2
    Ich verwende openSuse 10.3. Der Pfad ist bereits in $PATH drin.
    Ich bin noch nicht lange mit Linux in Kontakt und habe leider keine Idee, wie ich das Ganze kompilliert bekomme...

    Vielen Dank für jede Hilfe,
    Bääääär

    PS: Wenn hilfreich, kann ich die gesammte Ausgabe des Kompiliervorgangs noch mal in eine Datei umleiten. Die könnte aber recht groß werden.
    PPS: Vor dem Kompillieren wurde ziemlich viel durchgecheckt. Bei mir stand da auch etliche Male "checking [...] ... No". Ich hoffe, das ist Ok so...

  2. #2
    Erfahrener Benutzer Robotik Einstein Avatar von SprinterSB
    Registriert seit
    09.06.2005
    Ort
    An der Saar
    Beiträge
    2.802
    binutils compilieren reicht nicht, müssen auch installiert werden.

    Hast du dein GCC obj-Verzeichnis unterhalb der gcc-source verzeichnisses? das geht net.

    avr-as muss sich ganz normal aufrufen lassen, test zB mit
    Code:
    > avr-as -v
    > avr-ld
    Disclaimer: none. Sue me.

  3. #3
    Erfahrener Benutzer Roboter-Spezialist
    Registriert seit
    08.07.2006
    Ort
    Karlsruhe/München
    Alter
    34
    Beiträge
    587
    Hallo,
    manchmal wollen einige Gcc-Versionen nicht. Verwende einfach eine darunter. So habe ich es zumindest bei mir gemacht. Ich weiß nicht wie das bei Suse ist, aber bei Slackware gibts auch Packages; hast du schon mal danach geschaut?

  4. #4
    Erfahrener Benutzer Fleißiges Mitglied
    Registriert seit
    13.05.2007
    Alter
    32
    Beiträge
    183
    Ja, installiert habe ich sie auch. Ich bin die Schritte durchgegangen, wie sie im Wiki beschrieben sind.

    Es scheint also daran zu liegen, dass die Binutils noch nicht richtig übersetzt oder installiert sind. Ich habe sie nochmal (nach einem "make clean" - wie's mir vom avr-gcc bekannt war) übersetzt und die Ausgabe in eine Datei umgeleitet. Ich hab sie mal unten angehängt.

    Zusätzlich dazu hat mir die Konsole noch folgendes ausgegeben:
    Code:
    johannes@192:~/binutils-2.17/obj-avr> make > make_binutils_2.17.txt
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    bucomm.o: In function `make_tempname':
    /home/johannes/binutils-2.17/obj-avr/binutils/../../binutils/bucomm.c:426: warning: the use of `mktemp' is dangerous, better use `mkstemp'
    Ich hab auch versucht, die neuere Version von Binutils zu nehmen, aber da gab es noch mehr Fehler, und da ich keine Ahnung habe, was einige der im Wiki genannten Befehle machen, habe ich mich entschieden, doch lieber die dort verwendete Version zu nehmen. Wenn ihr mich ein bisschen dabei unterstützen könnt, würde ich gerne versuchen, gleich die neuste Version (2.9) zu nehmen.

    Bääääär

    [Edit] Nee, Suse hat da leider keine Pakete für
    Angehängte Dateien Angehängte Dateien

  5. #5
    Erfahrener Benutzer Robotik Einstein Avatar von SprinterSB
    Registriert seit
    09.06.2005
    Ort
    An der Saar
    Beiträge
    2.802
    ok. und "make install" ging auch?
    Disclaimer: none. Sue me.

  6. #6
    Erfahrener Benutzer Fleißiges Mitglied
    Registriert seit
    13.05.2007
    Alter
    32
    Beiträge
    183
    Sieht so aus... folgendes sagt die Konsole:

    Code:
    192:/home/johannes/binutils-2.17/obj-avr # make install
    make[1]: Entering directory `/home/johannes/binutils-2.17/obj-avr'
    /bin/sh ../mkinstalldirs /usr/local/avr /usr/local/avr
    make[2]: Entering directory `/home/johannes/binutils-2.17/obj-avr/bfd'
    Making install in doc
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/bfd/doc'
    test -z "/usr/local/avr/info" || mkdir -p -- "/usr/local/avr/info"
     /usr/bin/install -c -m 644 '../../../bfd/doc/bfd.info' '/usr/local/avr/info/bfd.info'
     install-info --info-dir='/usr/local/avr/info' '/usr/local/avr/info/bfd.info'
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/bfd/doc'
    Making install in po
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/bfd/po'
    make[3]: Für das Ziel »install« ist nichts zu tun.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/bfd/po'
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/bfd'
    make[4]: Entering directory `/home/johannes/binutils-2.17/obj-avr/bfd'
    make[4]: Für das Ziel »install-exec-am« ist nichts zu tun.
    make[4]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/bfd'
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/bfd'
    make[2]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/bfd'
    make[2]: Entering directory `/home/johannes/binutils-2.17/obj-avr/opcodes'
    Making install in po
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/opcodes/po'
    make[3]: Für das Ziel »install« ist nichts zu tun.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/opcodes/po'
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/opcodes'
    make[4]: Entering directory `/home/johannes/binutils-2.17/obj-avr/opcodes'
    make[4]: Für das Ziel »install-exec-am« ist nichts zu tun.
    make[4]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/opcodes'
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/opcodes'
    make[2]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/opcodes'
    make[2]: Entering directory `/home/johannes/binutils-2.17/obj-avr/binutils'
    Making install in doc
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/binutils/doc'
    make[4]: Entering directory `/home/johannes/binutils-2.17/obj-avr/binutils/doc'
    make[4]: Für das Ziel »install-exec-am« ist nichts zu tun.
    test -z "/usr/local/avr/info" || mkdir -p -- "/usr/local/avr/info"
     /usr/bin/install -c -m 644 '../../../binutils/doc/binutils.info' '/usr/local/avr/info/binutils.info'
     install-info --info-dir='/usr/local/avr/info' '/usr/local/avr/info/binutils.info'
    test -z "/usr/local/avr/man/man1" || mkdir -p -- "/usr/local/avr/man/man1"
     /usr/bin/install -c -m 644 '../../../binutils/doc/addr2line.1' '/usr/local/avr/man/man1/avr-addr2line.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/ar.1' '/usr/local/avr/man/man1/avr-ar.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/dlltool.1' '/usr/local/avr/man/man1/avr-dlltool.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/nlmconv.1' '/usr/local/avr/man/man1/avr-nlmconv.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/nm.1' '/usr/local/avr/man/man1/avr-nm.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/objcopy.1' '/usr/local/avr/man/man1/avr-objcopy.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/objdump.1' '/usr/local/avr/man/man1/avr-objdump.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/ranlib.1' '/usr/local/avr/man/man1/avr-ranlib.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/readelf.1' '/usr/local/avr/man/man1/avr-readelf.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/size.1' '/usr/local/avr/man/man1/avr-size.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/strings.1' '/usr/local/avr/man/man1/avr-strings.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/strip.1' '/usr/local/avr/man/man1/avr-strip.1'
     /usr/bin/install -c -m 644 '../../../binutils/doc/windres.1' '/usr/local/avr/man/man1/avr-windres.1'
     /usr/bin/install -c -m 644 'c++filt.1' '/usr/local/avr/man/man1/avr-c++filt.1'
    make[4]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/binutils/doc'
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/binutils/doc'
    Making install in po
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/binutils/po'
    make[3]: Für das Ziel »install« ist nichts zu tun.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/binutils/po'
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/binutils'
    make[4]: Entering directory `/home/johannes/binutils-2.17/obj-avr/binutils'
    test -z "/usr/local/avr/bin" || mkdir -p -- "/usr/local/avr/bin"
      /bin/sh ./libtool --mode=install /usr/bin/install -c 'size' '/usr/local/avr/bin/avr-size'
    /usr/bin/install -c size /usr/local/avr/bin/avr-size
      /bin/sh ./libtool --mode=install /usr/bin/install -c 'objdump' '/usr/local/avr/bin/avr-objdump'
    /usr/bin/install -c objdump /usr/local/avr/bin/avr-objdump
      /bin/sh ./libtool --mode=install /usr/bin/install -c 'ar' '/usr/local/avr/bin/avr-ar'
    /usr/bin/install -c ar /usr/local/avr/bin/avr-ar
      /bin/sh ./libtool --mode=install /usr/bin/install -c 'strings' '/usr/local/avr/bin/avr-strings'
    /usr/bin/install -c strings /usr/local/avr/bin/avr-strings
      /bin/sh ./libtool --mode=install /usr/bin/install -c 'ranlib' '/usr/local/avr/bin/avr-ranlib'
    /usr/bin/install -c ranlib /usr/local/avr/bin/avr-ranlib
      /bin/sh ./libtool --mode=install /usr/bin/install -c 'objcopy' '/usr/local/avr/bin/avr-objcopy'
    /usr/bin/install -c objcopy /usr/local/avr/bin/avr-objcopy
      /bin/sh ./libtool --mode=install /usr/bin/install -c 'addr2line' '/usr/local/avr/bin/avr-addr2line'
    /usr/bin/install -c addr2line /usr/local/avr/bin/avr-addr2line
      /bin/sh ./libtool --mode=install /usr/bin/install -c 'readelf' '/usr/local/avr/bin/avr-readelf'
    /usr/bin/install -c readelf /usr/local/avr/bin/avr-readelf
     /bin/sh ./libtool  --mode=install /usr/bin/install -c nm-new /usr/local/avr/bin/avr-nm
    /usr/bin/install -c nm-new /usr/local/avr/bin/avr-nm
     /bin/sh ./libtool  --mode=install /usr/bin/install -c strip-new /usr/local/avr/bin/avr-strip
    /usr/bin/install -c strip-new /usr/local/avr/bin/avr-strip
     /bin/sh ./libtool  --mode=install /usr/bin/install -c cxxfilt /usr/local/avr/bin/avr-c++filt
    /usr/bin/install -c cxxfilt /usr/local/avr/bin/avr-c++filt
    /bin/sh ../../binutils/../mkinstalldirs /usr/local/avr/avr/bin
    mkdir -p -- /usr/local/avr/avr/bin
    for i in nm-new strip-new ar ranlib dlltool objdump; do \
              if [ -f $i ]; then \
                j=`echo $i | sed -e 's/-new//'`; \
                k=`echo $j | sed 's,^,avr-,;'`; \
                if [ "/usr/local/avr/bin/$k" != "/usr/local/avr/avr/bin/$j" ]; then \
                  rm -f /usr/local/avr/avr/bin/$j; \
                  ln /usr/local/avr/bin/$k /usr/local/avr/avr/bin/$j >/dev/null 2>/dev/null \
                    || /bin/sh ./libtool --mode=install /usr/bin/install -c $i /usr/local/avr/avr/bin/$j; \
                fi; \
              else true; \
              fi; \
            done
    make[4]: Für das Ziel »install-data-am« ist nichts zu tun.
    make[4]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/binutils'
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/binutils'
    make[2]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/binutils'
    make[2]: Entering directory `/home/johannes/binutils-2.17/obj-avr/etc'
    for f in standards.info configure.info; do \
              if test -f ../../etc/`echo $f | sed -e 's/.info$/.texi/'`; then \
                if make "MAKEINFO=/home/johannes/binutils-2.17/missing makeinfo --split-size=5000000 --split-size=5000000" $f; then \
                  true; \
                else \
                  exit 1; \
                fi; \
              fi; \
            done
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/etc'
    make[3]: »../../etc/standards.info« ist bereits aktualisiert.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/etc'
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/etc'
    make[3]: »../../etc/configure.info« ist bereits aktualisiert.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/etc'
    /bin/sh ../../etc/../mkinstalldirs /usr/local/avr/info
    if test ! -f standards.info; then cd ../../etc; fi; \
            if test -f standards.info; then \
              for i in standards.info*; do \
                /usr/bin/install -c -m 644 $i /usr/local/avr/info/$i; \
              done; \
            fi
    if test ! -f configure.info; then cd ../../etc; fi; \
            if test -f configure.info; then \
              for i in configure.info*; do \
                /usr/bin/install -c -m 644 $i /usr/local/avr/info/$i; \
              done; \
            fi
    make[2]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/etc'
    make[2]: Entering directory `/home/johannes/binutils-2.17/obj-avr/gas'
    Making install in doc
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/gas/doc'
    make[4]: Entering directory `/home/johannes/binutils-2.17/obj-avr/gas/doc'
    make[4]: Für das Ziel »install-exec-am« ist nichts zu tun.
    test -z "/usr/local/avr/info" || mkdir -p -- "/usr/local/avr/info"
     /usr/bin/install -c -m 644 '../../../gas/doc/as.info' '/usr/local/avr/info/as.info'
     install-info --info-dir='/usr/local/avr/info' '/usr/local/avr/info/as.info'
    test -z "/usr/local/avr/man/man1" || mkdir -p -- "/usr/local/avr/man/man1"
     /usr/bin/install -c -m 644 '../../../gas/doc/as.1' '/usr/local/avr/man/man1/avr-as.1'
    make[4]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/gas/doc'
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/gas/doc'
    Making install in po
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/gas/po'
    make[3]: Für das Ziel »install« ist nichts zu tun.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/gas/po'
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/gas'
    make[4]: Entering directory `/home/johannes/binutils-2.17/obj-avr/gas'
    /bin/sh ../../gas/../mkinstalldirs /usr/local/avr/bin
     /bin/sh ./libtool  --mode=install /usr/bin/install -c as-new /usr/local/avr/bin/avr-as
    /usr/bin/install -c as-new /usr/local/avr/bin/avr-as
    /bin/sh ../../gas/../mkinstalldirs /usr/local/avr/avr/bin
    n=`echo as | sed 's,^,avr-,;'`; \
            if [ "/usr/local/avr/bin/$n" != "/usr/local/avr/avr/bin/as" ]; then \
              rm -f /usr/local/avr/avr/bin/as; \
              ln /usr/local/avr/bin/$n /usr/local/avr/avr/bin/as >/dev/null 2>/dev/null \
                || /bin/sh ./libtool --mode=install /usr/bin/install -c as-new /usr/local/avr/avr/bin/as; \
            else \
              true ; \
            fi
    make[4]: Für das Ziel »install-data-am« ist nichts zu tun.
    make[4]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/gas'
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/gas'
    make[2]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/gas'
    make[2]: Entering directory `/home/johannes/binutils-2.17/obj-avr/intl'
    if test "@PACKAGE@" = "gettext" \
               && test '' = 'intl-compat.o'; then \
              if test -r ../../intl/../../mkinstalldirs; then \
                ../../intl/../../mkinstalldirs /usr/local/avr/lib /usr/local/avr/include; \
              else \
                ../../intl/mkinstalldirs /usr/local/avr/lib /usr/local/avr/include; \
              fi; \
              /usr/bin/install -c -m 644 intlh.inst /usr/local/avr/include/libintl.h; \
              /usr/bin/install -c -m 644 libintl.a /usr/local/avr/lib/libintl.a; \
            else \
              : ; \
            fi
    if test "@PACKAGE@" = "gettext"; then \
              if test -r ../../intl/../../mkinstalldirs; then \
                ../../intl/../../mkinstalldirs /usr/local/avr/share/gettext/intl; \
              else \
                ../../intl/mkinstalldirs /usr/local/avr/share/gettext/intl; \
              fi; \
              /usr/bin/install -c -m 644 VERSION /usr/local/avr/share/gettext/intl/VERSION; \
              dists="ChangeLog Makefile.in linux-msg.sed po2tbl.sed.in xopen-msg.sed gettext.h gettextP.h hash-string.h libgettext.h loadinfo.h bindtextdom.c dcgettext.c dgettext.c gettext.c finddomain.c loadmsgcat.c localealias.c textdomain.c l10nflist.c explodename.c intl-compat.c cat-compat.c"; \
              for file in $dists; do \
                /usr/bin/install -c -m 644 ../../intl/$file /usr/local/avr/share/gettext/intl/$file; \
              done; \
            else \
              : ; \
            fi
    make[2]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/intl'
    make[2]: Entering directory `/home/johannes/binutils-2.17/obj-avr/ld'
    Making install in po
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/ld/po'
    make[3]: Für das Ziel »install« ist nichts zu tun.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/ld/po'
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/ld'
    make[4]: Entering directory `/home/johannes/binutils-2.17/obj-avr/ld'
    /bin/sh ../../ld/../mkinstalldirs /usr/local/avr/bin /usr/local/avr/avr/bin
     /bin/sh ./libtool  --mode=install /usr/bin/install -c ld-new /usr/local/avr/bin/avr-ld
    /usr/bin/install -c ld-new /usr/local/avr/bin/avr-ld
    n=`echo ld | sed 's,^,avr-,;'`; \
            if [ "/usr/local/avr/bin/$n" != "/usr/local/avr/avr/bin/ld" ]; then \
              rm -f /usr/local/avr/avr/bin/ld; \
              ln /usr/local/avr/bin/$n /usr/local/avr/avr/bin/ld >/dev/null 2>/dev/null \
              || /bin/sh ./libtool --mode=install /usr/bin/install -c ld-new /usr/local/avr/avr/bin/ld; \
            fi
    Making install-info in po
    make[5]: Entering directory `/home/johannes/binutils-2.17/obj-avr/ld/po'
    make[5]: Für das Ziel »install-info« ist nichts zu tun.
    make[5]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/ld/po'
    make[5]: Entering directory `/home/johannes/binutils-2.17/obj-avr/ld'
    test -z "/usr/local/avr/info" || mkdir -p -- "/usr/local/avr/info"
     /usr/bin/install -c -m 644 '../../ld/ld.info' '/usr/local/avr/info/ld.info'
     install-info --info-dir='/usr/local/avr/info' '/usr/local/avr/info/ld.info'
    make[5]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/ld'
    /bin/sh ../../ld/../mkinstalldirs /usr/local/avr/avr/lib/ldscripts
    mkdir -p -- /usr/local/avr/avr/lib/ldscripts
    for f in ldscripts/*; do \
              /usr/bin/install -c -m 644 $f /usr/local/avr/avr/lib/$f ; \
            done
    test -z "/usr/local/avr/man/man1" || mkdir -p -- "/usr/local/avr/man/man1"
     /usr/bin/install -c -m 644 '../../ld/ld.1' '/usr/local/avr/man/man1/avr-ld.1'
    make[4]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/ld'
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/ld'
    make[2]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/ld'
    make[2]: Entering directory `/home/johannes/binutils-2.17/obj-avr/libiberty'
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/libiberty/testsuite'
    make[3]: Für das Ziel »all« ist nichts zu tun.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/libiberty/testsuite'
    /bin/sh ../../libiberty/../mkinstalldirs /usr/local/avr/lib
    /usr/bin/install -c -m 644 ./libiberty.a /usr/local/avr/lib/./libiberty.an
    ( cd /usr/local/avr/lib ; ranlib ./libiberty.an )
    mv -f /usr/local/avr/lib/./libiberty.an /usr/local/avr/lib/./libiberty.a
    if test -n ""; then \
              case "" in \
                /*)    thd=;; \
                *)     thd=/usr/local/avr/include/;; \
              esac; \
              /bin/sh ../../libiberty/../mkinstalldirs ${thd}; \
              for h in ../../libiberty/../include/ansidecl.h ../../libiberty/../include/demangle.h ../../libiberty/../include/dyn-string.h ../../libiberty/../include/fibheap.h ../../libiberty/../include/floatformat.h ../../libiberty/../include/hashtab.h ../../libiberty/../include/libiberty.h ../../libiberty/../include/objalloc.h ../../libiberty/../include/partition.h ../../libiberty/../include/safe-ctype.h ../../libiberty/../include/sort.h ../../libiberty/../include/splay-tree.h ../../libiberty/../include/ternary.h; do \
                /usr/bin/install -c -m 644 $h ${thd}; \
              done; \
            fi
    make[3]: Entering directory `/home/johannes/binutils-2.17/obj-avr/libiberty/testsuite'
    make[3]: Für das Ziel »install« ist nichts zu tun.
    make[3]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/libiberty/testsuite'
    make[2]: Leaving directory `/home/johannes/binutils-2.17/obj-avr/libiberty'
    make[1]: Für das Ziel »install-target« ist nichts zu tun.
    make[1]: Leaving directory `/home/johannes/binutils-2.17/obj-avr'

  7. #7
    Erfahrener Benutzer Roboter-Spezialist
    Registriert seit
    08.07.2006
    Ort
    Karlsruhe/München
    Alter
    34
    Beiträge
    587
    afaik sind das doch nur Warnungen. Ich denke es sollte Funktionieren, Schon ausprobiert ob du compilieren kannst? (also ich meine ob der avr-as und avr-gcc ansprechbar sind)?

  8. #8
    Erfahrener Benutzer Fleißiges Mitglied
    Registriert seit
    13.05.2007
    Alter
    32
    Beiträge
    183
    So, ich hab jetzt avr-gcc installiert. avr-as -v und avr-gcc -v zeigen mir beide ihre Versionen an, es scheint also funktioniert zu haben.

    Ich versuche jetzt, avr-libc zu konfigurieren und zu compilen. Bei
    Code:
     ./configure --prefix=/usr/local/avr --build=`./config.guess` --host=avr
    Erscheint folgendes:
    Code:
    checking if avr-gcc has support for attiny13... yes
    checking if avr-gcc has support for attiny2313... yes
    checking if avr-gcc has support for attiny25... no
    checking if avr-gcc has support for attiny45... no
    checking if avr-gcc has support for attiny85... no
    checking if avr-gcc has support for attiny24... no
    checking if avr-gcc has support for attiny44... no
    checking if avr-gcc has support for attiny84... no
    checking if avr-gcc has support for attiny261... no
    checking if avr-gcc has support for attiny461... no
    checking if avr-gcc has support for attiny861... no
    checking if avr-gcc has support for AVR25... no
    checking if avr-gcc has support for attiny43u... no
    checking if avr-gcc has support for attiny48... no
    checking if avr-gcc has support for attiny88... no
    checking if avr-gcc has support for AVR31... no
    checking if avr-gcc has support for AVR35... no
    checking if avr-gcc has support for at90usb82... no
    checking if avr-gcc has support for at90usb162... no
    checking if avr-gcc has support for attiny167... no
    checking if avr-gcc has support for atmega48... yes
    checking if avr-gcc has support for atmega48p... no
    checking if avr-gcc has support for atmega88... yes
    checking if avr-gcc has support for atmega88p... no
    checking if avr-gcc has support for atmega8hva... no
    checking if avr-gcc has support for at90pwm1... no
    checking if avr-gcc has support for at90pwm2... no
    checking if avr-gcc has support for at90pwm2b... no
    checking if avr-gcc has support for at90pwm3... no
    checking if avr-gcc has support for at90pwm3b... no
    checking if avr-gcc has support for atmega164p... no
    checking if avr-gcc has support for atmega165... yes
    checking if avr-gcc has support for atmega165p... no
    checking if avr-gcc has support for atmega168... yes
    checking if avr-gcc has support for atmega168p... no
    checking if avr-gcc has support for atmega169p... no
    checking if avr-gcc has support for atmega16hva... no
    checking if avr-gcc has support for atmega324p... no
    checking if avr-gcc has support for atmega325... yes
    checking if avr-gcc has support for atmega325p... no
    checking if avr-gcc has support for atmega3250... yes
    checking if avr-gcc has support for atmega3250p... no
    checking if avr-gcc has support for atmega328p... no
    checking if avr-gcc has support for atmega329... no
    checking if avr-gcc has support for atmega329p... no
    checking if avr-gcc has support for atmega3290... no
    checking if avr-gcc has support for atmega3290p... no
    checking if avr-gcc has support for atmega32hvb... no
    checking if avr-gcc has support for atmega406... no
    checking if avr-gcc has support for atmega640... no
    checking if avr-gcc has support for atmega644... no
    checking if avr-gcc has support for atmega644p... no
    checking if avr-gcc has support for atmega645... yes
    checking if avr-gcc has support for atmega6450... yes
    checking if avr-gcc has support for atmega649... no
    checking if avr-gcc has support for atmega6490... no
    checking if avr-gcc has support for at90can32... no
    checking if avr-gcc has support for at90can64... no
    checking if avr-gcc has support for at90usb646... no
    checking if avr-gcc has support for at90usb647... no
    checking if avr-gcc has support for at90pwm316... no
    checking if avr-gcc has support for at90pwm216... no
    checking if avr-gcc has support for atmega32c1... no
    checking if avr-gcc has support for atmega32m1... no
    checking if avr-gcc has support for atmega32u4... no
    checking if avr-gcc has support for AVR51... no
    checking if avr-gcc has support for atmega1280... no
    checking if avr-gcc has support for atmega1281... no
    checking if avr-gcc has support for atmega1284p... no
    checking if avr-gcc has support for at90can128... yes
    checking if avr-gcc has support for at90usb1286... no
    checking if avr-gcc has support for at90usb1287... no
    checking if avr-gcc has support for AVR6... no
    checking if avr-gcc has support for atmega2560... no
    checking if avr-gcc has support for atmega2561... no
    checking if avr-gcc has support for avrxmega5... no
    checking if avr-gcc has support for atxmega64a1... no
    checking if avr-gcc has support for avrxmega7... no
    checking if avr-gcc has support for atxmega128a1... no
    Irgendwie doof, wenn die alle nicht unterstützt werden. Könnte das damit zusammenhängen, dass ich die alte binutils-Version genommen hab? Ich brauche den mega2561 auf jeden Fall, und der ist ja noch relativ neu.

  9. #9
    Erfahrener Benutzer Robotik Einstein Avatar von SprinterSB
    Registriert seit
    09.06.2005
    Ort
    An der Saar
    Beiträge
    2.802
    Die von avr-gcc (bzw. avr-as) unterstützten Targets sind anzeigbar mit
    Code:
    avr-gcc --target-help
    Die Seite im Wiki bezieht sich AFAIR auf GCC 3.4.x, möglicherweise hat sich einiges geändert da (GCC 4.3 brauch zB MPFR und GRP libs).

    Vielleicht hilft auch

    http://avrwiki.com/wiki/index.php/Building_AVR_GCC

    oder die Foren-Links in

    http://avrwiki.com/wiki/index.php/Building_AVR_GCC

    Jedenfalls weder verdächtig wenig Targets nuterstützt. Würd mal schätzen, daß da der falsche as genommen wird (ist evtl vorher in PATH?). Schau vielleicht auch mal die configure-Optionen von GCC an, insbesondere --with-as und --with-ld
    Disclaimer: none. Sue me.

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  

Solar Speicher und Akkus Tests