Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parallel build issues #12

Closed
wants to merge 1 commit into from

Conversation

robertlinux
Copy link

The following line causes strlcat.o and strlcpy.o generate twice:

libcompat_la_SOURCES = ../lib/strlcpy.c ../lib/strlcat.c

Which causes parallel build issues like:
https://bugs.gentoo.org/701894

The log shows that they have been generated twice, but should only be once, the
extra one is for libstrlcat.lo, this patch fixes the problem, now the log only
shows once for each of them.

And also restore the parallel build.

Signed-off-by: Robert Yang [email protected]

The following line causes strlcat.o and strlcpy.o generate twice:

libcompat_la_SOURCES  = ../lib/strlcpy.c ../lib/strlcat.c

Which causes parallel build issues like:
https://bugs.gentoo.org/701894

The log shows that they have been generated twice, but should only be once, the
extra one is for libstrlcat.lo, this patch fixes the problem, now the log only
shows once for each of them.

And also restore the parallel build.

Signed-off-by: Robert Yang <[email protected]>
robertlinux referenced this pull request Dec 31, 2019
Independently of each other both the Gentoo project and Westermo found
an issue with massively parallel builds on monster-core-machines.  At
Westermo there are 40 core Xeon monsters that stumble when building
sysklogd.

The Gentoo bug report is here:

    https://bugs.gentoo.org/701894

The problem stems from strlcat.c and strlcpy.c being used for both
the libcompat convenience library built for libsyslog and als for
syslogd when the system does not have either of the APIs in libc,
i.e. most Linux systems with GLIBC or musl libc.

I can either rewrite the Makefile.am files to handle dependencies
better, or we just disable parallel build like this patch. There's
too few source files to gain anything from parallel build anyway.

Signed-off-by: Joachim Nilsson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant