discuss@mandoc.bsd.lv
 help / color / Atom feed
* Compilation with GCC 10 and -fno-common fails for 1.14.5
@ 2020-06-11  9:33 Wynn Wolf Arbor
  2020-06-11 12:02 ` Ingo Schwarze
  0 siblings, 1 reply; 2+ messages in thread
From: Wynn Wolf Arbor @ 2020-06-11  9:33 UTC (permalink / raw)
  To: discuss

Hi,

GCC 10 has switched from -fcommon to -fno-common as a default, breaking 
compilation with the current release of mandoc:

	compat_getline.c:5: multiple definition of `dummy'; 
	compat_err.o:mandoc-1.14.5/compat_err.c:5: first defined here
	[..]

When multiple unneeded (ie HAVE_* is set) compatibility files are 
included in a compiler invocation, the dummy declarations 'int dummy' 
clash with one another.

Ordinarily I would have sent a patch along, but I am not sure what 
solution is preferred here. I can think of the following:

  * Simply have a unique name for each dummy declaration per file.

  * Make sure that unneeded compatibility files are not included in the 
    build. This seems a decent albeit more complex and disruptive 
    solution.

I tried checking whether the development branch has this fixed already, 
but it seems that the CVS web interface [1] is down at the moment (500 
Internal Server Error). I also sadly couldn't check out the CVS:

	cvs [checkout aborted]: end of file from server (consult above messages if any)

There were no previous messages, and I don't know how to make CVS more 
verbose.

I did not find anything through a cursory check of the mandoc-source 
mailing list archive, so I'm assuming this issue is still present.

Thanks for your time!

[1] https://cvsweb.bsd.lv/mandoc/

-- 
Wolf
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compilation with GCC 10 and -fno-common fails for 1.14.5
  2020-06-11  9:33 Compilation with GCC 10 and -fno-common fails for 1.14.5 Wynn Wolf Arbor
@ 2020-06-11 12:02 ` Ingo Schwarze
  0 siblings, 0 replies; 2+ messages in thread
From: Ingo Schwarze @ 2020-06-11 12:02 UTC (permalink / raw)
  To: Wynn Wolf Arbor; +Cc: discuss

Hi Wolf,

Wynn Wolf Arbor wrote on Thu, Jun 11, 2020 at 11:33:41AM +0200:

> When multiple unneeded (ie HAVE_* is set) compatibility files are 
> included in a compiler invocation, the dummy declarations 'int dummy' 
> clash with one another.

I'll consider that separately.

> I tried checking whether the development branch has this fixed already, 
> but it seems that the CVS web interface [1] is down at the moment (500 
> Internal Server Error).
> [1] https://cvsweb.bsd.lv/mandoc/

I just repaired that.

> I also sadly couldn't check out the CVS:
> cvs [checkout aborted]: end of file from server
> (consult above messages if any)

And i repaired that, too.

Thanks for the reports!
  Ingo


P.S. @kristaps:
I suspect both got broken by the recent operating system upgrade to
OpenBSD 6.7, which changed the ABI for syscalls between libc and
kernel.  So the pre-upgrade programs no longer ran on the new kernel.
Now, both the anoncvs and cvsweb chroot contain up-to-date binaries
again.
--
 To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11  9:33 Compilation with GCC 10 and -fno-common fails for 1.14.5 Wynn Wolf Arbor
2020-06-11 12:02 ` Ingo Schwarze

discuss@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-discuss

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.discuss


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git