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

can't build gem: possible bug in the tools you use to build with? #16

Closed
libweirdness opened this issue Jun 9, 2022 · 1 comment
Closed

Comments

@libweirdness
Copy link

both snappy & sha3 have the same build failure,
which looks suspicious, eh?

my learning-programming environment is:
aarch64 / Android / Termux / Ubuntu server jammy, aka 22.04 LTS
and Ruby 3.0.2 within.

gem install sha3 produced, on stdout:

1 ERROR:  Error installing sha3:                                                                   
2    ERROR: Failed to build gem native extension.                                                  
3                                                                                                  
4     current directory: /var/lib/gems/3.0.0/gems/sha3-1.0.4/ext/sha3                              
5 /usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20220609-1113-hj7d07.rb extconf.rb    
6 checking for sha3.h... yes                                                                       
7 checking for digest.h... yes                                                                     
8 creating Makefile                                                                                
9                                                                                                 
10 current directory: /var/lib/gems/3.0.0/gems/sha3-1.0.4/ext/sha3                                 
11 make DESTDIR\= clean                                                                            
12                                                                                                 
13 current directory: /var/lib/gems/3.0.0/gems/sha3-1.0.4/ext/sha3                                 
14 make DESTDIR\=
15 compiling KeccakF-1600-reference.c
16 compiling KeccakHash.c                                                                          
17 compiling KeccakSponge.c                                                                        
18 compiling SnP-FBWL-default.c                                                                    
19 compiling digest.c                                                                              
20 compiling displayIntermediateValues.c                                                           
21 compiling sha3.c                                                                                
22 linking shared-object sha3_n.so                                                                 
23                                                                                                 
24 current directory: /var/lib/gems/3.0.0/gems/sha3-1.0.4/ext/sha3                                 
25 make DESTDIR\= install                                                                          
26 make: /usr/bin/mkdir: No such file or directory
27 make: *** [Makefile:202: .sitearchdir.time] Error 127                                           
28
29 make install failed, exit code 2
30                                                                                                 
31 Gem files will remain installed in /var/lib/gems/3.0.0/gems/sha3-1.0.4 for inspection.          
32 Results logged to /var/lib/gems/3.0.0/extensions/aarch64-linux/3.0.0/sha3-1.0.4/gem_make.out

mkdir is in /bin, not in /usr/bin/mkdir, eh?

Salut, Namaste, & Kaizen!

( :

@libweirdness
Copy link
Author

@miyucy ( iirc ), of snappy, cracked something,
so this is copy-pasted from the snappy issue-tracker:

I think you've got it!

$ ruby -v -rrbconfig -e "puts RbConfig::CONFIG['MAKEDIRS']"
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [aarch64-linux-gnu]
/usr/bin/mkdir -p

But there IS no mkdir, there!

That needs to get upstream to someone
( meaning you, who actually know what you're doing,
needs to get that to someone : )

$ grep -A 3 -B 3 mkdir $(gem env gemdir)/gems/snappy-0.3.0/ext/Makefile
RM = rm -f
RM_RF = $(RUBY) -run -e rm -- -rf
RMDIRS = rmdir --ignore-fail-on-non-empty -p
MAKEDIRS = /usr/bin/mkdir -p
INSTALL = /usr/bin/install -c
INSTALL_PROG = $(INSTALL) -m 0755
INSTALL_DATA = $(INSTALL) -m 644

again!


I think they found the bug is in Ubuntu's system-wide Ruby,
but that is the opinion of an old fool who's trying to learn basic programming,
so you actual-programmers know better whether this is significant,
& to what degree.

Salut, Namaste, & Kaizen!

( :

@johanns johanns closed this as completed Oct 24, 2022
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