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

Build fails on Ubuntu 11.10 #578

Closed
hsmyers opened this issue Mar 14, 2012 · 21 comments
Closed

Build fails on Ubuntu 11.10 #578

hsmyers opened this issue Mar 14, 2012 · 21 comments
Labels
building Build system, or building Julia or its dependencies

Comments

@hsmyers
Copy link

hsmyers commented Mar 14, 2012

Fails during what I presume is the 'testing' phase:

           CALL STEST1(DASUM(N,SX,INCX),STEMP,STEMP,SFAC)           
                                        1

Warning: Rank mismatch in argument 'strue1' at (1) (scalar and rank-1)
Illegal instruction
make[4]: *** [level1] Error 132
make[3]: *** [tests] Error 2
make[2]: *** [openblas-v0.1alpha2.5/libopenblas.a] Error 2
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2

This does not seem related to the library issue cautioned against as I already had the most current version of that installed.

--hsm

@mvanderkolff
Copy link

By using a different Make.inc, you can work around this - I had it using most of the system libraries, apart from LLVM (since 3.0 isn't packaged for 11.10), as well as ARPACK, which seems to conflict with libopal-dev, which I need on my system. These shouldn't really conflict, and I'll try to find out why, but the point is you can just edit your Make.inc to get it to build.

Michael (who built Julia on his 11.10 laptop) :)

@hsmyers
Copy link
Author

hsmyers commented Mar 14, 2012

Thanks for the reply. That said, I'm not certain what you
mean---remove the reference to libopal-dev and substitute what for it?
Or just remove it?

--hsm

On Tue, Mar 13, 2012 at 6:20 PM, Michael van der Kolff
reply@reply.github.com
wrote:

By using a different Make.inc, you can work around this - I had it using most of the system libraries, apart from LLVM (since 3.0 isn't packaged for 11.10), as well as ARPACK, which seems to conflict with libopal-dev, which I need on my system.  These shouldn't really conflict, and I'll try to find out why, but the point is you can just edit your Make.inc to get it to build.

Michael (who built Julia on his 11.10 laptop) :)


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

@hsmyers
Copy link
Author

hsmyers commented Mar 14, 2012

I just noticed that you could have meant removing the reference to
ARPACK. Is that what you meant?

--hsm

On Tue, Mar 13, 2012 at 7:11 PM, Hugh Myers hsmyers@gmail.com wrote:

Thanks for the reply. That said, I'm not certain what you
mean---remove the reference to libopal-dev and substitute what for it?
Or just remove it?

--hsm

On Tue, Mar 13, 2012 at 6:20 PM, Michael van der Kolff
reply@reply.github.com
wrote:

By using a different Make.inc, you can work around this - I had it using most of the system libraries, apart from LLVM (since 3.0 isn't packaged for 11.10), as well as ARPACK, which seems to conflict with libopal-dev, which I need on my system.  These shouldn't really conflict, and I'll try to find out why, but the point is you can just edit your Make.inc to get it to build.

Michael (who built Julia on his 11.10 laptop) :)


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

@Keno
Copy link
Member

Keno commented Mar 14, 2012

I think what he meant was

@hsmyers
Copy link
Author

hsmyers commented Mar 14, 2012

OK, that is certainly do-able, I'll give it a shot...

--hsm

On Tue, Mar 13, 2012 at 7:32 PM, Keno Fischer
reply@reply.github.com
wrote:

I think what he meant was

make USE_SYSTEM_LLVM=0 USE_DEBIAN=1

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

@hsmyers
Copy link
Author

hsmyers commented Mar 14, 2012

This may be a double post (I don't grok the lack of a 'post' button on git hub)

This fails with:

hsmyers@ubuntu:/julia$ make USE_SYSTEM_LLVM=0 USE_DEBIAN=1
SuiteSparse_wrapper.c:2:21: fatal error: cholmod.h: No such file or directory
compilation terminated.
make[2]: *** [/home/hsmyers/julia/external/root/lib/libsuitesparse_wrapper.so]
Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
hsmyers@ubuntu:
/julia$

--hsm

On Tue, Mar 13, 2012 at 7:40 PM, Hugh Myers hsmyers@gmail.com wrote:

OK, that is certainly do-able, I'll give it a shot...

--hsm

On Tue, Mar 13, 2012 at 7:32 PM, Keno Fischer
reply@reply.github.com
wrote:

I think what he meant was

make USE_SYSTEM_LLVM=0 USE_DEBIAN=1

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

@Keno
Copy link
Member

Keno commented Mar 14, 2012

you could either install the suitesparse-dev package (or something like that - I don't remember what it's called again) or just add USE_SYSTEM_SUITESPARSE=0 to your make command

@hsmyers
Copy link
Author

hsmyers commented Mar 14, 2012

make USE_SYSTEM_LLVM=0 USE_DEBIAN=1 USE_SYSTEM_SUITESPARSE=0
SuiteSparse_wrapper.c:2:21: fatal error: cholmod.h: No such file or directory
compilation terminated.
make[2]: *** [/home/hsmyers/julia/external/root/lib/libsuitesparse_wrapper.so]
Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
hsmyers@ubuntu:~/julia$

--hsm

OK, it's not like I've got anything else to do :)

--hsm

On Tue, Mar 13, 2012 at 8:16 PM, Keno Fischer
reply@reply.github.com
wrote:

you could either install the suitesparse-dev package (or something like that - I don't remember what it's called again) or just add USE_SYSTEM_SUITESPARSE=0 to your make command


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

@hsmyers
Copy link
Author

hsmyers commented Mar 14, 2012

chopped off to possibly pertinent lines:

/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas

--hsm

On Tue, Mar 13, 2012 at 8:44 PM, Hugh Myers hsmyers@gmail.com wrote:

make USE_SYSTEM_LLVM=0 USE_DEBIAN=1 USE_SYSTEM_SUITESPARSE=0
SuiteSparse_wrapper.c:2:21: fatal error: cholmod.h: No such file or directory
compilation terminated.
make[2]: *** [/home/hsmyers/julia/external/root/lib/libsuitesparse_wrapper.so]
Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
hsmyers@ubuntu:~/julia$

--hsm

OK, it's not like I've got anything else to do :)

--hsm

On Tue, Mar 13, 2012 at 8:16 PM, Keno Fischer
reply@reply.github.com
wrote:

you could either install the suitesparse-dev package (or something like that - I don't remember what it's called again) or just add USE_SYSTEM_SUITESPARSE=0 to your make command


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

@mvanderkolff
Copy link

You need to have the appropriate -dev packages installed. Are they?
If not, try sudo apt-get install liblapack-dev libblas-dev
libunwind7-dev libreadline-dev libpcre3-dev libfftw3-dev libgmp-dev
libsuitesparse-dev

I used the ARPACK that Julia downloads (so USE_SYSTEM_ARPACK=0), since
libarpack2-dev conflicts with libopal-dev. This may not be a problem
for you, though... If you're happy with that, install libarpack2-dev
as well

Cheers,

Michael

On Wed, Mar 14, 2012 at 1:50 PM, hsmyers
reply@reply.github.com
wrote:

chopped off to possibly pertinent lines:

/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas

--hsm

On Tue, Mar 13, 2012 at 8:44 PM, Hugh Myers hsmyers@gmail.com wrote:

make USE_SYSTEM_LLVM=0 USE_DEBIAN=1 USE_SYSTEM_SUITESPARSE=0
SuiteSparse_wrapper.c:2:21: fatal error: cholmod.h: No such file or directory
compilation terminated.
make[2]: *** [/home/hsmyers/julia/external/root/lib/libsuitesparse_wrapper.so]
Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
hsmyers@ubuntu:~/julia$

--hsm

OK, it's not like I've got anything else to do :)

--hsm

On Tue, Mar 13, 2012 at 8:16 PM, Keno Fischer
reply@reply.github.com
wrote:

you could either install the suitesparse-dev package (or something like that - I don't remember what it's called again) or just add USE_SYSTEM_SUITESPARSE=0 to your make command


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


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

@hsmyers
Copy link
Author

hsmyers commented Mar 14, 2012

No luck. After much app-getting, followed by a great deal of grinding, only to
get:

JULIA sys0.ji

libsuitesparse.so: cannot open shared object file: No such file or directory

make[1]: *** [sys0.ji] Error 1
make: *** [release] Error 2
hsmyers@ubuntu:/julia$ locate libsuitesparse.so
/usr/share/julia/lib/libsuitesparse.so
hsmyers@ubuntu:
/julia$

---hsm

On Tue, Mar 13, 2012 at 10:12 PM, Michael van der Kolff
reply@reply.github.com
wrote:

You need to have the appropriate -dev packages installed.  Are they?
If not, try sudo apt-get install liblapack-dev libblas-dev
libunwind7-dev libreadline-dev libpcre3-dev libfftw3-dev libgmp-dev
libsuitesparse-dev

I used the ARPACK that Julia downloads (so USE_SYSTEM_ARPACK=0), since
libarpack2-dev conflicts with libopal-dev.  This may not be a problem
for you, though... If you're happy with that, install libarpack2-dev
as well

Cheers,

Michael

On Wed, Mar 14, 2012 at 1:50 PM, hsmyers
reply@reply.github.com
wrote:

chopped off to possibly pertinent lines:

/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas

--hsm

On Tue, Mar 13, 2012 at 8:44 PM, Hugh Myers hsmyers@gmail.com wrote:

make USE_SYSTEM_LLVM=0 USE_DEBIAN=1 USE_SYSTEM_SUITESPARSE=0
SuiteSparse_wrapper.c:2:21: fatal error: cholmod.h: No such file or directory
compilation terminated.
make[2]: *** [/home/hsmyers/julia/external/root/lib/libsuitesparse_wrapper.so]
Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
hsmyers@ubuntu:~/julia$

--hsm

OK, it's not like I've got anything else to do :)

--hsm

On Tue, Mar 13, 2012 at 8:16 PM, Keno Fischer
reply@reply.github.com
wrote:

you could either install the suitesparse-dev package (or something like that - I don't remember what it's called again) or just add USE_SYSTEM_SUITESPARSE=0 to your make command


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


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


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

@hsmyers
Copy link
Author

hsmyers commented Mar 14, 2012

Possibly relevant; after the apt-get for libsuitesparse-dev it concludes with:

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
/sbin/ldconfig.real: /usr/local/lib/libstdc++.so.6.0.16-gdb.py is not
an ELF file - it has the wrong magic bytes at the start.

with the (to me) possible sugestion that the libsuitesparse.so is not
in the correct location?

--hsm

On Wed, Mar 14, 2012 at 4:34 AM, Hugh Myers hsmyers@gmail.com wrote:

No luck. After much app-getting, followed by a great deal of grinding, only to
get:

   JULIA sys0.ji
libsuitesparse.so: cannot open shared object file: No such file or directory

make[1]: *** [sys0.ji] Error 1
make: *** [release] Error 2
hsmyers@ubuntu:/julia$ locate libsuitesparse.so
/usr/share/julia/lib/libsuitesparse.so
hsmyers@ubuntu:
/julia$

---hsm

On Tue, Mar 13, 2012 at 10:12 PM, Michael van der Kolff
reply@reply.github.com
wrote:

You need to have the appropriate -dev packages installed.  Are they?
If not, try sudo apt-get install liblapack-dev libblas-dev
libunwind7-dev libreadline-dev libpcre3-dev libfftw3-dev libgmp-dev
libsuitesparse-dev

I used the ARPACK that Julia downloads (so USE_SYSTEM_ARPACK=0), since
libarpack2-dev conflicts with libopal-dev.  This may not be a problem
for you, though... If you're happy with that, install libarpack2-dev
as well

Cheers,

Michael

On Wed, Mar 14, 2012 at 1:50 PM, hsmyers
reply@reply.github.com
wrote:

chopped off to possibly pertinent lines:

/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas

--hsm

On Tue, Mar 13, 2012 at 8:44 PM, Hugh Myers hsmyers@gmail.com wrote:

make USE_SYSTEM_LLVM=0 USE_DEBIAN=1 USE_SYSTEM_SUITESPARSE=0
SuiteSparse_wrapper.c:2:21: fatal error: cholmod.h: No such file or directory
compilation terminated.
make[2]: *** [/home/hsmyers/julia/external/root/lib/libsuitesparse_wrapper.so]
Error 1
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
hsmyers@ubuntu:~/julia$

--hsm

OK, it's not like I've got anything else to do :)

--hsm

On Tue, Mar 13, 2012 at 8:16 PM, Keno Fischer
reply@reply.github.com
wrote:

you could either install the suitesparse-dev package (or something like that - I don't remember what it's called again) or just add USE_SYSTEM_SUITESPARSE=0 to your make command


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


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


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

@ViralBShah
Copy link
Member

I am working on a set of fixes for the library stuff that ought to fix this.

@hsmyers
Copy link
Author

hsmyers commented Mar 15, 2012

Great! I'll try them out as soon as you give the go ahead. I ask that
you couch the instructions for the 'complete idiot' as I've always had
the ability to miss-understand what may seem obvious to others :)

--hsm

On Wed, Mar 14, 2012 at 10:09 PM, Viral B. Shah
reply@reply.github.com
wrote:

I am working on a set of fixes for the library stuff that ought to fix this.


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

@ViralBShah
Copy link
Member

This is really a dependency on #353. Hence will get addressed when #353 is fixed.

@hsmyers
Copy link
Author

hsmyers commented Mar 19, 2012

Well since you closed the issue, I won't hear about it and will
therefore assume that Julia will never be compatible with my
situation. Certainly one way to 'fix' something...

--hsm

On Sun, Mar 18, 2012 at 9:57 PM, Viral B. Shah
reply@reply.github.com
wrote:

This is really a dependency on #353. Hence will get addressed when #353 is fixed.


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

@mvanderkolff
Copy link

What he's really saying is that he's deduplicating issues. Github's issue tracker isn't nearly as flexible as many others - I'm sure that will improve over time... Anyway, in the mean time, just subscribe to #353. It's much simpler than grumping about the way he manages what is fundamentally a tool for managing his work load...

@Keno
Copy link
Member

Keno commented Mar 19, 2012

@hsmyers you can click on enable notifications on the other issue, so you will be notified once that's done

@ViralBShah
Copy link
Member

@hsmyers Do turn on the notification as mentioned. Also, it is a bit troubling that your openblas build is failing. What CPU are you using? The openblas build issue is something that should be filed with the openblas git project.

When I do fix #353, we will have a more general solution, but coming to think of it, you may not need to wait. In the meanwhile, can you install blas and lapack using apt-get (along with the dev packages) and then build julia with make USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1?This works for me on Ubuntu 11.10 (32-bit).

@ViralBShah
Copy link
Member

Also, if libsuitesparse is giving you trouble, can you comment out the libsuitesparse lines in sysimg.jl and start_image.jl and try? Is it fair to assume your BLAS problem is solved and you are only stuck at libsuitesparse? In order to fix the libsuitesparse issue, I have to fix #353.

@hsmyers
Copy link
Author

hsmyers commented Mar 19, 2012

Will at some point try all of the above. As I remember it, there were
no problems installing blas and lapack although I don't remember is I
was being sure to add the -dev to both. Will re apt-get and try
accordingly. Likewise I'll subscribe to issue #353. And I will try
commenting out libsuitesparese and try that as well.

--hsm

On Sun, Mar 18, 2012 at 10:30 PM, Viral B. Shah
reply@reply.github.com
wrote:

Also, if libsuitesparse is giving you trouble, can you comment out the libsuitesparse lines in sysimg.jl and start_image.jl and try?


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

Keno pushed a commit that referenced this issue Oct 9, 2023
Bumps [actions/cache](https://github.com/actions/cache) from 1 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v1...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
ViralBShah pushed a commit that referenced this issue Nov 12, 2024
Stdlib: SparseArrays
URL: https://github.com/JuliaSparse/SparseArrays.jl.git
Stdlib branch: main
Julia branch: master
Old commit: 0dd8d45
New commit: 14333ea
Julia version: 1.12.0-DEV
SparseArrays version: 1.12.0
Bump invoked by: @ViralBShah
Powered by:
[BumpStdlibs.jl](https://github.com/JuliaLang/BumpStdlibs.jl)

Diff:
JuliaSparse/SparseArrays.jl@0dd8d45...14333ea

```
$ git log --oneline 0dd8d45..14333ea
14333ea Break recursion (#579)
07cf4a6 Update ci.yml (#578)
33491e0 added diagonal-sparse multiplication (#564)
8f02b7f doc: move solvers doc to `src\solvers.md` (#576)
485fd4b Inline sparse-times-dense in-place multiplication (#567)
f10d4da added specialized method for 3-argument dot with diagonal matrix (#565)
70c06b1 Diagonal-sandwiched triple product for SparseMatrixCSC (#562)
313a04f Change default QR tolerance to match SPQR (#557)
81d49e9 Update ci.yml (#558)
```

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

No branches or pull requests

4 participants