Date: Tue, 1 Sep 2020 14:12:50 +0200 From: Niclas Zeising <zeising+freebsd@daemonic.se> To: Bob Eager <rde@tavi.co.uk>, freebsd-ports@freebsd.org Subject: Re: pkg-fallout on one of the ports I maintain Message-ID: <2076493f-45dc-4c8f-16b4-4e62b056866a@daemonic.se> In-Reply-To: <20200901104652.6159b223@raksha.tavi.co.uk> References: <CANSUJnqMGc%2B1z%2Buc0ndOq1qf-8KqZkJMXY9GHksdSbuhFoP-Sw@mail.gmail.com> <20200901104652.6159b223@raksha.tavi.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-09-01 11:46, Bob Eager wrote: > Almost certainly the -fno-common problem with clang 11. > > This now defaults to -fno-common, which causes multiply defined symbols > at link time if something is declared global in more than one module > (instead of extern in all but one module). There is a similar problem > with gcc. > > Declaring -fno-common on your existing build will trigger the problem. > > What you are seeing (success) is because clang 11 isn't actually in > -CURRENT yet. When I fixed my ports, I had to install (build) clang 11 > (from llvm11) to do the testing. llvm 11 is imported into FreeBSD 13-currrent since about two weeks. If you have an older current, or are on a release, you can either add -fno-common to CFLAGS to trigger the issue, or install llvm11 from ports and use that. Regards Niclas > > On Tue, 1 Sep 2020 19:35:44 +1000 > Sean Greven <sean.greven@gmail.com> wrote: > >> Hi there >> >> I have received a number of messages from pkg-fallout regarding the >> port I maintain, and pkg-fallout maintains that my port is broken. >> >> The really strange thing here is that I am able to build it in all the >> versions up till 13.0-CURRENT. >> The port builds without any errors. Any one with any ideas on how to >> troubleshoot this further? >> >> Below is the last piece of the error returned from pkg-fallout. >> >> cc: error: linker command failed with exit code 1 (use -v to see >> invocation) *** [fwknop] Error code 1 >> >> make[3]: stopped in >> /wrkdirs/usr/ports/security/fwknop/work/fwknop-2.6.10/client >> 1 error >> >> make[3]: stopped in >> /wrkdirs/usr/ports/security/fwknop/work/fwknop-2.6.10/client >> ===> Compilation failed unexpectedly. >> Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the >> failure to the maintainer. >> *** Error code 1 >> > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2076493f-45dc-4c8f-16b4-4e62b056866a>