Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 567744 - net-dialup/rp-l2tp-0.4-r3: dstring.o: file not recognized: File truncated
Summary: net-dialup/rp-l2tp-0.4-r3: dstring.o: file not recognized: File truncated
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-08 00:06 UTC by Kobboi
Modified: 2018-04-02 10:02 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,15.32 KB, text/plain)
2015-12-08 00:07 UTC, Kobboi
Details
Proposed patch on upstream Makefile (rp-l2tp-0.4-handlers.patch,294 bytes, patch)
2015-12-08 08:10 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2015-12-08 00:06:41 UTC
make[1]: Entering directory `/var/tmp/portage/net-dialup/rp-l2tp-0.4-r3/work/rp-l2tp-0.4/handlers'
x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -fomit-frame-pointer -I.. -I../libevent -I../../libevent -Wall -Wl,-O1 -Wl,--as-needed -shared -o sync-pppd.so pty.o sync-pppd.o
x86_64-pc-linux-gnu-gcc -O2 -march=native -pipe -fomit-frame-pointer -I.. -I../libevent -I../../libevent -Wall -Wl,-O1 -Wl,--as-needed -shared -o cmd.so cmd.o dstring.o
dstring.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make[1]: *** [cmd.so] Error 1

Reproducible: Always
Comment 1 Kobboi 2015-12-08 00:07:08 UTC
Created attachment 418740 [details]
build.log
Comment 2 Tomáš Mózes 2015-12-08 06:44:23 UTC
It works for me. Since I don't see your emerge --info, I cannot test your scenario.
Comment 3 Felix Janda 2015-12-08 08:10:57 UTC
Created attachment 418748 [details, diff]
Proposed patch on upstream Makefile

The upstream Makefile looks severly broken. Notice in the build log
that two make processes work independently in /handlers.
Comment 4 Tomáš Mózes 2015-12-08 09:12:48 UTC
if you suppose it's broken, please report upstream.
Comment 5 Felix Janda 2015-12-08 10:37:31 UTC
upstream looks dead (and the Makefile fixes already in the tree also don't seem to be reported).
Comment 6 Tomáš Mózes 2015-12-08 10:58:17 UTC
Ok, assigning to maintainer.
Comment 7 Kobboi 2016-01-01 15:19:38 UTC
Works sometimes, fails randomly, for example:

cmd-control.c: In function ‘main’:
cmd-control.c:105:2: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
  write(1, buf, n);
  ^
cmd-control.c: In function ‘send_cmd’:
cmd-control.c:71:5: warning: ignoring return value of ‘writev’, declared with attribute warn_unused_result [-Wunused-result]
     writev(fd, v, 2);
     ^
cmd.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
make[1]: *** [cmd.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-dialup/rp-l2tp-0.4-r3/work/rp-l2tp-0.4/handlers'
make: *** [l2tpd] Error 2
make: *** Waiting for unfinished jobs....

Parallel build issue?
Comment 8 Kobboi 2016-01-01 15:32:39 UTC
20 MAKEOPTS=-j4 builds: 6 OK, 14 NOK
20 MAKEOPTS=-j1 builds: 20 OK, 0 NOK
Comment 9 Kobboi 2016-05-05 20:03:16 UTC
Still present with -r4 (I have no idea what the difference with -r3 is).
Comment 10 Pacho Ramos gentoo-dev 2016-05-07 09:09:06 UTC
But, does the patch fix the problem?
Comment 11 Pacho Ramos gentoo-dev 2018-04-02 10:02:28 UTC
[master a7305139e77] net-dialup/rp-l2tp: Fix parallel build (#567744 by Felix Janda)
 3 files changed, 30 insertions(+), 16 deletions(-)
 create mode 100644 net-dialup/rp-l2tp/files/rp-l2tp-0.4-parallel-build.patch