You are not logged in.

#1 2025-06-28 20:47:57

korimitsu
Member
Registered: 2016-08-14
Posts: 166

mips64-elf-binutil fails to build

Build log:

$ paru -S mips64-elf-binutils
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Aur (1) mips64-elf-binutils-2.44-1

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
/home/korimitsu/.cache/paru/clone/mips64-elf-binutils/PKGBUILD--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]
# Maintainer: Simon Eriksson <simon.eriksson.1187+aur AT gmail.com>
# Contributor: Joey Dumont <joey.dumont@gmail.com>

_target=mips64-elf
pkgname=${_target}-binutils
pkgver=2.44
pkgrel=1
pkgdesc="A set of programs to assemble and manipulate binary and object files (${_target})"
url="http://www.gnu.org/software/binutils/"
arch=('x86_64')
license=('GPL')
depends=('libelf')
source=("ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.xz")
sha256sums=('ce2017e059d63e67ddb9240e9d4ec49c2893605035cd60e92ad53177f4377237')

prepare() {
  cd binutils-${pkgver}

  # Hack - see native package for details
  sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" libiberty/configure
}

build() {
  cd binutils-${pkgver}

  ./configure \
    --target=${_target} \
    --prefix=/usr \
    --with-sysroot=/usr/${_target} \
    --with-gnu-as \
    --with-gnu-ld \
    --enable-64-bit-bfd \
    --enable-multilib \
    --enable-plugins \
    --disable-gold \
    --disable-nls \
    --disable-shared \
    --disable-werror

  make
}

check() {
  cd binutils-${pkgver}

  # unset LDFLAGS as testsuite makes assumptions about which ones are active
  # do not abort on errors - manually check log files
  make LDFLAGS="" -k check || true
}

package() {
  cd binutils-${pkgver}

  make DESTDIR="$pkgdir" install

  # Remove file conflicting with host binutils and manpages for MS Windows tools
  rm "$pkgdir"/usr/share/man/man1/$_target-{dlltool,windres,windmc}*
  rm "$pkgdir"/usr/lib/bfd-plugins/libdep.a

  # Remove info documents that conflict with host version
:: Accept changes? [Y/n]: 
fetching devel info...
==> Making package: mips64-elf-binutils 2.44-1 (Sat 28 Jun 2025 10:46:35 PM PDT)
==> Retrieving sources...
  -> Downloading binutils-2.44.tar.xz...
curl: option --ftp-pasv: is unknown
curl: try 'curl --help' for more information
==> ERROR: Failure while downloading [url]ftp://ftp.gnu.org/gnu/binutils/binutils-2.44.tar.xz[/url]
    Aborting...
error: failed to download sources for 'mips64-elf-binutils-2.44-1': 
error: packages failed to build: mips64-elf-binutils-2.44-1

Last edited by korimitsu (Yesterday 15:59:03)

Offline

#2 Yesterday 07:44:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,501

Re: mips64-elf-binutil fails to build

You should generally read the AUR page first and the first comment not by you mentions a regression in curl which needs to get fixed for the used commands to work correctly.

Offline

#3 Yesterday 10:02:01

korimitsu
Member
Registered: 2016-08-14
Posts: 166

Re: mips64-elf-binutil fails to build

Let's wait then until they fix the regressions.

Offline

#4 Yesterday 16:49:51

loqs
Member
Registered: 2014-03-06
Posts: 18,464

Re: mips64-elf-binutil fails to build

The issue with curls's FTP support should be worked around with https://aur.archlinux.org/cgit/aur.git/ … 24fa46f186 switching to HTTP.

Offline

Board footer

Powered by FluxBB