Bug 253538 - devel/kf5-kio linker error
Summary: devel/kf5-kio linker error
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL: https://cloud.zyxst.net/~john/FreeBSD...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-15 14:10 UTC by tech-lists
Modified: 2021-02-16 15:10 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tech-lists 2021-02-15 14:10:18 UTC
devel/kf5-kio fails to build, with linker error

context: stable/13-n244496-618dee60231 / amd64
ports: r565279

[snip]
[00:00:54] [290/681] : && /ccache/libexec/ccache/c++ -fPIC -O2 -pipe -march=haswell -fstack-protector-strong -fno-strict-aliasing -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -fdiagnostics-color=always -pedantic -Wzero-as-null-pointer-constant -O2 -pipe -march=haswell -fstack-protector-strong -fno-strict-aliasing  -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags   -fstack-protector-strong -shared  -o bin/kf5/kded/kcookiejar.so src/ioslaves/http/kcookiejar/CMakeFiles/kded_kcookiejar.dir/kded_kcookiejar_autogen/mocs_compilation.cpp.o src/ioslaves/http/kcookiejar/CMakeFiles/kded_kcookiejar.dir/kcookiejar.cpp.o src/ioslaves/http/kcookiejar/CMakeFiles/kded_kcookiejar.dir/kcookieserver.cpp.o src/ioslaves/http/kcookiejar/CMakeFiles/kded_kcookiejar.dir/kcookiewin.cpp.o src/ioslaves/http/kcookiejar/CMakeFiles/kded_kcookiejar.dir/kcookieserveradaptor.cpp.o  -Wl,-rpath,/usr/local/lib:/usr/local/lib/qt5:  /usr/local/lib/libKF5WindowSystem.so.5.78.0  /usr/local/lib/libKF5ConfigCore.so.5.78.0  /usr/local/lib/libKF5CoreAddons.so.5.78.0  /usr/local/lib/libKF5DBusAddons.so.5.78.0  /usr/local/lib/libKF5I18n.so.5.78.0  /usr/local/lib/libKF5WidgetsAddons.so.5.78.0  /usr/local/lib/qt5/libQt5DBus.so.5.15.2  /usr/local/lib/qt5/libQt5Widgets.so.5.15.2  /usr/local/lib/qt5/libQt5Gui.so.5.15.2  /usr/local/lib/qt5/libQt5Core.so.5.15.2  -Wl,-rpath-link,/usr/local/lib/qt5:/usr/local/lib && :
[00:00:54] FAILED: bin/kf5/kded/kcookiejar.so 
[/snip]

complete testport output from poudriere:
https://cloud.zyxst.net/~john/FreeBSD/ports/kf5-kio/kf5-kio-5.78.0.log
Comment 1 Adriaan de Groot freebsd_committer freebsd_triage 2021-02-15 21:17:00 UTC
The relevant bit in the log is the error message,

[00:00:54] ld: error: src/ioslaves/http/kcookiejar/CMakeFiles/kded_kcookiejar.dir/kcookiejar.cpp.o: section header table goes past the end of the file: e_shoff = 0x1aeb0
[00:00:54] c++: error: linker command failed with exit code 1 (use -v to see invocation)

which is surprising, to say the least.

original poster: Is this reproducible?

some theories i can come up with:
- bad disk at OP's end
- race condition means consuming the .o before it is fully written
- it's all -march=haswell's fault
Comment 2 tech-lists 2021-02-16 15:09:23 UTC
(In reply to Adriaan de Groot from comment #1)

> original poster: Is this reproducible?

it was yesterday - refreshed ports, bulk build fail, testport fail

> some theories i can come up with:
> - bad disk at OP's end

zfs scrub showed no errors

> - race condition means consuming the .o before it is fully written

don't know how to test this unfortunately

> - it's all -march=haswell's fault

:D

Ran another ports update followed by testport again and it built. This time, it also pulled in a lot of other stuff which it didn't do yesterday. Looks like your third theory was correct :D

I'll close this