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!
configure.ac file
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
Re: configure.ac file
Which GCC are you updating: your host compiler or your cross compiler?
Re: configure.ac file
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
This is done on a ubuntu image on a VM btw
-
- Member
- Posts: 5568
- Joined: Mon Mar 25, 2013 7:01 pm
Re: configure.ac file
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.
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.
Re: configure.ac file
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.
Also, the same configure command is used to build the cross-compiler, so i'll have to handle it anyway down the road.
Re: configure.ac file
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.
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.
Re: configure.ac file
Ok great i downloaded the files again and i got it now.
Thank you everyone for the help!
Thank you everyone for the help!