Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654374 - net-misc/stunnel-5.44 cross compile fails due to including build machine include dirs: /usr/include/stdlib.h:133:8: error: ‘_Float128’ is not supported on this target
Summary: net-misc/stunnel-5.44 cross compile fails due to including build machine incl...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-04-29 21:17 UTC by Joe Harvell
Modified: 2022-07-21 14:29 UTC (History)
0 users

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


Attachments
output of sudo armv7a-pip-linux-gnueabi-emerge --info (pip-emerge-info.txt,4.73 KB, text/plain)
2018-04-29 21:18 UTC, Joe Harvell
Details
contents of /usr/armv7a-pip-linux-gnueabi/etc/portage/make.conf (pip-make.conf.txt,1.25 KB, text/plain)
2018-04-29 21:19 UTC, Joe Harvell
Details
ebuild patch (stunnel-5.44.ebuild.patch,807 bytes, patch)
2018-04-29 21:19 UTC, Joe Harvell
Details | Diff
patch to upstream autoconf related files (stunnel-kerberos-include-sysroot.patch,607 bytes, patch)
2018-04-29 21:20 UTC, Joe Harvell
Details | Diff
build.log (build.log,344.29 KB, text/plain)
2018-04-29 21:20 UTC, Joe Harvell
Details
config.log (config.log,161.11 KB, text/plain)
2018-04-29 21:21 UTC, Joe Harvell
Details
configure (configure,541.03 KB, text/plain)
2018-04-29 21:21 UTC, Joe Harvell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Harvell 2018-04-29 21:17:29 UTC
When cross compiling stunnel, two incorrect include directories get appended to the compiler options:

-I/usr/kerberos/include -I/usr/include

This causes compile failure stdlib.h says there is support for _Float128 but the target doesn not really support it.


The -I/usr/include problem is actually in the ebuild.  The ebuild uses configure option --with-ssl=${EPREFIX}/usr instead of the ${EROOT}/usr.  The former supports EPREFIX while the latter supports both EPREFIX and SYSROOT.

I have provided a patch to the ebuild for this issue.

The -I/usr/kerberos/include problem is because this is just hardcoded into the upstream autoconf files.  This is easily fixed since upstream supports configure option --with-sysroot, which the ebuild uses when cross-compiling.  I patched configure.ac to define a make variable SYSROOT with the value of --with-sysroot.  And in the corresponding Makefile.am, I prefix the hardcoded include path with this variable.  For this fix, the ebuild also requires autoreconf in src_prepare(), which is in my ebuild patch.

I joined the email discussion list for stunnel, as that seems to be the only way to report a bug.  I plan to report it on the mailing list and reference this bug report.
Comment 1 Joe Harvell 2018-04-29 21:18:14 UTC
Created attachment 528962 [details]
output of sudo armv7a-pip-linux-gnueabi-emerge --info
Comment 2 Joe Harvell 2018-04-29 21:19:03 UTC
Created attachment 528964 [details]
contents of /usr/armv7a-pip-linux-gnueabi/etc/portage/make.conf
Comment 3 Joe Harvell 2018-04-29 21:19:43 UTC
Created attachment 528966 [details, diff]
ebuild patch
Comment 4 Joe Harvell 2018-04-29 21:20:23 UTC
Created attachment 528968 [details, diff]
patch to upstream autoconf related files
Comment 5 Joe Harvell 2018-04-29 21:20:48 UTC
Created attachment 528970 [details]
build.log
Comment 6 Joe Harvell 2018-04-29 21:21:06 UTC
Created attachment 528972 [details]
config.log
Comment 7 Joe Harvell 2018-04-29 21:21:30 UTC
Created attachment 528974 [details]
configure
Comment 8 Joe Harvell 2018-04-29 21:22:19 UTC
I forgot to mention that I am able to successfully build this with the two patches.
Comment 9 Joe Harvell 2018-04-29 22:45:33 UTC
I sent an email to the stunnel-users mailing list with subject "stunnel-5.44 fails cross compile due to wrong include path in Gentoo....fix available".  I reference this bug report in that email.
Comment 10 Joe Harvell 2018-05-23 14:14:07 UTC
The release announcement for stunnel 5.45 claims this issue is fixed.