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 failure with -DFORCE_OWN_FLTK=ON #11

Closed
bforsbe opened this issue Jun 22, 2016 · 14 comments
Closed

Build failure with -DFORCE_OWN_FLTK=ON #11

bforsbe opened this issue Jun 22, 2016 · 14 comments

Comments

@bforsbe
Copy link
Contributor

bforsbe commented Jun 22, 2016

Originally reported by: Jon Diprose (Bitbucket: well-jon, GitHub: Unknown)


Scanning dependencies of target FLTK
[ 1%] Creating directories for 'FLTK'
[ 2%] Performing download step (download, verify and extract) for 'FLTK'
-- downloading...
src='https://drive.google.com/uc?export=download&id=0B942d76zVnSeazZWcExRaXIyVDg'
dst='/apps/well/relion/2.0b-20160622-gcc4.9.3/external/fltk/fltk-1.3.3-source.tar.gz'
timeout='none'
CMake Error at /apps/well/relion/2.0b-20160622-gcc4.9.3/build/FLTK-prefix/src/FLTK-stamp/download-FLTK.cmake:9 (file):
file DOWNLOAD HASH mismatch

for file: [/apps/well/relion/2.0b-20160622-gcc4.9.3/external/fltk/fltk-1.3.3-source.tar.gz]
  expected hash: [9ccdb0d19dc104b87179bd9fd10822e3]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]

make[2]: *** [FLTK-prefix/src/FLTK-stamp/FLTK-download] Error 1
make[1]: *** [CMakeFiles/FLTK.dir/all] Error 2
make: *** [all] Error 2


@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


Log in a file as the formatting has eaten the original paste.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


wget-ing from the command line retrieves a file with the right checksum - I'll try again...

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


It's zero-length when retrieved via make

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


I don't think it is following the redirect.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


Manually downloading to the expected location allows the build to proceed:

[build]$  wget -O /apps/well/relion/2.0b-20160622-gcc4.9.3/external/fltk/fltk-1.3.3-source.tar.gz "https://drive.google.com/uc?export=download&id=0B942d76zVnSeazZWcExRaXIyVDg"
--2016-06-22 11:52:04--  https://drive.google.com/uc?export=download&id=0B942d76zVnSeazZWcExRaXIyVDg
Resolving drive.google.com... 216.58.213.78, 2a00:1450:4009:80e::200e
Connecting to drive.google.com|216.58.213.78|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://doc-0s-5g-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/l9l3sm35dr69nvml30vjcvvr6sb8j12d/1466589600000/10880455538747250321/*/0B942d76zVnSeazZWcExRaXIyVDg?e=download [following]
Warning: wildcards not supported in HTTP.
--2016-06-22 11:52:11--  https://doc-0s-5g-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/l9l3sm35dr69nvml30vjcvvr6sb8j12d/1466589600000/10880455538747250321/*/0B942d76zVnSeazZWcExRaXIyVDg?e=download
Resolving doc-0s-5g-docs.googleusercontent.com... 216.58.213.65, 2a00:1450:4009:80e::2001
Connecting to doc-0s-5g-docs.googleusercontent.com|216.58.213.65|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: `/apps/well/relion/2.0b-20160622-gcc4.9.3/external/fltk/fltk-1.3.3-source.tar.gz'

    [               <=>                     ] 4,986,376    109K/s   in 45s

2016-06-22 11:52:56 (109 KB/s) - `/apps/well/relion/2.0b-20160622-gcc4.9.3/external/fltk/fltk-1.3.3-source.tar.gz' saved [4986376]

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


Grrr. Attached as a file again.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


The make prior to the maual download failed fast - too fast to be actually trying to download the real file. Either it's not following the redirect or it doesn't like the surprising '*' in one of the returned urls along the redirection chain.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Bjoern Forsberg (Bitbucket: bforsbe, GitHub: bforsbe):


I think this is caused by the same thing as issue #2 (see my last comment in that issue), that is your cmake version does not have SSL-support. I'm looking for a way to require this during configuration, i.e. stating to the user that SSL is needed, or another way of downloading the source build-time. I think it's fair to say the user should not have to encounter the terse output you see here, which isn't really notifying you of the real issue.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


This is indeed a duplicate of #2. I can make it go away by:

mkdir -p ../external/fltk
wget -O ../external/fltk/fltk-1.3.3-source.tar.gz "https://drive.google.com/uc?export=download&id=0B942d76zVnSeazZWcExRaXIyVDg"

after the call to cmake and before the call to make.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 22, 2016

Original comment by Bjoern Forsberg (Bitbucket: bforsbe, GitHub: bforsbe):


Great, I will resolve this issue once we figure out the permanent solution.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 23, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


Any reason not to use the one hosted by fltk's site?

http://fltk.org/pub/fltk/1.3.3/fltk-1.3.3-source.tar.gz

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 23, 2016

Original comment by Bjoern Forsberg (Bitbucket: bforsbe, GitHub: bforsbe):


When we implemented this on-the-fly download and install, I kept getting different checksums and subsequent hash-mismatches. As soon as I got hold of one with the correct checksum I opted to have that in a more reliable location, but in principle there's no reason not to use the fltk-site version.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 23, 2016

Original comment by Jon Diprose (Bitbucket: well-jon, GitHub: Unknown):


My cuda build box can't see the external network so I'm having to work round it anyway! Downloading separately and copying into place does the trick for both fftw and fltk.

@bforsbe
Copy link
Contributor Author

bforsbe commented Jun 27, 2016

Original comment by Dari Kimanius (Bitbucket: dkimanius, GitHub: dkimanius):


Duplicate of #2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant