Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
compiling problems under OS X Lion
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sean Moss-Pultz  
View profile  
 More options Jul 22 2011, 11:20 am
From: Sean Moss-Pultz <s...@openmoko.com>
Date: Fri, 22 Jul 2011 23:20:53 +0800
Local: Fri, Jul 22 2011 11:20 am
Subject: [erlang-questions] compiling problems under OS X Lion
Hi List

I'm trying to build R14B03 under OS X Lion. (Xcode v4.1). I'm getting
the following error:

--------------------------------------------------

=== Entering application hipe
(cd ../main && make hipe.hrl)
sed -e "s;%VSN%;3.8;" ../../hipe/main/hipe.hrl.src > ../../hipe/main/hipe.hrl
erlc -W  +debug_info +inline -o../ebin hipe_rtl.erl
(no error logger present) error: "Error in process <0.1.0> with exit
value: {{badfun,[<<5 bytes>>,<<47 bytes>>,<<9 bytes>>,<<3 bytes>>,<<2
bytes>>,<<5 bytes>>,<<12 bytes>>,<<2 bytes>>,<<8 bytes>>,<<8
bytes>>,<<5 bytes>>,<<7 bytes>>,<<5 bytes>>,<<11 bytes>>,<<2
bytes>>,<<11 bytes>>,<<15 bytes>>,<<4 bytes>>,<<50 bytes>>,<<5
bytes>>,<<1 byte>>,<<7 bytes>>,<<10 bytes>>,<<7 bytes>>,<<6
bytes>>,<<7 bytes>>,<<7 bytes>>,<<6 bytes>>,<<12
bytes>>]},[{erlang,apply,2}]}\n"

--------------------------------------------------

People using homebrew seem to have the same issue:

  https://github.com/mxcl/homebrew/issues/2713

They say to use --use-gcc when running ./configure. I've tried this
but it didn't change the error. Can somebody help me with this?

Thanks!

  -Sean
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Smith  
View profile  
 More options Jul 22 2011, 11:37 am
From: Dave Smith <diz...@dizzyd.com>
Date: Fri, 22 Jul 2011 09:37:58 -0600
Local: Fri, Jul 22 2011 11:37 am
Subject: Re: [erlang-questions] compiling problems under OS X Lion
If you want to compile Erlang w/ clang-llvm on 10.6 (or above) do
this: CFLAGS=-O0 ./configure ...

D.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Moss-Pultz  
View profile  
 More options Jul 22 2011, 9:03 pm
From: Sean Moss-Pultz <s...@openmoko.com>
Date: Sat, 23 Jul 2011 09:03:10 +0800
Local: Fri, Jul 22 2011 9:03 pm
Subject: Re: [erlang-questions] compiling problems under OS X Lion

> On Fri, Jul 22, 2011 at 9:20 AM, Sean Moss-Pultz <s...@openmoko.com> wrote:
>> Hi List

>> I'm trying to build R14B03 under OS X Lion. (Xcode v4.1). I'm getting
>> the following error:

{snip}

On Fri, Jul 22, 2011 at 11:37 PM, Dave Smith <diz...@dizzyd.com> wrote:
> If you want to compile Erlang w/ clang-llvm on 10.6 (or above) do
> this: CFLAGS=-O0 ./configure ...

Thanks Dave. That got me a lot further. But I'm still getting the
following errors:

--------------------------------------------------------------------------- ---------------------------------------

gcc -O0 -no-cpp-precomp -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Winline -fno-strict-aliasing
-I. -I../include -Iconnect -Iencode -Idecode -Imisc -Iepmd -Iregistry
-Ii386-apple-darwin11.0.0   -Ilegacy -D_THREAD_SAFE -D_REENTRANT
-DPOSIX_THREADS -m32  -o
/Users/mosko/Downloads/otp_src_R14B03/lib/erl_interface/bin/i386-apple-darw in11.0.0/erl_call
prog/erl_call.c prog/erl_start.c \
                -L/Users/mosko/Downloads/otp_src_R14B03/lib/erl_interface/obj/i386-apple-da rwin11.0.0
-lei -lpthread
ld: warning: ignoring file
/Users/mosko/Downloads/otp_src_R14B03/lib/erl_interface/obj/i386-apple-darw in11.0.0/libei.a,
file was built for archive which is not the architecture being linked
(i386)
Undefined symbols for architecture i386:
  "_ei_gethostbyname", referenced from:
      _main in ccO2Es4f.o
      _do_connect in ccO2Es4f.o
  "_ei_connect_xinit", referenced from:
      _main in ccO2Es4f.o
  "___erl_errno_place", referenced from:
      _main in ccO2Es4f.o
  "_ei_thishostname", referenced from:
      _main in ccO2Es4f.o
      _exec_erlang in cc6g0Be0.o
  "_ei_connect", referenced from:
      _main in ccO2Es4f.o
      _do_connect in ccO2Es4f.o
  "_ei_encode_list_header", referenced from:
      _main in ccO2Es4f.o
  "_ei_x_new_with_version", referenced from:
      _main in ccO2Es4f.o
  "_ei_rpc", referenced from:
      _main in ccO2Es4f.o
  "_ei_x_free", referenced from:
      _main in ccO2Es4f.o
  "_ei_encode_string", referenced from:
      _main in ccO2Es4f.o
  "_ei_encode_binary", referenced from:
      _main in ccO2Es4f.o
  "_ei_encode_atom", referenced from:
      _main in ccO2Es4f.o
  "_ei_print_term", referenced from:
      _main in ccO2Es4f.o
  "_ei_x_new", referenced from:
      _main in ccO2Es4f.o
  "_ei_x_format_wo_ver", referenced from:
      _main in ccO2Es4f.o
  "_ei_gethostbyname_r", referenced from:
      _get_addr in cc6g0Be0.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make[4]: *** [/Users/mosko/Downloads/otp_src_R14B03/lib/erl_interface/bin/i386-apple-dar win11.0.0/erl_call]
Error 1
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

--------------------------------------------------------------------------- ---------------------------------------

Any ideas on this one? I should add, Lion was an upgrade (from Snow
Leopard), not a new install.

Thanks!

Sean
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Smith  
View profile  
 More options Jul 22 2011, 10:06 pm
From: Dave Smith <diz...@dizzyd.com>
Date: Fri, 22 Jul 2011 20:06:26 -0600
Local: Fri, Jul 22 2011 10:06 pm
Subject: Re: [erlang-questions] compiling problems under OS X Lion
Try re-doing configure with --enable-darwin-64bit; note that you may
need to wipe out the otp_src directory to get a clean build.

D.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Moss-Pultz  
View profile  
 More options Jul 22 2011, 11:44 pm
From: Sean Moss-Pultz <s...@openmoko.com>
Date: Sat, 23 Jul 2011 11:44:08 +0800
Local: Fri, Jul 22 2011 11:44 pm
Subject: Re: [erlang-questions] compiling problems under OS X Lion

On Sat, Jul 23, 2011 at 10:06 AM, Dave Smith <diz...@dizzyd.com> wrote:
> Try re-doing configure with --enable-darwin-64bit; note that you may
> need to wipe out the otp_src directory to get a clean build.

Thanks a lot Dave. That solved the problem!

Sean
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Bosco  
View profile  
 More options Jul 24 2011, 4:30 pm
From: Jason Bosco <jason.bo...@gmail.com>
Date: Sun, 24 Jul 2011 13:30:18 -0700
Local: Sun, Jul 24 2011 4:30 pm
Subject: Re: [erlang-questions] compiling problems under OS X Lion

This didn't work for me. I tried CFLAGS=-O0 ./configure --enable-darwin-64bit and then make but it stopped with this error:
ld: warning: ignoring file /Users/abcd/Downloads/otp_src_R14B03/erts/emulator/zlib/obj/i386-apple-darw in11.0.0/opt/libz.a, file was built for archive which is not the architecture being linked (x86_64) ld: warning: ignoring file /Users/abcd/Downloads/otp_src_R14B03/erts/emulator/pcre/obj/i386-apple-darw in11.0.0/opt/libepcre.a, file was built for archive which is not the architecture being linked (x86_64) Undefined symbols for architecture x86_64:...

Any ideas?

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Moss-Pultz  
View profile  
 More options Jul 24 2011, 8:54 pm
From: Sean Moss-Pultz <s...@openmoko.com>
Date: Mon, 25 Jul 2011 08:54:58 +0800
Local: Sun, Jul 24 2011 8:54 pm
Subject: Re: [erlang-questions] compiling problems under OS X Lion

On Mon, Jul 25, 2011 at 4:30 AM, Jason Bosco <jason.bo...@gmail.com> wrote:

> This didn't work for me. I tried CFLAGS=-O0 ./configure --enable-darwin-64bit and then make but it stopped with this error:

> ld: warning: ignoring file /Users/abcd/Downloads/otp_src_R14B03/erts/emulator/zlib/obj/i386-apple-darw in11.0.0/opt/libz.a, file was built for archive which is not the architecture being linked (x86_64) ld: warning: ignoring file /Users/abcd/Downloads/otp_src_R14B03/erts/emulator/pcre/obj/i386-apple-darw in11.0.0/opt/libepcre.a, file was built for archive which is not the architecture being linked (x86_64) Undefined symbols for architecture x86_64:...

> Any ideas?

Jason

I don't know but I was able to build by using Xcode (4.1) and that
command on Lion. Actually I wanted SSL so I added --with-ssl. Did you
try building before you added those flags? You might need to clean out
the source directory first.

Sean
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Bosco  
View profile  
 More options Jul 24 2011, 11:32 pm
From: Jason Bosco <jason.bo...@gmail.com>
Date: Sun, 24 Jul 2011 20:32:08 -0700
Local: Sun, Jul 24 2011 11:32 pm
Subject: Re: [erlang-questions] compiling problems under OS X Lion

Sean,

I did a "make clean" before running CFLAGS=-O0 ./configure
--enable-darwin-64bit once again. That should "clean out the source
directory" right?

Jason.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Luna  
View profile  
 More options Jul 25 2011, 12:36 am
From: Daniel Luna <dan...@lunas.se>
Date: Mon, 25 Jul 2011 04:36:46 +0000
Local: Mon, Jul 25 2011 12:36 am
Subject: Re: [erlang-questions] compiling problems under OS X Lion

It should.

However, it doesn't. Has been broken for years.

The makefiles for Erlang/OTP are not particularly good. Hasn't bothered me
enough to fix though since you normally only build once.

Cheers,

Daniel
On 24 Jul 2011 23:32, "Jason Bosco" <jason.bo...@gmail.com> wrote:

/Users/abcd/Downloads/otp_src_R14B03/erts/emulator/zlib/obj/i386-apple-darw in11.0.0/opt/libz.a,
>> file was built for archive which is not the architecture being linked
>> (x86_64) ld: warning: ignoring file

/Users/abcd/Downloads/otp_src_R14B03/erts/emulator/pcre/obj/i386-apple-darw in11.0.0/opt/libepcre.a,

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Bosco  
View profile  
 More options Jul 25 2011, 1:08 am
From: Jason Bosco <jason.bo...@gmail.com>
Date: Sun, 24 Jul 2011 22:08:50 -0700
Local: Mon, Jul 25 2011 1:08 am
Subject: Re: [erlang-questions] compiling problems under OS X Lion

Daniel,

I ran 'CFLAGS=-O0 ./configure --enable-darwin-64bit' and then 'make' on a
fresh copy of the source and it compiled fine. Thanks!

Regards,
Jason.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »