[julia-users] trouble building julia on mac

2014-08-13 Thread Adam Kapor
 

I just tried building the latest master on my mac; I get the following 
error.  Any ideas on what to do -- I'm pretty new to this.  Googling tells 
me that this is an issue with clang in Xcode 5.1 but what can I do to fix 
this?

Thanks,

Adam


adams-air:julia adamkapor$ make

Making install in support

Making install in kernel

libtool: compile:  clang -stdlib=libc++ -mmacosx-version-min=10.7 
-DHAVE_CONFIG_H -I. -I.. -I../simd -O3 -fomit-frame-pointer -mtune=native 
-malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math -MT 
align.lo -MD -MP -MF .deps/align.Tpo -c align.c  -fno-common -DPIC -o 
.libs/align.o

clang: error: unknown argument: '-malign-double' 
[-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) 
in the future

make[5]: *** [align.lo] Error 1

make[4]: *** [install-recursive] Error 1

make[3]: *** [/Applications/julia/usr/lib/libfftw3f.dylib] Error 2

make[2]: *** [install-fftw] Error 2

make[1]: *** [julia-release] Error 2

make: *** [release] Error 2


Re: [julia-users] trouble building julia on mac

2014-08-13 Thread Elliot Saba
Hey there.  I'm on OSX 10.9.4, with Xcode 5.1.1 (5B1008) and clang version
503.0.40.

When I compile julia's fftw on my computer, I don't get `-malign-double`
passed to clang ever. Do you have CFLAGS set in your environment?  Maybe
set in your Make.user file in Julia's root directory?


Re: [julia-users] trouble building julia on mac

2014-08-13 Thread Jeff Waller
Likewise no problems compiling using an older version of clang (Xcode 
5.0.2), but I do see that flag

bizarro% clang --version

Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

Target: x86_64-apple-darwin13.3.0

Thread model: posix

It looks like it's in there.  There is a test to check (see below) but the 
compiler doesn't fail, it just warns so the test is perhaps concluding that 
yep, supported which is technically true.

bizarro% find . -type f -exec grep malign-double {} /dev/null \;

...

./deps/fftw-3.3.3-double/config.log:clang: warning: argument unused during 
compilation: '-malign-double'

./deps/fftw-3.3.3-double/config.log:configure:14242: clang -stdlib=libc++ 
-mmacosx-version-min=10.7 -m64 -c -O3 -fomit-frame-pointer -mtune=native 
-malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math 


...


./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C compiler 
accepts -malign-double...  6; }

./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

./deps/fftw-3.3.3-single/configure: # -malign-double for x86 systems

./deps/fftw-3.3.3-single/configure:  { $as_echo 
$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts 
-malign-double 5

./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C compiler 
accepts -malign-double...  6; }

./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

./deps/fftw-3.3.3-single/configure: { $as_echo 
$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts 
-malign-double 5

./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C compiler 
accepts -malign-double...  6; }

./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

...

Binary file ./usr/lib/libfftw3.3.dylib matches

Binary file ./usr/lib/libfftw3.a matches

Binary file ./usr/lib/libfftw3f.3.dylib matches

Binary file ./usr/lib/libfftw3f.a matches


Re: [julia-users] trouble building julia on mac

2014-08-13 Thread Elliot Saba
Adam, is this julia codebase a fresh clone, or have you been building out
of this directory for a while?  If it's not 100% fresh, you might want to
try running `make -C deps distclean-fftw` and then trying again.  It's
possible that we fixed this issue a while back, and the cached configure
state of your fftw is behind a bit and needs to be reconfigured.
-E


On Wed, Aug 13, 2014 at 2:29 PM, Jeff Waller truth...@gmail.com wrote:

 Likewise no problems compiling using an older version of clang (Xcode
 5.0.2), but I do see that flag

 bizarro% clang --version

 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

 Target: x86_64-apple-darwin13.3.0

 Thread model: posix

 It looks like it's in there.  There is a test to check (see below) but the
 compiler doesn't fail, it just warns so the test is perhaps concluding that
 yep, supported which is technically true.

 bizarro% find . -type f -exec grep malign-double {} /dev/null \;

 ...

 ./deps/fftw-3.3.3-double/config.log:clang: warning: argument unused during
 compilation: '-malign-double'

 ./deps/fftw-3.3.3-double/config.log:configure:14242: clang -stdlib=libc++
 -mmacosx-version-min=10.7 -m64 -c -O3 -fomit-frame-pointer -mtune=native
 -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math


 ...


 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C compiler
 accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ./deps/fftw-3.3.3-single/configure: # -malign-double for x86 systems

 ./deps/fftw-3.3.3-single/configure:  { $as_echo
 $as_me:${as_lineno-$LINENO}: checking whether C compiler accepts
 -malign-double 5

 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C compiler
 accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ./deps/fftw-3.3.3-single/configure: { $as_echo
 $as_me:${as_lineno-$LINENO}: checking whether C compiler accepts
 -malign-double 5

 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C compiler
 accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ...

 Binary file ./usr/lib/libfftw3.3.dylib matches

 Binary file ./usr/lib/libfftw3.a matches

 Binary file ./usr/lib/libfftw3f.3.dylib matches

 Binary file ./usr/lib/libfftw3f.a matches



Re: [julia-users] trouble building julia on mac

2014-08-13 Thread Jameson Nash
Especially true if you just upgraded you OS / compiler, you should start
again with a fresh clone

On Wednesday, August 13, 2014, Elliot Saba staticfl...@gmail.com wrote:

 Adam, is this julia codebase a fresh clone, or have you been building out
 of this directory for a while?  If it's not 100% fresh, you might want to
 try running `make -C deps distclean-fftw` and then trying again.  It's
 possible that we fixed this issue a while back, and the cached configure
 state of your fftw is behind a bit and needs to be reconfigured.
 -E


 On Wed, Aug 13, 2014 at 2:29 PM, Jeff Waller truth...@gmail.com
 javascript:_e(%7B%7D,'cvml','truth...@gmail.com'); wrote:

 Likewise no problems compiling using an older version of clang (Xcode
 5.0.2), but I do see that flag

 bizarro% clang --version

 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

 Target: x86_64-apple-darwin13.3.0

 Thread model: posix

 It looks like it's in there.  There is a test to check (see below) but
 the compiler doesn't fail, it just warns so the test is perhaps concluding
 that yep, supported which is technically true.

 bizarro% find . -type f -exec grep malign-double {} /dev/null \;

 ...

 ./deps/fftw-3.3.3-double/config.log:clang: warning: argument unused
 during compilation: '-malign-double'

 ./deps/fftw-3.3.3-double/config.log:configure:14242: clang -stdlib=libc++
 -mmacosx-version-min=10.7 -m64 -c -O3 -fomit-frame-pointer -mtune=native
 -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math


 ...


 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C
 compiler accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ./deps/fftw-3.3.3-single/configure: # -malign-double for x86 systems

 ./deps/fftw-3.3.3-single/configure:  { $as_echo
 $as_me:${as_lineno-$LINENO}: checking whether C compiler accepts
 -malign-double 5

 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C
 compiler accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ./deps/fftw-3.3.3-single/configure: { $as_echo
 $as_me:${as_lineno-$LINENO}: checking whether C compiler accepts
 -malign-double 5

 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C
 compiler accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ...

 Binary file ./usr/lib/libfftw3.3.dylib matches

 Binary file ./usr/lib/libfftw3.a matches

 Binary file ./usr/lib/libfftw3f.3.dylib matches

 Binary file ./usr/lib/libfftw3f.a matches





Re: [julia-users] trouble building julia on mac

2014-08-13 Thread Adam Kapor
Thank you Elliot and Jameson.  I indeed recently upgraded Xcode and clang,
and `make -C deps distclean-fftw` did the trick.


On Wed, Aug 13, 2014 at 2:39 PM, Jameson Nash vtjn...@gmail.com wrote:

 Especially true if you just upgraded you OS / compiler, you should start
 again with a fresh clone


 On Wednesday, August 13, 2014, Elliot Saba staticfl...@gmail.com wrote:

 Adam, is this julia codebase a fresh clone, or have you been building out
 of this directory for a while?  If it's not 100% fresh, you might want to
 try running `make -C deps distclean-fftw` and then trying again.  It's
 possible that we fixed this issue a while back, and the cached configure
 state of your fftw is behind a bit and needs to be reconfigured.
 -E


 On Wed, Aug 13, 2014 at 2:29 PM, Jeff Waller truth...@gmail.com wrote:

 Likewise no problems compiling using an older version of clang (Xcode
 5.0.2), but I do see that flag

 bizarro% clang --version

 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)

 Target: x86_64-apple-darwin13.3.0

 Thread model: posix

 It looks like it's in there.  There is a test to check (see below) but
 the compiler doesn't fail, it just warns so the test is perhaps concluding
 that yep, supported which is technically true.

 bizarro% find . -type f -exec grep malign-double {} /dev/null \;

 ...

 ./deps/fftw-3.3.3-double/config.log:clang: warning: argument unused
 during compilation: '-malign-double'

 ./deps/fftw-3.3.3-double/config.log:configure:14242: clang
 -stdlib=libc++ -mmacosx-version-min=10.7 -m64 -c -O3 -fomit-frame-pointer
 -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns
 -ffast-math


 ...


 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C
 compiler accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ./deps/fftw-3.3.3-single/configure: # -malign-double for x86 systems

 ./deps/fftw-3.3.3-single/configure:  { $as_echo
 $as_me:${as_lineno-$LINENO}: checking whether C compiler accepts
 -malign-double 5

 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C
 compiler accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ./deps/fftw-3.3.3-single/configure: { $as_echo
 $as_me:${as_lineno-$LINENO}: checking whether C compiler accepts
 -malign-double 5

 ./deps/fftw-3.3.3-single/configure:$as_echo_n checking whether C
 compiler accepts -malign-double...  6; }

 ./deps/fftw-3.3.3-single/configure:  CFLAGS=-malign-double

 ./deps/fftw-3.3.3-single/configure: CFLAGS=$CFLAGS -malign-double

 ...

 Binary file ./usr/lib/libfftw3.3.dylib matches

 Binary file ./usr/lib/libfftw3.a matches

 Binary file ./usr/lib/libfftw3f.3.dylib matches

 Binary file ./usr/lib/libfftw3f.a matches





Re: [julia-users] trouble building julia on mac

2014-08-13 Thread Ivar Nesje
fftw does a ch