OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:52 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: OS custom toolchain: gcc libraries
PostPosted: Tue Jan 11, 2022 1:04 pm 
Offline

Joined: Tue Jan 01, 2019 4:10 pm
Posts: 16
Location: Normandy, France
Hello

I'm currently trying to create an OS specific toolchain according to https://wiki.osdev.org/OS_Specific_Toolchain. However I ran into troubles:
When I try to compile gcc, I have this message while running ./configure:

Code:
*** This configuration is not supported in the following subdirectories:
     target-libgomp target-libatomic target-libitm target-libsanitizer target-libvtv target-libphobos gnattools gotools target-libada target-libhsail-rt target-zlib target-libbacktrace target-libgfortran target-libgo target-libffi target-libobjc target-liboffloadmic
    (Any other directories should still work fine.)


After searching for a while, I figured out it came (probably) from the configure.tgt files:

Code:
gcc/libgomp/configure.tgt
gcc/libitm/configure.tgt
gcc/libsanitizer/configure.tgt
gcc/libhsail-rt/configure.tgt
gcc/libphobos/configure.tgt
gcc/libvtv/configure.tgt
gcc/libatomic/configure.tgt
gcc/liboffloadmic/configure.tgt


As I understand it, those files are used to check if a target is supported by the library. So I believe I have to patch them to add my target (i386-unknown-maestro).
However I haven't seen anything in the wiki mentioning this. Am I wrong to assume this is the correct way to make it work or is there a better way?

Thanks in advance :)

_________________
Student at School 42 Paris (FR: https://42.fr/)


Top
 Profile  
 
 Post subject: Re: OS custom toolchain: gcc libraries
PostPosted: Tue Jan 11, 2022 1:37 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
Do you need those libraries?


Top
 Profile  
 
 Post subject: Re: OS custom toolchain: gcc libraries
PostPosted: Tue Jan 11, 2022 1:42 pm 
Offline

Joined: Tue Jan 01, 2019 4:10 pm
Posts: 16
Location: Normandy, France
Octocontrabass wrote:
Do you need those libraries?


When I try to compile ncurses and bash, the compilation fails because it seems to require symbols coming from thoses libraries. So I guess I need them?

_________________
Student at School 42 Paris (FR: https://42.fr/)


Top
 Profile  
 
 Post subject: Re: OS custom toolchain: gcc libraries
PostPosted: Tue Jan 11, 2022 2:45 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
I don't think you need all of them. You may be able to remove the dependencies by passing some flags to the build scripts.

For the ones you do need to port, you're on the right track: look at how configure.tgt decides whether your OS is supported, and make changes as needed.


Top
 Profile  
 
 Post subject: Re: OS custom toolchain: gcc libraries
PostPosted: Wed Jan 12, 2022 10:17 am 
Offline

Joined: Tue Jan 01, 2019 4:10 pm
Posts: 16
Location: Normandy, France
I'll try this. Thank's for your help :)

_________________
Student at School 42 Paris (FR: https://42.fr/)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 56 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group