Skip to content

Error when building from source #123386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gugolple opened this issue Aug 27, 2024 · 1 comment
Open

Error when building from source #123386

gugolple opened this issue Aug 27, 2024 · 1 comment
Labels
build The build process and cross-build pending The issue will be closed if no feedback is provided type-bug An unexpected behavior, bug, or error

Comments

@gugolple
Copy link

gugolple commented Aug 27, 2024

Bug report

Bug description:

I am following the Linux from scratch 12.1.

When I get to the chapter of building python I encounter the following error:

./configure --prefix=/usr   \
            --enable-shared \
            --without-ensurepip
...
configure: creating ./config.status
./config.status: line 527: 0a1,737: command not found
./config.status: line 528: syntax error near unexpected token `newline'
./config.status: line 528: `> # This file is a shell script that caches the results of configure'

And it fails completely. When checking the file config.status we can see the error as reported:

exec 5>>config.log
{
  echo
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
## Running $as_me. ##
_ASBOX
  printf "%s\n" "$ac_log"
} >&5

0a1,737
> # This file is a shell script that caches the results of configure
> # tests run on this system so they can be shared between configure
> # scripts and configure runs, see configure's option --config-cache.
> # It is not useful on other systems.  If it contains results you don't
> # want to keep, you may remove or edit it.
> #
> # config.status only pays attention to the cache file if you give it
> # the --recheck option to rerun configure.
> #
> # `ac_cv_env_foo' variables (set or unset) will be overridden when
> # loading this file, other *unset* `ac_cv_foo' will be assigned the
> # following values.

From there we can check were configure is failing by at least knowing the limits, because we know is between the two other code blocks.

  • The top code block exec 5>>config.log can be located to line 32280.
  • The bottom code block # This file is a shell script that caches the results of configure can be located to line 31281.
    • But this one is related to confcache.

At line 32280 we can se something interesting just below:

32290: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32291: _ACEOF

The lines (32290 and 32291) do not add any content to config.status and if you try to remove them, the ./configure step finishes correctly and you can build the code.

The problem is seen in versions:

  • 3.12.2
  • 3.12.3
  • 3.12.4
  • 3.12.5

Thank you and kind regards,

Gugo

CPython versions tested on:

3.12

Operating systems tested on:

Linux

@gugolple gugolple added the type-bug An unexpected behavior, bug, or error label Aug 27, 2024
@Eclips4 Eclips4 added the build The build process and cross-build label Aug 27, 2024
@duaneg
Copy link
Contributor

duaneg commented Jun 3, 2025

I could not reproduce this with v3.12.5 and the bit at and after "0a1,737" above looks like a failed hunk from patch or similar. Did you apply any patches (manually or otherwise) to the source tree prior to building?

If you still think this is a bug in Python please give the full step-by-step instructions to reproduce it, starting from the original, clean Python source.

@skirpichev skirpichev added the pending The issue will be closed if no feedback is provided label Jun 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build pending The issue will be closed if no feedback is provided type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy