~sircmpwn/aerc2#202:
MacOS: Builds with warning, then fails to execute

➜ make; make install;
go build  \
        -ldflags "-X main.Prefix=/usr/local \
        -X main.ShareDir=/usr/local/share/aerc \
        -X main.Version=0.1.1" \
        -o aerc
go: finding github.com/emersion/go-sasl v0.0.0-20190520160400-47d427600317
go: finding github.com/davecgh/go-spew v1.1.1
go: finding github.com/go-ini/ini v1.42.0
go: finding github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf
go: finding github.com/ddevault/go-libvterm v0.0.0-20190526194226-b7d861da3810
go: finding github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a
go: finding github.com/martinlindhe/base36 v0.0.0-20190418230009-7c6542dfbb41
go: finding github.com/emersion/go-imap-idle v0.0.0-20190519112320-2704abd7050e
go: finding git.sr.ht/~sircmpwn/pty v0.0.0-20190330154901-3a43678975a9
go: finding git.sr.ht/~sircmpwn/getopt v0.0.0-20190609193657-e7e23d1cd3a3
go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
go: finding github.com/mattn/go-isatty v0.0.8
go: finding github.com/miolini/datacounter v0.0.0-20171104152933-fd4e42a1d5e0
go: finding github.com/emersion/go-message v0.10.3
go: finding gopkg.in/ini.v1 v1.42.0
go: finding github.com/emersion/go-imap v1.0.0-beta.6
go: finding git.sr.ht/~sircmpwn/tcell v0.0.0-20190616032858-1f7dcc638286
go: finding github.com/pkg/errors v0.8.1
go: finding github.com/mattn/go-runewidth v0.0.4
go: finding golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed
go: finding golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223
go: finding github.com/mitchellh/go-homedir v1.1.0
go: finding golang.org/x/image v0.0.0-20190523035834-f03afa92d3ff
go: finding github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d
go: finding github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c
go: finding golang.org/x/text v0.3.2
go: finding github.com/mattn/go-pointer v0.0.0-20180825124634-49522c3f3791
go: finding github.com/riywo/loginshell v0.0.0-20181227004642-c2f4167b2303
go: finding github.com/jtolds/gls v4.20.0+incompatible
go: finding github.com/emersion/go-smtp v0.11.1
go: finding golang.org/x/text v0.3.0
go: finding github.com/stretchr/objx v0.1.0
go: finding golang.org/x/tools v0.0.0-20190328211700-ab21143f2384
go: finding github.com/kyoh86/xdg v1.0.0
go: finding github.com/lucasb-eyer/go-colorful v1.0.2
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/smartystreets/assertions v1.0.0
go: finding github.com/pmezard/go-difflib v1.0.0
go: finding github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1
go: finding github.com/emersion/go-textwrapper v0.0.0-20160606182133-d0e65e56babe
go: finding github.com/emersion/go-sasl v0.0.0-20161116183048-7e096a0a6197
go: finding github.com/gdamore/encoding v1.0.0
go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
go: finding github.com/DATA-DOG/go-sqlmock v1.3.3
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: downloading github.com/mattn/go-isatty v0.0.8
go: downloading git.sr.ht/~sircmpwn/getopt v0.0.0-20190609193657-e7e23d1cd3a3
go: downloading github.com/emersion/go-smtp v0.11.1
go: downloading git.sr.ht/~sircmpwn/pty v0.0.0-20190330154901-3a43678975a9
go: downloading github.com/kyoh86/xdg v1.0.0
go: downloading github.com/riywo/loginshell v0.0.0-20181227004642-c2f4167b2303
go: downloading github.com/miolini/datacounter v0.0.0-20171104152933-fd4e42a1d5e0
go: downloading github.com/ddevault/go-libvterm v0.0.0-20190526194226-b7d861da3810
go: downloading github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf
go: downloading github.com/emersion/go-message v0.10.3
go: extracting github.com/mattn/go-isatty v0.0.8
go: extracting github.com/riywo/loginshell v0.0.0-20181227004642-c2f4167b2303
go: extracting git.sr.ht/~sircmpwn/getopt v0.0.0-20190609193657-e7e23d1cd3a3
go: extracting github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf
go: extracting github.com/miolini/datacounter v0.0.0-20171104152933-fd4e42a1d5e0
go: extracting git.sr.ht/~sircmpwn/pty v0.0.0-20190330154901-3a43678975a9
go: extracting github.com/kyoh86/xdg v1.0.0
go: downloading github.com/emersion/go-imap v1.0.0-beta.6
go: extracting github.com/emersion/go-smtp v0.11.1
go: downloading git.sr.ht/~sircmpwn/tcell v0.0.0-20190616032858-1f7dcc638286
go: downloading github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
go: extracting github.com/emersion/go-message v0.10.3
go: downloading github.com/pkg/errors v0.8.1
go: downloading github.com/emersion/go-sasl v0.0.0-20190520160400-47d427600317
go: downloading github.com/mattn/go-runewidth v0.0.4
go: downloading golang.org/x/text v0.3.2
go: extracting github.com/ddevault/go-libvterm v0.0.0-20190526194226-b7d861da3810
go: downloading github.com/martinlindhe/base36 v0.0.0-20190418230009-7c6542dfbb41
go: downloading github.com/emersion/go-imap-idle v0.0.0-20190519112320-2704abd7050e
go: extracting github.com/emersion/go-imap v1.0.0-beta.6
go: extracting github.com/pkg/errors v0.8.1
go: extracting github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964
go: extracting github.com/emersion/go-sasl v0.0.0-20190520160400-47d427600317
go: extracting github.com/mattn/go-runewidth v0.0.4
go: extracting github.com/martinlindhe/base36 v0.0.0-20190418230009-7c6542dfbb41
go: extracting github.com/emersion/go-imap-idle v0.0.0-20190519112320-2704abd7050e
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/go-ini/ini v1.42.0
go: extracting github.com/mitchellh/go-homedir v1.1.0
go: extracting github.com/go-ini/ini v1.42.0
go: downloading github.com/mattn/go-pointer v0.0.0-20180825124634-49522c3f3791
go: downloading github.com/emersion/go-textwrapper v0.0.0-20160606182133-d0e65e56babe
go: extracting github.com/mattn/go-pointer v0.0.0-20180825124634-49522c3f3791
go: extracting github.com/emersion/go-textwrapper v0.0.0-20160606182133-d0e65e56babe
go: extracting git.sr.ht/~sircmpwn/tcell v0.0.0-20190616032858-1f7dcc638286
go: downloading github.com/gdamore/encoding v1.0.0
go: downloading github.com/lucasb-eyer/go-colorful v1.0.2
go: extracting github.com/gdamore/encoding v1.0.0
go: extracting github.com/lucasb-eyer/go-colorful v1.0.2
go: extracting golang.org/x/text v0.3.2
# git.sr.ht/~sircmpwn/aerc
ld: warning: building for macOS, but linking in object file (/var/folders/hy/8dbkskg10kn38_c7txqgyyx00000gn/T/go-link-305995091/go.o) built for
sed -e 's:@SHAREDIR@:/usr/local/share/aerc:g' > aerc.conf < config/aerc.conf.in
scdoc < doc/aerc.1.scd > aerc.1
scdoc < doc/aerc-config.5.scd > aerc-config.5
scdoc < doc/aerc-imap.5.scd > aerc-imap.5
scdoc < doc/aerc-smtp.5.scd > aerc-smtp.5
scdoc < doc/aerc-tutorial.7.scd > aerc-tutorial.7
mkdir -p /usr/local/bin /usr/local/share/man/man1 /usr/local/share/man/man5 /usr/local/share/man/man7 \
        /usr/local/share/aerc /usr/local/share/aerc/filters
install -m755 aerc /usr/local/bin/aerc
install -m644 aerc.1 /usr/local/share/man/man1/aerc.1
install -m644 aerc-config.5 /usr/local/share/man/man5/aerc-config.5
install -m644 aerc-imap.5 /usr/local/share/man/man5/aerc-imap.5
install -m644 aerc-smtp.5 /usr/local/share/man/man5/aerc-smtp.5
install -m644 aerc-tutorial.7 /usr/local/share/man/man7/aerc-tutorial.7
install -m644 config/accounts.conf /usr/local/share/aerc/accounts.conf
install -m644 aerc.conf /usr/local/share/aerc/aerc.conf
install -m644 config/binds.conf /usr/local/share/aerc/binds.conf
install -m755 contrib/hldiff /usr/local/share/aerc/filters/hldiff
install -m755 contrib/html /usr/local/share/aerc/filters/html
install -m755 contrib/plaintext /usr/local/share/aerc/filters/plaintext

aerc on  master via 🐹 v1.12.6 took 31s 211ms
➜ aerc
dyld: malformed mach-o image: segment __DWARF has vmsize < filesize
fish: 'aerc' terminated by signal SIGABRT (Abort)
Status
REPORTED
Submitter
~selfagency
Assigned to
No-one
Submitted
3 months ago
Updated
2 months ago
Labels
No labels applied.

~benburwell 2 months ago

This line looks suspicious:

ld: warning: building for macOS, but linking in object file (/var/folders/hy/8dbkskg10kn38_c7txqgyyx00000gn/T/go-link-305995091/go.o) built for

Can't reproduce on macOS 10.14.5 with latest master.

Register here or Log in to comment, or comment via email.