public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* Using crosstool-ng on OpenBSD
@ 2012-01-23  7:52 Renaud Allard
  2012-01-23 17:39 ` Yann E. MORIN
  0 siblings, 1 reply; 8+ messages in thread
From: Renaud Allard @ 2012-01-23  7:52 UTC (permalink / raw)
  To: crossgcc

[-- Attachment #1: Type: text/plain, Size: 1112 bytes --]

Hello,

While it may seem strange to some, I am trying to compile a toolchain on 
an OpenBSD (5.0 amd64) machine.

I have installed all GNU alternatives to common programs:
cat /usr/local/lib/ct-ng-1.13.2/paths.mk 

export install=/usr/bin/install
export bash=/usr/local/bin/bash
export grep=/usr/local/bin/ggrep
export make=/usr/local/bin/gmake
export sed=/usr/local/bin/gsed
export libtool=/usr/local/bin/libtool
export libtoolize=/usr/local/bin/libtoolize
export objcopy=/usr/bin/objcopy
export objdump=/usr/bin/objdump
export readelf=/usr/bin/readelf
export patch=/usr/bin/patch

However ct-ng build fails on me because it is not able to uncompress the 
archives.
[DEBUG]    ==> Executing: 'mkdir' '-p' 'linux-3.0.4'
[DEBUG]    ==> Executing: 'tar' '--strip-components=1' '-C' 
'linux-3.0.4' '-xv' '-f' '-'
[FILE ]    tar: unknown option -- -

But the is no way (except linking tar to gtar in the system, which is 
probably not a good idea) to use gtar instead of tar.
It would probably be interesting to add the option to use gtar in the 
configure process.

Best Regards


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4510 bytes --]

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

* Re: Using crosstool-ng on OpenBSD
  2012-01-23  7:52 Using crosstool-ng on OpenBSD Renaud Allard
@ 2012-01-23 17:39 ` Yann E. MORIN
  2012-01-23 17:50   ` Renaud Allard
  0 siblings, 1 reply; 8+ messages in thread
From: Yann E. MORIN @ 2012-01-23 17:39 UTC (permalink / raw)
  To: crossgcc; +Cc: Renaud Allard

Renaud, All,

On Monday 23 January 2012 08:52:10 Renaud Allard wrote:
> While it may seem strange to some, I am trying to compile a toolchain on 
> an OpenBSD (5.0 amd64) machine.
> 
> I have installed all GNU alternatives to common programs:
> cat /usr/local/lib/ct-ng-1.13.2/paths.mk 
> 
> export install=/usr/bin/install
> export bash=/usr/local/bin/bash
> export grep=/usr/local/bin/ggrep
> export make=/usr/local/bin/gmake
> export sed=/usr/local/bin/gsed
> export libtool=/usr/local/bin/libtool
> export libtoolize=/usr/local/bin/libtoolize
> export objcopy=/usr/bin/objcopy
> export objdump=/usr/bin/objdump
> export readelf=/usr/bin/readelf
> export patch=/usr/bin/patch
> 
> However ct-ng build fails on me because it is not able to uncompress the 
> archives.
> [DEBUG]    ==> Executing: 'mkdir' '-p' 'linux-3.0.4'
> [DEBUG]    ==> Executing: 'tar' '--strip-components=1' '-C' 
> 'linux-3.0.4' '-xv' '-f' '-'
> [FILE ]    tar: unknown option -- -

That's been fixed upstream by this changeset:
    http://crosstool-ng.org/hg/crosstool-ng/file/188d58cfe7cf/scripts/functions#l767

I am just back-porting some fixes to the 1.13 branch, and they should be
available shortly ( in fact, I did that a few days ago, but I forgot to
tag and push the branch... :-( ).

> But the is no way (except linking tar to gtar in the system, which is 
> probably not a good idea) to use gtar instead of tar.
> It would probably be interesting to add the option to use gtar in the 
> configure process.

This should not be needed now, as the extraction now uses BSD-compliant
constructs.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Using crosstool-ng on OpenBSD
  2012-01-23 17:39 ` Yann E. MORIN
@ 2012-01-23 17:50   ` Renaud Allard
  2012-01-23 18:25     ` Yann E. MORIN
  0 siblings, 1 reply; 8+ messages in thread
From: Renaud Allard @ 2012-01-23 17:50 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 644 bytes --]



On 23/01/12 18:39, Yann E. MORIN wrote:

>
> That's been fixed upstream by this changeset:
>      http://crosstool-ng.org/hg/crosstool-ng/file/188d58cfe7cf/scripts/functions#l767
>

Thank you.

While somewhat patching ct-ng to make it build with the latest release, 
I also noticed that flag -v is used in ln and cp, which is not supported 
either on OpenBSD. AFAIK, there is unfortunately no replacement for that 
flag.
Also "cp -a" is also used, which doesn't work either, but here there is 
a trivial way to replace it, "cp -rp". I don't know of the implications 
of using -rp instead or -a on non linux/BSD platforms.


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4510 bytes --]

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

* Re: Using crosstool-ng on OpenBSD
  2012-01-23 17:50   ` Renaud Allard
@ 2012-01-23 18:25     ` Yann E. MORIN
  2012-01-23 18:30       ` Renaud Allard
  0 siblings, 1 reply; 8+ messages in thread
From: Yann E. MORIN @ 2012-01-23 18:25 UTC (permalink / raw)
  To: crossgcc; +Cc: Renaud Allard

Renaud, All,

On Monday 23 January 2012 18:50:24 Renaud Allard wrote:
> On 23/01/12 18:39, Yann E. MORIN wrote:
> > That's been fixed upstream by this changeset:
> >      http://crosstool-ng.org/hg/crosstool-ng/file/188d58cfe7cf/scripts/functions#l767

That was also available for download from the fixes directory:
    http://crosstool-ng.org/download/crosstool-ng/01-fixes/1.13.2/

> While somewhat patching ct-ng to make it build with the latest release, 
> I also noticed that flag -v is used in ln and cp, which is not supported 
> either on OpenBSD. AFAIK, there is unfortunately no replacement for that 
> flag.
> Also "cp -a" is also used, which doesn't work either, but here there is 
> a trivial way to replace it, "cp -rp". I don't know of the implications 
> of using -rp instead or -a on non linux/BSD platforms.

OK, -r is not even in POSIX, while -R is. Can you check that BSD's cp
does handle the -pR combination? If so, I'll chamge it.

-v missing is not too problematic either. Its only use is to make the
progress bar rotate, so as to give the user some feedback that the
process is not hung. If we remove it, the progress bar will hang for
some time during very big copies, but if that's the price to pay...

And no, BSD-likes are not the stuff I test on! ;-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Using crosstool-ng on OpenBSD
  2012-01-23 18:25     ` Yann E. MORIN
@ 2012-01-23 18:30       ` Renaud Allard
  2012-01-23 22:14         ` Yann E. MORIN
  2012-02-01 21:15         ` Yann E. MORIN
  0 siblings, 2 replies; 8+ messages in thread
From: Renaud Allard @ 2012-01-23 18:30 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]



On 23/01/12 19:25, Yann E. MORIN wrote:

>
> OK, -r is not even in POSIX, while -R is. Can you check that BSD's cp
> does handle the -pR combination? If so, I'll chamge it.
>

Yes, it does support -pR, which is indeed the correct way to pass the 
recursive argument.

> -v missing is not too problematic either. Its only use is to make the
> progress bar rotate, so as to give the user some feedback that the
> process is not hung. If we remove it, the progress bar will hang for
> some time during very big copies, but if that's the price to pay...
>

Doesn't it also affect debugging output?

> And no, BSD-likes are not the stuff I test on! ;-)
>

I would have bet that, but it's nice to have you work on that :)
Thank you


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4510 bytes --]

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

* Re: Using crosstool-ng on OpenBSD
  2012-01-23 18:30       ` Renaud Allard
@ 2012-01-23 22:14         ` Yann E. MORIN
  2012-02-01 21:15         ` Yann E. MORIN
  1 sibling, 0 replies; 8+ messages in thread
From: Yann E. MORIN @ 2012-01-23 22:14 UTC (permalink / raw)
  To: crossgcc; +Cc: Renaud Allard

On Monday 23 January 2012 19:30:17 Renaud Allard wrote:
> On 23/01/12 19:25, Yann E. MORIN wrote:
> > OK, -r is not even in POSIX, while -R is. Can you check that BSD's cp
> > does handle the -pR combination? If so, I'll chamge it.
> Yes, it does support -pR, which is indeed the correct way to pass the 
> recursive argument.

OK.

> > -v missing is not too problematic either. Its only use is to make the
> > progress bar rotate, so as to give the user some feedback that the
> > process is not hung. If we remove it, the progress bar will hang for
> > some time during very big copies, but if that's the price to pay...
> Doesn't it also affect debugging output?

Well, partialy. At least, the command being executed is logged, its stdout,
as well as its stderr. So, if the commands prints some progress status (as
'cp -v' was used for), or prints errors (on stderr), it should be logged
appropriately. And because the command being executed is logged, it's always
possible to hand-type it for further investigation.

The 'cp -v' was really intended for cases where the copy could take a bunch
of time, see eg. this changeset:
    http://crosstool-ng.org/hg/crosstool-ng/rev/c3ff88a0c788

So, removing the '-v' from 'cp' incantations would just look like no progress
for a little while for unsuspecting users. That should be eventually worked
around with a _usability_ fix, but for now, it's time for a _feature_ fix.

And yes, I know, there are a bunch of pending patches on the list. I'll
catter to them during the week, and then hope for the release to be ready
before the end of the month (and obviously, before FOSDEM! Beer, yeah! :-))

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Using crosstool-ng on OpenBSD
  2012-01-23 18:30       ` Renaud Allard
  2012-01-23 22:14         ` Yann E. MORIN
@ 2012-02-01 21:15         ` Yann E. MORIN
  2012-02-01 21:44           ` Renaud Allard
  1 sibling, 1 reply; 8+ messages in thread
From: Yann E. MORIN @ 2012-02-01 21:15 UTC (permalink / raw)
  To: Renaud Allard; +Cc: crossgcc

Renaud, All,

On Monday 23 January 2012 19:30:17 Renaud Allard wrote:
> On 23/01/12 19:25, Yann E. MORIN wrote:
> > OK, -r is not even in POSIX, while -R is. Can you check that BSD's cp
> > does handle the -pR combination? If so, I'll chamge it.
> 
> Yes, it does support -pR, which is indeed the correct way to pass the 
> recursive argument.

Shit! I knew I forgot something important... Sigh...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq

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

* Re: Using crosstool-ng on OpenBSD
  2012-02-01 21:15         ` Yann E. MORIN
@ 2012-02-01 21:44           ` Renaud Allard
  0 siblings, 0 replies; 8+ messages in thread
From: Renaud Allard @ 2012-02-01 21:44 UTC (permalink / raw)
  To: Yann E. MORIN; +Cc: crossgcc

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]



On 02/01/12 22:15, Yann E. MORIN wrote:
> Renaud, All,
>
> On Monday 23 January 2012 19:30:17 Renaud Allard wrote:
>> On 23/01/12 19:25, Yann E. MORIN wrote:
>>> OK, -r is not even in POSIX, while -R is. Can you check that BSD's cp
>>> does handle the -pR combination? If so, I'll chamge it.
>>
>> Yes, it does support -pR, which is indeed the correct way to pass the
>> recursive argument.
>
> Shit! I knew I forgot something important... Sigh...
>
I guess it's for next release, you cannot think of every possible 
combination :)


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4510 bytes --]

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

end of thread, other threads:[~2012-02-01 21:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-23  7:52 Using crosstool-ng on OpenBSD Renaud Allard
2012-01-23 17:39 ` Yann E. MORIN
2012-01-23 17:50   ` Renaud Allard
2012-01-23 18:25     ` Yann E. MORIN
2012-01-23 18:30       ` Renaud Allard
2012-01-23 22:14         ` Yann E. MORIN
2012-02-01 21:15         ` Yann E. MORIN
2012-02-01 21:44           ` Renaud Allard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).