maclinuxG4 Posted February 9, 2021 Share Posted February 9, 2021 Strange Apple clang version 11.0.0 (clang-1100.0.33.8).... 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750693 Share on other sites More sharing options...
Jief_Machak Posted February 9, 2021 Share Posted February 9, 2021 2 hours ago, Jief_Machak said: Cannot reproduce that... And I'd like to add that I'd really like to reproduce this crash. Maybe it's a settings in QEMU or a QEMU version, and I prefer to have straight crash instead of something working because settings that allow to ignore crash. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750694 Share on other sites More sharing options...
Jief_Machak Posted February 9, 2021 Share Posted February 9, 2021 I worked a bit on the build cc and cxx flags, to make the xcode config and gcc more similar. Took the occasion to clean some of them (for example, there was -fsigned-char and -funsigned-char on the same line !) Probably won't fix @Matgen84 xcode compilation problem, but who knows... 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750706 Share on other sites More sharing options...
Jief_Machak Posted February 9, 2021 Share Posted February 9, 2021 And I disable -Werror for debug compilation. So DEBUG compilation can now succeed with warnings. Nice when you want to try something quickly. Also handy because you can see all warnings to one compilation instead of having to recompile each you fixed one. At least I think it is... 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750707 Share on other sites More sharing options...
iCanaro Posted February 9, 2021 Share Posted February 9, 2021 (edited) no good Spoiler buildme, Clover r5129 (SHA: b346d25c3) TOOLCHAIN: GCC53 (override example: './buildme XCODE8') 1) build Clover 2) build Clover with HFSPlus 3) make pkg 4) make app 5) make app (with Clover) 6) make iso 7) build all 8) test build (no autogen, no boot files) 9) status 10) update Clover 11) show diff 12) open CloverV2/EFI/CLOVER directory 13) update Clover (reset changes) 14) clean BaseTools 15) quit Please enter your choice: 10 [UPDATE CLOVER] Fetching origin Fetching submodule OpenCorePkg Fetching submodule OpenCorePkg From https://github.com/CloverHackyColor/CloverBootloader * branch master -> FETCH_HEAD Fetching submodule OpenCorePkg Already up-to-date. ------------------------------------------------------------------------ buildme, Clover r5129 (SHA: b346d25c3) TOOLCHAIN: GCC53 (override example: './buildme XCODE8') 1) build Clover 2) build Clover with HFSPlus 3) make pkg 4) make app 5) make app (with Clover) 6) make iso 7) build all 8) test build (no autogen, no boot files) 9) status 10) update Clover 11) show diff 12) open CloverV2/EFI/CLOVER directory 13) update Clover (reset changes) 14) clean BaseTools 15) quit Please enter your choice: 7 [CHECK XCODE] WORKSPACE: /Users/utente/CloverBootloader EDK_TOOLS_PATH: /Users/utente/CloverBootloader/BaseTools CONF_PATH: /Users/utente/CloverBootloader/Conf Copying $EDK_TOOLS_PATH/Conf/build_rule.template to /Users/utente/CloverBootloader/Conf/build_rule.txt Copying $EDK_TOOLS_PATH/Conf/tools_def.template to /Users/utente/CloverBootloader/Conf/tools_def.txt Copying $EDK_TOOLS_PATH/Conf/target.template to /Users/utente/CloverBootloader/Conf/target.txt [BUILD CLOVER] TOOLCHAIN_DIR: /Users/utente/CloverBootloader/toolchain NASM_PREFIX: /Users/utente/CloverBootloader/toolchain/bin/ NASM_VER: 2.15.05 Initializing workspace recreate Conf folder WORKSPACE: /Users/utente/CloverBootloader EDK_TOOLS_PATH: /Users/utente/CloverBootloader/BaseTools CONF_PATH: /Users/utente/CloverBootloader/Conf Copying $EDK_TOOLS_PATH/Conf/build_rule.template to /Users/utente/CloverBootloader/Conf/build_rule.txt Copying $EDK_TOOLS_PATH/Conf/tools_def.template to /Users/utente/CloverBootloader/Conf/tools_def.txt Copying $EDK_TOOLS_PATH/Conf/target.template to /Users/utente/CloverBootloader/Conf/target.txt Running edk2 build for CloverX64 using the command: build -D DISABLE_USB_SUPPORT -D NO_GRUB_DRIVERS_EMBEDDED --conf=/Users/utente/CloverBootloader/Conf -D USE_BIOS_BLOCKIO -D USE_LOW_EBDA -p Clover.dsc -a X64 -b RELEASE -t GCC53 -n 13 Build environment: Darwin-19.6.0-x86_64-i386-64bit Build start time: 13:13:17, Feb.09 2021 WORKSPACE = /Users/utente/CloverBootloader EDK_TOOLS_PATH = /Users/utente/CloverBootloader/BaseTools CONF_PATH = /Users/utente/CloverBootloader/Conf Processing meta-data .Architecture(s) = X64 Build target = RELEASE Toolchain = GCC53 Active Platform = /Users/utente/CloverBootloader/Clover.dsc ...build: : warning: Module MetaFile [Sources] is missing local header! Local Header: /users/utente/cloverbootloader/refit_uefi/platform/posix/strings.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf build: : warning: Module MetaFile [Sources] is missing local header! Local Header: /users/utente/cloverbootloader/refit_uefi/platform/posix/strings.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf build: : warning: Module MetaFile [Sources] is missing local header! Local Header: /users/utente/cloverbootloader/refit_uefi/cpp_unit_test/config-test.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf build: : warning: Module MetaFile [Sources] is missing local header! Local Header: /users/utente/cloverbootloader/refit_uefi/cpp_unit_test/config-test.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf build: : warning: Module MetaFile [Sources] is missing local header! Local Header: /users/utente/cloverbootloader/refit_uefi/include/dsdtfixlist.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf build: : warning: Module MetaFile [Sources] is missing local header! Local Header: /users/utente/cloverbootloader/refit_uefi/include/dsdtfixlist.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf build: : warning: Module MetaFile [Sources] is missing local header! Local Header: /users/utente/cloverbootloader/refit_uefi/cpp_unit_test/xml_lite-test.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf build: : warning: Module MetaFile [Sources] is missing local header! Local Header: /users/utente/cloverbootloader/refit_uefi/cpp_unit_test/xml_lite-test.h not found in /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf done! Building ... /Users/utente/CloverBootloader/MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf [X64] Building ... /Users/utente/CloverBootloader/MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf [X64] make: Nothing to be done for `tbuild'. Building ... /Users/utente/CloverBootloader/Library/HdaDevicesLib/HdaDevicesLib.inf [X64] make: Nothing to be done for `tbuild'. make: Nothing to be done for `tbuild'. Building ... /Users/utente/CloverBootloader/MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf [X64] make: Nothing to be done for `tbuild'. Building ... /Users/utente/CloverBootloader/MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf [X64] make: Nothing to be done for `tbuild'. Building ... /Users/utente/CloverBootloader/Library/DuetTimerLib/DuetTimerLib.inf [X64] [CC] X86TimerLib Building ... /Users/utente/CloverBootloader/MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf [X64] make: Nothing to be done for `tbuild'. Building ... /Users/utente/CloverBootloader/MdePkg/Library/DxeHobLib/DxeHobLib.inf [X64] make: Nothing to be done for `tbuild'. Building ... /Users/utente/CloverBootloader/MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf [X64] make: Nothing to be done for `tbuild'. In file included from /Users/utente/CloverBootloader/Library/DuetTimerLib/X86TimerLib.c:24: /Users/utente/CloverBootloader/Library/DuetTimerLib/X86TimerLib.c: In function 'InternalGetApciDescrptionTable': Building ... /Users/utente/CloverBootloader/MdePkg/Library/UefiLib/UefiLib.inf [X64] /Users/utente/CloverBootloader/MdePkg/Include/Library/HobLib.h:545:13: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 545 | (VOID *)(*(UINT8 **)&(HobStart) + sizeof (EFI_HOB_GUID_TYPE)) | ^~~~~~~~~~~~~~~~~~~~~ /Users/utente/CloverBootloader/Library/DuetTimerLib/X86TimerLib.c:49:17: note: in expansion of macro 'GET_GUID_HOB_DATA' 49 | gAcpiDesc = GET_GUID_HOB_DATA (GuidHob.Guid); | ^~~~~~~~~~~~~~~~~ /Users/utente/CloverBootloader/Library/DuetTimerLib/X86TimerLib.c: At top level: cc1: note: unrecognized command-line option '-Wno-incompatible-ms-struct' may have been intended to silence earlier diagnostics cc1: all warnings being treated as errors make: *** [/Users/utente/CloverBootloader/Build/Clover/RELEASE_GCC53/X64/Library/DuetTimerLib/DuetTimerLib/OUTPUT/X86TimerLib.obj] Error 1 build.py... : error 7000: Failed to execute command make tbuild [/Users/utente/CloverBootloader/Build/Clover/RELEASE_GCC53/X64/Library/DuetTimerLib/DuetTimerLib] build.py... : error F002: Failed to build module /Users/utente/CloverBootloader/Library/DuetTimerLib/DuetTimerLib.inf [X64, GCC53, RELEASE] - Failed - Build end time: 13:13:21, Feb.09 2021 Build total time: 00:00:05 logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Processo completato] Edited February 9, 2021 by iCanaro Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750708 Share on other sites More sharing options...
Matgen84 Posted February 9, 2021 Share Posted February 9, 2021 @Jief_Machak @iCanaro No good with Xcode8 too, but different error message Spoiler [CC] CapsuleCache [CC] UhciDebug [MTOC] VBoxHfs /Users/mathieu/src/Cloverbootloader/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c:50:1: error: missing field 'BlockIo2' initializer [-Werror,-Wmissing-field-initializers] }; ^ [CC] grub_file [CC] CapsuleReset 1 error generated. make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe/OUTPUT/DiskIo.obj] Error 1 build.py... : error 7000: Failed to execute command make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe] build.py... : error F002: Failed to build module /Users/mathieu/src/Cloverbootloader/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf [X64, XCODE8, RELEASE] 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750709 Share on other sites More sharing options...
iCanaro Posted February 9, 2021 Share Posted February 9, 2021 https://github.com/CloverHackyColor/CloverBootloader/commit/d4e748b87c3b579c2818b91300169e64a7cca247 now on the Z370, catalina, xcode 12.4 compilation ends successfully 2 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750710 Share on other sites More sharing options...
Jief_Machak Posted February 9, 2021 Share Posted February 9, 2021 I think I didn't erase the Build folder, so not all were recompiled. That's why I didn't see these. Or something else I don't know... Anyway... Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750711 Share on other sites More sharing options...
Matgen84 Posted February 9, 2021 Share Posted February 9, 2021 @Jief_Machak @iCanaro Xcode compilation ends successfully (d4e748b87). Thanks. I try to boot 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750712 Share on other sites More sharing options...
Matgen84 Posted February 9, 2021 Share Posted February 9, 2021 (edited) @Jief_Machak @iCanaro No Clover GUI: only Underscore in the top left corner with black screen (IvyBridge, Mojave, Xcode Build). Test with Bootloader Chooser Edited February 9, 2021 by Matgen84 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750713 Share on other sites More sharing options...
iCanaro Posted February 9, 2021 Share Posted February 9, 2021 (edited) 21 minutes ago, Matgen84 said: @Jief_Machak @iCanaro No Clover GUI: only Underscore in the top left corner with black screen (IvyBridge, Mojave, Xcode Build). Test with Bootloader Chooser I'm using this newly compiled Clover, to update on the Z170 catalina with the sec up combo 2021-001 no GUI problem at boot But it's not like you're using a problematic theme??? try to re-heat it updated or change it Edited February 9, 2021 by iCanaro Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750714 Share on other sites More sharing options...
Matgen84 Posted February 9, 2021 Share Posted February 9, 2021 (edited) 41 minutes ago, iCanaro said: I'm using this newly compiled Clover, to update on the Z170 catalina with the sec up combo 2021-001 no GUI problem at boot But it's not like you're using a problematic theme??? try to re-heat it updated or change it I don't have a problem of theme with Clover build with GCC. I can try anyway changing it for Xcode Build. Remember: I build with Xcode 11.3.1 (Mojave) clang-1100.0.33.17 Very strange issue EDIT: I change the theme, same issue ----> commit d4e748b87 (Bootloader Chooser) Ivybridge: underscore at the top left of the screen Z390,: stuck at * Hit any key...* Edited February 9, 2021 by Matgen84 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750715 Share on other sites More sharing options...
Jief_Machak Posted February 9, 2021 Share Posted February 9, 2021 The theme is not read before the main function of Clover is called. And the first line (or almost) is a message "Start". On the Z390, "hit any key" is a BootloaderChooser message, I suppose ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750717 Share on other sites More sharing options...
Matgen84 Posted February 9, 2021 Share Posted February 9, 2021 3 minutes ago, Jief_Machak said: The theme is not read before the main function of Clover is called. And the first line (or almost) is a message "Start". On the Z390, "hit any key" is a BootloaderChooser message, I suppose ? Right. I use Bootloader Chooser for Z390 and also IvyBridge test. On Ivy, only underscore no text message Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750718 Share on other sites More sharing options...
iCanaro Posted February 9, 2021 Share Posted February 9, 2021 44 minutes ago, Jief_Machak said: The theme is not read before the main function of Clover is called. And the first line (or almost) is a message "Start". True! you're absolutely right 40 minutes ago, Matgen84 said: I use Bootloader Chooser for Z390 and also IvyBridge test. On Ivy, only underscore no text message delete BLC.plist inside the boot folder are you using latest BLC release? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750719 Share on other sites More sharing options...
Matgen84 Posted February 9, 2021 Share Posted February 9, 2021 (edited) 35 minutes ago, iCanaro said: delete BLC.plist inside the boot folder are you using latest BLC release? I use BLC sent by @Jief_Machak few month ago (November). Why remove BLC.plist who points to USB ! Do you mean BLC.log instead. Edited February 9, 2021 by Matgen84 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750721 Share on other sites More sharing options...
iCanaro Posted February 9, 2021 Share Posted February 9, 2021 15 minutes ago, Matgen84 said: Why remove BLC.plist who points to USB to generate a new one 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750723 Share on other sites More sharing options...
Matgen84 Posted February 9, 2021 Share Posted February 9, 2021 (edited) 11 minutes ago, iCanaro said: to generate a new one Done. Same result on Z390: * Hit any key...* BLC.log Edited February 9, 2021 by Matgen84 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750724 Share on other sites More sharing options...
Slice Posted February 9, 2021 Share Posted February 9, 2021 10 hours ago, Jief_Machak said: Also : Do you use the qemu I put in qemu folder ? If not, could you try, so we have the same exact Qemu version ? To do so : - be in your Clover folder in terminal - ./Qemu/launch ./Build/Clover/DEBUG_XCODE8/X64/CLOVERX64.efi This is the difference. You started DEBUG version while the problem is with RELEASE_XCODE8. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750726 Share on other sites More sharing options...
Slice Posted February 9, 2021 Share Posted February 9, 2021 iMac2017:CloverBootloader sergey$ ./Qemu/launch ./Build/Clover/RELEASE_XCODE8/X64/CLOVERX64.efi clover_efi_file=./Build/Clover/RELEASE_XCODE8/X64/CLOVERX64.efi ++ '[' Darwin = Darwin ']' ++ '[' -f ./Qemu/qemu_portable/qemu-system-x86_64 ']' ++ '[' -f /Users/sergey/src/CloverBootloader/Qemu/disk_image_gpt.img ']' ++ unzip -o /Users/sergey/src/CloverBootloader/Qemu/disk_image_gpt.img.zip Archive: /Users/sergey/src/CloverBootloader/Qemu/disk_image_gpt.img.zip inflating: disk_image_gpt.img creating: __MACOSX/ inflating: __MACOSX/._disk_image_gpt.img ++ rm -rf /Users/sergey/src/CloverBootloader/Qemu/__MACOSX ++ pgrep qemu ++ hdiutil attach /Users/sergey/src/CloverBootloader/Qemu/disk_image_gpt.img hdiutil: attach failed - Файл или каталог не существуют ++ exit 1 iMac2017:CloverBootloader sergey$ Somehow the file Qemu/disk_image_gpt.img is missing Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750727 Share on other sites More sharing options...
Slice Posted February 9, 2021 Share Posted February 9, 2021 Manually unpach and launch. Yes, this way there is no crash. CloverX64.efi just immediately return back to EFI. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750728 Share on other sites More sharing options...
Slice Posted February 9, 2021 Share Posted February 9, 2021 DEBUG_XCODE8 compilation works DEBUG with key -O0 RELEASE with -Os Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750730 Share on other sites More sharing options...
Slice Posted February 9, 2021 Share Posted February 9, 2021 No, -Os is not the reason. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750731 Share on other sites More sharing options...
Jief_Machak Posted February 10, 2021 Share Posted February 10, 2021 Yes, same thing here. No crash but immediate return to duet. At least I can reproduce. Doesn't mean I have the slightest idea on how to debug that !... Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750751 Share on other sites More sharing options...
Slice Posted February 10, 2021 Share Posted February 10, 2021 On 2/8/2021 at 9:44 PM, Slice said: I have an idea. As you see no the picture first command contains rsi register. It is because UNIX ABI which is wrong. Good compilation using rdx register that correspond to EFI ABI. We have here EFI_STATUS EFIAPI RefitMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) { But release xcode compilation somehow ignores EFIAPI. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1030/#findComment-2750752 Share on other sites More sharing options...
Recommended Posts