All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] ? using compilers other than gcc!
@ 2019-03-11  2:04 scsijon
  2019-03-11  7:02 ` yann.morin at orange.com
  0 siblings, 1 reply; 5+ messages in thread
From: scsijon @ 2019-03-11  2:04 UTC (permalink / raw)
  To: buildroot

Downloaded the latest 2019-02 buildroot, I found where to set musl, but 
can't see how to change the compiler from gcc to another and I want to 
try the latest pcc?

-------
A little history

In my former life I worked with S.C.O.'s Unix for a while and a C 
compiler called PCC, tiny, quick and fun to use. Like many things from 
back then I had thought it died. (Oh, and it's not the kernel's pcc, 
which is an entirely different thing.) However, apparently it didn't go 
completely, but has continued and reapeared a few times over the years 
for BSD Users systems.
---------

However it has now seriously surfaced again into the general linux 
world, with a few decent step-ups, and worth at least looking at as far 
as i'm concerned, like it's still fast and tight and it's MUSL aware, 
needs only one library package for us to work with, builds it's own GCC, 
and can rebuild itself. And NO it doesn't do everything GCC does, but do 
we really need all that.....

Links worth looking at are 
https://www.phoronix.com/scan.php?page=news_item&px=PCC-Still-Going-2016;
http://pcc.ludd.ltu.se/supported-platforms/;
https://lwn.net/Articles/255558/.
Yeah, I know none of them are new, but the people behind the latest 
stuff put it in the work, not the doc's.

You can get it and it's library at http://pcc.ludd.ltu.se/ftp/pub/pcc/ 
if it interests you.

So, back to the question, how can I use it?

thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] ? using compilers other than gcc!
  2019-03-11  2:04 [Buildroot] ? using compilers other than gcc! scsijon
@ 2019-03-11  7:02 ` yann.morin at orange.com
  2019-03-11  8:01   ` Joseph Kogut
  2019-03-13 22:32   ` scsijon
  0 siblings, 2 replies; 5+ messages in thread
From: yann.morin at orange.com @ 2019-03-11  7:02 UTC (permalink / raw)
  To: buildroot

sccijon, All,

On 2019-03-11 13:04 +1100, scsijon spake thusly:
> Downloaded the latest 2019-02 buildroot, I found where to set musl, but
> can't see how to change the compiler from gcc to another and I want to try
> the latest pcc?

Buildroot only supports gcc.

> However it has now seriously surfaced again into the general linux world,
> with a few decent step-ups, and worth at least looking at as far as i'm
> concerned, like it's still fast and tight and it's MUSL aware, needs only
> one library package for us to work with, builds it's own GCC, and can
> rebuild itself. And NO it doesn't do everything GCC does, but do we really
> need all that.....
> 
> Links worth looking at are
> https://www.phoronix.com/scan.php?page=news_item&px=PCC-Still-Going-2016;

That dates back from more than 3 years ago now...

> http://pcc.ludd.ltu.se/supported-platforms/;

Nothing new in the "News" section since July 2015 (almost 4 years ago
now).

> https://lwn.net/Articles/255558/.

Article dated from 2007. Hardly recenti either...

So much so for something that "has now seriously surfaced again", I'm
afraid... :-/

> Yeah, I know none of them are new, but the people behind the latest stuff
> put it in the work, not the doc's.

Their cvs (irk!) server is down:
    http://pcc.ludd.ltu.se/fisheye/
    503 Service Temporarily Unavailable

> You can get it and it's library at http://pcc.ludd.ltu.se/ftp/pub/pcc/ if it
> interests you.
> 
> So, back to the question, how can I use it?

Short answer: you can't.

Long answer: you can prepare a set of patches against Buildroot, to
enable using an alternate compiler, but this is probably a daunting
task, as everything everywhere in the infra expects gcc. Packages
also expect gcc, and when they do allow for something else, it's
probably clang, not pcc. Also, pcc is C only. So, such an endeavour
would probably last years before you could eventually select pcc in
Buildroot.

So, if I were you, I wouldn't hold my breath...

The best candidate nowadays for an alternative to gcc, is clang.

Regards,
Yann E. MORIN.

-- 
                                        ____________
.-----------------.--------------------:       _    :------------------.
|  Yann E. MORIN  | Real-Time Embedded |    __/ )   | /"\ ASCII RIBBON |
| +33 534.541.179 | Software  Designer |  _/ - /'   | \ / CAMPAIGN     |
| +33 638.411.245 '--------------------: (_    `--, |  X  AGAINST      |
|      yann.morin (at) orange.com      |_="    ,--' | / \ HTML MAIL    |
'--------------------------------------:______/_____:------------------'


_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] ? using compilers other than gcc!
  2019-03-11  7:02 ` yann.morin at orange.com
@ 2019-03-11  8:01   ` Joseph Kogut
  2019-03-12  0:08     ` Arnout Vandecappelle
  2019-03-13 22:32   ` scsijon
  1 sibling, 1 reply; 5+ messages in thread
From: Joseph Kogut @ 2019-03-11  8:01 UTC (permalink / raw)
  To: buildroot

On Mon, Mar 11, 2019 at 12:03 AM <yann.morin@orange.com> wrote:
>
> The best candidate nowadays for an alternative to gcc, is clang.
>

In that regard, has there been any progress in supporting Clang as a
compiler in Buildroot?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] ? using compilers other than gcc!
  2019-03-11  8:01   ` Joseph Kogut
@ 2019-03-12  0:08     ` Arnout Vandecappelle
  0 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2019-03-12  0:08 UTC (permalink / raw)
  To: buildroot



On 11/03/2019 09:01, Joseph Kogut wrote:
> On Mon, Mar 11, 2019 at 12:03 AM <yann.morin@orange.com> wrote:
>>
>> The best candidate nowadays for an alternative to gcc, is clang.
>>
> 
> In that regard, has there been any progress in supporting Clang as a
> compiler in Buildroot?

 I don't think anyone has ever proposed any patches that go into that direction.
Though I suppose that compiler-rt [1] is a necessary step.

 It's a big endeavor. There will e.g. need to be a new symbol to distinguish
between clang and gcc, and e.g. disable the kernel when clang is used.

 Regards,
 Arnout

[1] http://patchwork.ozlabs.org/project/buildroot/list/?series=84352

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] ? using compilers other than gcc!
  2019-03-11  7:02 ` yann.morin at orange.com
  2019-03-11  8:01   ` Joseph Kogut
@ 2019-03-13 22:32   ` scsijon
  1 sibling, 0 replies; 5+ messages in thread
From: scsijon @ 2019-03-13 22:32 UTC (permalink / raw)
  To: buildroot


On 11/03/19 18:02, yann.morin at orange.com wrote:
> sccijon, All,
> 
> On 2019-03-11 13:04 +1100, scsijon spake thusly:
>> Downloaded the latest 2019-02 buildroot, I found where to set musl, but
>> can't see how to change the compiler from gcc to another and I want to try
>> the latest pcc?
> 
> Buildroot only supports gcc.
> 
>> However it has now seriously surfaced again into the general linux world,
>> with a few decent step-ups, and worth at least looking at as far as i'm
>> concerned, like it's still fast and tight and it's MUSL aware, needs only
>> one library package for us to work with, builds it's own GCC, and can
>> rebuild itself. And NO it doesn't do everything GCC does, but do we really
>> need all that.....
>>
>> Links worth looking at are
>> https://www.phoronix.com/scan.php?page=news_item&px=PCC-Still-Going-2016;
> 
> That dates back from more than 3 years ago now...
> 
>> http://pcc.ludd.ltu.se/supported-platforms/;
> 
> Nothing new in the "News" section since July 2015 (almost 4 years ago
> now).
> 
>> https://lwn.net/Articles/255558/.
> 
> Article dated from 2007. Hardly recenti either...
> 
> So much so for something that "has now seriously surfaced again", I'm
> afraid... :-/
> 
>> Yeah, I know none of them are new, but the people behind the latest stuff
>> put it in the work, not the doc's.
> 
I did say the articles were dated, I just included them for those that 
had not heard if it and wanted some background. I also said they were 
putting time on the system, not publicity documentation.

> Their cvs (irk!) server is down:
>      http://pcc.ludd.ltu.se/fisheye/
>      503 Service Temporarily Unavailable

"cvs -d :pserver:anonymous at pcc.ludd.ltu.se:/cvsroot co pcc" works, 
that's the listed way to download it as stated on their download page, I 
don't know about the /fisheye/, I suspect it's part of the old (unused) 
reporting system that was abandoned when it had crashed and moved.

> 
>> You can get it and it's library at http://pcc.ludd.ltu.se/ftp/pub/pcc/ if it
>> interests you.
>>
>> So, back to the question, how can I use it?
> 
> Short answer: you can't.

ok, I just asked, it's just buildroot's configuration wording seemed to 
allow alternatives, but I couldn't work out how to, thus this question.

> 
> Long answer: you can prepare a set of patches against Buildroot, to
> enable using an alternate compiler, but this is probably a daunting
> task, as everything everywhere in the infra expects gcc. Packages
> also expect gcc, and when they do allow for something else, it's
> probably clang, not pcc. Also, pcc is C only. So, such an endeavour
> would probably last years before you could eventually select pcc in
> Buildroot.
> 
> So, if I were you, I wouldn't hold my breath...
> 
> The best candidate nowadays for an alternative to gcc, is clang.

no, I want something that is totally portable/relocatable, which is why 
i'm looking at pcc in the first place.

> 
> Regards,
> Yann E. MORIN.
> 

Thanks anyway, I shall just go to one of the alternatives, it's actually 
supprising how many have appeared out there for musl, they are just not 
as far advanced as buildroot, and having used buildroot in the past I 
thought I would start with it.

scsijon

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-13 22:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-11  2:04 [Buildroot] ? using compilers other than gcc! scsijon
2019-03-11  7:02 ` yann.morin at orange.com
2019-03-11  8:01   ` Joseph Kogut
2019-03-12  0:08     ` Arnout Vandecappelle
2019-03-13 22:32   ` scsijon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.