Portál AbcLinuxu, 6. května 2025 16:29
#crossdev -t avr
neproběhne. Hodí to chybu:
/var/tmp/cross/avr/portage/cross-avr/gcc-4.2.3/work/gcc-4.2.3/gcc/config/avr/libgcc.S: Assembler messages:
/var/tmp/cross/avr/portage/cross-avr/gcc-4.2.3/work/gcc-4.2.3/gcc/config/avr/libgcc.S:280: Error: illegal opcode movw for mcu avr3
/var/tmp/cross/avr/portage/cross-avr/gcc-4.2.3/work/gcc-4.2.3/gcc/config/avr/libgcc.S:282: Error: illegal opcode movw for mcu avr3
make[3]: *** [libgcc/avr35/_mulsi3.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/cross/avr/portage/cross-avr/gcc-4.2.3/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/var/tmp/cross/avr/portage/cross-avr/gcc-4.2.3/work/build/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/var/tmp/cross/avr/portage/cross-avr/gcc-4.2.3/work/build'
make: *** [all] Error 2
*
* ERROR: cross-avr/gcc-4.2.3 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 4568: Called toolchain_src_compile
* environment, line 5037: Called gcc_src_compile
* environment, line 2927: Called gcc_do_make
* environment, line 2757: Called die
* The specific snippet of code:
* emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
* The die message:
* emake failed with all
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/cross/avr/portage/cross-avr/gcc-4.2.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/cross/avr/portage/cross-avr/gcc-4.2.3/temp/environment'.
Na netu jsem nic odpovídajícího nenašel. Updatoval jsem binutils i gcc, ale nepomohlo to. Nevíte někdo prosím co s tím? Díky...
#crossdev -t avr --g 4.0.3
a pak i
#crossdev -t avr --g 3.2.2
...a stejně nic. Jen se změnila chyba:
In file included from /var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/read-rtl.c:25:
/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/read-rtl.c: In function ‘fatal_with_file_and_line’:
/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/read-rtl.c:62: warning: traditional C rejects ISO C style function defi
nitions
/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/read-rtl.c: In function ‘read_rtx’:
/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/read-rtl.c:662: error: invalid lvalue in increment
make[1]: *** [read-rtl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/bitmap.c:24:
/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/rtl.h:125: warning: type of bit-field ‘code’ is a GCC extension
/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/gcc-3.2.2/gcc/rtl.h:128: warning: type of bit-field ‘mode’ is a GCC extension
make[1]: Leaving directory `/var/tmp/cross/avr/portage/cross-avr/gcc-3.2.2/work/build/gcc'
make: *** [all-gcc] Error 2
# crossdev --gcc 3.4.6 -t avr
.......
* binutils: binutils-[latest]
* gcc: gcc-3.4.6
* libc: avr-libc-[latest
.....
>>> Emerging (1 of 1) cross-avr/gcc-4.2.3 to /
* gcc-4.2.3-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size
... [ ok ]
* gcc-4.2.3.tar.bz2 RMD160 SHA1 SHA256 size
... [ ok ]
* gcc-4.2.3-uclibc-patches-1.0.tar.bz2 RMD160 SHA1 SHA256 size
... [ ok ]
* checking ebuild checksums
... [ ok ]
* checking auxfile checksums
... [ ok ]
* checking miscfile checksums
... [ ok ]
* checking gcc-4.2.3.tar.bz2
... [ ok ]
* checking gcc-4.2.3-uclibc-patches-1.0.tar.bz2
... [ ok ]
* checking gcc-4.2.3-patches-1.0.tar.bz2
... [ ok ]
......
crossdev --b 2.18-r1 --g 4.1.2 -t avr
by melo vyresit problem (testovano jak na x86 tak amd64 pro avr-libc 1.4.6)
Jinak kdybys chtel pouzivat simulavrxx tak poslu funkcni ebuild (jeste jsem ho neposlal do bugzilly, dopsal jsem ho pred peti minutami;o) - ten z gentoo bug nefunguje
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.