Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13951

Re: scikit-learn in unstable FTBFS on arm64, armel, armhf, i386, ppc64el and s390x

Path csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.devel.mentors, linux.debian.maint.python, linux.debian.bugs.dist
Subject Re: scikit-learn in unstable FTBFS on arm64, armel, armhf, i386, ppc64el and s390x
Date Thu, 17 Feb 2022 13:50:01 +0100
Message-ID <DROop-2qnz-3@gated-at.bofh.it> (permalink)
References <DCfiW-3Af-9@gated-at.bofh.it> <DRn4R-29o8-7@gated-at.bofh.it> <DRpT3-2b9t-9@gated-at.bofh.it> <DRqcp-2bgm-9@gated-at.bofh.it> <DRqm6-2bAe-39@gated-at.bofh.it>
X-Mailbox-Line From debian-mentors-request@lists.debian.org Thu Feb 17 12:42:18 2022
Old-Return-Path <andreas@an3as.eu>
X-Amavis-Spam-Status No, score=-6.01 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DIGITS_LETTERS=1, LDO_WHITELIST=-5, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=unavailable autolearn_force=no
X-Policyd-Weight using cached result; rate: -4.6
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
X-Mailing-List <debian-mentors@lists.debian.org> archive/latest/107165
List-ID <debian-mentors.lists.debian.org>
List-URL <https://lists.debian.org/debian-mentors/>
List-Archive https://lists.debian.org/msgid-search/Yg5ClIJxaMfWJxMO@an3as.eu
Approved robomod@news.nic.it
Lines 51
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 1003165@bugs.debian.org
X-Original-Date Thu, 17 Feb 2022 13:41:56 +0100
X-Original-Message-ID <Yg5ClIJxaMfWJxMO@an3as.eu>
X-Original-References <164139193788.2513.7866707754451451433.reportbug@debian-sid.codehelp> <Ygynv+R0Js3eOffM@an3as.eu> <CAM8zJQvLxWMePkN8AwXUHhC+qET_Zb63WSEvUv=Y3MhE-cV46Q@mail.gmail.com> <9bed8277-e65a-37e2-44b9-aa0f07dd6b0b@physik.fu-berlin.de> <e9c19a10-eaa8-286f-1783-430048abe342@physik.fu-berlin.de>
Xref csiph.com linux.debian.devel.mentors:45231 linux.debian.maint.python:13951 linux.debian.bugs.dist:1093552

Cross-posted to 3 groups.

Show key headers only | View raw


Hi,

Am Wed, Feb 16, 2022 at 12:09:23PM +0100 schrieb John Paul Adrian Glaubitz:
> 
> So, I have skimmed over the build logs and one of the main issues is the use of
> -march flags to enforce a certain baseline [1]:
> 
> powerpc64le-linux-gnu-gcc: error: unrecognized command-line option ‘-march=native’; did you mean ‘-mcpu=native’?
> 
> This is a policy violation and must be fixed in any case. Blacklisting architectures
> is not enough in this case as forcing the baseline of the buildds can lead to code
> that won't run on the user's machines.

I confirm this is a problem and the critical string can also be found in
the amd64 build log[2]:

...
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
CCompilerOpt.cc_test_flags[1013] : testing flags (-march=native)
C compiler: x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC

creating /tmp/tmpk22ehoi2/usr
creating /tmp/tmpk22ehoi2/usr/lib
creating /tmp/tmpk22ehoi2/usr/lib/python3
creating /tmp/tmpk22ehoi2/usr/lib/python3/dist-packages
creating /tmp/tmpk22ehoi2/usr/lib/python3/dist-packages/numpy
creating /tmp/tmpk22ehoi2/usr/lib/python3/dist-packages/numpy/distutils
creating /tmp/tmpk22ehoi2/usr/lib/python3/dist-packages/numpy/distutils/checks
compile options: '-c'
extra options: '-march=native'
CCompilerOpt.cc_test_flags[1013] : testing flags (-O3)
C compiler: x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
...


I admit I'm not sure at what point / what tool might inject this string and
I'm also not sure whether the option -march=native is really used in the
amd64 case.

Kind regards

     Andreas.

> > [1] https://buildd.debian.org/status/fetch.php?pkg=scikit-learn&arch=ppc64el&ver=1.0.2-1&stamp=1644956229&raw=0

[2] https://buildd.debian.org/status/fetch.php?pkg=scikit-learn&arch=amd64&ver=1.0.2-1&stamp=1644952702&raw=0

-- 
http://fam-tille.de

Back to linux.debian.maint.python | Previous | Next | Find similar | Unroll thread


Thread

Re: scikit-learn in unstable FTBFS on arm64, armel, armhf, i386,  ppc64el and s390x Andreas Tille <andreas@an3as.eu> - 2022-02-17 13:50 +0100

csiph-web