Package Details: drive-git 0.4.0.r4.gbede608-1

Git Clone URL: https://aur.archlinux.org/drive-git.git (read-only, click to copy)
Package Base: drive-git
Description: Google Drive client for the command line (development version)
Upstream URL: https://github.com/odeke-em/drive
Licenses: Apache-2.0
Conflicts: drive
Provides: drive
Submitter: AquilaIrreale
Maintainer: AquilaIrreale
Last Packager: AquilaIrreale
Votes: 5
Popularity: 0.000000
First Submitted: 2019-08-08 09:08 (UTC)
Last Updated: 2026-01-05 14:59 (UTC)

Dependencies (2)

Required by (0)

Sources (2)

Latest Comments

AquilaIrreale commented on 2026-02-05 18:49 (UTC) (edited on 2026-02-07 09:28 (UTC) by AquilaIrreale)

@fuan_k it works now, for me, when I build in a clean chroot.

It may either be something with your machine, or caching issues.

Have you tried deleting everything, fetching a clean copy and building in a chroot? (see your AUR helper docs for chroot functionality, or use extra-x86_64-build from extra/devtools if building manually)

fuan_k commented on 2026-01-18 21:19 (UTC)

@AquilaIrreale still getting the same error.

AquilaIrreale commented on 2026-01-05 15:02 (UTC)

@fuan_k yeah something changed either in LDFLAGS or in the way go tool link parses arguments, either way I made interpolation more robust, try now

fuan_k commented on 2025-12-30 21:36 (UTC) (edited on 2025-12-30 21:40 (UTC) by fuan_k)

Build fails:

==> Starting build()...
[...]
github.com/odeke-em/drive/drive-server
flag provided but not defined: -Wl,--sort-common
usage: link [options] main.o
[...]
github.com/odeke-em/drive/drive-google
flag provided but not defined: -Wl,--sort-common
usage: link [options] main.o
[...]
github.com/odeke-em/drive/drive-google
# github.com/odeke-em/drive/drive-gen
flag provided but not defined: -Wl,--sort-common
usage: link [options] main.o
# github.com/odeke-em/drive/cmd/drive
flag provided but not defined: -Wl,--sort-common
usage: link [options] main.o
# github.com/odeke-em/drive/drive-google
flag provided but not defined: -Wl,--sort-common
usage: link [options] main.o

This is a snippet of my /etc/makepkg.conf (I believe it's the default from Arch)

LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
         -Wl,-z,pack-relative-relocs"