Jump to content

Clover General discussion


ErmaC
30,171 posts in this topic

Recommended Posts

7 hours ago, mek21 said:

Reposting here from pre-release sonoma.

 

Already running clover 5152 and using an older theme.   Made icon/badge for sonoma but is only displayed when named os_mac.icns.  As I recall, when named os_sonoma.icns clover showed an icon/badge with a question mark and not the icon/badge I made.

 

How to make clover show my icon/badge for sonoma?   Does the icon/badge need a specific name or is there a version table somewhere in the theme.plist or elsewhere that needs to be updated/edited?

 

Thanks for your reply.

This is already fix on Clover Dev repos

If you Log In on Github account you can use this Artifacts

  • Like 1
Link to comment
Share on other sites

i am getting this: 

Running edk2 build for CloverX64 using the command:

build --cmd-len=50000 -D NO_GRUB_DRIVERS_EMBEDDED -D USE_APPLE_HFSPLUS_DRIVER --conf=/opt/Source/Clover/Conf -D USE_LOW_EBDA -p Clover.dsc  -a X64 -b RELEASE -t GCC131 -n 13

 

Build environment: macOS-13.4.1-x86_64-i386-64bit

Build start time: 15:33:45, Jul.04 2023

 

 

 

build.py...

/opt/Source/Clover/Conf/tools_def.txt(2555): error 5000: Macro or Environment has not been defined

GCC131_ASLCC_FLAGS

Edited by tluck
Link to comment
Share on other sites

21 hours ago, tluck said:

i am getting this: 

Running edk2 build for CloverX64 using the command:

build --cmd-len=50000 -D NO_GRUB_DRIVERS_EMBEDDED -D USE_APPLE_HFSPLUS_DRIVER --conf=/opt/Source/Clover/Conf -D USE_LOW_EBDA -p Clover.dsc  -a X64 -b RELEASE -t GCC131 -n 13

 

Build environment: macOS-13.4.1-x86_64-i386-64bit

Build start time: 15:33:45, Jul.04 2023

 

 

 

build.py...

/opt/Source/Clover/Conf/tools_def.txt(2555): error 5000: Macro or Environment has not been defined

GCC131_ASLCC_FLAGS

 I seems to forgot something. Look my new commit.

 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
On 7/6/2023 at 12:55 AM, chris1111 said:

Sonoma Beta 3 latest Clover OK

 

 

image.png

 

Looks great mate :D 

Can i use clover to install Sonoma and get working power management support on my x79 motherboard + 3930k cpu ? 

Link to comment
Share on other sites

1 hour ago, Slice said:

I afraid x79 is not compatible/not supported by Sonoma.

I have such computer and Monterey is a top system for it.

.

 

1 hour ago, Slice said:

I afraid x79 is not compatible/not supported by Sonoma.

I have such computer and Monterey is a top system for it.

According to this guide it should work, but there is some steps in the guide im not getting i guess...

https://github.com/5T33Z0/OC-Little-Translated/tree/main/01_Adding_missing_Devices_and_enabling_Features/CPU_Power_Management/CPU_Power_Management_(Legacy)#re-enabling-acpi-power-management-in-macos-ventura

Edited by axonleo
Link to comment
Share on other sites

  • 2 weeks later...

Hi @Slice

I can't build latest r5154 commit ee2b479 (Monterey 12.6.8/XCode 14.2).

Existing local repo
 

Spoiler

build.py...
 : error C0DE: Unknown fatal error when processing [/Users/mathieu/src/Cloverbootloader/OpenCorePkg/Library/OcDebugLogLibOc2Clover/OcDebugLogLibOc2Clover.inf [X64, XCODE8, RELEASE]]
    
(Please send email to devel@edk2.groups.io for help, attaching following call stack trace!)

(Python 3.11.2 on darwin) Traceback (most recent call last):
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1388, in _BuildPa
    RemoveDirectory(AutoGenObject.BuildDir, True)
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/Source/Python/Common/Misc.py", line 439, in RemoveDirectory
    RemoveDirectory(File, Recursively)
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/Source/Python/Common/Misc.py", line 443, in RemoveDirectory
    os.rmdir(Directory)
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/Source/Python/Common/LongFilePathOs.py", line 33, in rmdir
    return os.rmdir(LongFilePath(path))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 66] Directory not empty: 'X64'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2695, in Main
    MyBuild.Launch()
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2488, in Launch
    self._BuildPlatform()
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1823, in _BuildPlatform
    self._BuildPa(self.Target, Pa, FfsCommand=CmdListDict,PcdMaList=PcdMaList)
  File "/Users/mathieu/src/Cloverbootloader/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1389, in _BuildPa
    except WindowsError as X:
           ^^^^^^^^^^^^
NameError: name 'WindowsError' is not defined


- Failed -
 

 

Fresh local repo

 

Spoiler

[CC] AcpiDump
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-deprecated-non-prototype' [-Werror,-Wunknown-warning-option]
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib/OUTPUT/DxeSecurityManagementLib.obj] Error 1
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/OpenCorePkg/Library/OcDebugLogLibOc2Clover/OcDebugLogLibOc2Clover/OUTPUT/DebugHelp.obj] Error 1
make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/OpenCorePkg/Library/OcSerializeLib/OcSerializeLib/OUTPUT/OcSerializeLib.obj] Error 1

 

build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/OpenCorePkg/Library/OcDebugLogLibOc2Clover/OcDebugLogLibOc2Clover]


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/OpenCorePkg/Library/OcSerializeLib/OcSerializeLib]


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib]


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib]


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib]


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/Library/WaveLib/WaveLib]


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/Library/VideoBiosPatchLib/VideoBiosPatchLib]


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/OpenCorePkg/Library/OcAcpiLib/OcAcpiLib]


build.py...
 : error 7000: Failed to execute command
    make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/OpenCorePkg/Library/OcAfterBootCompatLib/OcAfterBootCompatLib]


build.py...
 : error F002: Failed to build module
    /Users/mathieu/src/Cloverbootloader/OpenCorePkg/Library/OcDebugLogLibOc2Clover/OcDebugLogLibOc2Clover.inf [X64, XCODE8, RELEASE]

- Failed -
 

 

Edited by Matgen84
  • Like 1
Link to comment
Share on other sites

[SLINK] CLOVERX64
[DLINK] CLOVERX64
[MTOC] CLOVERX64
warning: no debug symbols in executable (-arch x86_64)
[GENFW] CLOVERX64

Generating DUETEFIMAINFVX64 FV
##
GUID cross reference file can be found at /Users/sergey/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/FV/Guid.xref

FV Space Information
DUETEFIMAINFVX64 [35%Full] 2752512 (0x2a0000) total, 982040 (0xefc18) used, 1770472 (0x1b03e8) free

- Done -
Build end time: 19:51:58, Aug.01 2023
Build total time: 00:02:28

  -> CloverX64-RELEASE_XCODE8-20230720202533-ee2b479-5154-dirty.efi
  adding: Users/sergey/src/CloverBootloader/Build/CloverX64-RELEASE_XCODE8-20230720202533-ee2b479-5154-dirty.efi (deflated 54%)
Compressing DUETEFIMainFv.FV ...
Encoding
Compressing DxeCore.efi ...
Encoding
Compressing DxeIpl.efi ...
Encoding
Generate Loader Image ...
Created /Users/sergey/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/FV/Efildr64
879+0 records in
879+0 records out
450048 bytes transferred in 0.005001 secs (89991602 bytes/sec)
Copy CloverEFI:
  -> boot6
Changing byte at 0xa9 of boot6 to show 6 as init message:
1+0 records in
1+0 records out
1 bytes transferred in 0.000073 secs (13699 bytes/sec)
  -> BOOTX64.efi
  -> CLOVERX64.efi
Copy Mandatory drivers:
  -> XhciDxe.efi
  -> EnglishDxe.efi
  -> ApfsDriverLoader.efi
  -> FSInject.efi
  -> EnglishDxe.efi
  -> GrubEXFAT.efi
  -> GrubISO9660.efi
  -> GrubNTFS.efi
  -> GrubUDF.efi
  -> CsmVideoDxe.efi
  -> EmuVariableUefi.efi
  -> NvmExpressDxe.efi
  -> OsxFatBinaryDrv.efi
  -> PartitionDxe.efi
  -> AudioDxe.efi
  -> Ps2MouseDxe.efi
  -> UsbKbDxe.efi
  -> UsbMouseDxe.efi
  -> AptioInputFix.efi
  -> ApfsDriverLoader.efi
  -> Fat.efi
  -> VBoxExt2.efi
  -> VBoxExt4.efi
  -> VBoxIso9600.efi
  -> VBoxHfs.efi
  -> AppleKeyFeeder.efi
  -> HashServiceFix.efi
  -> OpenRuntime.efi
Copy Applications:
  -> bdmesg.efi
  -> ControlMsrE2.efi
  -> Shell64U.efi
Done!

Generating BootSectors
make: Nothing to be done for `all'.
Done!

* Clover build process took  2m33s  to complete...
sergey@iMac CloverBootloader % clang -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
sergey@iMac CloverBootloader % 

 

  • Like 1
Link to comment
Share on other sites

19 hours ago, Slice said:
[SLINK] CLOVERX64
[DLINK] CLOVERX64
[MTOC] CLOVERX64
warning: no debug symbols in executable (-arch x86_64)
[GENFW] CLOVERX64

Generating DUETEFIMAINFVX64 FV
##
GUID cross reference file can be found at /Users/sergey/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/FV/Guid.xref

FV Space Information
DUETEFIMAINFVX64 [35%Full] 2752512 (0x2a0000) total, 982040 (0xefc18) used, 1770472 (0x1b03e8) free

- Done -
Build end time: 19:51:58, Aug.01 2023
Build total time: 00:02:28

  -> CloverX64-RELEASE_XCODE8-20230720202533-ee2b479-5154-dirty.efi
  adding: Users/sergey/src/CloverBootloader/Build/CloverX64-RELEASE_XCODE8-20230720202533-ee2b479-5154-dirty.efi (deflated 54%)
Compressing DUETEFIMainFv.FV ...
Encoding
Compressing DxeCore.efi ...
Encoding
Compressing DxeIpl.efi ...
Encoding
Generate Loader Image ...
Created /Users/sergey/src/CloverBootloader/Build/Clover/RELEASE_XCODE8/FV/Efildr64
879+0 records in
879+0 records out
450048 bytes transferred in 0.005001 secs (89991602 bytes/sec)
Copy CloverEFI:
  -> boot6
Changing byte at 0xa9 of boot6 to show 6 as init message:
1+0 records in
1+0 records out
1 bytes transferred in 0.000073 secs (13699 bytes/sec)
  -> BOOTX64.efi
  -> CLOVERX64.efi
Copy Mandatory drivers:
  -> XhciDxe.efi
  -> EnglishDxe.efi
  -> ApfsDriverLoader.efi
  -> FSInject.efi
  -> EnglishDxe.efi
  -> GrubEXFAT.efi
  -> GrubISO9660.efi
  -> GrubNTFS.efi
  -> GrubUDF.efi
  -> CsmVideoDxe.efi
  -> EmuVariableUefi.efi
  -> NvmExpressDxe.efi
  -> OsxFatBinaryDrv.efi
  -> PartitionDxe.efi
  -> AudioDxe.efi
  -> Ps2MouseDxe.efi
  -> UsbKbDxe.efi
  -> UsbMouseDxe.efi
  -> AptioInputFix.efi
  -> ApfsDriverLoader.efi
  -> Fat.efi
  -> VBoxExt2.efi
  -> VBoxExt4.efi
  -> VBoxIso9600.efi
  -> VBoxHfs.efi
  -> AppleKeyFeeder.efi
  -> HashServiceFix.efi
  -> OpenRuntime.efi
Copy Applications:
  -> bdmesg.efi
  -> ControlMsrE2.efi
  -> Shell64U.efi
Done!

Generating BootSectors
make: Nothing to be done for `all'.
Done!

* Clover build process took  2m33s  to complete...
sergey@iMac CloverBootloader % clang -v
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
sergey@iMac CloverBootloader % 

 

 

Hi @Slice
Strange, building work for you, not for me. Where am I to investigate to find a solution for my issue ?.

I forgot to tell that I use Python 3.11.2 (macOS 12.6.8/XCode 14.2). I can build Clover with GCC, and Opencore with my XCode Installation.

Edited by Matgen84
Link to comment
Share on other sites

I may propose that Python 3.11.2 is not suited to our build system. I am using Python 3.9.6 provided by Xcode and probably having some Apple's patches.

Although strange that you can build with gcc and new python.

Opencore is another story because of it uses XCODE5 toolset.

  • Like 1
Link to comment
Share on other sites

18 hours ago, Slice said:

I may propose that Python 3.11.2 is not suited to our build system. I am using Python 3.9.6 provided by Xcode and probably having some Apple's patches.

Although strange that you can build with gcc and new python.

Opencore is another story because of it uses XCODE5 toolset.

 

Hi @Slice

@Cyberdevs get the same error on Monterey and Xcode 14.2.  I have no problem with Catalina/Python 3.11.2. Maybe the issue is Monterey ?

Latest build : Clover_r5152 5f9ab55 17-06-2023.pkg > OK 

Edited by Matgen84
Link to comment
Share on other sites

Yes, the problem is in Xcode14.2. It not recognise option '-Wno-deprecated-non-prototype' .

You may exclude it from tools-def.txt.

I may create new toolset XCODE14 which will include this option while XCODE8 reverted to old definition. But it requires numerous changes.

It is better to use gcc.

 

Link to comment
Share on other sites

14 hours ago, Slice said:

Yes, the problem is in Xcode14.2. It not recognise option '-Wno-deprecated-non-prototype' .

You may exclude it from tools-def.txt.

I may create new toolset XCODE14 which will include this option while XCODE8 reverted to old definition. But it requires numerous changes.

It is better to use gcc.

 

 

Yes, the problem is in XCODE 14.2. It's what I think. However, few week ago, I build Clover_r5152 5f9ab55 17-06-2023.pkg > OK !


I do not have the necessary knowledge to create the toolset XCODE14 and the other changes for XCODE 14.2. If you have sometime to do it, it wil be glad. 
XCODE 14.3 build well Clover ? But Monterey don't support XCODE 14.3. Thanks.

Edited by Matgen84
Link to comment
Share on other sites

1 hour ago, Matgen84 said:

 

Yes, the problem is in XCODE 14.2. It's what I think. However, few week ago, I build Clover_r5152 5f9ab55 17-06-2023.pkg > OK !


I do not have the necessary knowledge to create the toolset XCODE14 and the other changes for XCODE 14.2. If you have sometime to do it, it wil be glad. 
XCODE 14.3 build well Clover ? But Monterey don't support XCODE 14.3. Thanks.

In ventura I have successfully compiled But with Sonoma I can't do it, it says 7000. It might be because Sonoma is still in beta or not.

  • Like 1
Link to comment
Share on other sites

36 minutes ago, naiclub said:

In ventura I have successfully compiled But with Sonoma I can't do it, it says 7000. It might be because Sonoma is still in beta or not.

 

Which version are you using for Ventura and Sonoma ? The minimum system required for XCODE 15 will be macOS 13.4. Maybe you have 7000 errors because XCODE version is not fully compatible with Sonoma.
At this time, I think that only  XCODE 15 Beta exists.

Edited by Matgen84
Link to comment
Share on other sites

22 minutes ago, Matgen84 said:

 

คุณใช้เวอร์ชันใดสำหรับ Ventura และ Sonoma ระบบขั้นต่ำที่จำเป็นสำหรับ XCODE 15 คือ macOS 13.4 บางทีคุณอาจมีข้อผิดพลาด 7000 เนื่องจากเวอร์ชัน XCODE ไม่สามารถทำงานร่วมกับ Sonoma ได้อย่างสมบูรณ์
ในขณะนี้ ฉันคิดว่ามีเพียง XCODE 15 Beta เท่านั้นที่มีอยู่

I took a screenshot to look better. It's hard to explain for me.
Sonoma uses the latest version of Xcode.

Spoiler

1643120012_2566-08-0418_36_19.thumb.png.b300cae8d60eb59d7b758c82ae86dcc9.png

 

Edited by naiclub
do wrong
Link to comment
Share on other sites

×
×
  • Create New...