Buildroot build System Errors - linux-kernel

I'm trying to build buildroot system for linux kernel application.
It is for academic study , so i want to implement my own file system so i should use virtual machine.
so there is some command that i have pressed :
git clone https://git.buildroot.net/buildroot
make qemu_x86_64_defconfig
but when i presed make , i received this error :
rsync -a --ignore-times --exclude .svn --exclude .git --exclude .hg
--exclude .bzr --exclude CVS --chmod=u=rwX,go=rX --exclude .empty --exclude '*~' system/skeleton/ /root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/
So this command generate a lot of errors :
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/dev": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/profile.d": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/media": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/mnt": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/opt": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/proc": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/root": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/run": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/sys": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/tmp": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/bin": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib": Function not implemented (38)
rsync: [generator] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/usr/sbin": Function not implemented (38)
rsync: [receiver] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/.group.nsk97w": Function not implemented (38)
rsync: [receiver] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/.hosts.yBRyXu": Function not implemented (38)
rsync: [receiver] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/.passwd.0Uncqt": Function not implemented (38)
rsync: [receiver] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/.profile.0E8enu": Function not implemented (38)
rsync: [receiver] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/.protocols.DJb4ew": Function not implemented (38)
rsync: [receiver] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/.services.AO2ruv": Function not implemented (38)
rsync: [receiver] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/.shadow.QE0FTt": Function not implemented (38)
rsync: [receiver] failed to set permissions on "/root/buildroot/output/host/x86_64-buildroot-linux-uclibc/sysroot/etc/profile.d/.umask.sh.IN0rhw": Function not implemented (38)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1333) [sender=3.2.3]
make: *** [package/pkg-generic.mk:333 : /root/buildroot/output/build/skeleton-init-common/.stamp_staging_installed] Erreur 23
Please how can i fix that ?? Because i have not seen something talk about how to avoid it
i don't know how or why this error occur .
i have think that it have forget build requirements , but i don't know how to fix it.
Please , have i done mistake somewhere ??
I'm using kali-Linux 5.9.0-kali5-amd64 , does the problem come from there?
Do you think I'll have any other problems after this one
Thank you for your insights into this "weird" issue.

After discussion on the Buildroot mailing list, it turns out that the issue was with the rsync version. In particular, it's Debian bug 994543.

I talked about some kinds of problems , here

Related

Building Kraken2 Databases Errors

Currently running a metagenomic analysis of transcriptome reads using kraken2. Currently running into issues installing the required databases
Buildind kraken2 database code:
kraken2-build --download-library archaea --db archaea_DB
kraken2-build --download-library viral --db viral_DB
kraken2-build --download-library bacteria --db bacteria_DB
kraken2-build --download-library human --db human_DB
kraken2-build --download-library fungi --db fungi_DB
kraken2-build --download-library protozoa --db protozoa_DB
Errors:
rsync: getaddrinfo: ftp.ncbi.nlm.nih.gov 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c(138) [Receiver=3.2.6]
Error downloading assembly summary file for archaea, exiting.
rsync: getaddrinfo: ftp.ncbi.nlm.nih.gov 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c(138) [Receiver=3.2.6]
Error downloading assembly summary file for viral, exiting.
rsync: getaddrinfo: ftp.ncbi.nlm.nih.gov 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c(138) [Receiver=3.2.6]
Error downloading assembly summary file for bacteria, exiting.
rsync: getaddrinfo: ftp.ncbi.nlm.nih.gov 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c(138) [Receiver=3.2.6]
Error downloading assembly summary file for human, exiting.
rsync: getaddrinfo: ftp.ncbi.nlm.nih.gov 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c(138) [Receiver=3.2.6]
Error downloading assembly summary file for fungi, exiting.
rsync: getaddrinfo: ftp.ncbi.nlm.nih.gov 873: Temporary failure in name resolution
rsync error: error in socket IO (code 10) at clientserver.c(138) [Receiver=3.2.6]
Error downloading assembly summary file for protozoa, exiting.
Ok so some adjustments I made was that I had to manually change the source code files of kraken2 through my anaconda environment.
I don't recall exactly what the changes were (you can look them up yourselves), but to access the files you can run the conda info -a command to find the directory where your conda environments are located. For example: find $(conda info -a) -name "rsync_from_ncbi.pl".
Once Files are edited then we can do the kraken2 process. The Errors I had was actually issues with the connection with the server (don't know why, but that's how it worked). Just wait for like 10 minutes or more and run the code and it should work.
Step 1: create a directory for the database
mkdir database
Step 2: Download taxonomy data to the database
kraken2-build --download-taxonomy --db database
Step 3: Download microbial data for the database
kraken2-build --download-library bacteria --db database
Step 4: Once the data is loaded to the library, build the database
kraken2-build --build --db database
These should be all the commands needed for kraken2

How to resolve permission denied # rb_sysopen

I am writing a simple recipe to create file like:
file '/myfile' do
content 'Welcome to Technical Guftgu'
action :create
end
but on chef-client -zr "recipe[test::recipe1]"
i am getting the following error:
[2022-03-08T10:54:16+00:00] ERROR: Running exception handlers
Running handlers complete
[2022-03-08T10:54:16+00:00] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 02 seconds
[2022-03-08T10:54:16+00:00] FATAL: Stacktrace dumped to /home/vagrant/.chef/local-mode-cache/cache/chef-stacktrace.out
[2022-03-08T10:54:16+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2022-03-08T10:54:16+00:00] FATAL: Errno::EACCES: file[/myfile] (test::recipe1 line 7) had an error: Errno::EACCES: Permission denied # rb_sysopen - /myfile
It seems that your app does not have access to the file /myfile.
Try this, to allow access to all: sudo chmod a+rw /myfile
Errno::EACCES Means "Permission Denied"
The Errno class is mapped to your system call errors at runtime. You can find this (confusingly) documented in:
SystemCallError#errno
Errno
In particular:
Errno.constants.include? :EACCES
#=> true
on most *nix sytems Errno::EACCES maps to the libc error code for "permission denied". Specifically:
Macro: int EACCES
"Permission denied." The file permissions do not allow the attempted operation.
That generally means your #create action doesn't have permissions to read, write, or traverse the path to the file you are trying to manage, so you need to change your implementation (which you don't show in your original post) to ensure that your Ruby process has the needed file or filesystem permissions to perform the requested operations.
See Also
Understanding Ruby's strange "Errno" exceptions
errno Lookup
errno.h from The Open Group Base Specifications Issue 7, 2018 edition

Laravel5 cashier downloadInvoice() permission denied error

Unable to download pdf generated with laravel 5 cashier and phantomjs. Throws following error:
ProcessFailedException in Process.php line 233: The command "/PROJECT/vendor/laravel/cashier/src/Laravel/Cashier/bin/linux-x86_64/phantomjs invoice.js /PROJECT/storage/framework/48dc273eaff3a0adaab8aa4f5b1d73df.pdf" failed.
Exit Code: 126(Invoked command cannot execute)
Output:
================
Error Output:
================
sh: 1: /PROJECT/vendor/laravel/cashier/src/Laravel/Cashier/bin/linux-x86_64/phantomjs: Permission denied
I checked storage/framework/ directory pdf has been created with permission 644 and www-data. My storage directory has 777 permission and user say xproject
Can anyone help me to get rid of this error?
I had exactly the same error and after much searching I found this post https://alfrednutile.info/posts/149 by Alfred Nutile
You solve the issue by adding execute permissions to the bin folder recursively:
chmod -R +x vendor/laravel/cashier/src/Laravel/Cashier/bin

Fatal error: Class 'Varien_Autoload' not found

During deployment of a Magento site I got the following warning and error:-
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxx/subdomain/stage/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='/home/xxx/subdomain/stage/app/code/local:/home/xxx/subdomain/stage/app/code/community:/home/xxx/subdomain/stage/app/code/core:/home/xxx/subdomain/stage/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/subdomain/stage/app/Mage.php on line 50
Warning: include(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxx/subdomain/stage/app/code/core/Mage/Core/functions.php on line 68
Warning: include(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='/home/xxx/subdomain/stage/app/code/local:/home/xxx/subdomain/stage/app/code/community:/home/xxx/subdomain/stage/app/code/core:/home/xxx/subdomain/stage/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/subdomain/stage/app/code/core/Mage/Core/functions.php on line 68
Fatal error: Class 'Varien_Autoload' not found in /home/xxx/subdomain/stage/app/Mage.php on line 53
I have already set permission to 777 and set the include_path correctly and there is lib folder inside includes too but its not working.
Please suggest how to solve this error. Thank you.

FATE rsync error

I am trying to rsync the fate-suite from the fate server to my local machine. When I run the following command:
make fate-rsync SAMPLES=fate-suite/
I get the following error:
rsync -vrltLW --timeout=60 --contimeout=60 rsync://fate-suite.ffmpeg.org/fate-suite/ fate-suite/
receiving incremental file list
created directory fate-suite
rsync: read error: Connection reset by peer (104)
rsync error: error in socket IO (code 10) at io.c(802) [receiver=3.1.0]
rsync: connection unexpectedly closed (15128 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [generator=3.1.0]
make: *** [fate-rsync] Error 12
How do I resolve this error?

Resources