News for hackers. Stuff that matters.
Re:RISC-V on the Verge of Broad Adoption by AnthonyMouse on Thursday February 14, 2019 @04:36PM (#19166286)
The GPL continues to be a popular license. It just got popular enough that in v3 they could take a more aggressive stance on patents and tivoization. Which is inherently a trade off between goals and adoption. They chose to achieve more of their goals at the expense of some usage.
Re:RISC-V on the Verge of Broad Adoption by pjmlp on Thursday February 14, 2019 @05:42PM (#19166793)
To the point that all major FOSS alternatives on the embedded space, including Zephyr from Linux Foundation aren't based on GPL.

Android already removed their dependency on GCC, following Apple's footsteps, and depending on how Fuchsia turns out, eventually the Linux kernel as well.

Re:RISC-V on the Verge of Broad Adoption by protomikron on Thursday February 14, 2019 @08:41PM (#19167827)
But Android is still based on Linux and you need GCC to compile the kernel (yeah I know, other compilers can do it too, but GCC is in some kind of symbiosis with Linux, which is a good thing I guess).

I know about the Fuchsia project, but so-far it can't compete with Linux or other established OSes.

Re:RISC-V on the Verge of Broad Adoption by pjmlp on Friday February 15, 2019 @01:07AM (#19168815)
No you don't, Android has removed all dependencies on GCC with Treble changes, upstream just did not took all the changes done by Google.

Quote:

"Android 8.0 and higher support only Clang/LLVM for building the Android platform. Join the android-llvm group to pose questions and get help. Report NDK/compiler issues at the NDK GitHub.

For the Native Development Kit (NDK) and legacy kernels, GCC 4.9 included in the AOSP master branch (under prebuilts/) may also be used."

From https://source.android.com/setup/build/requirements#software...

"Removed GCC and gnustl/stlport. Added lld."

From https://android.googlesource.com/platform/ndk/+/master/docs/...

There are also a couple of Linux/Clang Conferences where Google goes through the kernel and clang changes they have done to accomplish it.

Android might have the Linux kernel under the hood, but it isn't Linux as many know it.

Re:RISC-V on the Verge of Broad Adoption by snvzz on Friday February 15, 2019 @03:47PM (#19174561)
>Android might have the Linux kernel under the hood, but it isn't Linux as many know it.

Not like it matters. They're replacing even that. See Fuchsia.

And that's a good thing: Fuchsia seems to have a better design (microkernel, multiserver).

Re:RISC-V on the Verge of Broad Adoption by pertymcpert on Thursday February 14, 2019 @10:24PM (#19168223)
Why is gcc dependency a good thing for the kernel?
Re:RISC-V on the Verge of Broad Adoption by saagarjha on Thursday February 14, 2019 @10:28PM (#19168242)
It keeps both GPL?
Re:RISC-V on the Verge of Broad Adoption by sigjuice on Friday February 15, 2019 @02:13AM (#19169065)
How?
Re:RISC-V on the Verge of Broad Adoption by onli on Friday February 15, 2019 @05:58AM (#19169919)
You're right to ask, it does not. In the FOSS world the license of the compiler has nothing to do with the license of the compiled software, and that also goes for the GPL 3.

Probably some leftover thinking from proprietary products that tried to apply license restrictions on the compiled output.

Re:RISC-V on the Verge of Broad Adoption by pjmlp on Friday February 15, 2019 @08:21AM (#19170657)
Actually GCC has an explicit clause that GPL doesn't apply to the generated binary, otherwise you could not link to the C runtime library

"GCC Runtime Library Exception"

https://www.gnu.org/licenses/gcc-exception-3.1.en.html

This document was also the inspiration for the Classpath exception in OpenJDK.

Re:RISC-V on the Verge of Broad Adoption by pertymcpert on Friday February 15, 2019 @01:02PM (#19173113)
Right but that's because the compiler is emitting code into the binary that exists verbatim in the GCC source.
Re:RISC-V on the Verge of Broad Adoption by pjmlp on Friday February 15, 2019 @03:40PM (#19174510)
Which makes the assertion false, otherwise there wouldn't be a need for the "GCC Runtime Library Exception".

> "In the FOSS world the license of the compiler has nothing to do with the license of the compiled software".

Re:RISC-V on the Verge of Broad Adoption by onli on Saturday February 16, 2019 @05:22AM (#19178034)
There is no other FOSS compiler that influences the license of the compiled software, afaik. So I think that statement holds up anyway.