Comments (9)
Update: it seems the problem is in fact the cross-compiler on the AUR. Funnily enough, the reason it was successfully building on my main computer is because on my main computer I had a different cross-compiler in my $PATH, which I'd forgotten about. It should be fixed soon
from atomic-kernel.
@alireza6677 I was right about the problem. To get it to build properly you need to use a different cross-compiler, I'd suggest this toolchain. I've updated the README to reflect this. Thanks for the issue - I had the same problem on my laptop, but it's good to know it wasn't a problem with that alone.
from atomic-kernel.
@alireza6677 ah, okay. It'll probably be best to stick with i686-elf-gcc, then :)
from atomic-kernel.
I get this error too, when building on my laptop but not when building on my main computer.
I'm not sure why it happens, but I'm trying to fix it.
from atomic-kernel.
Whoops - didn't mean to close it yet
from atomic-kernel.
@j4cobgarby I can confirm that this compiler works well. Thanks for helping out.
from atomic-kernel.
@j4cobgarby Actually in ArchLinux you can compile it with the default gcc
package, using -m32
flag.
from atomic-kernel.
@alireza6677 no problem :)
And is that right? I had no idea that would work, I wonder if that works on other platforms too. I'll add that to the README in my next push
from atomic-kernel.
I think the ArchLinux packagers merged the two gcc
and gcc-multilib
packages into a single package a few months ago, that might be the reason it works. On the other distributions it might not work.
Also i tried to compile the latest changes with the default gcc and it gave me this error:
kern.c:(.text+0x86): undefined reference to `__stack_chk_fail_local'
/usr/bin/ld: dist/kern.elf: hidden symbol `__stack_chk_fail_local' isn't defined
/usr/bin/ld: final link failed: Bad value
adding -fno-stack-protector
flag solved the problem but i don't know what was causing it.
The other cross compiler worked well without showing any errors.
from atomic-kernel.
Related Issues (1)
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 atomic-kernel.