Author Topic: thanks GNU!  (Read 7011 times)

0 Members and 1 Guest are viewing this topic.

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
thanks GNU!
« on: August 22, 2017, 02:18:58 pm »
Quote
- sys-libs/glibc-2.22-r4::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Micha? Górny <mgorny@gentoo.org>, Andreas K. Hüttel <dilfridge@gentoo.org>,
# Matthias Maier <tamiko@gentoo.org> (21 May 2017)
# These old versions of toolchain packages (binutils, gcc, glibc) are no
# longer officially supported and are not suitable for general use. Using
# these packages can result in build failures (and possible breakage) for
# many packages, and may leave your system vulnerable to known security
# exploits.

Thus I have to waste 1 day to sync a new rootfs  :clap:
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #1 on: August 22, 2017, 02:32:57 pm »
thus, two affected compilers which I happen to use a lot

sys-devel/gcc-4.4.7
dev-lang/gnat-gcc-4.3.5

 :palm: :palm: :palm:
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: thanks GNU!
« Reply #2 on: August 22, 2017, 03:24:01 pm »
Use virtualized environment and do not update the tools.
 

Offline RGB255_0_0

  • Frequent Contributor
  • **
  • Posts: 772
  • Country: gb
Re: thanks GNU!
« Reply #3 on: August 22, 2017, 03:58:42 pm »
Use virtualized environment and do not update the tools.
Then what do you do when your software gets hacked because of some exploit?
Your toaster just set fire to an African child over TCP.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11249
  • Country: us
    • Personal site
Re: thanks GNU!
« Reply #4 on: August 22, 2017, 04:12:54 pm »
Don't use Gentoo if you want stable system. I've been using Linux since 2001. Debian -> Ubuntu -> Mate. Never had a real problem.
Alex
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: thanks GNU!
« Reply #5 on: August 22, 2017, 04:19:05 pm »
Use virtualized environment and do not update the tools.
Then what do you do when your software gets hacked because of some exploit?
Compilers get exploited when they are not updated any more? Keep your host updated. Backup your stuff. Use the virtualized environment for compilation and development stuff only. Use multiple virtualized containers if you need to support multiple legacy tool-chains.
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: thanks GNU!
« Reply #6 on: August 22, 2017, 04:20:20 pm »
Don't use Gentoo if you want stable system. I've been using Linux since 2001. Debian -> Ubuntu -> Mate. Never had a real problem.
Pretty much similar path here too.
 

Offline RGB255_0_0

  • Frequent Contributor
  • **
  • Posts: 772
  • Country: gb
Re: thanks GNU!
« Reply #7 on: August 22, 2017, 04:35:28 pm »
Use virtualized environment and do not update the tools.
Then what do you do when your software gets hacked because of some exploit?
Compilers get exploited when they are not updated any more? Keep your host updated. Backup your stuff. Use the virtualized environment for compilation and development stuff only. Use multiple virtualized containers if you need to support multiple legacy tool-chains.
https://www.cvedetails.com/vulnerability-list/vendor_id-72/product_id-960/GNU-GCC.html
https://www.cvedetails.com/vulnerability-list/vendor_id-72/product_id-767/GNU-Glibc.html

Not all exploits result in compiled applications being exploitable but it doesn't mean you can be ignorant by thinking that just because you've isolated your build machine that your apps you've compiled using them are not.
Your toaster just set fire to an African child over TCP.
 

Offline Kalvin

  • Super Contributor
  • ***
  • Posts: 2145
  • Country: fi
  • Embedded SW/HW.
Re: thanks GNU!
« Reply #8 on: August 22, 2017, 04:53:51 pm »
Use virtualized environment and do not update the tools.
Then what do you do when your software gets hacked because of some exploit?
Compilers get exploited when they are not updated any more? Keep your host updated. Backup your stuff. Use the virtualized environment for compilation and development stuff only. Use multiple virtualized containers if you need to support multiple legacy tool-chains.
https://www.cvedetails.com/vulnerability-list/vendor_id-72/product_id-960/GNU-GCC.html
https://www.cvedetails.com/vulnerability-list/vendor_id-72/product_id-767/GNU-Glibc.html

Not all exploits result in compiled applications being exploitable but it doesn't mean you can be ignorant by thinking that just because you've isolated your build machine that your apps you've compiled using them are not.
Good points.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #9 on: August 22, 2017, 07:33:01 pm »
Don't use Gentoo

Unfortunately I need it for several reasons.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #10 on: August 22, 2017, 07:37:44 pm »
Use virtualized environment

Yup, I have created a miniroot of the old rootfs as well as a full backup.
Also I have already moved stuff into a VirtualBox machine as well as a UML.
(user mode linux)

I prefer the UML-way for toolchains, but VirtualBox is the simplest way, and my customers prefer it.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #11 on: August 23, 2017, 08:43:39 am »
in the meanwhile I am moving the new rootfs to gcc-v5.4.0  :horse:
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #12 on: August 23, 2017, 09:21:44 am »
I mean, it's highly suggested, and I suggest you to do the same, guys
in order to avoid future problems  :-+
 

Online bd139

  • Super Contributor
  • ***
  • Posts: 23019
  • Country: gb
Re: thanks GNU!
« Reply #13 on: August 23, 2017, 09:32:10 am »
Sounds like fun!

Use a stable distribution (CentOS/Debian or something) and build your own cross toolchain on top of it. It's the only way this doesn't come and bugger you randomly one day. I speak from experience. If you build a cross toolchain then make sure you automate the build via make or something. Takes a few hours to get it right the first time but you can build individual compiler/binutils/valgrind versions as and when they drop or do the opposite and never patch a damn thing.

I have two environments, one with LLVM and one with GCC in it so we can test each in isolation.

Not a fan of virtualizing/containerising it. It's difficult to make that build repeatable in the future unless you build the environment with docker/vagrant and those require more effort than the above.
« Last Edit: August 23, 2017, 09:34:20 am by bd139 »
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #14 on: August 23, 2017, 10:02:08 am »
If you build a cross toolchain then make sure you automate the build

Man, I have 15 years of experience with gentoo.

Everything (including experimental stuff) I do for whatever architecture I have to support { MIPS32BE, HPPAv2, POWERPC, X86} is done by Overlay recipes, while the whole rootfs is under Catalyst, and Catalyst compiles every new rootfs as chroot.

The main rootfs is safe and never update until things have passed the stable level (whose severity level is more fussy than on Debian-stable, I mean I am fussier than those guys).

Things are under control, but GNU sucks a lot, and their FSK software is always broken, indeed even guys behind Ubuntu, Centos, etc, have the same problems I have every FSK time we need to update something.

Now the whole GlibC is ... fragile  :palm: :palm: :palm:
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11249
  • Country: us
    • Personal site
Re: thanks GNU!
« Reply #15 on: August 23, 2017, 10:07:03 am »
What's the point of complaining? Don't like it - don't use it. Since you keep using it, there must be no better option, so GNU guys did pretty well, I would say.

Everyone can complain, if you think  you can do better - contribute, and everyone will be better for it.
« Last Edit: August 23, 2017, 10:14:39 am by ataradov »
Alex
 
The following users thanked this post: bingo600

Online bd139

  • Super Contributor
  • ***
  • Posts: 23019
  • Country: gb
Re: thanks GNU!
« Reply #16 on: August 23, 2017, 10:21:40 am »
If you build a cross toolchain then make sure you automate the build

Man, I have 15 years of experience with gentoo.

Everything (including experimental stuff) I do for whatever architecture I have to support { MIPS32BE, HPPAv2, POWERPC, X86} is done by Overlay recipes, while the whole rootfs is under Catalyst, and Catalyst compiles every new rootfs as chroot.

The main rootfs is safe and never update until things have passed the stable level (whose severity level is more fussy than on Debian-stable, I mean I am fussier than those guys).

Things are under control, but GNU sucks a lot, and their FSK software is always broken, indeed even guys behind Ubuntu, Centos, etc, have the same problems I have every FSK time we need to update something.

Now the whole GlibC is ... fragile  :palm: :palm: :palm:

That sounds painful but it's not a terrible solution.

Agree with glibc being shit. So many WTFs and GNUisms in there. Why do you think we've got an LLVM build going? Hopefully libc++ will be usable at some point ;)
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #17 on: August 23, 2017, 11:09:07 am »
What's the point of complaining? Don't like it - don't use it.

Man, I don't like it, but it's my job.
Likes dislikes, they don't matter with your customers.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #18 on: August 23, 2017, 11:20:25 am »
That sounds painful but it's not a terrible solution.

Nah, it's common routine once you have mastered Catalyst and written some hundred Overlays :D

Why do you think we've got an LLVM build going? Hopefully libc++ will be usable at some point ;)

Yup, the best idea ever :D

Unfortunately I have some ebuilds (gentoo-way to say "building recipes") which needs C++, and some problem supporting LLVM under HPPA and MIPS (they are both experimental with LLVM), but it's a MUSTbeDONE point in my todo list.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #19 on: August 23, 2017, 11:38:18 am »
also be warned about this problem, caused by cmake!

 

Online bd139

  • Super Contributor
  • ***
  • Posts: 23019
  • Country: gb
Re: thanks GNU!
« Reply #20 on: August 23, 2017, 12:48:55 pm »
Argh cmake is just shit. We use BSD make.
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 1988
  • Country: dk
Re: thanks GNU!
« Reply #21 on: August 23, 2017, 03:49:31 pm »
What's the point of complaining? Don't like it - don't use it. Since you keep using it, there must be no better option, so GNU guys did pretty well, I would say.

Everyone can complain, if you think  you can do better - contribute, and everyone will be better for it.

 :-+ :-+ :-+ :-+

/Bingo
 

Online bd139

  • Super Contributor
  • ***
  • Posts: 23019
  • Country: gb
Re: thanks GNU!
« Reply #22 on: August 23, 2017, 04:53:02 pm »
Thats something that someone who hasn't contributed to an open source piece of software says. The reality is it's a nightmare. I've made hundreds of pull requests, patches via email over the years and the accept rate is around 5%. Most are ignored, deleted or closed silently or result in a flame war because some little big man's ego has been damaged by the idea that someone wants to contribute. So I gave up, maintain patch forks of some things we use.
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: thanks GNU!
« Reply #23 on: August 23, 2017, 05:03:49 pm »
Thats something that someone who hasn't contributed to an open source piece of software says. The reality is it's a nightmare. I've made hundreds of pull requests, patches via email over the years and the accept rate is around 5%. Most are ignored, deleted or closed silently or result in a flame war because some little big man's ego has been damaged by the idea that someone wants to contribute. So I gave up, maintain patch forks of some things we use.

Exactly the point! GNU has the lowest quality of guys to deal with!
Their EGO ...

Have you ever tried to read and study the GCC internals?
have you ever tried to point out that ... some piece of code is too obscure (thus, it might be hide a bug)? If you point out this to someone in the maillist you will be considered an inferior idiot until someone in the CLUB blesses you.

Well, they can have a basket of pine cones attached to my bug-reports  :popcorn:
« Last Edit: August 23, 2017, 05:06:04 pm by legacy »
 

Online bd139

  • Super Contributor
  • ***
  • Posts: 23019
  • Country: gb
Re: thanks GNU!
« Reply #24 on: August 23, 2017, 07:31:20 pm »
Yep exactly that.

Some of the shit it spews out when you crank up optimisation is funny. I could a few years ago actually get it to eliminate live code and optimise out a loop so it only ran once. I think it was Theo De Raadt who explained that only the basic x86/x64 back ends are actually even slightly tested. Ugh it's just horrible.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf