Comments (10)
do EXPORT LLVM=1 && EXPORT LLVM_IS=1
and it is going to compile :P
from 88x2bu-20210702.
i installed a more recent mainline kernel on jammy and the update-alternatives trick worked to switch gcc to gcc-12 (I couldn't figure out how to do it with env vars)
from 88x2bu-20210702.
Is this still being looked into? because I too am having a "gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’" error
The above still works on Xubuntu 22.10, my main dev box. If you get a kernel that is simply too modern for the compiler that you have installed, you run into this kind of thing so I recommend following the guide and setting gcc to v12.
Let me know if this helps.
from 88x2bu-20210702.
I have no experience with Clang but maybe we sort this out.
Are you following the installation instructions here? If so, maybe we should try a non-dkms install so that we can see what is going on. Run sudo ./remove-driver.sh
and then the following from the driver directory:
$ make clean
$ make
Tell me what happens.
Regards
from 88x2bu-20210702.
Thank you for a reply
This is an output when "make clean && make".
The kernel was built by: clang version 14.0.0
You are using: gcc (Debian 10.2.1-6) 10.2.1 20210110
CC [M] /root/src/clang/88x2bu-20210702-main/core/rtw_cmd.o
gcc: error: unrecognized command-line option ‘-Qunused-arguments’
gcc: error: unrecognized command-line option ‘-mno-global-merge’
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
I was set CC=clang but GCC was used to make.
I couldn't find where GCC called.
Kind regards,
from 88x2bu-20210702.
I suspect this is going to take some time and I don't have a lot of extra time right so let me throw a suggestion out. Go to:
https://github.com/morrownr/USB-WiFi
That repo has a lot of information and links to usb wifi adapters that work with Linux in-kernel drivers. That could be the best solution for now.
Regards
from 88x2bu-20210702.
Do you have time for a follow on question?
Running gcc here. Now seeing this:
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
The backend I am using is based on Ubuntu 22.04 (amd64) and is using gcc 11.2, I installed kernel 6.0 for testing. It is compiled with gcc 12.2.
A little research tells me there has been a discussion and maybe even the compiler option has been made mainline default. My questions:
How the hell do I override this because I have users of this driver and others that will be using old versions of gcc for years so I can't just upgrade gcc?
Where are the options such as this stored? Been using gcc for years and don't recall this coming up.
Thanks,
Nick
from 88x2bu-20210702.
Is this still being looked into? because I too am having a "gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’" error
from 88x2bu-20210702.
What you are seeing is likely due to a mismatch of compiler version vs the kernetl version. Can you post the output of the following?
gcc --version
uname -r
This kind of thing can happen when you upgrade to a recent mainline while the version of the compiler on your system stays the same.
from 88x2bu-20210702.
Installing gcc-12 and g++-12 worked for me too on Ubuntu 22.04 5.19.17-051917-generic
for CUDY WU1300S
Thanks @morrownr
from 88x2bu-20210702.
Related Issues (20)
- Unable to connect to access point HOT 12
- Driver install not working on TrueNAS Cobia 22.22 HOT 5
- Hostapd: works fine but disappear fast. HOT 18
- Missing Multicast Packets HOT 1
- (info) Working with T3U V1
- binary package for rtl88x2bu: 5.13.1 not found (Segmentation fault) HOT 10
- dbm cannot be changed
- Not working under secure boot with dkms installed HOT 3
- HOW TO CROSS COMPILE
- Why the upload speed is so slow? HOT 5
- (solved) 88x2bu and RHEL 9.3 HOT 6
- (solved) 88x2bu and Rocky 9.3 HOT 7
- Support for bridging? HOT 2
- MU-MIMO support HOT 1
- Ubuntu 23.10 Secure Boot? HOT 4
- Please document difference to mainline driver HOT 13
- modpost/insmod issue
- Does not compile on 6.2.0-37-generic on Ubuntu 22.04 - running OK on 6.2.0-34-generic HOT 21
- (requires fix in Linux kernel) Not working with Slackware-current and kernel 6.1.66 HOT 8
- Does not compile on 6.6.6-2-MANJARO
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 88x2bu-20210702.