Mailinglist Archive: opensuse-bugs (4258 mails)

< Previous Next >
[Bug 1022404] cross-avr-gcc6 cannot compile
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 30 Jan 2017 12:58:18 +0000
  • Message-id: <bug-1022404-21960-O6XiUtwBLp@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=1022404
http://bugzilla.suse.com/show_bug.cgi?id=1022404#c4

--- Comment #4 from Richard Biener <rguenther@xxxxxxxx> ---
(In reply to Michal Suchanek from comment #3)
yes, regarding the avr-libc missing from factory that can be fixed trivially
by importing it from other project.

However, gcc refuses to build a libgcc because there is no way to specify
where the target headers and libraries should be built.

avr-libc moved from /usr/avr to /opt/cross/avr due to FHS.

Well, you can't use /opt in a product either. I'd rather ignore those stupid
FHS warnings and retain /usr/avr (cross-avr-binutils in factory does that so
do all cross GCCs).

The exact
directory is irrelevant. Wherever it is it has libraries in
${target_prefix}/lib and includes in ${target_prefix}/include. There is an
--with-sysroot configure option that tells gcc to look (and build) target
headers and libraries in a prefix but it insists on using {sysroot}/usr/lib
and ${sysroot}/usr/include. There is option --with-native-headers-prefix or
somesuch which can change that for headers but none for libraries.

The most helpful thing is if the configured locations agree between binutils,
gcc and libc ;)

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >