configure.ac file

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Pinkaso
Posts: 4
Joined: Wed Jul 14, 2021 5:44 am

configure.ac file

Post by Pinkaso »

Hey forum
This is probably extremely elementary, so sorry for being such a noob, yet i must ask here, because my search of information in the forum and on the web did not bear fruit:

I'm following the Bare Bones tutorial, and trying to upgrade my GCC version. my problems running the configure script turned out to be because i had no configure.ac file to run autoconf on (Duh.). so now i'm not sure how to write my configure.ac file.
since the tutorial doesn't speak of this i assume there is some default file which works for a lot of cases, maybe?
i couldn't find decisive information on this, i'll be grateful for some help on this.

thanks!
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: configure.ac file

Post by Octocontrabass »

Which GCC are you updating: your host compiler or your cross compiler?
Pinkaso
Posts: 4
Joined: Wed Jul 14, 2021 5:44 am

Re: configure.ac file

Post by Pinkaso »

Trying to bootstrap 9.4.0 on my host compiler which is currently 9.3.0
This is done on a ubuntu image on a VM btw
Octocontrabass
Member
Member
Posts: 5568
Joined: Mon Mar 25, 2013 7:01 pm

Re: configure.ac file

Post by Octocontrabass »

What makes GCC 9.4 so important that you have to build it yourself instead of waiting for the Ubuntu packages to update?

A lot of the advice on the wiki is old. The advice about updating GCC hasn't been updated since the GCC version numbering changed. If you're planning on building a GCC 9.4 cross-compiler, your GCC 9.3 host compiler will work fine.
Pinkaso
Posts: 4
Joined: Wed Jul 14, 2021 5:44 am

Re: configure.ac file

Post by Pinkaso »

Nothing, really. my goal is to learn as much as i can from this tutorial, through as much hands-on experience possible.

Also, the same configure command is used to build the cross-compiler, so i'll have to handle it anyway down the road.
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: configure.ac file

Post by iansjack »

I'm puzzled by this thread. The missing file should be present in the GCC source code that you downloaded. Whether you need to build this particular version of GCC is a red herring.

I've just downloaded and untarred the source for gcc-9.4.0, from ftp.gnu.org, and can confirm that configure.ac is present in the top level of the source directory.

Download the source archive again.
Pinkaso
Posts: 4
Joined: Wed Jul 14, 2021 5:44 am

Re: configure.ac file

Post by Pinkaso »

Ok great i downloaded the files again and i got it now.

Thank you everyone for the help!
Post Reply