Skip to content

Cannot cross-compile on an x86_64 PC #112

@atorregr

Description

@atorregr

I can download and compile the rtl8189fs driver on an ARM64 device. However I wasn't able to cross-compile on an x86_64 device, such as my own PC with Fedora 40.

Steps to reproduce: on a PC with Fedora or some other Linux distribution with all the necessary compiling tools installed (kernel-devel, make, git-core, gcc-aarch64-linux-gnu), give the following commands:

git clone https://github.com/jwrdegoede/rtl8189ES_linux.git
cd rtl8189ES_linux
git checkout -B rtl8189fs origin/rtl8189fs
make -j1 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- KSRC=/usr/src/kernels/$(uname -r)

The last command produces an error output:
aarch64-linux-gnu-gcc: error: unrecognized command-line option ‘-mrecord-mcount’

The same commands on an ARM64 device compiles the driver.

To be honest, I'm not sure whether this is a problem in this product's makefile, or that of kernel-devel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions