pkg-fallout on one of the ports I maintain

Niclas Zeising zeising+freebsd at daemonic.se
Tue Sep 1 12:12:55 UTC 2020


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 at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
> 



More information about the freebsd-ports mailing list