http://bugzilla.novell.com/show_bug.cgi?id=936463
http://bugzilla.novell.com/show_bug.cgi?id=936463#c5
Stanislav Brabec changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|cross-avr-gcc5 seems to |cross-*-gcc5 seems to lack
|lack some required files |some required files
--- Comment #5 from Stanislav Brabec ---
The problem is not AVR specific. ARM is affected as well.
1) When trying to link, I get complain:
armv7hl-suse-linux-gnueabi-gcc-5 main.c -o main
Assembler messages:
Fatal error: invalid -march= option: `armv7-a'
Well, the problem is different here. Links are provided, but elsewhere.
For AVR, symlinks are missing completely.
For ARMV7HL, symlinks exist, but they are in a directory that is not tested.
Provided: /usr/arm-suse-linux-gnueabi/bin/as
Expected:
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/as
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/as
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/as
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/as
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/as
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/../../../../armv7hl-suse-linux-gnueabi/bin/armv7hl-suse-linux-gnueabi/5/as
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/../../../../armv7hl-suse-linux-gnueabi/bin/as
Trying to compile main.c with empty main and nothing else, I get:
2) Missing mandatory libraries affect ARM7HL as well.
After making the correct link manually, I get another problem.
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find crt1.o: No such
file or directory
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find crti.o: No such
file or directory
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find crtbegin.o: No such
file or directory
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find -lgcc
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find -lgcc_s
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find -lc
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find -lgcc
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find -lgcc_s
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find crtend.o: No such
file or directory
/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/5/ld: cannot find crtn.o: No such
file or directory
collect2: error: ld returned 1 exit status
Well, crt*.o should be provided by arm-glibc, but libgcc*.a should be provided
by the compiler.
More people care about AVR, because of Arduino. But I have been thinking about
porting of avr-libc to a structure compatible with gcc5 and acceptable for
Factory (i. e. in /usr and not /opt). I made a temporary wrappers
https://build.opensuse.org/package/show/home:sbrabec:branches:CrossToolchain...
and considered that they compile with avr-libc, but they don't link.
I'll test the profided fix, but I guess that it will fix 1) only.
--
You are receiving this mail because:
You are on the CC list for the bug.