It accompanies in very low quantities aluminum and zinc, so it is extracted only in the mines of aluminum or of zinc, as a byproduct.
However, the abundance of gallium is similar to that of lithium, while gallium is used in smaller amounts, so there is no risk to not have enough gallium in the near future.
On the other hand, all semiconductor devices with gallium also use some indium. Indium is used in even greater quantities in all LCD or OLED displays, to make transparent electrodes.
Indium is an extremely rare element in the entire universe, comparable with gold, so for indium there is a much greater risk that its reserves will become insufficient.
This could be mitigated by extracting such critical elements from the dumped electronic devices, but this is very expensive, because only small amounts of indium are used per device, so very large amounts of garbage would have to be processed in order to extract a sizable amount of it.
(Gallium is a byproduct of aluminum production. We aren't going to run out.)
Unless by “make from something” else you mean extract the element from existing chemical compounds found in Earth, in which case we’re still just using existing deposits on Earth.
The earth's crust is 8% aluminum.
We will have bigger problems before hitting this one.
We will not remain without gallium, but it is impossible to scale up the gallium production to a higher level than provided by the current productions of aluminum and zinc.
So there is a maximum level of gallium that can be used per year and it would not be possible to increase the production of blue and white LEDs and of power transistors above that level.
Fortunately, the amount of gallium used per device is very small, so it is not likely that we will hit that level soon. A much more serious problem is the associated consumption of indium, for which the resources are much less.
I'm inclined to think we've lost that gold.
The metal isn't going to disappear, but it won't be concentrated enough to be as easily retrievable.
Such predictions have an abysmal historic track record, because we tend to find workarounds both on the supply side (=> previously undiscovered reserves) as well as flexibility on the demand side (using substitutes).
This applies historically for oil, lithium, rare earth metals and basically everything else.
edit: I'm not saying we're never gonna run out of anything-- I'm just saying to not expect sudden, cataclysmic shortages in general, but instead steadily rising prices and a somewhat smoothish transition to alternatives.
But non-sustainable pricing is very different from "cataclysmic collapse", and too many people expect the latter for too many things, which is just not realistic in my view (and historical precendent makes a strong case against that assumption, too).
A society where water prices gradually increases to "reverse-osmosis only" (instead of "pump-from-the-ground-everywhere") levels is very different from a society where water suddenly runs out.
That's a classic example of the "preparedness paradox" [1]. When no one raises the alarm in time or it is being ignored, resources can go (effectively) exhausted before alternatives can be found, or countries either need to pay extraordinary amounts of money or go to war outright - this has happened in the past with guano [2], which was used for fertilizer and gunpowder production for well over a century until the Haber-Bosch ammonia process was developed at the start of the 20th century.
And we're actually seeing a repeat of that as well happening right now. Economists and scientists have sounded the alarm for decades that oil and gas are finite resources and that geopolitical tensions may impact everyone... no one gave too much of a fuck because one could always "drill baby drill", and now look where we are - Iran has blasted about 20% of Qatar's LNG capacity alone to pieces and blocked off the Strait of Hormuz, sending oil prices skyrocketing.
If you had made predictions/scenarios in 1850 based on Guano deposits running out within a decade or two, you would have mispredicted completely, because a lot of the industry just transitioned to sodium nitrate (before synthetic fertilisers took over). Nowadays media landscape would've gladly made such doom-and-gloom predictions for global agriculture back then.
I completely agree that quickly depleting reserves often indicate non-sustainable pricing for ressources (which is obviously bad long term), but that is very different from sudden collapse.
Yes we can run out of oil, but nobody really knows if or even when that will happen. Right now I'm guessing we won't run out because wind and solar is so much cheaper for most purposes everyone is shifting anyway - this will take decades to play out.
We can run out of cheap and accessible oil very, very fast if the shitshow in MENA continues to escalate. Qatar already lost 20% of their LNG capacity in a single strike.
The US may have enough domestic oil production to sate its domestic demand, but the prices would still skyrocket even for them. Europe meanwhile, we're straight fucked here. Technically the oil hasn't run out, it's still in the oil fields of the journalist-butcher country and other sheikdoms, but that doesn't matter if it cannot be pumped out any more because the wells got blasted to pieces or if it cannot be transported thanks to Iranian mines, Europe is still running out of oil in practice.
It is easy to get infected by the media narratives that are notoriously biased towards maximum drama, but I firmly believe that we are not gonna escalate into such a scenario.
There's always options; sorting priorities because of price, radical electrification of transport, or, at the extreme end, picking up coal hydration again (worked well enough to keep the Nazi war machine running for quite a while, with much worse access to crude).
For comparison: Copper prices did increase by 500% since 2000, but people barely even care, and that's how I would expect "shortages" to typically go.
The people that rush to tell you that reserves are running out tend to omit what price they are talking about. That way of expressing oneself is normally called "a lie".