Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919739 - sys-devel/crossdev-20230923 - crossdev -S -t ppc fails to build cross-powerpc-unknown-linux-gnu/glibc-2.37-r7 with: configure: error: this configuration requires -mlong-double-128 IBM extended format support
Summary: sys-devel/crossdev-20230923 - crossdev -S -t ppc fails to build cross-powerpc...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-11 22:41 UTC by ernsteiswuerfel
Modified: 2023-12-12 22:17 UTC (History)
1 user (show)

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


Attachments
cross-powerpc-unknown-linux-gnu-info.log (cross-powerpc-unknown-linux-gnu-info.log,18.94 KB, text/plain)
2023-12-11 22:41 UTC, ernsteiswuerfel
Details
cross-powerpc-unknown-linux-gnu-glibc.log.xz (cross-powerpc-unknown-linux-gnu-glibc.log.xz,4.85 KB, application/x-xz)
2023-12-11 22:41 UTC, ernsteiswuerfel
Details
glibc-config.logs.tar.xz (glibc-config.logs.tar.xz,7.96 KB, application/x-xz)
2023-12-11 22:42 UTC, ernsteiswuerfel
Details
emerge --info (file_919739.txt,6.84 KB, text/plain)
2023-12-11 22:42 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2023-12-11 22:41:11 UTC
Created attachment 878815 [details]
cross-powerpc-unknown-linux-gnu-info.log

crossdev -S -t ppc

 * crossdev version:      20230923
 * Host Portage ARCH:     amd64
 * Host Portage System:   x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu)
 * Target Portage ARCH:   ppc
 * Target System:         powerpc-unknown-linux-gnu
 * Stage:                 4 (C/C++ compiler)
 * USE=multilib:          no
 * Target ABIs:           default

 * binutils:              binutils-[stable]
 * gcc:                   gcc-[stable]
 * headers:               linux-headers-[stable]
 * libc:                  glibc-[stable]

 * CROSSDEV_OVERLAY:      /var/db/repos/crossdev
 * PORT_LOGDIR:           /var/log/portage
 * PORTAGE_CONFIGROOT:    /
 * Portage flags:         
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -
 * leaving metadata/layout.conf alone in /var/db/repos/crossdev
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -
 * Log: /var/log/portage/cross-powerpc-unknown-linux-gnu-binutils.log
 * Emerging cross-binutils ...                                                            [ ok ]
 * Log: /var/log/portage/cross-powerpc-unknown-linux-gnu-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                                          [ ok ]
 * Log: /var/log/portage/cross-powerpc-unknown-linux-gnu-linux-headers.log
 * Emerging cross-linux-headers ...                                                       [ ok ]
 * Log: /var/log/portage/cross-powerpc-unknown-linux-gnu-glibc.log
 * Emerging cross-glibc ...

 * error: glibc failed :(
 * 
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-powerpc-unknown-linux-gnu-info.log
 * /var/log/portage/cross-powerpc-unknown-linux-gnu-glibc.log.xz
 * /var/tmp/portage/cross-powerpc-unknown-linux-gnu/glibc*/temp/glibc-config.logs.tar.xz

[...]
checking if gcc  -pipe -O2 -fcf-protection=none -fuse-ld=bfd -Wl,-O1 -Wl,--as-needed accepts -fn
o-tree-loop-distribute-patterns with __attribute__ ((__optimize__))... yes
checking for libgd... no
checking for _FORTIFY_SOURCE predefine... yes
checking whether the assembler requires one version per symbol... no
checking for __builtin_trap with no external dependencies... yes
checking whether the C++ compiler supports thread_local... no
running configure fragment for sysdeps/unix/sysv/linux/powerpc/powerpc32
running configure fragment for sysdeps/unix/sysv/linux/powerpc
checking whether gcc  -pipe -O2 -fcf-protection=none -fuse-ld=bfd -Wl,-O1 -Wl,--as-needed -pipe 
-O2 -fcf-protection=none -mlong-double-128 uses IBM extended format... no
checking whether gcc  -pipe -O2 -fcf-protection=none -fuse-ld=bfd -Wl,-O1 -Wl,--as-needed -pipe 
-O2 -fcf-protection=none supports -mabi=ibmlongdouble... no
configure: error: this configuration requires -mlong-double-128 IBM extended format support
 * ERROR: cross-powerpc-unknown-linux-gnu/glibc-2.37-r7::crossdev failed (configure phase):
 *   failed to configure glibc
Comment 1 ernsteiswuerfel archtester 2023-12-11 22:41:43 UTC
Created attachment 878816 [details]
cross-powerpc-unknown-linux-gnu-glibc.log.xz
Comment 2 ernsteiswuerfel archtester 2023-12-11 22:42:17 UTC
Created attachment 878817 [details]
glibc-config.logs.tar.xz
Comment 3 ernsteiswuerfel archtester 2023-12-11 22:42:52 UTC
Created attachment 878818 [details]
emerge --info
Comment 4 James Le Cuirot gentoo-dev 2023-12-11 23:42:22 UTC
This part looks very suspicious.

> configure:2326: checking for powerpc-unknown-linux-gnu-gcc
> configure:2353: result: gcc  -pipe -O2 -fcf-protection=none -fuse-ld=bfd -Wl,-O1 -Wl,--as-needed

I get the same if I manually set CC=gcc.
Comment 5 ernsteiswuerfel archtester 2023-12-12 22:17:03 UTC
(In reply to James Le Cuirot from comment #4)
> This part looks very suspicious.
> 
> I get the same if I manually set CC=gcc.
Ah yes, on this system I actually had forced CC=gcc, 'O2' and ld=bfd for crossdev packages via package.env as make.conf settings are 'Os' ld=mold.

You are correct that cross-powerpc-unknown-linux-gnu-glibc builds ok by simply not forcing gcc. Forcing 'O2' and ld=bfd via package.env works ok though.

My bad. Sorry for the noise.