There is an error when building with the make command.
I can't tell if the Linux setting is bad, the Makefile is bad, or the shell is bad, so please let me know.
Creating.build/goshim.tar.bz2
make:execvp:/bin/sh:Argument list too long
make:*** [Makefile:316:.build/goshim.tar.bz2] Error 127
GOSHIM_DEPS=$(shell./scripts/goListFiles.sh$(PKGNAME)/core/chaincode/shim)
orderer: $(BUILD_DIR)/bin/orderer
$(BUILD_DIR)/goshim.tar.bz2:$(GOSHIM_DEPS)
@echo "Creating$@"
@tar-jhc-C$(GOPATH)/src$(patsubst$(GOPATH)/src/%,%,$(GOSHIM_DEPS))>$@
The same error occurred and was not resolved.
Below is a Makefile sentence that replaces @tar-jhc-C$(GOPATH)/src$(patsubst$(GOPATH)/src/%, %, $(GOSHIM_DEPS))
.
@./scripts/goListFiles.sh$(PKGNAME)/core/chaincode/shim|seds#$(GOPATH)/src/##g|xargstar-jhc-C$(GOPATH)/src>$@
I have listed the values shown below, but they have not been resolved.
getconf ARG_MAX
The build was successful without any problems.
linux bash shellscript makefile
GNU tar allows you to import files from files specified in the -T
option instead of specifying them as arguments.
If Raspberry pi's tar supports this option, why don't you write a list of files to the appropriate file and specify the file with the tar's -T
option?
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
911 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
617 Uncaught (inpromise) Error on Electron: An object could not be cloned
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.