Some (or more like most) languages have roots in hacky environments like unix/linux with complex setup rituals only few people are willing to withstand, and of course pesky GPL issues making developers not sure how they can release their programs (or even make profit).
As far as I know, all major programming languages with open source (e.g. GPL) implementations distribute their standard libraries under very permissive licenses: MIT, BSD, or LGPL (with an exception for static linking). So, if your executable statically links the code of the standard library (which is probably the case when you build an executable), you are free to do anything you want with it, particularly, you can sell it, and you don't have to give your code to anybody.
So, I've never heard of a well known open sourced language that has a bad restrictive license.
GCC - You are given a so called "GCC RUNTIME LIBRARY EXCEPTION" (
https://www.gnu.org/licenses/gcc-exception-3.1-faq.html) to link GCC library code with your code and do whatever you want with it (unless you are doing really funny things). Yes, Stallman is a messy political guy, but the license basically lets you do anything you want.
From their FAQ:
Q: I am using a standard release of GCC (such as one provided by the FSF, or with my operating system) to compile GPL-incompatible software. How does this change affect me?
A: It should not affect you at all. Unless you've configured GCC to output intermediate representation—which is rare—the new exception is designed to ensure that you have no license obligations when you do this, just as the old exceptions were.
Rust - everything is under very permissive Apache / MIT license.
Go - evrything is under very permissive BSD-style license.
D - the standard library Phobos (as well as the DMD compiler) is released under BSD-style Boost license.
OCaml - the library is under LGPL (with an exception allowing static linking).
Haskell (GHC) - everything is under very permissive (2-clause BSD)-like license.
Haxe - the library is under 2-clause BSD license.
FreePascal - the library is under LGPL (with an exception allowing static linking).
(I am taking only compiled languages, so no Python, Ruby, Erlang)
Other libraries, particularly, ncurses, SDL, and OpenGL bindings are usually also under LGPL, BSD, or MIT license.
Edit: added Haxe to the list.
Edit 2: Thanks to Krice, updated the text. The LGPL-ed libraries I mention give an additional exception for static linking, even though it is not allowed by the vanilla LGPL.