[Bug 249910] irc/irssi: Update to snapshot 1.3 (20200926)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 12 21:56:54 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249910
--- Comment #15 from David O'Rourke <dor.bsd at xm0.uk> ---
Unfortunately, I cannot build this patch in a FreeBSD 12.2 `poudriere testport`
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=unused-command-line-argument is being introduced to the cc command 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-argument]
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 this
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=unused-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/tmpskfkg4ld/testfile.c
-o
/wrkdirs/usr/ports/irc/irssi/work/irssi-17c6c22/_build/meson-private/tmpskfkg4ld/output.obj
-pipe -c -O2 -fstack-protector-strong -isystem /usr/local/include
-fno-strict-aliasing -isystem /usr/local/include -D_FILE_OFFSET_BITS=64 -O0
-Werror=unknown-warning-option -Werror=unused-command-line-argument
-Werror=ignored-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 -lutil
-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 the
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
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list