mailing list of musl libc
 help / color / mirror / code / Atom feed
* Re: [PATCH] Build process uses script to add CFI directives to x86 asm
@ 2015-05-19 16:22 Alex Dowad
  2015-05-20  7:27 ` Raphael Cohn
  2015-05-20  9:55 ` u-wsnj
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Dowad @ 2015-05-19 16:22 UTC (permalink / raw)
  To: musl

> configure already uses its own echo definition

> so ash's echo should not be used

> how did the config script end up calling ash's echo?

OK, thanks for pointing this out. I shouldn't have said that the problem was
with ash's echo.

The original configure script worked when I ran it on Linux Mint + bash, and didn't
work on Alpine Linux + BusyBox ash. I didn't notice echo() in the configure script,
did some experimentation with bash's echo and ash's, found a difference which seemed
to explain the observed problem, and worked around it.

Now it looks like the issue was something else. I can't seem to duplicate the problem
right this moment; however, the configure script as it is right now works on both
platforms.

Mysteries, mysteries...

AD


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

* Re: Re: [PATCH] Build process uses script to add CFI directives to x86 asm
  2015-05-19 16:22 [PATCH] Build process uses script to add CFI directives to x86 asm Alex Dowad
@ 2015-05-20  7:27 ` Raphael Cohn
  2015-05-20  9:55 ` u-wsnj
  1 sibling, 0 replies; 4+ messages in thread
From: Raphael Cohn @ 2015-05-20  7:27 UTC (permalink / raw)
  To: musl

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

Writing portable shell script is a little hard, but I've found a good
approach is to make something ancient like pdksh a symlink for /bin/sh and
even /bin/bash - typically in a small VM. This makes it much more likely
that your code will work without big changes on AIX, BSDs, etc. The other
way is to use dash, not BusyBox ash, as BusyBox ash includes a few bashisms
depending on the configure options at build time.

If you're looking for cross-script ways of solving problems, then feel free
to nab implementations from my shellfire repo (
https://github.com/shellfire-dev/shellfire et al).


On 19 May 2015 at 21:52, Alex Dowad <alexinbeijing@gmail.com> wrote:

> > configure already uses its own echo definition
>
> > so ash's echo should not be used
>
> > how did the config script end up calling ash's echo?
>
> OK, thanks for pointing this out. I shouldn't have said that the problem
> was
> with ash's echo.
>
> The original configure script worked when I ran it on Linux Mint + bash,
> and didn't
> work on Alpine Linux + BusyBox ash. I didn't notice echo() in the
> configure script,
> did some experimentation with bash's echo and ash's, found a difference
> which seemed
> to explain the observed problem, and worked around it.
>
> Now it looks like the issue was something else. I can't seem to duplicate
> the problem
> right this moment; however, the configure script as it is right now works
> on both
> platforms.
>
> Mysteries, mysteries...
>
> AD
>

[-- Attachment #2: Type: text/html, Size: 2057 bytes --]

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

* Re: Re: [PATCH] Build process uses script to add CFI directives to x86 asm
  2015-05-19 16:22 [PATCH] Build process uses script to add CFI directives to x86 asm Alex Dowad
  2015-05-20  7:27 ` Raphael Cohn
@ 2015-05-20  9:55 ` u-wsnj
  1 sibling, 0 replies; 4+ messages in thread
From: u-wsnj @ 2015-05-20  9:55 UTC (permalink / raw)
  To: musl

On Tue, May 19, 2015 at 06:22:24PM +0200, Alex Dowad wrote:
> work on Alpine Linux + BusyBox ash. I didn't notice echo() in the configure script,
> did some experimentation with bash's echo and ash's, found a difference which seemed
> to explain the observed problem, and worked around it.
> 
> Now it looks like the issue was something else. I can't seem to duplicate the problem
> right this moment; however, the configure script as it is right now works on both
> platforms.
> 
> Mysteries, mysteries...

I think there was some "echo" i some Makefile
(even though the use which I remember looked safe
it could possibly profit from becoming printf?)

Rune



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

* Re: Re: [PATCH] Build process uses script to add CFI directives to x86 asm
  2015-05-20 17:08 Alex Dowad
@ 2015-05-20 18:07 ` Szabolcs Nagy
  0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2015-05-20 18:07 UTC (permalink / raw)
  To: musl

* Alex Dowad <alexinbeijing@gmail.com> [2015-05-20 19:08:19 +0200]:
> 
> Maintainers: is there still anything blocking this patch from getting merged
> in? Please let me know so I can fix any remaining problems.
> 

all your mails start a new thread because they don't have
the In-Reply-To: header set up properly (at least that's
how they appear to me) so it's hard to follow the current
state..

i think there are issues
- as wrapping (we did not yet agree about the cleanest way)
- %.sub rules are not yet handled
- i think the \s \w should be fixed (at least mawk gets them wrong)
- clang

otherwise it should be ok
(build system changes are always painful)


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

end of thread, other threads:[~2015-05-20 18:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 16:22 [PATCH] Build process uses script to add CFI directives to x86 asm Alex Dowad
2015-05-20  7:27 ` Raphael Cohn
2015-05-20  9:55 ` u-wsnj
2015-05-20 17:08 Alex Dowad
2015-05-20 18:07 ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).