Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1214836

Bug#1083114: gcc-avr FTCBFS: multiple reasons

From Helmut Grohne <helmut@subdivi.de>
Newsgroups linux.debian.bugs.dist
Subject Bug#1083114: gcc-avr FTCBFS: multiple reasons
Date 2024-10-01 23:30 +0200
Message-ID <JsSBr-ghOP-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Source: gcc-avr
Version: 1:7.3.0+Atmel3.7.0-2
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs

gcc-avr fails to cross build from source for two distinct reasons. The
first reason only shows for certain architecture combinations such as
build=amd64 + host=arm64 as we pass -mbranch-protection=standard for
arm64 and amd64 doesn't understand the flag. The way gcc forwards
compiler flags mostly works, but it happens to inject host compiler
flags for the libcpp build for the build architecture and that doesn't
go well. Since gcc passes compiler flags to the relevant sub-configure
scripts, it is generally not necessary to force CFLAGS/CXXFLAGS on the
make invocation and I propose to drop this.

The other issue is that the build eventually runs avr-gcc -dump-specs
and there is no avr-gcc in $PATH. The trivial solution here is to add a
recursive dependency together with marking avr-gcc Multi-Arch: foreign
(which is ok as the architecture is encoded into the package name).
Possibly, a better solution is to actually build an avr-gcc with
host:=build!=target first and then do the real build as a second pass.
In any case, the recursive dependency makes it build.

I'm attaching a patch for your convenience.

Helmut

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1083114: gcc-avr FTCBFS: multiple reasons Helmut Grohne <helmut@subdivi.de> - 2024-10-01 23:30 +0200
  Bug#1083114: gcc-avr FTCBFS: multiple reasons Steve M <swm@swm1.com> - 2024-10-05 18:10 +0200
    Bug#1083114: gcc-avr FTCBFS: multiple reasons Helmut Grohne <helmut@subdivi.de> - 2024-10-07 22:40 +0200
      Bug#1083114: gcc-avr FTCBFS: multiple reasons Steve M <swm@swm1.com> - 2024-10-09 05:20 +0200
        Bug#1083114: gcc-avr FTCBFS: multiple reasons Helmut Grohne <helmut@subdivi.de> - 2024-10-09 08:20 +0200

csiph-web