Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Nov 2020 21:56:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 249910] irc/irssi: Update to snapshot 1.3 (20200926)
Message-ID:  <bug-249910-7788-bXansL26vi@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-249910-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-249910-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249910

--- Comment #15 from David O'Rourke <dor.bsd@xm0.uk> ---
Unfortunately, I cannot build this patch in a FreeBSD 12.2 `poudriere testp=
ort`
at the moment.

The build fails while testing to see if Perl is available:

Checking if "working Perl support" compiles: NO
meson.build:377:6: ERROR: Problem encountered: error linking with perl
libraries

Everything looks correct, and the problem seems to be that
-Werror=3Dunused-command-line-argument is being introduced to the cc comman=
d line
somewhere.

This is causing the following error during the test for Perl:

cc: error: -Wl,-R/usr/local/lib/perl5/5.32/mach/CORE: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
cc: error: -Wl,-E: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
cc: error: -Wl,--start-group: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
cc: error: -lperl: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
cc: error: -lpthread: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
cc: error: -lm: 'linker' input unused [-Werror,-Wunused-command-line-argume=
nt]
cc: error: -lcrypt: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
cc: error: -lutil: 'linker' input unused
[-Werror,-Wunused-command-line-argument]
cc: error: -Wl,--end-group: 'linker' input unused
[-Werror,-Wunused-command-line-argument]

Manipulating the command line in an interactive poudriere session to add
-Wno-unused-command-line-argument to the end of the build command allows th=
is
particular test to pass. Sadly, adding that same argument to CPPFLAGS does =
not
work to avoid this issue as the arguments are order dependent, and
-Wno-unused-command-line-argument appears before
-Werror=3Dunused-command-line-argument in the command.

The full failing command is:

cc -I/usr/local/include -I/usr/local/lib/perl5/5.32/mach/CORE -L/usr/local/=
lib
-L/usr/local/lib/perl5/5.32/mach/CORE -I/usr/include
/wrkdirs/usr/ports/irc/irssi/work/irssi-17c6c22/_build/meson-private/tmpskf=
kg4ld/testfile.c
-o
/wrkdirs/usr/ports/irc/irssi/work/irssi-17c6c22/_build/meson-private/tmpskf=
kg4ld/output.obj
-pipe -c -O2 -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing -isystem /usr/local/include -D_FILE_OFFSET_BITS=3D64 -=
O0
-Werror=3Dunknown-warning-option -Werror=3Dunused-command-line-argument
-Werror=3Dignored-optimization-argument -DHAS_FPSETMASK -DHAS_FLOATINGPOINT=
_H
-DUSE_THREAD_SAFE_LOCALE -fno-strict-aliasing -fstack-protector-strong -fPIC
-Wl,-R/usr/local/lib/perl5/5.32/mach/CORE -pthread -Wl,-E
-fstack-protector-strong -Wl,--start-group -lperl -lpthread -lm -lcrypt -lu=
til
-Wl,--end-group

I am unsure where the various -W flags are being introduced. grepping both =
the
irssi source and /usr/ports/Mk doesn't turn anything up, nor does manually
executing some of the commands that Meson seems to be running to work out t=
he
Perl LDFLAGS and CFLAGS. I believe it's being introduced as an entry in
perl_rpath_flags, but as I'm unfamiliar with Meson, I'm having real issues
debugging it.

-David

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249910-7788-bXansL26vi>