Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444920 - sys-freebsd/freebsd-lib-9.1_rc3 build fails on x86-fbsd without USE=build
Summary: sys-freebsd/freebsd-lib-9.1_rc3 build fails on x86-fbsd without USE=build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: new-fbsd-stage
  Show dependency tree
 
Reported: 2012-11-27 11:40 UTC by Yuta SATOH
Modified: 2013-02-04 13:10 UTC (History)
0 users

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


Attachments
patch for freebsd-lib-9.1_rc3-r1.ebuild (444920.patch,390 bytes, patch)
2012-11-27 11:42 UTC, Yuta SATOH
Details | Diff
emerge --info for the machine in question. (emerge.info.txt,4.02 KB, text/plain)
2013-01-24 00:28 UTC, Bob Raitz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2012-11-27 11:40:11 UTC
freebsd-lib-9.1_rc3 fails to build on x86-fbsd.
please revert -isystem /usr/include to freebsd-lib-9.1_rc3.

i686-gentoo-freebsd9.0-gcc -fpic -DPIC  -O2 -pipe -fno-strict-aliasing -fno-strict-overflow  -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/ld80 -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/../libc/include  -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/../libc/i386  -std=gnu99 -fstack-protector -Wsystem-headers -Wno-pointer-sign -c /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src/s_cosl.c -o s_cosl.So
/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src/s_cosl.c:44:2: error: #error "Unsupported long double format"
/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src/s_cosl.c: In function 'cosl':
/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src/s_cosl.c:50:19: error: storage size of 'z' isn't known
/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src/s_cosl.c:70:2: warning: implicit declaration of function '__ieee754_rem_pio2l' [-Wimplicit-function-declaration]
Comment 1 Yuta SATOH 2012-11-27 11:40:37 UTC
lib/msun/src/s_cosl.c
<snip>
#include <float.h>

#include "math.h"
#include "math_private.h"
#if LDBL_MANT_DIG == 64
#include "../ld80/e_rem_pio2l.h"
#elif LDBL_MANT_DIG == 113
#include "../ld128/e_rem_pio2l.h"
#else
#error "Unsupported long double format"
#endif
<snip>

LDBL_MANT_DIG are defined in /usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/include/float.h and /usr/include/float.h.
gcc prefers /usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/include/float.h
defined 53 on x86-fbsd, 64 on amd64-fbsd...
Other hand, in /usr/include/float.h, 64 is defined both x86-fbsd and amd64-fbsd.
When set to -isystem /usr/include, gcc prefers /usr/include/float.h.

/usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/include/float.h
#undef LDBL_MANT_DIG
#define LDBL_MANT_DIG   __LDBL_MANT_DIG__

i686-gentoo-freebsd9.0-gcc -E -P - <<< __LDBL_MANT_DIG__
53

x86_64-gentoo-freebsd9.1-gcc -E -P - <<< __LDBL_MANT_DIG__
64

grep LDBL_MANT_DIG /usr/include/float.h
#define LDBL_MANT_DIG   64
Comment 2 Yuta SATOH 2012-11-27 11:41:07 UTC
i686-gentoo-freebsd9.0-gcc -fpic -DPIC  -O2 -pipe -fno-strict-aliasing -fno-strict-overflow  -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/ld80 -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/../libc/include  -I/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/../libc/i386  -std=gnu99 -fstack-protector -Wsystem-headers -Wno-pointer-sign -c /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src/s_cosl.c -v -o s_cosl.So

Results:
GNU C (Gentoo 4.6.3 p1.8, pie-0.5.2) version 4.6.3 (i686-gentoo-freebsd9.0)
        compiled by GNU C version 4.6.3, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/../../../../i686-gentoo-freebsd9.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/ld80
 /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src
 /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/../libc/include
 /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/../libc/amd64
 /usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/include
 /usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/include-fixed
 /usr/include
End of search list.


Add -isystem /usr/include
Results:
GNU C (Gentoo 4.6.3 p1.8, pie-0.5.2) version 4.6.3 (i686-gentoo-freebsd9.0)
        compiled by GNU C version 4.6.3, GMP version 5.0.5, MPFR version 3.1.1, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/../../../../i686-gentoo-freebsd9.0/include"
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/ld80
 /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/src
 /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/../libc/include
 /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib/msun/../libc/i386
 /usr/include
 /usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/include
 /usr/lib/gcc/i686-gentoo-freebsd9.0/4.6.3/include-fixed
End of search list.
Comment 3 Yuta SATOH 2012-11-27 11:42:25 UTC
Created attachment 330722 [details, diff]
patch for freebsd-lib-9.1_rc3-r1.ebuild
Comment 4 Yuta SATOH 2012-12-01 12:02:25 UTC
(In reply to comment #3)
> Created attachment 330722 [details, diff] [details, diff]
> patch for freebsd-lib-9.1_rc3-r1.ebuild

+			need_bootstrap || CFLAGS="${CFLAGS} -isystem /usr/include";

It is my mistake.
Please remove ; at the end of the line.
Comment 5 Bob Raitz 2013-01-24 00:28:09 UTC
Created attachment 336656 [details]
emerge --info for the machine in question.
Comment 6 Bob Raitz 2013-01-24 00:29:12 UTC
Fail log:

>>> Emerging (1 of 68) sys-freebsd/freebsd-lib-9.1_rc3-r1
 * freebsd-lib-9.1_rc3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...      [ ok ]
 * freebsd-contrib-9.1_rc3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...  [ ok ]
 * freebsd-crypto-9.1_rc3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...   [ ok ]
 * freebsd-libexec-9.1_rc3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...  [ ok ]
 * freebsd-etc-9.1_rc3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...      [ ok ]
 * freebsd-include-9.1_rc3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...  [ ok ]
 * freebsd-usbin-9.1_rc3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...    [ ok ]
 * freebsd-gnu-9.1_rc3.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...      [ ok ]
>>> Unpacking source...
>>> Unpacking freebsd-lib-9.1_rc3.tar.bz2 to /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
>>> Unpacking freebsd-contrib-9.1_rc3.tar.bz2 to /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
>>> Unpacking freebsd-crypto-9.1_rc3.tar.bz2 to /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
>>> Unpacking freebsd-libexec-9.1_rc3.tar.bz2 to /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
>>> Unpacking freebsd-etc-9.1_rc3.tar.bz2 to /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
>>> Unpacking freebsd-include-9.1_rc3.tar.bz2 to /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
>>> Unpacking freebsd-usbin-9.1_rc3.tar.bz2 to /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
>>> Unpacking freebsd-gnu-9.1_rc3.tar.bz2 to /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
 * Applying freebsd-lib-6.0-pmc.patch ...                                [ ok ]
 * Applying freebsd-lib-6.0-gccfloat.patch ...                           [ ok ]
 * Applying freebsd-lib-6.0-flex-2.5.31.patch ...                        [ ok ]
 * Applying freebsd-lib-6.1-csu.patch ...                                [ ok ]
 * Applying freebsd-lib-8.0-rpcsec_gss.patch ...                         [ ok ]
 * Applying freebsd-lib-9.0-liblink.patch ...                            [ ok ]
 * Applying freebsd-lib-bsdxml2expat.patch ...                           [ ok ]
 * Renaming libraries ...                                                [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work
>>> Preparing source in /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib ...
 * Applying freebsd-lib-includes.patch ...                               [ ok ]
 * Applying freebsd-lib-8.0-gcc45.patch ...                              [ ok ]
 * Applying freebsd-lib-9.0-opieincludes.patch ...                       [ ok ]
 * QA: Kernel version could not be determined, please inherit kernel-2 or linux-info
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib ...
Warning: Object directory not changed from original /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/include
make: don't know how to make /var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/include/../sys/conf/newvers.sh. Stop
 * ERROR: sys-freebsd/freebsd-lib-9.1_rc3-r1 failed (compile phase):
 *   make include failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 2901:  Called die
 * The specific snippet of code:
sed: 4: "# When we get to the li ...": extra characters at the end of q command
 * 
 * If you need support, post the output of `emerge --info '=sys-freebsd/freebsd-lib-9.1_rc3-r1'`,
 * the complete build log and the output of `emerge -pqv '=sys-freebsd/freebsd-lib-9.1_rc3-r1'`.
 * The complete build log is located at '/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/include'
 * S: '/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/work/lib'

>>> Failed to emerge sys-freebsd/freebsd-lib-9.1_rc3-r1, Log file:

>>>  '/var/tmp/portage/sys-freebsd/freebsd-lib-9.1_rc3-r1/temp/build.log'
Comment 8 Yuta SATOH 2013-01-28 11:34:50 UTC
(In reply to comment #6)
I opened a new bug 454414.
Issue that you have found, occurs only when upgrade.

Occurs in all cases that I have reported this bug.
Comment 9 Alexis Ballier gentoo-dev 2013-02-01 22:34:21 UTC
(In reply to comment #8)
> (In reply to comment #6)
> I opened a new bug 454414.
> Issue that you have found, occurs only when upgrade.
> 
> Occurs in all cases that I have reported this bug.

should be fixed, no ?
Comment 10 Yuta SATOH 2013-02-02 04:00:35 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #6)
> > I opened a new bug 454414.
> > Issue that you have found, occurs only when upgrade.
> > 
> > Occurs in all cases that I have reported this bug.
> 
> should be fixed, no ?

This bug will not be fixed.
Bug 454414 is an additional bug that occurs when you upgrade.

If not upgrading, freebsd-lib fails on x86-fbsd.
Maybe, you will see this issue when create a new stage 3.
Please see this bug comment 0,1,2.

Note,
This bug is only reproducible on x86-fbsd.
Comment 11 Alexis Ballier gentoo-dev 2013-02-04 13:10:11 UTC
+  04 Feb 2013; Alexis Ballier <aballier@gentoo.org> freebsd-lib-9.1.ebuild:
+  always pass -isystem when not bootstrapping, should fix #444920
+


now it should really be fixed :)