Jump to content
30960 posts in this topic

Recommended Posts

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

 

  • Like 1
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 by matxpa
  • Sad 1
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 ?

 

 

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

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). 

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.

  • Like 1
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 by matxpa
  • Like 1
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. :D No Xcode 12.4 :D
 

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 by Matgen84
40 minutes ago, Matgen84 said:

 

@matxpa I'm French too. :D No Xcode 12.4 :D
 

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 by matxpa
  • Thanks 1

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 ?

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)

  • Like 1
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 ?

 

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...

  • Like 1
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

  • Like 1
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

  • Like 1

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 by makk
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?

  • Like 1
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.

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.

 

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 !

  • Sad 1
×
×
  • Create New...