Jump to content
30960 posts in this topic

Recommended Posts

@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]

 

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

Just now, Matgen84 said:

 

I can build latest commit with GCC, not with XCODE8 :cry:

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

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

?

  • Like 1

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]

 

  • Sad 1

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

 

@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 by Matgen84
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 by LAbyOne
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..

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)

 

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 by kushwavez
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

×
×
  • Create New...