Skip to content

BUG: Compile failed on Raspberry Pi #40997

@Albelt

Description

@Albelt

Problem Description

I have followed the guidance of README.md -> Installation from sources , download the source code of master and excute the install commands. However, I got some errors when running this command

python setup.py install

It looks like that the installation script called gcc and got some problems, here's the error report:

gcc: error: unrecognized command line option '-ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/Python-3.9.2=Python-3.9.2'
gcc: error: unrecognized command line option '-ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/Python-3.9.2=Python-3.9.2'
gcc: error: unrecognized command line option '-ffile-prefix-map=/builder/shared-workdir/build/sdk/build_dir/target-aarch64_cortex-a72_musl/Python-3.9.2=Python-3.9.2'
error: command '/usr/bin/gcc' failed with exit code 1

How can I solve this problem? Should I change the different gcc version or else?

Device Information

Platform: Raspberry Pi 4B
CPU: BCM2711 ARM Cortex-A71 64bit
OS: OpenWrt( a linux distribution )
gcc: gcc (OpenWrt GCC 7.4.0) 7.4.0
g++: g++ (OpenWrt GCC 7.4.0) 7.4.0
Python: 3.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugBuildLibrary building on various platformsNeeds InfoClarification about behavior needed to assess issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions