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

make download error #2

Closed
shayf opened this issue Feb 17, 2017 · 31 comments
Closed

make download error #2

shayf opened this issue Feb 17, 2017 · 31 comments

Comments

@shayf
Copy link

shayf commented Feb 17, 2017

HI, strange issue.
Just installed o fresh Chromebook (x86_64, Lenovo 100S), and while trying to install any package, i get the following :
Found make, version 4.2
Precompiled binary available, downloading...
--2017-02-17 09:39:36-- https://github.com/jam7/chromebrew/releases/download/binaries/make-4.2-chromeos-x86_64.tar.xz
Resolving github.com... 192.30.253.113, 192.30.253.112
Connecting to github.com|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-02-17 09:39:37 ERROR 404: Not Found.

Could it be the binary was removed ?

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

Thank you using it. I may forget to upload it. I'll upload it in few hours. If you don't wait, it is also possible to build it by yourself with "crew binstall make".

@shayf
Copy link
Author

shayf commented Feb 17, 2017

Thank you for response. Tried that already it still tried to download binary and failed there.

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

I've uploaded make-4.2 binaries for all architecture. Thank you for filing this issue. 👍

@shayf
Copy link
Author

shayf commented Feb 17, 2017

noticed. Thank you.
Now i have faced new issue :
pkgconfig-0.29.1-chromeos-x86_64.tar. 100%[======================================================================>] 538.56K 190KB/s in 2.8s

2017-02-17 11:20:21 (190 KB/s) - 'pkgconfig-0.29.1-chromeos-x86_64.tar.xz' saved [551488/551488]

Checksum mismatch :/ try again

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

I've uploaded pkgconfig. I am also now uploading all binaries I might forget to upload.

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

I've uploaded all binaries I need to upload. So, I think you don't have any download erros for now...

Let me know if you have any problems. Thank you.

@shayf
Copy link
Author

shayf commented Feb 17, 2017

Seems to work well.
I think last issue remain (installing vim) was :
gcc -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--as-needed -o vim objects/arabic.o objects/buffer.o objects/blowfish.o objects/charset.o objects/crypt.o objects/crypt_zip.o objects/dict.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/evalfunc.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/farsi.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o objects/if_cscope.o objects/if_xcmdsrv.o objects/list.o objects/mark.o objects/memline.o objects/menu.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/sha256.o objects/spell.o objects/spellfile.o objects/syntax.o objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/userfunc.o objects/version.o objects/window.o objects/if_ruby.o objects/netbeans.o objects/channel.o objects/json.o objects/main.o objects/memfile.o objects/message.o -lelf -lnsl -lncurses -lacl -lattr -ldl -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static -lpthread -lrt -ldl -lcrypt -lm -L/usr/local/lib
/usr/local/lib/gcc/x86_64-cros-linux-gnu/4.9.x/../../../../x86_64-cros-linux-gnu/bin/ld: cannot find /usr/lib64/libmvec_nonshared.a
collect2: error: ld returned 1 exit status
link.sh: Linking failed
make[1]: *** [Makefile:1868: vim] Error 1
make[1]: Leaving directory '/usr/local/tmp/crew/vim-8.0.tar.bz2.dir/vim80/src'
make: *** [Makefile:29: first] Error 2
vim failed to install: make -j4 exited with 2

Seems like symbolic issue

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

Interesting. I don't have that error on my x86_64 machine.

link.sh: $LINK_AS_NEEDED set to 'yes': invoking linker directly.
gcc -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,--as-needed -o vim objects/arabic.o objects/buffer.o objects/blowfish.o objects/charset.o objects/crypt.o objects/crypt_zip.o objects/dict.o objects/diff.o objects/digraph.o objects/edit.o objects/eval.o objects/evalfunc.o objects/ex_cmds.o objects/ex_cmds2.o objects/ex_docmd.o objects/ex_eval.o objects/ex_getln.o objects/farsi.o objects/fileio.o objects/fold.o objects/getchar.o objects/hardcopy.o objects/hashtab.o objects/if_cscope.o objects/if_xcmdsrv.o objects/list.o objects/mark.o objects/memline.o objects/menu.o objects/misc1.o objects/misc2.o objects/move.o objects/mbyte.o objects/normal.o objects/ops.o objects/option.o objects/os_unix.o objects/pathdef.o objects/popupmnu.o objects/quickfix.o objects/regexp.o objects/screen.o objects/search.o objects/sha256.o objects/spell.o objects/spellfile.o objects/syntax.o objects/tag.o objects/term.o objects/ui.o objects/undo.o objects/userfunc.o objects/version.o objects/window.o objects/if_perl.o objects/if_perlsfio.o objects/if_python.o objects/if_ruby.o objects/netbeans.o objects/channel.o objects/json.o objects/main.o objects/memfile.o objects/message.o -lm -lelf -lnsl -lncurses -lacl -lattr -ldl -Wl,-E -fstack-protector-strong -L/usr/local/lib -L/usr/local/lib/perl5/5.24.1/x86_64-linux/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc -L/usr/local/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-R/usr/local/lib -L/usr/local/lib -lruby-static -lpthread -lgmp -ldl -lcrypt -lm -L/usr/local/lib
/usr/local/lib/libpython2.7.a(posixmodule.o): In function posix_tempnam': /usr/local/tmp/crew/Python-2.7.13.tar.xz.dir/Python-2.7.13/./Modules/posixmodule.c:7561: warning: the use of tempnam' is dangerous, better use mkstemp' /usr/local/lib/libpython2.7.a(posixmodule.o): In function posix_tmpnam':
/usr/local/tmp/crew/Python-2.7.13.tar.xz.dir/Python-2.7.13/./Modules/posixmodule.c:7614: warning: the use of tmpnam_r' is dangerous, better use mkstemp'
link.sh: Linked fine

I guess your machine has better CPU with SIMD unit since it says mvec. Is it possible to share the result of uname -a? My machine says:

Linux localhost 3.18.0-13527-gc2f2230 #1 SMP PREEMPT Wed Feb 1 15:00:54 PST 2017 x86_64 Intel(R) Celeron(R) CPU N3060 @ 1.60GHz GenuineIntel GNU/Linux

@shayf
Copy link
Author

shayf commented Feb 17, 2017

here is my "uname -a" result 👍
Linux localhost 4.4.44-07170-g0654119 #1 SMP PREEMPT Wed Feb 15 11:12:23 PST 2017 x86_64 Intel(R) Pentium(R) CPU N3540 @ 2.16GHz GenuineIntel GNU/Linux

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

Hmm. Hard to solve this issue for now.

Don't you mind to use pre-compiled version of vim? I think I can upload my binary and it will work on your environment too.

@shayf
Copy link
Author

shayf commented Feb 17, 2017

Sure. No problem. I am just trying to add my value here.

@shayf
Copy link
Author

shayf commented Feb 17, 2017

strange, since original repository was working before i erased my entire computer and start with this one (which seems to have newer versions)

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

@shayf Please performs crew update and crew install vim.

This livmvec_nonshared.a stuff is new to me. I'll check details. I wish I could reproduce the problem here.

@shayf
Copy link
Author

shayf commented Feb 17, 2017

Done and working.
Let me know how i can assist for isolating and helping on such issues.

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

Thanks. I'll do.

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

@shayf Is it possible to perform:

$ for i in /lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64; do grep nonshared $i/*.so; done

On my machine I see only:

grep: /lib/*.so: No such file or directory
grep: /usr/lib/*.so: No such file or directory
/usr/lib64/libc.so:GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a  AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
/usr/lib64/libpthread.so:GROUP ( /lib64/libpthread.so.0 /usr/lib64/libpthread_nonshared.a )
/usr/local/lib64/libc.so:GROUP ( /usr/local/lib64/libc.so.6 /usr/local/lib64/libc_nonshared.a  AS_NEEDED ( /usr/local/lib64/ld-linux-x86-64.so.2 ) )
/usr/local/lib64/libpthread.so:GROUP ( /usr/local/lib64/libpthread.so.0 /usr/local/lib64/libpthread_nonshared.a )

Your machine may have libmvec_nonshared.a somewhere. Thanks.

@shayf
Copy link
Author

shayf commented Feb 17, 2017

sure.
This is my result :

chronos@localhost ~ $ for i in /lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64; do grep nonshared $i/*.so; done
grep: /lib/*.so: No such file or directory
grep: /usr/lib/*.so: No such file or directory
/usr/lib64/libc.so:GROUP ( /lib64/libc.so.6 /usr/lib64/libc_nonshared.a  AS_NEEDED ( /lib64/ld-linux-x86-64.so.2 ) )
/usr/lib64/libm.so:GROUP ( /lib64/libm.so.6  AS_NEEDED ( /usr/lib64/libmvec_nonshared.a /lib64/libmvec.so.1 ) )
/usr/lib64/libpthread.so:GROUP ( /lib64/libpthread.so.0 /usr/lib64/libpthread_nonshared.a )
/usr/local/lib64/libc.so:GROUP ( /usr/local/lib64/libc.so.6 /usr/local/lib64/libc_nonshared.a  AS_NEEDED ( /usr/local/lib64/ld-linux-x86-64.so.2 ) )
/usr/local/lib64/libpthread.so:GROUP ( /usr/local/lib64/libpthread.so.0 /usr/local/lib64/libpthread_nonshared.a )

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

@shayf Thanks. It says /usr/lib64/libm.so requires libmvec_nonshared.a. The problem is chromeos doesn't provide this nonshared.a stuff.

Can you show me your /lib64? I'm thinking your chromeos using newer glibc. Please show me the result of ls /lib64/libm*.

@shayf
Copy link
Author

shayf commented Feb 17, 2017

Sure.
Attached :

-rwxr-xr-x 1 root root 1.1M Feb 15 10:01 /lib64/libm-2.23.so
-rwxr-xr-x 1 root root  87K Feb 15 21:07 /lib64/libminijailpreload.so
-rwxr-xr-x 1 root root  87K Feb 15 21:07 /lib64/libminijail.so
lrwxrwxrwx 1 root root   15 Feb 15 23:13 /lib64/libmnl.so.0 -> libmnl.so.0.1.0
-rwxr-xr-x 1 root root  19K Feb 15 20:47 /lib64/libmnl.so.0.1.0
lrwxrwxrwx 1 root root   17 Feb 15 23:13 /lib64/libmount.so.1 -> libmount.so.1.1.0
-rwxr-xr-x 1 root root 255K Feb 15 21:04 /lib64/libmount.so.1.1.0
lrwxrwxrwx 1 root root   12 Feb 15 10:00 /lib64/libm.so.6 -> libm-2.23.so
-rwxr-xr-x 1 root root 166K Feb 15 10:01 /lib64/libmvec-2.23.so
lrwxrwxrwx 1 root root   15 Feb 15 10:00 /lib64/libmvec.so.1 -> libmvec-2.23.so

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

Nice. Now we understand the source of problem. Your OS uses glibc 2.23 although my chromebrew uses glibc 2.19 and the original one uses 2.17. Thank you for the help.

This problem will happens if you try to compile files with -lm option.

I think it is possible to solve this problem by providing libmvec_nonshared.a as an additional package. Give me a few days for that. ;)

@shayf
Copy link
Author

shayf commented Feb 17, 2017

much appreciated. Could it be due the fact i am using Canary channel ?

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

Ahh yes, very yes. 👍

@shayf
Copy link
Author

shayf commented Feb 17, 2017

so, let me try on DEV channel. I just do not remember how to get out of canary. Will Google it.

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

It's not a problem. Canary will out as stable soon anyway.

If you really want to get out of canary, it's fine though.

@shayf
Copy link
Author

shayf commented Feb 17, 2017

OK.
Same glibc version exists on DEV channel as well.. :-(

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

So, it will out in a few months anyway.

@shayf
Copy link
Author

shayf commented Feb 17, 2017

Seems like that.
Only stable channel includes version 2.19 currently.

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

@shayf Hi. I made glibc223.rb to install glibc-2.23 over existing glibc-2.19. Please do following step by hand. In near future, I will repace glibc.rb with this glibc223.rb, but I'm not sure whether it is safe on stable channel for now.

$ crew update
$ crew install glibc223

@shayf
Copy link
Author

shayf commented Feb 17, 2017

i have compiled using the stable channel (due 2.19 used there)
Would you prefer me switch to another channel and try (this computer is for testing) ?
or just use this on existing stable ?

@jam7
Copy link
Owner

jam7 commented Feb 17, 2017

If so, not really need to switch back to another channel. Actually, I already switched to beta channel and tested it by myself. Just want to inform you it is ready. :)

@jam7
Copy link
Owner

jam7 commented Feb 25, 2017

Closing this issue since problems are solved. Thank you @shayf

@jam7 jam7 closed this as completed Feb 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants