use gcc-8 on bionic builder

Asked by Richard Leckinger

I would like to use gcc-8 for my bionic builds. Adding it as a dependency in debian/control gets it installed, but not used. How do I update-alternatives on the builder to use gcc-8 as the default compiler?

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Put something like

export CC=/usr/bin/gcc-8
export CXX=/usr/bin/g++-8

into your rules file.

Revision history for this message
Colin Watson (cjwatson) said :
#2

What Manfred said. Also, in general you can't non-consensually apply update-alternatives to symlinks that aren't already set up to use update-alternatives (/usr/bin/gcc is not, and similarly for the other related compiler symlinks).

Can you help with this problem?

Provide an answer of your own, or ask Richard Leckinger for more information if necessary.

To post a message you must log in.