Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia doesn't build on mac os lion 64 bit #442

Closed
fisheatfish opened this issue Feb 22, 2012 · 8 comments
Closed

Julia doesn't build on mac os lion 64 bit #442

fisheatfish opened this issue Feb 22, 2012 · 8 comments
Labels
domain:building Build system, or building Julia or its dependencies

Comments

@fisheatfish
Copy link

memory.c:817: warning: ‘gotoblas_memory_init’ declared ‘static’ but never defined
: warning: missing whitespace after the macro name
: warning: missing whitespace after the macro name
: warning: missing whitespace after the macro name
: warning: missing whitespace after the macro name
setparam_DUNNINGTON.c: In function ‘init_parameter’:
setparam_DUNNINGTON.c:626: warning: unused variable ‘l2’
: warning: missing whitespace after the macro name
setparam_NEHALEM.c: In function ‘init_parameter’:
setparam_NEHALEM.c:626: warning: unused variable ‘l2’
: warning: missing whitespace after the macro name
: warning: missing whitespace after the macro name
: warning: missing whitespace after the macro name
setparam_BARCELONA.c: In function ‘init_parameter’:
setparam_BARCELONA.c:626: warning: unused variable ‘l2’
: warning: missing whitespace after the macro name
setparam_ATOM.c: In function ‘init_parameter’:
setparam_ATOM.c:626: warning: unused variable ‘l2’
: warning: missing whitespace after the macro name
setparam_NANO.c: In function ‘init_parameter’:
setparam_NANO.c:626: warning: unused variable ‘l2’
ld: warning: ignoring file ../libopenblas-r0.1alpha2.5.a, file was built for archive which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
"srotg", referenced from:
check0 in sblat1.o
"snrm2", referenced from:
check1 in sblat1.o
"sscal", referenced from:
check1 in sblat1.o
"sasum", referenced from:
check1 in sblat1.o
"sswap", referenced from:
check2 in sblat1.o
"sdot", referenced from:
check2 in sblat1.o
"srot", referenced from:
check3 in sblat1.o
"isamax", referenced from:
check1 in sblat1.o
"saxpy", referenced from:
check2 in sblat1.o
"scopy", referenced from:
check2 in sblat1.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
make[3]: *** [sblat1] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [tests] Error 2
make[1]: *** [openblas-v0.1alpha2.5/libopenblas.a] Error 2
make: *** [julia-release] Error 2

@jameskyle
Copy link

Same here,

Info:

OS: 10.7
GCC: 4.7
Xcode: 4.1

@ViralBShah
Copy link
Member

Can you try the gcc that ships with OS X? Need to file this issue with openblas. I'll also make it possible to use the BLAS and LAPACK from vecLib so that these issues can be avoided on OS X.

@fisheatfish
Copy link
Author

Here OpenMathLib/OpenBLAS#78 (comment) may be we will find a solution

@fisheatfish
Copy link
Author

I'm always getting this error

ld: warning: ignoring file ../lapack-3.4.0/liblapack.a, file was built for archive which is not the architecture being linked (x86_64)

@ViralBShah
Copy link
Member

It seems that this may be happening because you are not using a 64-bit gfortran.

On Fri, Feb 24, 2012 at 12:14 AM, Karim Sayadi
[email protected]
wrote:

I'm always getting this error

ld: warning: ignoring file ../lapack-3.4.0/liblapack.a, file was built for archive which is not the architecture being linked (x86_64)


Reply to this email directly or view it on GitHub:
#442 (comment)

-viral

@fisheatfish
Copy link
Author

no i have a 64-bit gfortran.

@WimK
Copy link

WimK commented Mar 3, 2012

I initially had some problems too compiling under OS X lion. I changed two things -

  1. I downloaded the another version of gfortran for the GNU website (as in the Readme). A 64bit version I already had installed gave problems
  2. I changed Make.inc to say: TARGET_OPENBLAS_ARCH= $(shell uname -m)

@ViralBShah
Copy link
Member

I have now added the ability to USE_SYSTEM_BLAS and USE_SYSTEM_LAPACK. You could bypass building BLAS and LAPACK now on OS X by doing

make USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1

StefanKarpinski pushed a commit that referenced this issue Feb 8, 2018
LilithHafner pushed a commit to LilithHafner/julia that referenced this issue Oct 11, 2021
…#442)

* Make scattermat use keyword arguments (to also match docstring).

Rename vardim to dims in scattermat to match naming convention of Statistics

* Make weighted mean use keyword argument for dims

* Move deprecations to deprecated.jl

* Restrict dims to Union{Nothing,Int} in weighted mean functions

* Fix alignment
Keno pushed a commit that referenced this issue Oct 9, 2023
`evaluate_call_recurse!` calls `maybe_evaluate_builtin`, and if
that doesn't return a `Some{Any}`, it uses the output as the
new `call_expr`. The next thing it does is look up the args.
Consequently, to avoid double-lookup, our expansion of `invoke` should
return the non-looked-up arguments.

Fixes #441
Closes #440
Keno pushed a commit that referenced this issue Oct 9, 2023
* Re-impose "no double lookup" for invoke

This was added in #442 and inadvertently removed in #532.
However, the test in #442 was not stringent enough; the test added here
comes from #535.

Fixes #535
Fixes timholy/Revise.jl#695
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:building Build system, or building Julia or its dependencies
Projects
None yet
Development

No branches or pull requests

4 participants