Jump to content

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


Micky1979
2,126 posts in this topic

Recommended Posts

need test:

- XCODE9... of course...

- test script --> https://raw.githubusercontent.com/Micky1979/Build_Clover/master/Test_Script_dont_use.command

- plus the change for the tools_def.txt

 

ErmaC

 

@ErmaC,

 

The Test_Script works fine to build Clover r4212 with XCODE9 in 10.12.6 and 10.13_GM17A362a.

 

Attached is the build log for the Standard Release but Custom Macros option also built OK.  

 

Tools_def.txt with @FredWst changes was installed in ~/src/edk2/Conf and  ~/src/edk2/Clover/Patches_for_EDK2/Conf.

 

Thanks to all the devs involved  :).

 

 

@SavageAUS,

[XCODE9] not defined. No toolchain available for build!

You need to update your Tools_def.txt (in ~/src/edk2/Conf and ~/src/edk2/Clover/Patches_for_EDK2/Conf) with @FredWst changes.

make: *** No rule to make target `tbuild'.  Stop.

Try running option 3) -  update Clover + force edk2 update (no building)........ before running the build (option 6).

Build Log Clover r4212_XCODE9.txt.zip

tools_def.txt.zip

  • Like 4
Link to comment
Share on other sites

@ErmaC,

 

The Test_Script works fine to build Clover r4212 with XCODE9 in 10.12.6 and 10.13_GM17A362a.

 

Attached is the build log for the Standard Release but Custom Macros option also built OK.  

 

Tools_def.txt with @FredWst changes was installed in ~/src/edk2/Conf and  ~/src/edk2/Clover/Patches_for_EDK2/Conf.

 

Thanks to all the devs involved  :).

 

 

@SavageAUS,

[XCODE9] not defined. No toolchain available for build!

You need to update your Tools_def.txt (in ~/src/edk2/Conf and ~/src/edk2/Clover/Patches_for_EDK2/Conf) with @FredWst changes....

Using the tools_def.txt you provided i am still unable to compile with xcode 9.

Running from: macOS 10.12.6
Xcode 9.0
Build version 9A235
                             <--------------------------------------------------
================================================================================
Compiler settings
                             <--------------------------------------------------
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.37)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
                             <--------------------------------------------------
================================================================================
BUILDTOOL is XCODE9
                             <--------------------------------------------------
 
================================================================================
nasm check:
                             <--------------------------------------------------
NASM version 2.13.01 compiled on May  1 2017
================================================================================
gettext check:
                             <--------------------------------------------------
found gettext at /Users/shane/src/opt/local/bin
================================================================================
boot6
                             <--------------------------------------------------
TOOLCHAIN_DIR: /Users/shane/src/opt/local
NASM_PREFIX: /Users/shane/src/opt/local/bin/
NASM_VER: 2.13.01
Initializing workspace
Loading previous configuration from /Users/shane/src/edk2/Conf/BuildEnv.sh
WORKSPACE: /Users/shane/src/edk2
EDK_TOOLS_PATH: /Users/shane/src/edk2/BaseTools
CONF_PATH: /Users/shane/src/edk2/Conf
 
Running edk2 build for CloverX64 using the command:
build --skip-autogen  -D NO_GRUB_DRIVERS_EMBEDDED -D CHECK_FLAGS -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t XCODE9 -n 9 
 
Build environment: Darwin-16.7.0-x86_64-i386-64bit
Build start time: 19:36:13, Sep.20 2017
 
WORKSPACE        = /Users/shane/src/edk2
ECP_SOURCE       = /Users/shane/src/edk2/EdkCompatibilityPkg
EDK_SOURCE       = /Users/shane/src/edk2/EdkCompatibilityPkg
EFI_SOURCE       = /Users/shane/src/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH   = /Users/shane/src/edk2/BaseTools
CONF_PATH        = /Users/shane/src/edk2/Conf
 
 
Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = XCODE9
 
Active Platform          = /Users/shane/src/edk2/Clover/Clover.dsc
Flash Image Definition   = /Users/shane/src/edk2/Clover/Clover.fdf
 
Processing meta-data .. done!
Building ... /Users/shane/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64]
Building ... /Users/shane/src/edk2/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf [X64]
make: *** No rule to make target `tbuild'.  Stop.
 
 
build.py...
 : error 7000: Failed to execute command
make tbuild [/Users/shane/src/edk2/Build/Clover/RELEASE_XCODE9/X64/MdePkg/Library/BasePcdLibNull/BasePcdLibNull]
 
 
build.py...
 : error 7000: Failed to execute command
make tbuild [/Users/shane/src/edk2/Build/Clover/RELEASE_XCODE9/X64/MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull]
 
 
build.py...
 : error F002: Failed to build module
/Users/shane/src/edk2/MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf [X64, XCODE9, RELEASE]
 
- Failed -
Build end time: 19:36:16, Sep.20 2017
Build total time: 00:00:03

o_Ops, ./ebuild.sh exited with error(s), aborting.

Edit: Never mind, chose wrong options.

Link to comment
Share on other sites

@ErmaC,

 

The Test_Script works fine to build Clover r4212 with XCODE9 in 10.12.6 and 10.13_GM17A362a.

 

Attached is the build log for the Standard Release but Custom Macros option also built OK.  

 

Tools_def.txt with @FredWst changes was installed in ~/src/edk2/Conf and  ~/src/edk2/Clover/Patches_for_EDK2/Conf.

 

Thanks to all the devs involved  :).

 

good...

...now we need first merge and update the tools_defs in the clover repo... then merge the test_script changes in the main script... for daily use...

 

PS: I see few post ago...  some error in the "VA_START (Args, Iso639Language);"

few changes are needed in the library... but this is a point where start https://www.mail-archive.com/edk2-devel@lists.01.org/msg25740.html ... is a post made by Slice :P

 

Cordially

 

ErmaC

  • Like 1
Link to comment
Share on other sites

Well, what's going on..?  :)

 

 

 

1 error generated.
make: *** [/Users/badruzeus/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/UefiLib/UefiLib/OUTPUT/UefiLib.obj] Error 1


build.py...
 : error 7000: Failed to execute command
	make tbuild [/Users/badruzeus/src/edk2/Build/Clover/RELEASE_XCODE8/X64/MdePkg/Library/UefiLib/UefiLib]


build.py...
 : error F002: Failed to build module
	/Users/badruzeus/src/edk2/MdePkg/Library/UefiLib/UefiLib.inf [X64, XCODE8, RELEASE]

- Failed -
Build end time: 06:00:54, Sep.21 2017
Build total time: 00:00:39


o_Ops, ./ebuild.sh exited with error(s), aborting..
Macintosh:~ badruzeus$ 
 

 

 

 

My tools are:

OS: OS X 10.11.6 (15G1611)
XCode: 8.2 Build 8C38
NASM: 2.13.01
Build_Clover script v4.5.4
EDK2: r25373
 
Thanks.

Build_Clover_v4.5.4_XCode8.2_r4213.txt.zip

bash -x buildclover.txt

Link to comment
Share on other sites

@Badruzeus,

 

Try editing ~/src/edk2/MdePkg/Include/Library/UefiLib.h as @tluck suggests in post#14524.  @Slice did sync with edk2-25373, and a few things still need to be ironed out between Clover/XCODE9  :).

 

Attached is edited file...

Thanks @fusion71au:

build started at:
Thu Sep 21 06:30:19 WIB 2017
finished at
Thu Sep 21 06:34:29 WIB 2017

Done!

                             <--------------------------------------------------
Clover was built successfully!

So, I should to correct there's no problem with Build_Clover.command v4.5.4, sorry.  :angel_not:

mod_UefiLib.h_Script_v4.5.4_XCode8.2_r4213.txt.zip

  • Like 1
Link to comment
Share on other sites

Build_Clover.command v4.5.4 + EDK2 v25373 + XCode 9 GM

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

 Build info.
 ===========
  Package name: Clover_v2.4k_r4214.pkg
  MD5:          753c8fa7a7c4e3457e467758f5b552df
  Version:      v2.4k
  Stage:        v2.4k
  Date/Time:    2017-09-21 10:36:16
  Built by:     fantomas
  Copyright     2012-2017

  adding: Clover_v2.4k_r4214.pkg (deflated 1%)
  adding: Clover_v2.4k_r4214.pkg.md5 (stored 0%)
total 47400
drwxr-xr-x   9 fantomas  staff       306 Sep 21 10:39 .
drwxr-xr-x  15 fantomas  staff       510 Sep 21 10:39 ..
-rw-r--r--@  1 fantomas  staff  11974887 Sep 21 10:39 Clover_v2.4k_r4214.pkg
-rw-r--r--   1 fantomas  staff        68 Sep 21 10:39 Clover_v2.4k_r4214.pkg.md5
-rw-r--r--   1 fantomas  staff  11904776 Sep 21 10:39 Clover_v2.4k_r4214.zip
drwxr-xr-x   3 fantomas  staff       102 Sep 21 10:38 Resources
drwxr-xr-x   7 fantomas  staff       238 Sep 21 10:39 build
drwxr-xr-x   3 fantomas  staff       102 Sep 21 10:39 package
drwxr-xr-x   7 fantomas  staff       238 Sep 21 10:39 utils
================================================================================
build started at:
Thu Sep 21 10:35:21 CEST 2017
finished at
Thu Sep 21 10:39:26 CEST 2017

Done!

                             <--------------------------------------------------
Clover was built successfully!
Press any key to continue...
  • Like 2
Link to comment
Share on other sites

FYI: Xcode 9 seems to work with both XCODE5 and XCODE8 profiles. Tested them both, deleting the edk2 folder every time and I'm currently running Clover r4214, built with the XCODE5 profile.

If i unsterstand: it is not necessary to modify Uefilib file for example, to compile with Xcode 9. Just select "Xcode9" in the script. Right?

 

Sorry for my bad english.

Link to comment
Share on other sites

sorry did not attach log

build: : warning: Tool chain [XCODE9] is not defined


build.py...
 : error 4000: Not available
	[XCODE9] not defined. No toolchain available for build!

Use XCODE5 toolchain.

  • Like 2
Link to comment
Share on other sites

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

Build_Clover script v4.5.5                                  No update available.

                            

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

By Micky1979 based on Slice, Zenith432, STLVNUB, JrCs, cecekpawon, Needy,

cvad, Rehabman, philip_petev, ErmaC

 

Supported OSes: macOS X, Ubuntu (16.04/16.10), Debian Jessie and Stretch

                            

svn: E170013: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/cloverefiboot/code'

svn: E000061: Can't connect to host 'svn.code.sf.net': Connection refused

svn: E170013: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/edk2/code/trunk/edk2'

svn: E000061: Can't connect to host 'svn.code.sf.net': Connection refused

CLOVER Remote revision: unknown Local revision: 4214

EDK2 Remote revision: unknown Local revision: 25373

 

The current local EDK2 revision is the suggested one (25373). 

                            

Please enter your choice: 

 1) run my script on the source

 2) build existing revision (no update, for testing only)

 3) build existing revision for release (no update, standard build)

 4) build existing revision with custom macros enabled

 5) info and limitations about this script

 6) enter Developers mode (only for devs)

 7) Exit

 
 
Does anyone have the same issue with svn?
  • Like 2
Link to comment
Share on other sites

Does anyone have the same issue with svn?

 

Yes I do. I get the same error

 

 

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

Build_Clover script v4.5.5                                  No update available.

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

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

By Micky1979 based on Slice, Zenith432, STLVNUB, JrCs, cecekpawon, Needy,

cvad, Rehabman, philip_petev, ErmaC

 

Supported OSes: macOS X, Ubuntu (16.04/16.10), Debian Jessie and Stretch

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

svn: E170013: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/cloverefiboot/code'

svn: E000061: Can't connect to host 'svn.code.sf.net': Connection refused

svn: E170013: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/edk2/code/trunk/edk2'

svn: E000061: Can't connect to host 'svn.code.sf.net': Connection refused

CLOVER Remote revision: unknown Local revision: 4222

EDK2 Remote revision: unknown Local revision: 25373

 

The current local EDK2 revision is the suggested one (25373). 

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

Please enter your choice: 

 1) run my script on the source

 2) build existing revision (no update, for testing only)

 3) build existing revision for release (no update, standard build)

 4) build existing revision with custom macros enabled

 5) info and limitations about this script

 6) enter Developers mode (only for devs)

 7) Exit

 

 

Link to comment
Share on other sites

SourceForge is online again, but script can't load remote repo.

================================================================================
Build_Clover script v4.5.5                                  No update available.
                             <--------------------------------------------------
================================================================================
By Micky1979 based on Slice, Zenith432, STLVNUB, JrCs, cecekpawon, Needy,
cvad, Rehabman, philip_petev, ErmaC

Supported OSes: macOS X, Ubuntu (16.04/16.10), Debian Jessie and Stretch
                             <--------------------------------------------------
svn: E170013: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/cloverefiboot/code'
svn: E000061: Can't connect to host 'svn.code.sf.net': Connection refused
svn: E170013: Unable to connect to a repository at URL 'svn://svn.code.sf.net/p/edk2/code/trunk/edk2'
svn: E000061: Can't connect to host 'svn.code.sf.net': Connection refused
CLOVER	Remote revision: unknown	Local revision: 4189
EDK2	Remote revision: unknown	Local revision: 24933

The current local EDK2 revision is not the suggested one (25373)!
It's recommended to change it to the suggested one,
using the update Clover + force edk2 update option!
                             <--------------------------------------------------
Please enter your choice: 
 1) run my script on the source
 2) build existing revision (no update, for testing only)
 3) build existing revision for release (no update, standard build)
 4) build existing revision with custom macros enabled
 5) info and limitations about this script
 6) enter Developers mode (only for devs)
 7) Exit
Link to comment
Share on other sites

The script works again:
 

 --------------------------

 Building process complete!

 --------------------------

 

 Build info.

 ===========

  Package name: Clover_v2.4k_r4222.pkg

  MD5:          2c8cf1c6ac8b4a07a5b263c2345e601c

  Version:      v2.4k

  Stage:        v2.4k

  Date/Time:    2017-09-27 13:35:18

  Built by:     fantomas

  Copyright     2012-2017

 

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

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

total 47400

drwxr-xr-x   9 fantomas  staff       306 Sep 27 13:38 .

drwxr-xr-x  15 fantomas  staff       510 Sep 27 13:38 ..

-rw-r--r--@  1 fantomas  staff  11962726 Sep 27 13:38 Clover_v2.4k_r4222.pkg

-rw-r--r--   1 fantomas  staff        68 Sep 27 13:38 Clover_v2.4k_r4222.pkg.md5

-rw-r--r--   1 fantomas  staff  11915894 Sep 27 13:38 Clover_v2.4k_r4222.zip

drwxr-xr-x   3 fantomas  staff       102 Sep 27 13:37 Resources

drwxr-xr-x   7 fantomas  staff       238 Sep 27 13:38 build

drwxr-xr-x   3 fantomas  staff       102 Sep 27 13:38 package

drwxr-xr-x   7 fantomas  staff       238 Sep 27 13:38 utils

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

build started at:

Wed Sep 27 13:35:15 CEST 2017

finished at

Wed Sep 27 13:38:25 CEST 2017

 

Done!

 

                            

Clover was built successfully!

Press any key to continue...

 

But is used XCODE8 Toolchain for building while I have XCODE9

 

Running from: macOS 10.13

Xcode 9.0

Build version 9A235

                            

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

Compiler settings

                            

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1

Apple LLVM version 9.0.0 (clang-900.0.37)

Target: x86_64-apple-darwin17.0.0

Thread model: posix

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

                            

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

BUILDTOOL is XCODE8

Link to comment
Share on other sites

×
×
  • Create New...