Jief_Machak Posted February 7, 2021 Share Posted February 7, 2021 Sorry I didn't see iCanaro's post, that's why I'm fixing it only now. Yes, I cleaned one include too much ! Committed. 1 3 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750470 Share on other sites More sharing options...
Slice Posted February 7, 2021 Share Posted February 7, 2021 All is fine now. 2 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750471 Share on other sites More sharing options...
Matgen84 Posted February 7, 2021 Share Posted February 7, 2021 @Slice @Jief_Machak I can't build Clover latest commit. [DLINK] CLOVERX64 Undefined symbols for architecture x86_64: "___bzero", referenced from: REFIT_MENU_SCREEN::REFIT_MENU_SCREEN() in lto.o REFIT_MENU_SCREEN::REFIT_MENU_SCREEN(unsigned long long, XStringW, XStringW) in lto.o REFIT_MENU_SCREEN::REFIT_MENU_SCREEN(unsigned long long, XStringW, XStringW, REFIT_ABSTRACT_MENU_ENTRY*, REFIT_ABSTRACT_MENU_ENTRY*) in lto.o KEXT_PATCH::KEXT_PATCH() in lto.o __GLOBAL__sub_I_Settings.cpp in lto.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit/DEBUG/CLOVERX64.dll] Error 1 build.py... : error 7000: Failed to execute command make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit] build.py... : error F002: Failed to build module /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/refit.inf [X64, XCODE8, RELEASE] 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750475 Share on other sites More sharing options...
Jief_Machak Posted February 7, 2021 Share Posted February 7, 2021 Hum ???! Probably the compiler that automatically replaced a memset(p, 0, x) by bzero. But I compiled here before commit... What about GCC ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750476 Share on other sites More sharing options...
Matgen84 Posted February 7, 2021 Share Posted February 7, 2021 35 minutes ago, Jief_Machak said: Hum ???! Probably the compiler that automatically replaced a memset(p, 0, x) by bzero. But I compiled here before commit... What about GCC ? I can build latest commit with GCC, not with XCODE8 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750481 Share on other sites More sharing options...
Jief_Machak Posted February 7, 2021 Share Posted February 7, 2021 Just now, Matgen84 said: I can build latest commit with GCC, not with XCODE8 Ok, yes, so it's clang optimization. I had to change the setup of clang flags. The goal was not to change them for regular compilation. I'll compare with the previous version and see. It still strange that I tried to compile with XCODE8. Pretty it worked before I committed... 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750482 Share on other sites More sharing options...
iCanaro Posted February 7, 2021 Share Posted February 7, 2021 all OK 3 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750491 Share on other sites More sharing options...
Slice Posted February 7, 2021 Share Posted February 7, 2021 6 hours ago, Jief_Machak said: Ok, yes, so it's clang optimization. I had to change the setup of clang flags. The goal was not to change them for regular compilation. I'll compare with the previous version and see. It still strange that I tried to compile with XCODE8. Pretty it worked before I committed... Because you compile DEBUG? I comfirm the problem with XCODE8 compilation in REFIT_MENU_SCREEN::REFIT_MENU_SCREEN() ScrollState{0,0,0,0,0,0,0,0,0,0,0}, ? 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750510 Share on other sites More sharing options...
iCanaro Posted February 7, 2021 Share Posted February 7, 2021 i can't compile in anymore i do on all the hacks i've tried Spoiler 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: 16:45:36, Feb.07 2021 WORKSPACE = /Users/utente/CloverBootloader EDK_TOOLS_PATH = /Users/utente/CloverBootloader/BaseTools CONF_PATH = /Users/utente/CloverBootloader/Conf Architecture(s) = X64 Processing meta-data Build target = RELEASE .Toolchain = GCC53 Active Platform = /Users/utente/CloverBootloader/Clover.dsc .. build.py... /Users/utente/CloverBootloader/rEFIt_UEFI/refit.inf(-1): error 000E: File/directory not found in workspace /Users/utente/CloverBootloader/rEFIt_UEFI/Platform/DataHub.cpp - Failed - Build end time: 16:45:39, Feb.07 2021 Build total time: 00:00:03 logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Processo completato] 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750513 Share on other sites More sharing options...
Matgen84 Posted February 7, 2021 Share Posted February 7, 2021 Hi @Slice @Jief_Machak Like @iCanaro I can't build Spoiler build --conf=/Users/mathieu/src/Cloverbootloader/Conf -D USE_LOW_EBDA -p Clover.dsc -a X64 -b RELEASE -t XCODE8 -n 9 Build environment: Darwin-18.7.0-x86_64-i386-64bit Build start time: 16:52:17, Feb.07 2021 WORKSPACE = /Users/mathieu/src/Cloverbootloader EDK_TOOLS_PATH = /Users/mathieu/src/Cloverbootloader/BaseTools CONF_PATH = /Users/mathieu/src/Cloverbootloader/Conf Architecture(s) = X64 Build target = RELEASE Toolchain = XCODE8 Processing meta-data . Active Platform = /Users/mathieu/src/Cloverbootloader/Clover.dsc ... build.py... /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/refit.inf(-1): error 000E: File/directory not found in workspace /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/Platform/DataHub.cpp Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750515 Share on other sites More sharing options...
Slice Posted February 7, 2021 Share Posted February 7, 2021 Sorry I forget to commit the files. Done! 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750516 Share on other sites More sharing options...
Matgen84 Posted February 7, 2021 Share Posted February 7, 2021 (edited) @Slice @Jief_Machak Thanks for commit commit 05dd5ca. As before in the day, I can't build with XCODE because "___bzero" Spoiler [SLINK] CLOVERX64 [DLINK] CLOVERX64 Undefined symbols for architecture x86_64: "___bzero", referenced from: REFIT_MENU_SCREEN::REFIT_MENU_SCREEN() in lto.o REFIT_MENU_SCREEN::REFIT_MENU_SCREEN(unsigned long long, XStringW, XStringW) in lto.o REFIT_MENU_SCREEN::REFIT_MENU_SCREEN(unsigned long long, XStringW, XStringW, REFIT_ABSTRACT_MENU_ENTRY*, REFIT_ABSTRACT_MENU_ENTRY*) in lto.o KEXT_PATCH::KEXT_PATCH() in lto.o __GLOBAL__sub_I_Settings.cpp in lto.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit/DEBUG/CLOVERX64.dll] Error 1 build.py... : error 7000: Failed to execute command make tbuild [/Users/mathieu/src/Cloverbootloader/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit] build.py... : error F002: Failed to build module /Users/mathieu/src/Cloverbootloader/rEFIt_UEFI/refit.inf [X64, XCODE8, RELEASE] Edited February 7, 2021 by Matgen84 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750517 Share on other sites More sharing options...
Jief_Machak Posted February 7, 2021 Share Posted February 7, 2021 That commit was not the solution for that xcode problem. Next one should be though. 1 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750518 Share on other sites More sharing options...
iCanaro Posted February 7, 2021 Share Posted February 7, 2021 15 minutes ago, Jief_Machak said: Next one should be though. works Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750520 Share on other sites More sharing options...
Jief_Machak Posted February 7, 2021 Share Posted February 7, 2021 Instead of trying to understand why and where clang is calling bzero, I just defined it. Try now with XCODE8. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750521 Share on other sites More sharing options...
Slice Posted February 7, 2021 Share Posted February 7, 2021 9 minutes ago, iCanaro said: works yes Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750522 Share on other sites More sharing options...
LAbyOne Posted February 7, 2021 Share Posted February 7, 2021 (edited) 11 minutes ago, Slice said: yes Curious, i still get cata XCode 12.4 Undefined symbols for architecture x86_64: "____chkstk_darwin", referenced from: _DecompressLZSS in lto.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/labyone/src/Clover/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit/DEBUG/CLOVERX64.dll] Error 1 build.py... : error 7000: Failed to execute command make tbuild [/Users/labyone/src/Clover/Build/Clover/RELEASE_XCODE8/X64/rEFIt_UEFI/refit] build.py... : error F002: Failed to build module /Users/labyone/src/Clover/rEFIt_UEFI/refit.inf [X64, XCODE8, RELEASE] - Failed - Build end time: 17:43:55, Feb.07 2021 Build total time: 00:01:29 on HS XCode 10.1 works Edited February 7, 2021 by LAbyOne Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750525 Share on other sites More sharing options...
Slice Posted February 7, 2021 Share Posted February 7, 2021 With Xcode 11.2.1 works. And this Xcode works in BigSur. I can recommend to switch to gcc-10.2. It works. 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750527 Share on other sites More sharing options...
LAbyOne Posted February 7, 2021 Share Posted February 7, 2021 1 hour ago, Slice said: With Xcode 11.2.1 works. And this Xcode works in BigSur. I can recommend to switch to gcc-10.2. It works. Thanks @Slice already noticed gcc working (tried that after xcode fail) and about BigSur, we'll talk about it ...if I will install that... still very far from my actual priorities. even cata is still only a Test drive.. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750530 Share on other sites More sharing options...
Jief_Machak Posted February 7, 2021 Share Posted February 7, 2021 1 hour ago, LAbyOne said: on HS XCode 10.1 works Look like new version add a stack probing mechanism. There is an option "mno-stack-probe" that might work. Can't try it. @LAbyOne maybe you can ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750531 Share on other sites More sharing options...
Jief_Machak Posted February 7, 2021 Share Posted February 7, 2021 50 minutes ago, Jief_Machak said: There is an option "mno-stack-probe" that might work. Can't try it Yes, reported by LAbyOne. Could you try to add that option ("-mno-stack-probe") in build option in Clover.dsc ? On these 2 lines at the end of the file : XCODE:*_*_*_CC_FLAGS = -std=c11 -fno-unwind-tables -Wno-msvc-include $(BUILD_OPTIONS) XCODE:*_*_*_CXX_FLAGS = -std=c++11 -fno-unwind-tables -Wno-msvc-include $(BUILD_OPTIONS) Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750534 Share on other sites More sharing options...
kushwavez Posted February 7, 2021 Share Posted February 7, 2021 (edited) for "-mno-stack-probe" it says : "clang: error: unknown argument: '-mno-stack-probe'" it should be "-mno-stack-arg-probe", but the build still fails with the same error mentioned in @LAbyOne's post Xcode 12.4, Big Sur 11.2 Edited February 7, 2021 by kushwavez Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750537 Share on other sites More sharing options...
LAbyOne Posted February 7, 2021 Share Posted February 7, 2021 57 minutes ago, kushwavez said: for "-mno-stack-probe" it says : "clang: error: unknown argument: '-mno-stack-probe'" it should be "-mno-stack-arg-probe", but the build still fails with the same error mentioned in @LAbyOne's post Xcode 12.4, Big Sur 11.2 Confirmed Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750541 Share on other sites More sharing options...
Jief_Machak Posted February 7, 2021 Share Posted February 7, 2021 what about "-mmacosx-version-min=10.10" ? 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750542 Share on other sites More sharing options...
kushwavez Posted February 7, 2021 Share Posted February 7, 2021 @Jief_Machak yep, that did the trick, build finished. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1027/#findComment-2750543 Share on other sites More sharing options...
Recommended Posts