Jief_Machak Posted April 15, 2021 Share Posted April 15, 2021 I have compiled fd3b09cf13011fa585f92e19e514d35bc4a5dfc4 in release mode with xcode8 and it crash here ! @matxpa How did you build it ? buildme ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755646 Share on other sites More sharing options...
matxpa Posted April 15, 2021 Share Posted April 15, 2021 1 hour ago, Jief_Machak said: Thanks, that's helpful. I'm currently compiling these 2 commits and will see if I can reproduce here (I think I will as I did before). I'll let you know. @Jief_Machak & @Slice It seems that the problem is "clang" with Xcode Version 12.4 (12D4e) and clang version 12.0.0 (clang-1200.0.32.29) --> r5133 9bff704 XCODE8 Release can't boot --> KO with Xcode Version 11.3 (11C29) and clang version 11.0.0 (clang-1100.0.33.16) --> r5133 9bff704 XCODE8 Release boot and work fine --> OK On an HDD I booted with Mojave (10.14.6) and Xcode Version 11.3 (11C29) and clang version 11.0.0 (clang-1100.0.33.16) I compiled r5133 9bff704 XCODE8 Release and install it on an USB KEY Reboot with the USB KEY and it works fine Boot Log on Laptop Asus MBP11,3 0:154 0:000 Starting Clover revision: 5133 (master, commit 9bff704ea) on American Megatrends EFI 0:154 0:000 Build id: 20210413222734-9bff704-dirty 0:154 0:000 Build with: [Args: -D NO_GRUB_DRIVERS_EMBEDDED -D LESS_DEBUG -t XCODE8 | -D NO_GRUB_DRIVERS_EMBEDDED -D LESS_DEBUG --conf=/Users/Meunier/CloverBootloader/Conf -D USE_LOW_EBDA -a X64 -b RELEASE -t XCODE8 -n 5 | OS: 10.14.6] ... 0:154 0:000 Boot status=0 0:154 0:000 Running on: 'X75VB' with board 'X75VB' 0:154 0:000 === [ GetCPUProperties ] ======================== 0:154 0:000 CPU Vendor = 756E6547 Model=306A9 0:154 0:000 The CPU supported SSE4.1 0:154 0:000 BrandString = Intel(R) Core(TM) i5-3340M CPU @ 2.70GHz 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755647 Share on other sites More sharing options...
matxpa Posted April 15, 2021 Share Posted April 15, 2021 (edited) 31 minutes ago, Jief_Machak said: I have compiled fd3b09cf13011fa585f92e19e514d35bc4a5dfc4 in release mode with xcode8 and it crash here ! @matxpa How did you build it ? buildme ? @Jief_Machak MACBOOKPRO:CloverBootloader Meunier$ ./buildme XCODE8 ------------------------------------------------------------------------ buildme, Clover r5133 (SHA: 9bff704ea) TOOLCHAIN: XCODE8 (override example: './buildme XCODE8') 1) build Clover or 3) make pkg and usually 7) build all yesterday I I got rid of ~/CloverBootloader Repo and got a brand new clone, so Build was reBuilt and ToolChain but result was the same r5133 XCODE8 can't boot Regards Edited April 15, 2021 by matxpa 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755648 Share on other sites More sharing options...
Jief_Machak Posted April 15, 2021 Share Posted April 15, 2021 20 minutes ago, matxpa said: @Jief_Machak & @Slice It seems that the problem is "clang" with Xcode Version 12.4 (12D4e) and clang version 12.0.0 (clang-1200.0.32.29) --> r5133 9bff704 XCODE8 Release can't boot --> KO with Xcode Version 11.3 (11C29) and clang version 11.0.0 (clang-1100.0.33.16) --> r5133 9bff704 XCODE8 Release boot and work fine --> OK On an HDD I booted with Mojave (10.14.6) and Xcode Version 11.3 (11C29) and clang version 11.0.0 (clang-1100.0.33.16) I compiled r5133 9bff704 XCODE8 Release and install it on an USB KEY Reboot with the USB KEY and it works fine Boot Log on Laptop Asus MBP11,3 0:154 0:000 Starting Clover revision: 5133 (master, commit 9bff704ea) on American Megatrends EFI 0:154 0:000 Build id: 20210413222734-9bff704-dirty 0:154 0:000 Build with: [Args: -D NO_GRUB_DRIVERS_EMBEDDED -D LESS_DEBUG -t XCODE8 | -D NO_GRUB_DRIVERS_EMBEDDED -D LESS_DEBUG --conf=/Users/Meunier/CloverBootloader/Conf -D USE_LOW_EBDA -a X64 -b RELEASE -t XCODE8 -n 5 | OS: 10.14.6] ... 0:154 0:000 Boot status=0 0:154 0:000 Running on: 'X75VB' with board 'X75VB' 0:154 0:000 === [ GetCPUProperties ] ======================== 0:154 0:000 CPU Vendor = 756E6547 Model=306A9 0:154 0:000 The CPU supported SSE4.1 0:154 0:000 BrandString = Intel(R) Core(TM) i5-3340M CPU @ 2.70GHz Problem is Xcode... or we do something that we're not supposed to do and some version of xcode accepts it. As we never had that problem before with XCode, I guess there is something to find. How to you build it ? with buildme script ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755649 Share on other sites More sharing options...
matxpa Posted April 15, 2021 Share Posted April 15, 2021 7 minutes ago, Jief_Machak said: Problem is Xcode... or we do something that we're not supposed to do and some version of xcode accepts it. As we never had that problem before with XCode, I guess there is something to find. How to you build it ? with buildme script ? @Jief_Machakr5133 0 local commit fd3b09c XCODE8 OK CLOVERX64.efi r5133 0 local commit fd3b09c XCODE8 OK.txt Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755652 Share on other sites More sharing options...
Matgen84 Posted April 15, 2021 Share Posted April 15, 2021 Hi @matxpa Can you upload this: with Xcode Version 12.4 (12D4e) and clang version 12.0.0 (clang-1200.0.32.29) --> r5133 9bff704 XCODE8 Release. Please. So, I can test with my Z390 config (Big Sur 11.3 Beta 8). Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755655 Share on other sites More sharing options...
Slice Posted April 15, 2021 Share Posted April 15, 2021 3 hours ago, Jief_Machak said: In C, for a native array, called "ar", ar is equal to &ar is equal to &ar[0]. I double checked with a log : ApplePlatformData[GlobalConfig.CurrentModel].smcRevision = 233175768 &ApplePlatformData[GlobalConfig.CurrentModel].smcRevision = 233175768 &ApplePlatformData[GlobalConfig.CurrentModel].smcRevision[0] = 233175768 That couldn't not be that. A compiler bug on that is nearly impossible as it is the same as 35 years ago ! Yes, it is true for an array. I will fix this just for similarity. 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755656 Share on other sites More sharing options...
matxpa Posted April 15, 2021 Share Posted April 15, 2021 (edited) 27 minutes ago, Matgen84 said: Hi @matxpa Can you upload this: with Xcode Version 12.4 (12D4e) and clang version 12.0.0 (clang-1200.0.32.29) --> r5133 9bff704 XCODE8 Release. Please. So, I can test with my Z390 config (Big Sur 11.3 Beta 8). @Matgen84 sorry I answered a bit hastily i won't do it again I swear that (désolé j'ai répondu un peu précipitamment, je le ferai plus je le jure) You use Big Sur and App Store didn't propose you an Xcode update or upgrade to 12.4. Xcode 12.4 was published two months ago. On my Catalina SSD Unit i've Xcode 12.3 An upLoad of Xcode 12.4 is about 11,6 Go, the way to obtain it is App Store Edited April 15, 2021 by matxpa 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755658 Share on other sites More sharing options...
Matgen84 Posted April 15, 2021 Share Posted April 15, 2021 (edited) 23 minutes ago, matxpa said: @Matgen84 sorry I answered a bit hastily i won't do it again I swear that (désolé j'ai répondu un peu précipitamment, je le ferai plus je le jure) You use Big Sur and App Store didn't propose you an Xcode update or upgrade to 12.4. Xcode 12.4 was published two months ago. On my Catalina SSD Unit i've Xcode 12.3 An upLoad of Xcode 12.4 is about 11,6 Go, the way to obtain it is App Store @matxpa I'm French too. No Xcode 12.4 I talk about CloverX64.efi r5133 9bff704 build with Xcode 12.4: can you upload it. Please. Because I haven't installed Xcode on my Z390 config (Big Sur 11.3 Beta 8) Edited April 15, 2021 by Matgen84 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755663 Share on other sites More sharing options...
matxpa Posted April 15, 2021 Share Posted April 15, 2021 (edited) 40 minutes ago, Matgen84 said: @matxpa I'm French too. No Xcode 12.4 I talk about CloverX64.efi r5133 9bff704 build with Xcode 12.4: can you upload it. Please. Because I haven't installed Xcode on my Z390 config (Big Sur 11.3 Beta 8) @Matgen84 Clover_r5133_4_20210413_XCODE8_66bbace-master KO on X75VB Clover_r5133_4_20210413_XCODE8_66bbace-master KO on X75VB CLOVERX64.efi Edited April 15, 2021 by matxpa 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755667 Share on other sites More sharing options...
Jief_Machak Posted April 15, 2021 Share Posted April 15, 2021 When it doesn't boot, do you see the small message that starts with "new=" ? For me, the first commit to show the problem is 69a47c5fac203f95efd87d01c81b4a268048c178 But swapping 2 adjacent lines resolve the problem !!! Could you compile and try ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755670 Share on other sites More sharing options...
Matgen84 Posted April 15, 2021 Share Posted April 15, 2021 16 minutes ago, matxpa said: @Matgen84 Clover_r5133_4_20210413_XCODE8_66bbace-master KO on X75VB Clover_r5133_4_20210413_XCODE8_66bbace-master KO on X75VB CLOVERX64.efi 1.42 MB · 1 download 5 minutes ago, Jief_Machak said: When it doesn't boot, do you see the small message that starts with "new=" ? @Jief_Machak I just test the wrong CLOVERX64 sent by @matxpa: only underscore on the screen (no debug.log of course) 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755674 Share on other sites More sharing options...
tluck Posted April 15, 2021 Share Posted April 15, 2021 FYI... the last build that will actually boot/start up (see the UI etc) is this commit: "default Tmezone is FF, not -1" commit: 4904c3dc8 anything after that build, will not even boot/start clover. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755690 Share on other sites More sharing options...
Jief_Machak Posted April 15, 2021 Share Posted April 15, 2021 0:874 0:004 === [ GetUserSettings ] ========================= 0:879 0:004 Add 5 devices (kTagTypeDict): 0:882 0:003 Add 1 devices (Arbitrary): 0:886 0:003 - [00]: [00:00.01] (C1) 0:897 0:011 Add 5 devices (kTagTypeDict): 0:901 0:004 Add 1 devices (Arbitrary): 0:905 0:004 - [00]: [00:00.01] (C1) !!!! X64 Exception Type - 0D(#GP - General Protection) CPU Apic ID - 00000000 !!!! ExceptionData - 0000000000000000 RIP - 000000000DE30531, CS - 0000000000000018, RFLAGS - 0000000000010206 RAX - 000000000DBBFA98, RCX - 00000000FFFFFFFF, RDX - 0000000000000003 RBX - 0000000000000000, RSP - 000000000FFBDFD0, RBP - 000000000FFBE100 RSI - 0000000000000000, RDI - 000000000DBBF098 R8 - 0000000000000004, R9 - 0000000000000038, R10 - 0000000000000000 R11 - 0000000000000004, R12 - 000000000DEE90D2, R13 - 000000000DBBFA98 R14 - 0000000000000000, R15 - 0000000000000000 DS - 0000000000000008, ES - 0000000000000008, FS - 0000000000000008 GS - 0000000000000008, SS - 0000000000000008 CR0 - 0000000080010033, CR2 - 0000000000000000, CR3 - 000000000FF78000 CR4 - 0000000000000668, CR8 - 0000000000000000 DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400 GDTR - 00000000FFFFFEA0 000000000000002F, LDTR - 0000000000000000 IDTR - 000000000FEC43E0 0000000000000FFF, TR - 0000000000000000 FXSAVE_STATE - 000000000FFBDC30 !!!! Can't find image information. !!!! The crash I can reproduce crash here, while reading settings. Any of you have a debug.log when crashed ? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755693 Share on other sites More sharing options...
Jief_Machak Posted April 15, 2021 Share Posted April 15, 2021 So this bug only happened when code is compiled with optimization. I've disabled it for Settings.cpp, where the crash happened. Please try to see if it change something. As a test, we could also disable optimization for the whole project, just to see how it goes... 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755694 Share on other sites More sharing options...
eng_redaesm Posted April 15, 2021 Share Posted April 15, 2021 46 minutes ago, Jief_Machak said: So this bug only happened when code is compiled with optimization. I've disabled it for Settings.cpp, where the crash happened. Please try to see if it change something. As a test, we could also disable optimization for the whole project, just to see how it goes... working here with xcode 12.4 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755698 Share on other sites More sharing options...
tluck Posted April 16, 2021 Share Posted April 16, 2021 5 hours ago, Jief_Machak said: So this bug only happened when code is compiled with optimization. I've disabled it for Settings.cpp, where the crash happened. Please try to see if it change something. As a test, we could also disable optimization for the whole project, just to see how it goes... working for me now too. ------------------------------- DATE: 2021-04-15 TIME: 19:23:50 ------------------------------- 0:100 0:100 MemLog inited, TSC freq: 2491910879 0:100 0:000 CPU was calibrated with ACPI PM Timer 0:100 0:000 CloverX64 : Image base = 0xD6E27000 0:106 0:006 0:106 0:000 Now is 16.04.2021, 02:23:18 (GMT) 0:106 0:000 Starting Clover revision: 5133 (master, commit e7bb2bd3b) on Lenovo EFI 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755717 Share on other sites More sharing options...
Slice Posted April 16, 2021 Share Posted April 16, 2021 Yes, optimisation. Once upon a time I encountered similar problem. I disabled LTO for external modules and use -O0 optimisation instead of -Os. This is a life. 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755722 Share on other sites More sharing options...
makk Posted April 16, 2021 Share Posted April 16, 2021 (edited) Greetings I am about to upgrade to Big Sur. Currently Catalina 10.15.7 last update I have the huge mumbo 12.4 Xcode installed Clover 5133 Should I wait for new version of corrected Clover? Thanks Xcode I downloaded from https://developer apple site both the GUI and the command line tools simple task --Incase you are wondering I used the .pkg it works fine. I tried the V2 it panic Edited April 16, 2021 by makk Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755724 Share on other sites More sharing options...
Slice Posted April 16, 2021 Share Posted April 16, 2021 53 minutes ago, makk said: Greetings I am about to upgrade to Big Sur. Currently Catalina 10.15.7 last update I have the huge mumbo 12.4 Xcode installed Clover 5133 Should I wait for new version of corrected Clover? Thanks Xcode I downloaded from https://developer apple site both the GUI and the command line tools simple task --Incase you are wondering I used the .pkg it works fine. I tried the V2 it panic What do you wait? Current Clover works fine with Big Sur and is able to update a system. Why do you want Xcode? It is not related to Clover. You may take ready-to-use Clover Release. You may compile Clover using gcc. What else? 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755730 Share on other sites More sharing options...
Jief_Machak Posted April 16, 2021 Share Posted April 16, 2021 2 hours ago, Slice said: Yes, optimisation. Once upon a time I encountered similar problem. I disabled LTO for external modules and use -O0 optimisation instead of -Os. This is a life. This time I tried to disable lto but no better. It's really optimization in Settings.cpp that makes it crash. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755733 Share on other sites More sharing options...
Slice Posted April 16, 2021 Share Posted April 16, 2021 5 minutes ago, Jief_Machak said: This time I tried to disable lto but no better. It's really optimization in Settings.cpp that makes it crash. May be split Settings.cpp into two files? Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755734 Share on other sites More sharing options...
makk Posted April 16, 2021 Share Posted April 16, 2021 41 minutes ago, Slice said: What do you wait? Current Clover works fine with Big Sur and is able to update a system. Why do you want Xcode? It is not related to Clover. You may take ready-to-use Clover Release. You may compile Clover using gcc. What else? Thank you that was the answer I was looking for. I need Xcode to write. Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755735 Share on other sites More sharing options...
Jief_Machak Posted April 16, 2021 Share Posted April 16, 2021 Just now, Slice said: May be split Settings.cpp into two files? The offending function in Settings.cpp will soon disappear... 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755736 Share on other sites More sharing options...
Jief_Machak Posted April 16, 2021 Share Posted April 16, 2021 6 minutes ago, Jief_Machak said: The offending function in Settings.cpp will soon disappear... I am still not 100% convinced that the problem is this : I've tried disable optimization just for that function (and not for the whole Settings.cpp) and now the crash is elsewhere ! 1 Link to comment https://www.insanelymac.com/forum/topic/284656-clover-general-discussion/page/1057/#findComment-2755738 Share on other sites More sharing options...
Recommended Posts