[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: [Pcc] external.c failed
From:       stephen Turner <stephen.n.turner () gmail ! com>
Date:       2014-12-28 4:41:24
Message-ID: CAA7aPHhveOWv-z7FnwOHkcE2EEUbX8SnrMBLA0-3PtTQDdKD4Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


>
> I didn't test past configure && make, but I think I know the problem.
>
> If you refer to the patch making PCC use the musl dynamic linker when
> properly configured, it activates by adding -DUSE_MUSL to the CPPFLAGS.
>
> If you watch your build log, you will likely notice that -DUSE_MUSL
> never shows up.
> Review config.log, and it isn't finding its way into ADD_CPPFLAGS.
> This is an error in the configure script.
> Specifically, it seems the configure script adds this flag when
> "$target_os" matches linux* and further matches the pattern
> *-linux-musl* (a case of confusing the triplet and $target_os).
>
> Solution:
> sed -e 's/.-\(linux-musl\)/\1/g' -i configure configure.ac
>
>
Thanks again! A update of the cvs source and rebuild shows its now linking
correctly with a --build specified. I haven't tried without specifying yet
but since we were waiting to see what gnu does about the config.guess im
assuming auto detect will work same as it has in the past.

thanks
stephen

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><span \
style="color:rgb(34,34,34)">I didn&#39;t test past configure &amp;&amp; make, but I \
think I know the problem.</span><br></div></div> <br>
If you refer to the patch making PCC use the musl dynamic linker when<br>
properly configured, it activates by adding -DUSE_MUSL to the CPPFLAGS.<br>
<br>
If you watch your build log, you will likely notice that -DUSE_MUSL<br>
never shows up.<br>
Review config.log, and it isn&#39;t finding its way into ADD_CPPFLAGS.<br>
This is an error in the configure script.<br>
Specifically, it seems the configure script adds this flag when<br>
&quot;$target_os&quot; matches linux* and further matches the pattern<br>
*-linux-musl* (a case of confusing the triplet and $target_os).<br>
<br>
Solution:<br>
sed -e &#39;s/.-\(linux-musl\)/\1/g&#39; -i configure <a href="http://configure.ac" \
target="_blank">configure.ac</a><br><br></blockquote><div><br></div><div>Thanks \
again! A update of the cvs source and rebuild shows its now linking correctly with a \
--build specified. I haven&#39;t tried without specifying yet but since we were \
waiting to see what gnu does about the config.guess im assuming auto detect will work \
same as it has in the past.  \
</div><div><br></div><div>thanks</div><div>stephen</div></div></div></div>



_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic