Jump to content

Build_Clover.command, another Script to build standard Clover (or customized)


Micky1979
2,126 posts in this topic

Recommended Posts

Thanks @Philip Petev, working fine after r4563 commit.

(ApfsDriverLoader, Aptio* are also available on the package)

 

aQP62mf.png

 

Logs: https://app.box.com/s/k24g4rlm7vzxvfs6obwhzt46nj7rm3pm

 

Spoiler

 --------------------------
 Building process complete!
 --------------------------

 Build info.
 ===========
  Package name: Clover_v2.4k_r4565.pkg
  MD5:          5da7b08f7ca65a69109f70bebc75aeed
  Version:      v2.4k
  Stage:        v2.4k
  Date/Time:    2018-06-22 06:10:52
  Built by:     badruzeus
  Copyright     2012-2018

  adding: Clover_v2.4k_r4565.pkg (deflated 1%)
  adding: Clover_v2.4k_r4565.pkg.md5 (stored 0%)
total 23664
drwxr-xr-x   9 badruzeus  staff      306 Jun 22 06:13 .
drwxr-xr-x  15 badruzeus  staff      510 Jun 22 06:13 ..
-rw-r--r--@  1 badruzeus  staff  5886936 Jun 22 06:13 Clover_v2.4k_r4565.pkg
-rw-r--r--   1 badruzeus  staff       68 Jun 22 06:13 Clover_v2.4k_r4565.pkg.md5
-rw-r--r--   1 badruzeus  staff  5837568 Jun 22 06:13 Clover_v2.4k_r4565.zip
drwxr-xr-x   3 badruzeus  staff      102 Jun 22 06:11 Resources
drwxr-xr-x   6 badruzeus  staff      204 Jun 22 06:13 build
drwxr-xr-x   3 badruzeus  staff      102 Jun 22 06:13 package
drwxr-xr-x   6 badruzeus  staff      204 Jun 22 06:13 utils
================================================================================
build started at:
Fri Jun 22 06:07:38 WIB 2018
finished at
Fri Jun 22 06:13:34 WIB 2018

Done!

 

 

  • Like 1
Link to comment
Share on other sites

15 minutes ago, arsradu said:

Guys, have any of you tried building 4566?
I get an error 65 building genconfig.

Same genconfig's issue here on Mojave and High Sierra.

Edited by Matgen84
Link to comment
Share on other sites

5 minutes ago, Slice said:

And what is the error?

[XCODE] clover-genconfig
** INSTALL FAILED **


The following build commands failed:
    CompileC /Users/home/src/UDK2018/Clover/CloverPackage/sym/build/clover-genconfig/clover-genconfig.build/Release/clover-genconfig.build/Objects-normal/x86_64/clover-genconfig.o clover-genconfig.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
    Ld /Users/home/src/UDK2018/Clover/CloverPackage/sym/utils/clover-genconfig normal x86_64
    GenerateDSYMFile /Users/home/src/UDK2018/Clover/CloverPackage/sym/build/clover-genconfig/clover-genconfig.dSYM /Users/home/src/UDK2018/Clover/CloverPackage/sym/utils/clover-genconfig
    Strip /Users/home/src/UDK2018/Clover/CloverPackage/sym/utils/clover-genconfig
    SetOwnerAndGroup home:staff /Users/home/src/UDK2018/Clover/CloverPackage/sym/utils/clover-genconfig
    SetMode u+w,go-w,a+rX /Users/home/src/UDK2018/Clover/CloverPackage/sym/utils/clover-genconfig
(6 failures)
make[2]: *** [/Users/home/src/UDK2018/Clover/CloverPackage/sym/utils/clover-genconfig] Error 65
make[1]: *** [all-recursive] Error 1
make: *** [pkg] Error 2

Link to comment
Share on other sites

Yeah, I also get this issue using Xcode 8.2.1 under OS X 10.11.6:

 

Spoiler

MAKE PKG
                             <--------------------------------------------------

========= Translating Resources ========
/Users/badruzeus/src/edk2/Clover/CloverPackage/package/../../../../opt/local
Updating 'en' strings file for CloverUpdater... done
Updating 'en' strings file for Clover Preference Panel... done
Updating strings file for Clover Preference Panel... done
 (170 entries)

Building CloverUpdater application...

[XCODE]
Building CloverPrefpane preference...

[XCODE]
================= Making all in boot1-install =================
	[XCODE] boot1-install

================= Making all in partutil =================
	[XCODE] partutil

================= Making all in bdmesg =================
	[XCODE] bdmesg

================= Making all in clover-genconfig =================
	[XCODE] clover-genconfig

** INSTALL FAILED **


The following build commands failed:
	CompileC /Users/badruzeus/src/edk2/Clover/CloverPackage/sym/build/clover-genconfig/clover-genconfig.build/Release/clover-genconfig.build/Objects-normal/x86_64/clover-genconfig.o clover-genconfig.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
make[2]: *** [/Users/badruzeus/src/edk2/Clover/CloverPackage/sym/utils/clover-genconfig] Error 65
make[1]: *** [all-recursive] Error 1
make: *** [slimpkg1] Error 2

o_Ops, MAKE PKG exited with error(s), aborting..
MacBookPro:~ badruzeus$ 

 

 

  • Sad 1
Link to comment
Share on other sites

Trying to build 4566 on Mojave, Build_Clover script v4.8.8

================= Making all in clover-genconfig =================

[XCODE] clover-genconfig

** INSTALL FAILED **

The following build commands failed:

CompileC /Users/shane/src/edk2/Clover/CloverPackage/sym/build/clover-genconfig/clover-genconfig.build/Release/clover-genconfig.build/Objects-normal/x86_64/clover-genconfig.o /Users/shane/src/edk2/Clover/CloverPackage/utils/clover-genconfig/clover-genconfig.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

make[2]: *** [/Users/shane/src/edk2/Clover/CloverPackage/sym/utils/clover-genconfig] Error 65

make[1]: *** [all-recursive] Error 1

make: *** [pkg] Error 2

o_Ops, MAKE PKG exited with error(s), aborting..

Edited by SavageAUS
  • Sad 1
Link to comment
Share on other sites

But strange is, I get no issue building it under Ubuntu 18.04 (GCC8.0.1):

 

#EDIT: Oh yeah, "Make PKG" does nothing under Linux. Sorry, just got it.

 

Spoiler

Generating DUETEFIMAINFVX64 FV
###############
GUID cross reference file can be found at /home/badruzeus/src/edk2/Build/Clover/RELEASE_GCC53/FV/Guid.xref

FV Space Information
DUETEFIMAINFVX64 [27%Full] 2752512 total, 753184 used, 1999328 free

- Done -
Build end time: 15:54:22, Jun.22 2018
Build total time: 00:01:00

Compressing DUETEFIMainFv.FV ...
Encoding
Compressing DxeCore.efi ...
Encoding
Compressing DxeIpl.efi ...
Encoding
Generate Loader Image ...
Created /home/badruzeus/src/edk2/Build/Clover/RELEASE_GCC53/FV/Efildr64
879+0 records in
879+0 records out
450048 bytes (450 kB, 440 KiB) copied, 0.00309113 s, 146 MB/s
Copy CloverEFI:
  -> boot7
Changing byte at 0xa9 of boot7 to show 7 as init message:
1+0 records in
1+0 records out
1 byte copied, 7.6683e-05 s, 13.0 kB/s
  -> BOOTX64.efi
  -> CLOVERX64.efi
Copy Mandatory drivers:
  -> FSInject-64.efi
  -> AppleImageCodec-64.efi
  -> AppleUITheme-64.efi
  -> AppleKeyAggregator-64.efi
  -> FirmwareVolume-64.efi
  -> SMCHelper-64.efi
  -> XhciDxe-64.efi
  -> FSInject-64.efi
  -> AppleImageCodec-64.efi
  -> AppleUITheme-64.efi
  -> AppleKeyAggregator-64.efi
  -> FirmwareVolume-64.efi
  -> DataHubDxe-64.efi
  -> SMCHelper-64.efi
  -> VBoxHfs-64.efi
  -> GrubEXFAT-64.efi
  -> GrubISO9660-64.efi
  -> GrubNTFS-64.efi
  -> GrubUDF-64.efi
  -> AptioMemoryFix.efi
  -> AptioInputFix.efi
  -> ApfsDriverLoader.efi
  -> ApfsDriverLoader-64.efi
  -> CsmVideoDxe-64.efi
  -> EnglishDxe-64.efi
  -> EmuVariableUefi-64.efi
  -> Fat-64.efi
  -> HashServiceFix-64.efi
  -> NvmExpressDxe-64.efi
  -> OsxAptioFix2Drv-64.efi
  -> OsxAptioFixDrv-64.efi
  -> OsxFatBinaryDrv-64.efi
  -> OsxLowMemFixDrv-64.efi
  -> PartitionDxe-64.efi
  -> Ps2MouseDxe-64.efi
  -> UsbKbDxe-64.efi
  -> UsbMouseDxe-64.efi
  -> VBoxExt2-64.efi
  -> VBoxExt4-64.efi
  -> VBoxIso9600-64.efi
Copy Applications:
  -> bdmesg.efi
  -> Shell64U.efi
Done!

Generating BootSectors
make: Entering directory '/home/badruzeus/src/edk2/Clover/BootHFS'
make: Nothing to be done for 'all'.
make: Leaving directory '/home/badruzeus/src/edk2/Clover/BootHFS'
Done!
================================================================================
build started at:
Fri Jun 22 15:50:28 WIB 2018
finished at
Fri Jun 22 15:54:23 WIB 2018

Done!

                             <--------------------------------------------------
Clover was built successfully!
Press any key to continue...

 

 

Edited by Badruzeus
Link to comment
Share on other sites

3 hours ago, Slice said:

There are no errors. They are before this text.

The problem is that imported headers now have conflicting types, e.g. in utils.c:

// Determines if a Unicode character is a hexadecimal digit.
int IsHexDigit (unsigned char *Digit, char Char);

IsHexDigit is already defined somewhere else. Il take a look after the job, but I think that a simple rename of that function it's enough!

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

1 hour ago, vector sigma said:

The problem is that imported headers now have conflicting types, e.g. in utils.c:


// Determines if a Unicode character is a hexadecimal digit.
int IsHexDigit (unsigned char *Digit, char Char);

IsHexDigit is already defined somewhere else. Il take a look after the job, but I think that a simple rename of that function it's enough!

Thanks!

It is here

https://sourceforge.net/p/cloverefiboot/code/HEAD/tree/rEFIt_UEFI/refit/IO.h#l209

Yes, renaming. We can't share body but we can copy to be the same or rename to be different.

  • Like 1
Link to comment
Share on other sites

I'm trying Build_Clover.command 4.8.8 on Mojave and Xcode 9.4.1 and the script he is stuck with this error:

 

Running from: macOS 10.14

Xcode 9.4.1

Build version 9F2000

                             <--------------------------------------------------

================================================================================

Compiler settings

                             <--------------------------------------------------

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1

Apple LLVM version 9.1.0 (clang-902.0.39.2)

Target: x86_64-apple-darwin18.0.0

Thread model: posix

InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

                             <--------------------------------------------------

================================================================================

BUILDTOOL is XCODE8

                             <--------------------------------------------------

 

/Users/mick3lson/Desktop/Build_Clover.command: line 1145: mkdir: command not found

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

Link to comment
Share on other sites

6 minutes ago, mick3lson said:

I'm trying Build_Clover.command 4.8.8 on Mojave and Xcode 9.4.1 and the script he is stuck with this error:

 

Running from: macOS 10.14

Xcode 9.4.1

Build version 9F2000

                             <--------------------------------------------------

================================================================================

Compiler settings

                             <--------------------------------------------------

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1

Apple LLVM version 9.1.0 (clang-902.0.39.2)

Target: x86_64-apple-darwin18.0.0

Thread model: posix

InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

                             <--------------------------------------------------

================================================================================

BUILDTOOL is XCODE8

                             <--------------------------------------------------

 

/Users/mick3lson/Desktop/Build_Clover.command: line 1145: mkdir: command not found

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

The script work well on Mojave, with Xcode 10 Beta. Why do you use Xcode 9.4.1?

 

Sorry for my bad english

Link to comment
Share on other sites

1 hour ago, Slice said:

Thanks!

It is here

https://sourceforge.net/p/cloverefiboot/code/HEAD/tree/rEFIt_UEFI/refit/IO.h#l209

Yes, renaming. We can't share body but we can copy to be the same or rename to be different.

Thanks @Slice I rename "BOOLEAN     IsHexDigit (CHAR8 c);" to "BOOLEAN     IsHexDigit1 (CHAR8 c);" in IO.h, now it works, but will next version fix it? Whether i need rename it again?

  • Like 1
Link to comment
Share on other sites

1 hour ago, mick3lson said:

I'm trying Build_Clover.command 4.8.8 on Mojave and Xcode 9.4.1 and the script he is stuck with this error:

 

Running from: macOS 10.14

Xcode 9.4.1

Build version 9F2000

                             <--------------------------------------------------

================================================================================

Compiler settings

                             <--------------------------------------------------

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1

Apple LLVM version 9.1.0 (clang-902.0.39.2)

Target: x86_64-apple-darwin18.0.0

Thread model: posix

InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

                             <--------------------------------------------------

================================================================================

BUILDTOOL is XCODE8

                             <--------------------------------------------------

 

/Users/mick3lson/Desktop/Build_Clover.command: line 1145: mkdir: command not found

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

That doesn't make any sense. mkdir is built-in command for bash, so there is no such case "command not found".

 

50 minutes ago, Matgen84 said:

 

The script work well on Mojave, with Xcode 10 Beta. Why do you use Xcode 9.4.1?

 

Sorry for my bad english

This error has nothing to do with Xcode. It's shell-related error.

  • Like 1
Link to comment
Share on other sites

59 minutes ago, Matgen84 said:

 

The script work well on Mojave, with Xcode 10 Beta. Why do you use Xcode 9.4.1?

 

Sorry for my bad english

 

8 minutes ago, Philip Petev said:

That doesn't make any sense. mkdir is built-in command for bash, so there is no such case "command not found".

 

This error has nothing to do with Xcode. It's shell-related error. 

So what should I do for solve this issue update xcode to 10 beta,

eventually where can I download Xcode 10.

Link to comment
Share on other sites

The same error on High Sierra Xcode 9.3.1 and Mojave and Xcode-beta 10.0

Spoiler

 

The following build commands failed:

CompileC /Users/cyberdevs/src/edk2/Clover/CloverPackage/sym/build/clover-genconfig/clover-genconfig.build/Release/clover-genconfig.build/Objects-normal/x86_64/clover-genconfig.o /Users/cyberdevs/src/edk2/Clover/CloverPackage/utils/clover-genconfig/clover-genconfig.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

make[2]: *** [/Users/cyberdevs/src/edk2/Clover/CloverPackage/sym/utils/clover-genconfig] Error 65

make[1]: *** [all-recursive] Error 1

make: *** [pkg] Error 2

 

o_Ops, MAKE PKG exited with error(s), aborting..

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

[Process completed]

 

 

  • Sad 1
Link to comment
Share on other sites

36 minutes ago, mick3lson said:

 

So what should I do for solve this issue update xcode to 10 beta,

 

eventually where can I download Xcode 10.

Eventually, if you want to download Xcode 10 Beta: you have to connect to developer.apple.com with your appleid and password.

 

Xcode can't be update from 9.4.1 to 10. So  you have to uninstall previous version.

 

  • Like 1
Link to comment
Share on other sites

50 minutes ago, mick3lson said:

 

So what should I do for solve this issue update xcode to 10 beta,

 

eventually where can I download Xcode 10.

Let me see you PATH variable. Open Terminal and issue the following:

echo $PATH

 

  • Like 1
Link to comment
Share on other sites

8 minutes ago, vector sigma said:

Commited to r4568

Thanks for ur last commit @vector sigma, now it's working fine here (Xcode8.2.1, OSX 10.11.6)

 

Spoiler

 --------------------------
 Building process complete!
 --------------------------

 Build info.
 ===========
  Package name: Clover_v2.4k_r4568.pkg
  MD5:          bc4fe4199627951ac2c9bb66dda0d25f
  Version:      v2.4k
  Stage:        v2.4k
  Date/Time:    2018-06-22 22:12:03
  Built by:     badruzeus
  Copyright     2012-2018

  adding: Clover_v2.4k_r4568.pkg (deflated 1%)
  adding: Clover_v2.4k_r4568.pkg.md5 (stored 0%)
total 23616
drwxr-xr-x   9 badruzeus  staff      306 Jun 22 22:14 .
drwxr-xr-x  15 badruzeus  staff      510 Jun 22 22:14 ..
-rw-r--r--@  1 badruzeus  staff  5886821 Jun 22 22:14 Clover_v2.4k_r4568.pkg
-rw-r--r--   1 badruzeus  staff       68 Jun 22 22:14 Clover_v2.4k_r4568.pkg.md5
-rw-r--r--   1 badruzeus  staff  5813936 Jun 22 22:14 Clover_v2.4k_r4568.zip
drwxr-xr-x   3 badruzeus  staff      102 Jun 22 22:13 Resources
drwxr-xr-x   6 badruzeus  staff      204 Jun 22 22:13 build
drwxr-xr-x   3 badruzeus  staff      102 Jun 22 22:14 package
drwxr-xr-x   6 badruzeus  staff      204 Jun 22 22:13 utils
================================================================================
build started at:
Fri Jun 22 22:09:36 WIB 2018
finished at
Fri Jun 22 22:14:14 WIB 2018

Done!

                             <--------------------------------------------------
Clover was built successfully!
Press any key to continue...

 

 

  • Like 2
Link to comment
Share on other sites

Yup the build was successful. Thanks @vector sigma

 

Spoiler

 

Build info.

===========

  Package name: Clover_v2.4k_r4569.pkg

  MD5:          a8e1b33a51d369baf55d7fe45af590f0

  Version:      v2.4k

  Stage:        v2.4k

  Date/Time:    2018-06-22 19:48:28

  Built by:     cyberdevs

  Copyright     2012-2018

 

  adding: Clover_v2.4k_r4569.pkg (deflated 0%)

  adding: Clover_v2.4k_r4569.pkg.md5 (stored 0%)

total 50176

drwxr-xr-x   9 cyberdevs  staff       288 Jun 22 19:49 .

drwxr-xr-x  14 cyberdevs  staff       448 Jun 22 19:49 ..

-rw-r--r--@  1 cyberdevs  staff  12675324 Jun 22 19:49 Clover_v2.4k_r4569.pkg

-rw-r--r--   1 cyberdevs  staff        68 Jun 22 19:49 Clover_v2.4k_r4569.pkg.md5

-rw-r--r--   1 cyberdevs  staff  12627236 Jun 22 19:49 Clover_v2.4k_r4569.zip

drwxr-xr-x   3 cyberdevs  staff        96 Jun 22 19:48 Resources

drwxr-xr-x   6 cyberdevs  staff       192 Jun 22 19:48 build

drwxr-xr-x   3 cyberdevs  staff        96 Jun 22 19:49 package

drwxr-xr-x   6 cyberdevs  staff       192 Jun 22 19:48 utils

================================================================================

build started at:

Fri Jun 22 19:47:14 +0430 2018

finished at

Fri Jun 22 19:49:06 +0430 2018

 

Done!

 

 

  • Like 2
Link to comment
Share on other sites

×
×
  • Create New...