Are you on the 2.7 branch or the default branch? You might try to cleanup your checkout:
hg up -C -r 2.7 make distclean hg purge # WARNING! it removes *all* files not tracked by Mercurial ./configure && make You should also paste the full error message. Victor 2016-10-20 13:47 GMT+02:00 Skip Montanaro <skip.montan...@gmail.com>: > I've recently run into a problem building the math and cmath modules > for 2.7. (I don't rebuild very often, so this problem might have been > around for awhile.) My hg repos look like this: > > * My cpython repo pulls from https://hg.python.org/cpython > > * My 2.7 repo (and other non-tip repos) pulls from my cpython repo > > I think this setup was recommended way back in the day when hg was new > to the Python toolchain to avoid unnecessary network bandwidth. > > So, if I execute > > hg pull > hg update > > in first cpython, then 2.7 repos I should be up-to-date, correct? > However, rebuilding in my 2.7 repo fails to build math and cmath. The > compiler complains that Modules/_math.o doesn't exist. If I manually > execute > > make Modules/_math.o > make > > after the failure, then the math and cmath modules build. > > Looking on bugs.python.org I saw this closed issue: > > http://bugs.python.org/issue24421 > > which seems related. Is it possible that the fix wasn't propagated to > the 2.7 branch? Or perhaps I've fouled up my hg repo relationships? My > other repos which depend on cpython (3.5, 3.4, 3.3, and 3.2) all build > the math module just fine. > > I'm running on an ancient MacBook Pro with OS X 10.11.6 (El Capitan) > and XCode 8.0 installed. > > Any suggestions? > > Skip > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com