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

relatively new install issue #279

Open
iwelch opened this issue Dec 1, 2023 · 7 comments
Open

relatively new install issue #279

iwelch opened this issue Dec 1, 2023 · 7 comments
Assignees
Milestone

Comments

@iwelch
Copy link

iwelch commented Dec 1, 2023

ERROR: dependency ‘fstcore’ is not available for package ‘fst’

huf_decompress.c:(.text+0x3b9f): undefined reference to `HUF_decompress4X1_usingDTable_internal_fast_asm_loop'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: ./libZSTD.a(huf_decompress.o): relocation R_X86_64_PC32 against undefined hidden symbol `HUF_decompress4X1_usingDTable_internal_fast_asm_loop' can not be used when making a shared object
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [/usr/lib64/R/share/make/shlib.mk:10: fstcore.so] Error 1
ERROR: compilation failed for package ‘fstcore’
* removing ‘/mnt/faculty/iwelch/R/x86_64-suse-linux-gnu-library/4.3/fstcore’
ERROR: dependency ‘fstcore’ is not available for package ‘fst’
* removing ‘/mnt/faculty/iwelch/R/x86_64-suse-linux-gnu-library/4.3/fst’

The downloaded source packages are in
	‘/var/fasttmp/RtmpvhASMO/downloaded_packages’
Warning messages:
1: In install.packages("fst") :
  installation of package ‘fstcore’ had non-zero exit status
2: In install.packages("fst") :
  installation of package ‘fst’ had non-zero exit status
platform       x86_64-suse-linux-gnu       
arch           x86_64                      
os             linux-gnu                   
system         x86_64, linux-gnu           
status                                     
major          4                           
minor          3.1                         
year           2023                        
month          06                          
day            16                          
svn rev        84548                       
language       R                           
version.string R version 4.3.1 (2023-06-16)
nickname       Beagle Scouts               
> R.Version
@MarcusKlik
Copy link
Collaborator

MarcusKlik commented Dec 1, 2023

Hi @iwelch, thanks for reporting your issue.

The fstcore package has just been updated on CRAN and as per CRAN request the explicit C++11 specification has been removed in the new version.

Could you check which gcc version you have on your system to compile the package?

gcc --version 

you could try adding the following line to your custom Makevars (~/.R/Makevars) and see if that solves your problem?

CXX_STD = CXX11

thanx!

@MarcusKlik MarcusKlik self-assigned this Dec 1, 2023
@MarcusKlik MarcusKlik added this to the fst v0.9.10 milestone Dec 1, 2023
@MarcusKlik
Copy link
Collaborator

MarcusKlik commented Dec 1, 2023

Hi @iwelch, I believe your issue is related to failing to compile assembler code in the fstcore package on your system.

Could you try to install fstcore from the develop branch and see if it compiles correctly?

devtools::install_github("fstpackage/fstcore", ref = "develop")

I've added addition platforms to the github runner of fstcore to catch this problem in the future.

@iwelch
Copy link
Author

iwelch commented Dec 1, 2023 via email

@MarcusKlik
Copy link
Collaborator

Hi @iwelch, a new release of fstcore is submitted to CRAN where I have disabled the (unused) assembler optimization in ZSTD that is causing the compiler error that you see. Thanks again for reporting!

@iwelch
Copy link
Author

iwelch commented Dec 3, 2023 via email

@MarcusKlik
Copy link
Collaborator

MarcusKlik commented Dec 6, 2023

Hi @iwelch, you mean a command line interpreter that can read fst files and stream them or convert them to another format?

(that might be an interesting addition to fst's underlying C++ library fstlib)

@iwelch
Copy link
Author

iwelch commented Dec 6, 2023 via email

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

2 participants