> 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:
On Fri, Jul 22, 2011 at 7:03 PM, Sean Moss-Pultz <s...@openmoko.com> wrote: >> 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:
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.
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:...
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.
On Sun, Jul 24, 2011 at 5:54 PM, Sean Moss-Pultz <s...@openmoko.com> wrote: > 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.
>> 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.
On Sun, Jul 24, 2011 at 9:36 PM, Daniel Luna <dan...@lunas.se> wrote: > 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: > > 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.
> > On Sun, Jul 24, 2011 at 5:54 PM, Sean Moss-Pultz <s...@openmoko.com> > wrote:
> >> 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.