Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Configure option --with-cxx-main=/usr/bin/clang++ not working #93744

Closed
Labels
buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error
@MaxwellDupre

Description

@MaxwellDupre

Configure option --with-cxx-main=/usr/bin/clang++ not working

My environment

  • CPython versions tested on:
    Latest 3.12.0.a0 tried on other but CC=/usr/bin/clang not working on those, so pointless to try
  • Operating system and architecture:
    fedora 5.17.13-300.fc36.x86_64

Configure options
--with-cxx-main=/usr/bin/clang++ CC=/usr/bin/clang
runs and gives at end:
configure: creating Modules/Setup.local
configure: creating Makefile
configure:

Then:
make
/usr/bin/clang++ -c -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -std=c11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
clang-14: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
error: invalid argument '-std=c11' not allowed with 'C++'
make: *** [Makefile:1373: Programs/python.o] Error 1

SeeDiscuss report

Tried configure with --with-cxx-main=/usr/bin/g++ CC=/usr/bin/gcc
then
make
cc1plus: warning: ‘-Werror=’ argument ‘-Werror=implicit-function-declaration’ is not valid for C++
cc1plus: warning: command-line option ‘-std=c11’ is valid for C/ObjC but not for C++

Shows source files being compiled and linked and actually builds python executable, so thisworks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp