Closed startergo closed 1 year ago
Code snippet:
case BROTLI_STATE_UNCOMPRESSED: {
int bytes_copied = s->meta_block_remaining_len;
result = CopyUncompressedBlockToOutput(
available_out, next_out, total_out, s);
bytes_copied -= s->meta_block_remaining_len;
if (result != BROTLI_DECODER_SUCCESS) {
break;
}
s->state = BROTLI_STATE_METABLOCK_DONE;
break;
Here is the brotli code snippet: https://github.com/google/brotli/blob/6d03dfbedda1615c4cba1211f8d81735575209c8/c/dec/decode.c#L2494
After changing that snippet to:
case BROTLI_STATE_UNCOMPRESSED: {
result = CopyUncompressedBlockToOutput(
available_out, next_out, total_out, s);
if (result != BROTLI_DECODER_SUCCESS) {
break;
}
s->state = BROTLI_STATE_METABLOCK_DONE;
break;
I get this error:
## RefindPlusBuilder - Building DBG Version ##
----------------------------------------------
cp: /Users/macmini/Documents/RefindPlus/edk2/RefindPlusPkg/BootMaster/globalExtra-DBG.txt: No such file or directory
cp: /Users/macmini/Documents/RefindPlus/edk2/RefindPlusPkg/RefindPlusPkg-DBG.dsc: No such file or directory
Loading previous configuration from /Users/macmini/Documents/RefindPlus/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/macmini/Documents/RefindPlus/edk2
EDK_TOOLS_PATH: /Users/macmini/Documents/RefindPlus/edk2/BaseTools
CONF_PATH: /Users/macmini/Documents/RefindPlus/edk2/Conf
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
File "/Users/macmini/Documents/RefindPlus/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 549
except BaseException, X:
^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
Completed DBG Build on GOPFix of RefindPlus
cp: /Users/macmini/Documents/RefindPlus/edk2/RefindPlusPkg/BootMaster/globalExtra-REL.txt: No such file or directory
Runtime Error ... Exiting
The new python version throws exception errors if:
except FatalError, X
It needs to be:
except FatalError(X)
instead. After changing that I get this error:
## RefindPlusBuilder - Building DBG Version ##
----------------------------------------------
cp: : No such file or directory
cp: /Users/macmini/Documents/RefindPlus/edk2/RefindPlusPkg/RefindPlusPkg.dsc: No such file or directory
Loading previous configuration from /Users/macmini/Documents/RefindPlus/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/macmini/Documents/RefindPlus/edk2
EDK_TOOLS_PATH: /Users/macmini/Documents/RefindPlus/edk2/BaseTools
CONF_PATH: /Users/macmini/Documents/RefindPlus/edk2/Conf
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
Traceback (most recent call last):
File "/Users/macmini/Documents/RefindPlus/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 19, in <module>
import Common.LongFilePathOs as os
File "/Users/macmini/Documents/RefindPlus/edk2/BaseTools/Source/Python/Common/LongFilePathOs.py", line 36
def makedirs(name, mode=0777):
^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
Completed DBG Build on GOPFix of RefindPlus
cp: : No such file or directory
Runtime Error ... Exiting
You are trying to use an out of date build script. Ensure your RefindPlus and RefindPlusUDK repos are properly synced and use the up to date build script.
I have synced the branches. I used @joevt RUDK before, but still I am getting an error:
## RefindPlusBuilder - Setting Up ## : GOPFix
##--------------------------------##
/Users/macmini/Documents/RefindPlus/edk2/000-BuildScript/RefindPlusBuilder.sh: line 140: /Users/macmini/Documents/RefindPlus/edk2/000-Bu
Checkout 'GOPFix' branch...
Already on 'GOPFix'
...OK
Update RefindPlusPkg...
...OK
Make Clean...
Attempting to detect HOST_ARCH from 'uname -m': x86_64
Detected HOST_ARCH of X64 using uname.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C BootSectImage clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C BrotliCompress clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C Common clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C DevicePath clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C EfiLdrImage clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C EfiRom clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C GenCrc32 clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C GenFfs clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C GenFv clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C GenFw clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C GenPage clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C GenSec clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C GenVtf clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C GnuGenBootSector clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C LzmaCompress clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C Split clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C TianoCompress clean
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C VfrCompile clean
BIN_DIR='.' /Applications/Xcode.app/Contents/Developer/usr/bin/make -C Pccts/antlr clean
rm -f ./antlr *.o core
BIN_DIR='.' /Applications/Xcode.app/Contents/Developer/usr/bin/make -C Pccts/dlg clean
rm -f ./dlg *.o core
rm -f EfiVfrParser.cpp EfiVfrParser.h VfrParser.dlg VfrTokens.h VfrLexer.cpp VfrLexer.h VfrSyntax.cpp tokens.h
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C VolInfo clean
rm -f ./bin/*
rmdir ./libs ./bin
rmdir: ./libs: No such file or directory
rmdir: ./bin: No such file or directory
make: [localClean] Error 1 (ignored)
...OK
Make BaseTools...
Attempting to detect HOST_ARCH from 'uname -m': x86_64
Detected HOST_ARCH of X64 using uname.
mkdir -p .
mkdir ./libs
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C Common
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
ar crs ../libs/libCommon.a BasePeCoff.o BinderFuncs.o CommonLib.o Crc32.o Decompress.o EfiCompress.o EfiUtilityMsgs.o FirmwareVolumeBuff
mkdir ./bin
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C VfrCompile VfrLexer.h
BIN_DIR='.' /Applications/Xcode.app/Contents/Developer/usr/bin/make -C Pccts/dlg
cc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -c dlg_p.c
cc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -c dlg_a.c
cc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -c main.c
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 err.c -o err.o
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 ../support/set/set.c
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 support.c -o support.o
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 output.c -o output.o
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 relabel.c -o relabel.o
cc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 automata.c -o automata.o
cc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -o ./dlg dlg_p.o dlg_a.o main.o err.o set.o support.o output.o relab
BIN_DIR='.' /Applications/Xcode.app/Contents/Developer/usr/bin/make -C Pccts/antlr
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 antlr.c -o antlr.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 scan.c -o scan.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 err.c -o err.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 bits.c -o bits.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 build.c -o build.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 fset2.c -o fset2.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 fset.c -o fset.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 gen.c -o gen.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 globals.c -o globals.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 hash.c -o hash.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 lex.c -o lex.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 main.c -o main.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 misc.c -o misc.o
gcc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -c -o set.o ../support/set/set.c
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 pred.c -o pred.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 egman.c -o egman.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 mrhoist.c -o mrhoist.o
gcc -c -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 fcache.c -o fcache.o
gcc -O -I. -I../support/set -I../h -DUSER_ZZSYN -DZZLEXBUFSIZE=65536 -o ./antlr antlr.o scan.o err.o bits.o build.o fset2.o fset.o gen.
Pccts/antlr/antlr -CC -e3 -ck 3 -k 2 -fl VfrParser.dlg -ft VfrTokens.h -o . VfrSyntax.g
Antlr parser generator Version 1.33MR33 1989-2001
VfrSyntax.g, line 2018: warning: predicate: LT(i) missing, bad, or with i=0; assuming i=1
VfrSyntax.g, line 2023: warning: predicate: LT(i) missing, bad, or with i=0; assuming i=1
VfrSyntax.g, line 3651: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableI
VfrSyntax.g, line 3660: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableI
VfrSyntax.g, line 3669: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableI
VfrSyntax.g, line 3679: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableI
VfrSyntax.g, line 3709: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableI
VfrSyntax.g, line 3718: warning: alts 1 and 2 of {..} ambiguous upon ( ";" RefreshGuid GuidOp Locked Image EndIf InconsistentIf DisableI
Pccts/dlg/dlg -C2 -i -CC -cl VfrLexer -o . VfrParser.dlg
dlg Version 1.33MR33 1989-2001
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C BrotliCompress
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib
dec/decode.c:2023:13: error: variable 'bytes_copied' set but not used [-Werror,-Wunused-but-set-variable]
int bytes_copied = s->meta_block_remaining_len;
^
1 error generated.
make[1]: *** [dec/decode.o] Error 1
make: *** [BrotliCompress] Error 2
Runtime Error ... Exiting
I just ran everything, including BaseTools, on my machine without issue and i note that this item from a few weeks ago seemed to have gone ok as well: https://github.com/dakanji/RefindPlus/discussions/125. There has been no changes to RefindPlusUDK in the time that has passed.
You might want to delete what you currently have , probably tainted, and set things up from scratch according to the Repo Instructions: https://github.com/dakanji/RefindPlus/blob/GOPFix/BUILDING.md
Last login: Wed Nov 16 13:34:38 on ttys000
macmini@MacMinis-Mac-mini edk2 % git pull
Already up to date.
macmini@MacMinis-Mac-mini edk2 % cd /Users/macmini/Documents/RefindPlus/Working
macmini@MacMinis-Mac-mini Working % git pull
Already up to date.
macmini@MacMinis-Mac-mini Working %
Nope. Does not work.
It builds fine with Docker, but not through the script.
I see. Well, the script works for me and seems to have independently done for at least one other. Perhaps someone like @MarioG-X might be willing to give it a shot on his rig.
After changing EDIT_BRANCH="-GOPFix" to EDIT_BRANCH="GOPFix"
Btw, there is no such thing as EDIT_BRANCH
in the build script from the up to date RefindPlusUDK repo.
Not sure which script it is you are actually using but it doesn't seem to be the correct one.
Also note that you need to open a new Terminal window when you want to build to avoid tainting
That was before. In the beginning I used @joevt RUDK branch as I already stated, but then I fixed that. I no longer get that error, but different one. Look here: https://github.com/dakanji/RefindPlusUDK/issues/12
OK. Got it now. Well, no idea why it isn't working for you, sorry. Let's see if an independent test throws something up.
Same error directly building tools:
edk2 % . ./edksetup.sh
WORKSPACE: /Users/macmini/Documents/RefindPlus/edk2
EDK_TOOLS_PATH: /Users/macmini/Documents/RefindPlus/edk2/BaseTools
CONF_PATH: /Users/macmini/Documents/RefindPlus/edk2/Conf
macmini@MacMinis-Mac-mini edk2 % make -C BaseTools
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C Source/C
Attempting to detect HOST_ARCH from 'uname -m': x86_64
Detected HOST_ARCH of X64 using uname.
mkdir -p .
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C Common
make[2]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C BrotliCompress
gcc -c -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -Wno-unused-result -nostdlib -c -g -I .. -I ../Include/Common -I ../Include/ -I ../Include/IndustryStandard -I ../Common/ -I .. -I . -I ../Include/X64/ -O2 dec/decode.c -o dec/decode.o
dec/decode.c:2023:13: error: variable 'bytes_copied' set but not used [-Werror,-Wunused-but-set-variable]
int bytes_copied = s->meta_block_remaining_len;
^
1 error generated.
make[2]: *** [dec/decode.o] Error 1
make[1]: *** [BrotliCompress] Error 2
make: *** [Source/C] Error 2
I saw this :
https://github.com/xaionaro/edk2-builder-docker/blob/main/build-edk2.sh#L11
Where can I change -Werror
to -Wno-error
for testing?
No issues here:
Where can I change -Werror to -Wno-error for testing?
Look in ~/Documents/RefindPlus/edk2/BaseTools/Source/C/Makefiles/header.makefile
Remember you need to open new Terminal windows to generate new build sessions
Transferred here.
By the way I got the same error on another machine. Both machines are running Monterey 12.6.1. OpenCore builds the base tools and everything else without an issue through the build OC script. The Docker image runs Linux and uses Clang38 for building plus -Wno-error rather than -Werror. I use the latest Xcode and command line tools. So the common denominator here is the operating system, coder and python versions.
Ok. It work after you changed -Wno-error
. Tested it on Big Sur.
Tested on Monterey. The original error was still there as a warning only, but it stopped at a different place:
## RefindPlusBuilder - Building REL Version ## : GOPFix
##------------------------------------------##
WORKSPACE: /Users/x299/Documents/RefindPlus/edk2
EDK_TOOLS_PATH: /Users/x299/Documents/RefindPlus/edk2/BaseTools
CONF_PATH: /Users/x299/Documents/RefindPlus/edk2/Conf
/Users/x299/Documents/RefindPlus/edk2/BaseTools/BinWrappers/PosixLike/build: line 14: exec: python: not found
Runtime Error ... Exiting
That is weird. How come python does not come with MacOS?
ls -l /usr/bin/python*
-rwxr-xr-x 76 root wheel 167120 Oct 13 02:06 /usr/bin/python3
which python
python not found
Apparently python now is python3 but:
sudo ln -s /usr/bin/python3 /usr/bin/python
ln: /usr/bin/python: Operation not permitted
After:
sudo ln -s /usr/bin/python3 /usr/local/bin/python
It asked me to install Command line tools:
python: error: Failed to locate 'python'.
xcode-select: Failed to locate 'python', requesting installation of command line tools
Python2 was dropped in Monterey but only a stub version of Python3 is provided OOB and linked to XCode or something like that.
You basically need to install it yourself. You can download from python.org or use homebrew.
Well, that is the funny part as I installed Python from their page and it is not linked properly.
After installation it asked me again to install command line tools. It is an endless loop.
Removed the Symlink and it’s missing python again in path.
On my other Monterey machine it stumbles here now:
## RefindPlusBuilder - Building REL Version ## : GOPFix
##------------------------------------------##
Loading previous configuration from /Users/macmini/Documents/RefindPlus/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/macmini/Documents/RefindPlus/edk2
EDK_TOOLS_PATH: /Users/macmini/Documents/RefindPlus/edk2/BaseTools
CONF_PATH: /Users/macmini/Documents/RefindPlus/edk2/Conf
Error in sitecustomize; set PYTHONVERBOSE for traceback:
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
File "/Users/macmini/Documents/RefindPlus/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 549
except BaseException, X:
^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
Runtime Error ... Exiting
python --version
Python 3.10.4
As I said before latest Pythons don't like:
except BaseException, X
but,
except BaseException(X)
instead
This is how acidanthera handles except in build.py of base tools:
except FatalError as e
This is in your file:
File "/Users/macmini/Documents/RefindPlus/edk2/BaseTools/Source/Python/Common/LongFilePathOs.py", line 36
def makedirs(name, mode=0777):
And this in Acidanthera:
def makedirs(name, mode=0o777):
Another one:
File "/Users/macmini/Documents/RefindPlus/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 21, in <module>
import StringIO
ModuleNotFoundError: No module named 'StringIO'
But StringIO is in python 2.7 folder and we don't have python 2.7
Suggest you stick to a Mac OS version that supports Python 2 (Big Sur and earlier) for now.
Or maybe there is a way to install Python 2 same way as Xcode installed it before (same location).
Just installed python 2.7 from https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg and it built without a problem.
Python is actually only being used for some tests that are not critical. I will disable these.
RefindPlus Version
Pre-Release Code Build
Device Type
Apple Mac
Problem Description
First error is "Unknown switch -G" After changing
EDIT_BRANCH="-GOPFix"
toEDIT_BRANCH="GOPFix"
I get this error:Problem Point
Other
Affected Items
Other Item
Debug Log
No debug log.
Additional Context
No additional context.