Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  erts configure fails on 64-bit Darwin

Guest
Posted: Tue Jun 08, 2010 8:10 pm Reply with quote
Guest
I am trying to build a 64-bit version of Erlang (R13B04) on Snow
Leopard but the erts configure stage fails. The following patch fixes
the configure stage:

--- configure.in.orig 2010-06-07 13:52:09.000000000 -0700
+++ configure.in 2010-06-07 13:52:56.000000000 -0700
@@ -340,13 +340,13 @@
case $host_os in
darwin*)
case $CFLAGS in
*-m32*)
;;
*)
- CFLAGS="-m32 $CFLAGS"
+ # CFLAGS="-m32 $CFLAGS"
;;
esac
;;
*)
if test X${enable_m32_build} = Xyes;
then


but I am worried that there is some reason that somebody forced 32-bit
on Darwin. Any sage advice?

TIA,
-Tim

________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org

Post received from mailinglist
t
Posted: Tue Jun 08, 2010 9:03 pm Reply with quote
User Joined: 30 Sep 2008 Posts: 133
On Tue, Jun 8, 2010 at 10:09 PM, Tim Spriggs <tims@uahirise.org> wrote:
> I am trying to build a 64-bit version of Erlang (R13B04) on Snow
> Leopard but the erts configure stage fails. The following patch fixes

What is the error?
What did you pass to ./configure? --enable-darwin-64bit?

> the configure stage:
>
> --- configure.in.orig
View user's profile Send private message
Guest
Posted: Tue Jun 08, 2010 9:52 pm Reply with quote
Guest
On Tue, Jun 8, 2010 at 2:02 PM, Tuncer Ayaz <tuncer.ayaz@gmail.com> wrote:
> On Tue, Jun 8, 2010 at 10:09 PM, Tim Spriggs <tims@uahirise.org> wrote:
>> I am trying to build a 64-bit version of Erlang (R13B04) on Snow
>> Leopard but the erts configure stage fails. The following patch fixes
>
> What is the error?
> What did you pass to ./configure? --enable-darwin-64bit?
>
>> the configure stage:
>>
>> --- configure.in.orig
t
Posted: Tue Jun 08, 2010 11:04 pm Reply with quote
User Joined: 30 Sep 2008 Posts: 133
On Tue, Jun 8, 2010 at 11:51 PM, Tim Spriggs wrote:
>
> While there are no enable/disable options set for the bitness in the
> configure stage, the snippet of code I referenced earlier assumes that
> -m32 should always be set for Darwin.

That has been hard-coded for Snow Leopard as it defaults to -m64
in the toolchain and wxErlang would not work.

Can you try --enable-darwin-64bit?

________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org

Post received from mailinglist
View user's profile Send private message
Guest
Posted: Tue Jun 08, 2010 11:27 pm Reply with quote
Guest
On Tue, Jun 8, 2010 at 4:03 PM, Tuncer Ayaz <tuncer.ayaz@gmail.com> wrote:
> On Tue, Jun 8, 2010 at 11:51 PM, Tim Spriggs wrote:
>>
>> While there are no enable/disable options set for the bitness in the
>> configure stage, the snippet of code I referenced earlier assumes that
>> -m32 should always be set for Darwin.
>
> That has been hard-coded for Snow Leopard as it defaults to -m64
> in the toolchain and wxErlang would not work.
>
> Can you try --enable-darwin-64bit?

That works and erl starts:

Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:4:4] [rq:4]
[async-threads:0] [kernel-poll:false]

Eshell V5.7.5 (abort with ^G)
1>
1> q().
ok

________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org

Post received from mailinglist
t
Posted: Tue Jun 08, 2010 11:31 pm Reply with quote
User Joined: 30 Sep 2008 Posts: 133
On Wed, Jun 9, 2010 at 1:27 AM, Tim Spriggs wrote:
> On Tue, Jun 8, 2010 at 4:03 PM, Tuncer Ayaz wrote:
>>
>> Can you try --enable-darwin-64bit?
>
> That works and erl starts:
>
> Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:4:4] [rq:4]
> [async-threads:0] [kernel-poll:false]
>
> Eshell V5.7.5
View user's profile Send private message
Guest
Posted: Wed Jun 09, 2010 12:13 am Reply with quote
Guest
On Tue, Jun 8, 2010 at 4:30 PM, Tuncer Ayaz <tuncer.ayaz@gmail.com> wrote:
> Great! You can also try --enable-hipe instead of --disable-hipe.
> It works in both 32bit and 64bit.

Thanks for the tip, I heed the warning in prefix though:

if use hipe; then
ewarn
ewarn "You enabled High performance Erlang. Be aware that this extension"
ewarn "can break the compilation in many ways, especially on
hardened systems."
ewarn "Don't cry, don't file bugs, just disable it! If you have a
fix, tell us though on Bugzilla."
ewarn
fi

At this point I'd rather things just worked and worry about
performance later Smile Once my erlang foo is a little stronger I'll dig
into using hipe.

Cheers,
-Tim

PS: x86_64-apple-darwin9 and x86_64-apple-darwin10 both compiled with
--enable-darwin-64bit

________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org

Post received from mailinglist
t
Posted: Wed Jun 09, 2010 10:40 am Reply with quote
User Joined: 30 Sep 2008 Posts: 133
On Wed, Jun 9, 2010 at 2:12 AM, Tim Spriggs wrote:
> PS: x86_64-apple-darwin9 and x86_64-apple-darwin10 both compiled
> with --enable-darwin-64bit

If darwin9 is 10.5 then yes for the default toolchain environment.
No idea about portage on 10.5.

________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org

Post received from mailinglist
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum