Summary: | app-text/discount-2.2.6 - ld: pandoc_headers.o: in function `main': pandoc_headers.c:(.text.startup+0x38): undefined reference to `hoptset' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Althorion <althorion> |
Component: | Current packages | Assignee: | Ben Kohler <bkohler> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | althorion, asturm, bkohler |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info app-text:discount-2.2.7:20200828-124337.log |
Description
Althorion
2020-07-10 06:59:15 UTC
(In reply to Althorion from comment #0) > emerge --info '=app-text/discount-2.2.6::gentoo' → > https://pastebin.com/5kmbffYB > /var/tmp/portage/app-text/discount-2.2.6/temp/build.log → > https://pastebin.com/SQd48msa Attach both of those, please. Created attachment 648830 [details]
build.log
Created attachment 648832 [details]
emerge --info
Does the build succeed with MAKEOPTS="-j1"? This looks really similar to bug 728930 which I applied a patch for, but maybe that upstream fix was incomplete Can you please test with -j1? I cannot reproduce this, I may be forced to close this bug report w/o a fix Created attachment 657302 [details]
app-text:discount-2.2.7:20200828-124337.log
Similar error here with -j24, no problem with -j1:
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: pandoc_headers.o: in function `main':
pandoc_headers.c:(.text.startup+0x38): undefined reference to `hoptset'
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: pandoc_headers.c:(.text.startup+0x54): undefined reference to `gethopt'
collect2: error: ld returned 1 exit status
x86_64-pc-linux-gnu-gcc -Wno-return-type -Wno-implicit-int -L. -Wl,-O1 -Wl,--as-needed -o mkd2html mkd2html.o pgm_options.o gethopt.o notspecial.o -lmarkdown
make: *** [Makefile:143: pandoc_headers] Error 1
make: *** Waiting for unfinished jobs....
Thanks, I was finally able to reproduce with with -j24 (about 1 in 3 attempts). Looks like the last fix wasn't complete, there is another missing dep in Makefile.in. Patch incoming. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=023c0d68cbc40ee38d313166a89ccff6ad618c57 commit 023c0d68cbc40ee38d313166a89ccff6ad618c57 Author: Ben Kohler <bkohler@gentoo.org> AuthorDate: 2020-08-28 17:06:17 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2020-08-28 17:06:39 +0000 app-text/discount: another parallel build fix Closes: https://bugs.gentoo.org/732010 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Ben Kohler <bkohler@gentoo.org> app-text/discount/files/gethopt-undefined.patch | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) |