Jump to content
953 posts in this topic

Recommended Posts

9 minutes ago, STLVNUB said:

I'll give it a try on Ubuntu 14.4, which I've just installed.

Could be my bad gcc83 build compilation, though it ate more than 8gb + an hour for configure && make install with 4 cpu cores. there's still no release package for ubuntu 18.04.x but gcc82.

That error just means you need to remove your build folder and rebuild. Basically some of your sources were already built with an older version of GCC, then you built with newer version. Link time optimization (LTO) changed between those two versions apparently, so the old sources don't have compatible link formats for optimization when they are linked with the newer version of LTO.

Edited by apianti
  • Like 1
18 hours ago, Badruzeus said:

OK, got it.. it was "/opt/subversion/bin", but now is "/usr/local/bin".

Sorry my bad, .bash_profile had this till it removed lol: export PATH="/opt/subversion/bin:$PATH"

It's working now, thanks.

 

Oh, it didn't really matter where it was installed as long as it came before /usr/bin in PATH, but yeah.

  • Thanks 1
11 hours ago, STLVNUB said:

Actually downloading ubuntu-mate-18.10, will give it a go after install

Trouble building BaseTools. Fails in testing.

======================================================================
ERROR: testHelp (TianoCompress.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stlvnub/src/edk2/BaseTools/Tests/TianoCompress.py", line 33, in testHelp
    result = self.RunTool('--help', logFile='help')
  File "/home/stlvnub/src/edk2/BaseTools/Tests/TestTools.py", line 129, in RunTool
    stdout=popenOut, stderr=subprocess.STDOUT
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

======================================================================
ERROR: testRandomDataCycles (TianoCompress.Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/stlvnub/src/edk2/BaseTools/Tests/TianoCompress.py", line 66, in testRandomDataCycles
    self.compressionTestCycle(data)
  File "/home/stlvnub/src/edk2/BaseTools/Tests/TianoCompress.py", line 43, in compressionTestCycle
    self.GetTmpFilePath('input')
  File "/home/stlvnub/src/edk2/BaseTools/Tests/TestTools.py", line 129, in RunTool
    stdout=popenOut, stderr=subprocess.STDOUT
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

----------------------------------------------------------------------
Ran 270 tests in 0.643s

FAILED (errors=2)
make[1]: Leaving directory '/home/stlvnub/src/edk2/BaseTools/Tests'
make: Leaving directory '/home/stlvnub/src/edk2/BaseTools'
stlvnub@stlvnub-BMDH:~/src/edk2$ 

Ok permission error from copying from Mac to Linux. fixed

Edited by STLVNUB
found my brain
On 3/8/2019 at 7:47 PM, STLVNUB said:

Actually downloading ubuntu-mate-18.10, will give it a go after install

Actually went with Linux Mint 19.1, compiles fine with GCC8.2

Now to get Linux making Pkg :thumbsup_anim: which can be done apparently

 

You could do it by hand as well, you could technically make it on any platform as a .pkg is just a xar archive with a specific structure, I thought I had a bookmark to the structure but I can't seem to find it. I'm sure google would turn up some results though.

 

EDIT: This is it I think, I have too many bookmarks, lol. http://s.sudre.free.fr/Stuff/Ivanhoe/FLAT.html

Edited by apianti
  • Like 1

Is this GCC bug? Yeah, it was using GCC 9.0.1 (experimental). Thanks.

VirtualBox_Ubuntu 19.04_10_03_2019_15_24_34.png

 

#EDIT: (solved) ~/src/UDK2018: rm -rf Build && make -C BaseTools/ clean && make -C BaseTools/Source/C

Edited by Badruzeus
10 minutes ago, STLVNUB said:

where did you get 9.0.1 from?

If I still remember:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-9 g++-9

#EDIT: AFAIK, current GCC 9.0.1 package is for Ubuntu 19.04 (ah sorry, I forgot to mention that am using this Ubuntu version LoL).

Edited by Badruzeus
17 minutes ago, STLVNUB said:

downloading Ubuntu 19.04

won't install on Mint

OK, I've just done re-cloned local ~/src from zero. And now this is what I get when:

~/src/UDK2018: $ make -C BaseTools/Source/C

(19.04 also comes with GNU Bash 5.0.1 by default). What is this?

GCC9-Compilation-Error.png

you need to install a few depends using apt-get

google uuid/uuid.h apt-get

 

edit:

anymore errors just do same

Edited by STLVNUB
  • Thanks 1
25 minutes ago, STLVNUB said:

you need to install a few depends using apt-get

google uuid/uuid/h apt-get

OK, though after `$ sudo apt-get install uuid-dev` I got another issue referenced from:

~/src/UDK2018/BaseTools/Source/C/GenVtf/GenVtf.c

..till I replaced these `strncpy` errors with `memcpy` (didn't recent EDK2 rev solved this issue before?)

Then "Building BaseTools C Finished".

strncpy.png

19 minutes ago, STLVNUB said:

did you do a make -C BaseTools/ clean first?

I'm running VirtualBox on Mint at the moment.

I'll give it a try here.

Honestly, yes I did. And this one seems new bug with GCC 9.0.1 (I think). Will retry with GCC 8.3.0 instead:

VirtualBox_Ubuntu 19.04_10_03_2019_17_47_46.png

9 minutes ago, STLVNUB said:

What script you using to build?

You using latest revision of UDK2018?

Not using any script, just following Slice guide on prev. topic (which I lost the link into it):

cd ~
mkdir src
cd src
git clone https://github.com/tianocore/edk2 -b UDK2018 --depth 1 UDK2018
cd UDK2018
svn co svn://svn.code.sf.net/p/cloverefiboot/code/ Clover
make -C BaseTools/Source/C
./edksetup.sh
cd Clover
cp -R Patches_for_UDK2018/* ../
./ebuild.sh -fr
...

NASM version 2.14.02

I'm using build_clover

Have sucessfully built BaseTools

but have this error

Ran 270 tests in 0.793s

OK
make[1]: Leaving directory '/home/stlvnub/src/edk2/BaseTools/Tests'
make: Leaving directory '/home/stlvnub/src/edk2/BaseTools'

Running edk2 build for CloverX64 using the command:
build  -D NO_GRUB_DRIVERS_EMBEDDED -D USE_LOW_EBDA -p Clover/Clover.dsc  -a X64 -b RELEASE -t GCC53 -n 3 

Build environment: Linux-4.19.0-13-generic-x86_64-with-Ubuntu-19.04-disco
Build start time: 21:28:44, Mar.10 2019

WORKSPACE        = /home/stlvnub/src/edk2
EDK_TOOLS_PATH   = /home/stlvnub/src/edk2/BaseTools
CONF_PATH        = /home/stlvnub/src/edk2/Conf
PYTHON_COMMAND   = /usr/bin/python3.7


Architecture(s)  = X64
Build target     = RELEASE
Toolchain        = GCC53

Active Platform          = /home/stlvnub/src/edk2/Clover/Clover.dsc
Flash Image Definition   = /home/stlvnub/src/edk2/Clover/Clover.fdf

Processing meta-data .

build.py...
/home/stlvnub/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf(-1): error 3000: PCD [gEfiMdePkgTokenSpaceGuid.PcdControlFlowEnforcementPropertyMask] in [/home/stlvnub/src/edk2/MdePkg/Library/BaseLib/BaseLib.inf] is not found in dependent packages:
		/home/stlvnub/src/edk2/MdePkg/MdePkg.dec
 

- Failed -
Build end time: 21:28:46, Mar.10 2019
Build total time: 00:00:01

Will fix tomorrow, need some sleep.

 

  • Like 1
×
×
  • Create New...