public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ciaran McCreesh <ciaran.mccreesh@blueyonder.co.uk>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Replacing cpu-feature USE flags
Date: Thu, 6 Jul 2006 18:51:10 +0100	[thread overview]
Message-ID: <20060706185110.46f234ce@snowdrop.home> (raw)
In-Reply-To: <200607061843.16899@enterprise.flameeyes.is-a-geek.org>

On Thu, 6 Jul 2006 18:43:11 +0200 "Diego 'Flameeyes' Pettenò"
<flameeyes@gentoo.org> wrote:
| On Thursday 06 July 2006 14:49, Ciaran McCreesh wrote:
| > Well, you're assuming that
| Properly listing, what an arcane science.

Perhaps I should've written a Java + XML app that automatically formats
messages according to what the reader probably wants to see.
 
| > a) everyone's using a C compiler,
|
| No, I assume that everyone is using a compiler. You cannot have a C++
| compiler without a C compiler. The first person I see that sets
| CXXFLAGS but not CFLAGS I'm personally going to give him the "doesn't
| have a clue" prize.

And for a single compile?

| > b) that gcc has the slightest clue what it's doing,
|
| No, I assume that gcc has a big clue about which capabilities are
| available to the -march switch. I might be assuming that users have a
| clue on what they are doing, but that's an assumption I do have to
| do, or I shouldn't be working on Gentoo but on Debian, which seems
| pretty good at optimising for i386 still.

And your assumption would be wrong. I can assure you that relying upon
-march doing anything sensible with __MAGIC__ is entirely unsafe. Go
and look at the VIS handling if you want a perfect example.
 
| > c) that the user has no problem using nasty hacks to regain control,
|
| Where "regain control" is "doing something that could have done
| before but made actually no sense to do before. And the bashrc thing
| is not a big nasty hack, works quite well for me.

No no. Where "regain control" means the user has to screw around with
nasty hacks and pray, rather than setting a well defined, specific
variable.

| > d) that this information is only needed at compile time,
|
| Well of course use flags are available at runtime for the packages
| built to know, this is perfectly logic of you.

Uh. USE flags are available at DEPEND time.

| You really was getting out of arguments, don't you?

No, you're just not thinking this through.

| If I have to enable a configure switch I need it only at buildtime.
| If it has to be known at runtime there's the cpuid function!

And at the metadata phase?

| > e) that various gcc internal definitions won't change... 
| It's like assuming that gcc will always output the correct hello
| world for
| 
| int main() {
| 	printf("Hello, world!\n");
| 	return 0;
| }
| 
| If it does change those values, it's going to be a killer for way
| more than just Portage.

Er. No. Not at all. The __MAGIC__ isn't guaranteed. Quite the contrary.
It can and does change with different GCC releases. I know there've been
GCC changes on sparc to those kinds of defines to try to play nice with
certain other compilers...

| > You're adding a lot of complexity, and thus 
| > room for very weird breakages, to something that doesn't need it.
|
| You're not exposing any of such breakages, I find it to reduce
| complexity to users that cannot try to enable SSE3 on an Athlon-TBird
| system.
 
You're trying to guess what the user wants based upon hairy magic,
rather than doing what the user says (aren't you always yelling at
upstreams for doing that?), and all because you aren't aware
of how to cross compile correctly.

Now, please go back to justifying this thing on any merits it may have,
rather than playing the "Go and use Debian!!!1111! card.

-- 
Ciaran McCreesh
Mail            : ciaran dot mccreesh at blueyonder.co.uk


-- 
gentoo-dev@gentoo.org mailing list



  reply	other threads:[~2006-07-06 17:57 UTC|newest]

Thread overview: 136+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06 10:52 [gentoo-dev] Replacing cpu-feature USE flags Diego 'Flameeyes' Pettenò
2006-07-06 11:00 ` Stuart Herbert
2006-07-06 11:23   ` Diego 'Flameeyes' Pettenò
2006-07-25 12:05     ` Enrico Weigelt
2006-07-06 11:03 ` Ioannis Aslanidis
2006-07-06 11:40 ` Donnie Berkholz
2006-07-06 11:48   ` Diego 'Flameeyes' Pettenò
2006-07-06 11:58     ` Donnie Berkholz
2006-07-06 12:21       ` Diego 'Flameeyes' Pettenò
2006-07-06 19:04         ` Harald van Dijk
2006-07-07  0:46     ` Mike Frysinger
2006-07-07  0:57       ` Diego 'Flameeyes' Pettenò
2006-07-07  1:19         ` Mike Frysinger
2006-07-06 15:41   ` Ned Ludd
2006-07-06 15:55     ` Donnie Berkholz
2006-07-06 19:06     ` Harald van Dijk
2006-07-06 19:42       ` Gentoo vs GNU toolchain (was Re: [gentoo-dev] Replacing cpu-feature USE flags) Kevin F. Quinn
2006-07-06 19:55         ` Harald van Dijk
2006-07-06 20:03           ` Stephen P. Becker
2006-07-06 20:14             ` Harald van Dijk
2006-07-06 23:44               ` Mike Frysinger
2006-07-07  5:46                 ` Harald van Dijk
2006-07-07 14:00                   ` Kevin F. Quinn
2006-07-07 16:53                     ` Harald van Dijk
2006-07-07 17:55                       ` Ned Ludd
2006-07-07 18:40                         ` Harald van Dijk
2006-07-07 19:57                           ` Ned Ludd
2006-07-07 21:09                             ` Harald van Dijk
2006-07-08 11:24                               ` Ned Ludd
2006-07-07 20:18                         ` Tushar Teredesai
2006-07-08 11:22                           ` Ned Ludd
2006-07-07 20:40                       ` Mike Frysinger
2006-07-07 21:12                   ` Mike Frysinger
2006-07-07 21:53                     ` Harald van Dijk
2006-07-07 22:13                       ` Mike Frysinger
2006-07-07 23:04                         ` Harald van Dijk
2006-07-07 23:50                           ` Mike Frysinger
2006-07-08  6:20                             ` Harald van Dijk
2006-07-08  9:27                               ` Martin Schlemmer
2006-07-08 11:51                                 ` Harald van Dijk
2006-07-08 13:46                                   ` Martin Schlemmer
2006-07-08 16:43                                     ` Harald van Dijk
2006-07-08 19:53                                       ` Jakub Moc
2006-07-08 13:51                               ` Mike Frysinger
2006-07-06 23:42           ` Mike Frysinger
2006-07-06 19:56         ` Ciaran McCreesh
2006-07-06 20:27           ` Stephen Bennett
2006-07-06 23:40           ` Mike Frysinger
2006-07-25 12:14     ` [gentoo-dev] Replacing cpu-feature USE flags Enrico Weigelt
2006-07-25 17:07       ` Harald van Dijk
2006-08-03  0:38         ` Enrico Weigelt
2006-07-25 12:08   ` Enrico Weigelt
2006-07-06 12:19 ` Ciaran McCreesh
2006-07-06 12:29   ` Diego 'Flameeyes' Pettenò
2006-07-06 12:49     ` Ciaran McCreesh
2006-07-06 13:35       ` Olivier Crête
2006-07-06 14:03       ` Simon Stelling
2006-07-06 14:16         ` Ciaran McCreesh
2006-07-06 15:09           ` Simon Stelling
2006-07-06 15:20             ` Ciaran McCreesh
2006-07-06 15:39             ` Ned Ludd
2006-07-07  0:50         ` Mike Frysinger
2006-07-07  0:58           ` Diego 'Flameeyes' Pettenò
2006-07-07  1:15             ` Mike Frysinger
2006-07-07  2:28               ` Diego 'Flameeyes' Pettenò
2006-07-07 12:34                 ` Martin Schlemmer
2006-07-07 13:08                   ` Graham Murray
2006-07-07 13:21                   ` Simon Stelling
2006-07-07 13:53                     ` Martin Schlemmer
2006-07-07 14:03                       ` Diego 'Flameeyes' Pettenò
2006-07-07 15:31                         ` Martin Schlemmer
2006-07-07 17:22                           ` Diego 'Flameeyes' Pettenò
2006-07-07 18:34                             ` Mike Frysinger
2006-07-06 15:13       ` Kevin F. Quinn
2006-07-25 12:40         ` Enrico Weigelt
2006-07-06 16:43       ` Diego 'Flameeyes' Pettenò
2006-07-06 17:51         ` Ciaran McCreesh [this message]
2006-07-06 18:07           ` Diego 'Flameeyes' Pettenò
2006-07-06 18:29             ` Ciaran McCreesh
2006-07-06 18:42               ` Diego 'Flameeyes' Pettenò
2006-07-06 19:01                 ` Ciaran McCreesh
2006-07-06 20:02                   ` Curtis Napier
2006-07-06 20:13                     ` Diego 'Flameeyes' Pettenò
2006-07-06 20:24                       ` Ciaran McCreesh
2006-07-06 20:46                         ` Diego 'Flameeyes' Pettenò
2006-07-06 20:58                           ` Ciaran McCreesh
2006-07-06 21:12                             ` Diego 'Flameeyes' Pettenò
2006-07-06 21:23                               ` Ciaran McCreesh
2006-07-06 21:31                                 ` Joshua Jackson
2006-07-06 21:45                                   ` Ciaran McCreesh
2006-07-06 22:09                                     ` Jory A. Pratt
2006-07-06 22:28                                       ` Stephen Bennett
2006-07-06 23:10                                       ` Curtis Napier
2006-07-06 21:46                                   ` Stephen Bennett
2006-07-06 21:45                                 ` Diego 'Flameeyes' Pettenò
2006-07-06 23:16                                   ` Ciaran McCreesh
2006-07-06 23:39                                     ` Diego 'Flameeyes' Pettenò
2006-07-06 23:54                                       ` Ciaran McCreesh
2006-07-07  0:08                                         ` Diego 'Flameeyes' Pettenò
2006-07-07  0:31                                           ` Ciaran McCreesh
2006-07-07 12:24                                           ` Martin Schlemmer
2006-07-07 12:31                                             ` Brian Harring
2006-07-07 12:50                                               ` Martin Schlemmer
2006-07-07  0:01                                       ` Luca Barbato
2006-07-07  0:11                                         ` Diego 'Flameeyes' Pettenò
2006-07-07  0:31                                           ` Luca Barbato
2006-07-07 13:27                                             ` Chris Gianelloni
2006-07-07 13:36                                               ` Mike Doty
2006-07-07 16:14                                                 ` [gentoo-dev] CPU subprofiles (was: Replacing cpu-feature USE flags) Ciaran McCreesh
2006-07-07 16:20                                                   ` [gentoo-dev] CPU subprofiles Mike Doty
2006-07-07 21:46                                               ` [gentoo-dev] Replacing cpu-feature USE flags Roy Bamford
2006-07-06 21:10                       ` Kevin F. Quinn
2006-07-06 21:12                         ` Diego 'Flameeyes' Pettenò
2006-07-07 11:13                     ` Simon Stelling
2006-07-07 13:44                       ` Marius Mauch
2006-07-07 14:03                         ` Simon Stelling
2006-07-07 17:53                       ` Richard Fish
2006-07-07  0:20             ` Danny van Dyk
2006-07-07  0:27               ` Diego 'Flameeyes' Pettenò
2006-07-06 15:33   ` Ned Ludd
2006-07-06 16:44     ` Diego 'Flameeyes' Pettenò
2006-07-06 16:58       ` Ned Ludd
2006-07-06 17:09         ` Diego 'Flameeyes' Pettenò
2006-07-06 17:33           ` Ned Ludd
2006-07-06 18:08       ` Luca Barbato
2006-07-06 12:35 ` Kevin F. Quinn
2006-07-06 12:44   ` Diego 'Flameeyes' Pettenò
2006-07-06 13:17     ` Kevin F. Quinn
2006-07-06 16:02 ` Luca Barbato
2006-07-06 16:46   ` Diego 'Flameeyes' Pettenò
2006-07-06 16:27 ` Kevin F. Quinn
2006-07-06 18:02   ` Luca Barbato
2006-07-06 22:46 ` Luca Barbato
2006-07-07 11:36   ` Simon Stelling
2006-07-07 12:18     ` Luca Barbato
2006-07-06 23:35 ` Richard Fish

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060706185110.46f234ce@snowdrop.home \
    --to=ciaran.mccreesh@blueyonder.co.uk \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox