[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-09 Thread ron minnich
thanks Paul, I had not realized I'd not yet loaded uuid-dev on the new machine. That said, I have seen, more recently, some libraries that don't come with a .a any more. But, clearly, that test for libuuid was broken it seems. On Mon, Jan 9, 2023 at 1:23 AM Paul Menzel wrote: > Dear Ron, > > >

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-09 Thread Paul Menzel
Dear Ron, Am 08.01.23 um 20:16 schrieb ron minnich: But in some cases static libs are no longer provided at all. Would be nice to know if that's the case for libuuid. The static library is part of `uuid-dev` [1]: /usr/include/uuid/uuid.h /usr/lib/x86_64-linux-gnu/libuuid.a

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-08 Thread ron minnich
What does it to to see if library is present? Strace may help. On Sun, Jan 8, 2023, 12:48 PM Rafael Send wrote: > Hi, > The weird part is that if I build from the root directory, it DOES say > uuid-dev is found yet the build still fails. Might that be for the > aforementioned reason* " Many

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-08 Thread Rafael Send
Solved it - apparently I had to install python3-distutils after chewing through the error log above. It's kinda weird that it was also complaining about other things in the meantime - but... thanks for the suggestion about moving the xgcc folder though, that really got me unstuck here. Cheers,

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-08 Thread Rafael Send
Hi, The weird part is that if I build from the root directory, it DOES say uuid-dev is found yet the build still fails. Might that be for the aforementioned reason* " Many tests will indicate that a library is present if they find the .so. But the .so is useless if you need static linking."* ?

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-08 Thread Martin Roth via coreboot
If it would help, we could supply a VM with each release that had the coreboot toolchain pre-built.  It's also possible to use the released docker images to rebuild coreboot - those already contain the toolchain. The advantages to both of these is that you'd be building in the environment that

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-08 Thread ron minnich
But in some cases static libs are no longer provided at all. Would be nice to know if that's the case for libuuid. On Sun, Jan 8, 2023, 9:24 AM Nico Huber wrote: > On 08.01.23 17:42, ron minnich wrote: > > For reasons I still don't understand, the various linux distros no longer > > ship .a as

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-08 Thread Nico Huber
On 08.01.23 17:42, ron minnich wrote: > For reasons I still don't understand, the various linux distros no longer > ship .a as part of the library package. They ship them separately. On Ubuntu, usually a -dev package. I even recall -devel-static packages (-devel was headers only and such) ~20

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-08 Thread ron minnich
If i look on ubuntu 18 I see this: /usr/lib/x86_64-linux-gnu/libuuid.a If I look on ubuntu 22, it's no longer there. to build firmware with this sort of library, you need the .a (which is for static linking). Somewhat ironic, for UEFI, since the entire DXE model is built on the DLL model, that

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-07 Thread Rafael Send
Actually, that's not quite right. When I "make" from the root directory, it appears not to fully build Tianocore and throws an error saying "UEFIPAYLOAD.fd - no such file or directory". If I enter payloads/externa/tianocore directory and attempt to "make" there as I've done before (I think), I

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-07 Thread Rafael Send
Hi, Thanks for the suggestion. It built in master, then I copied it to the xgcc folder from the fork I'm using. Close, but no dice just yet. I'm now running into a different problem, both on master and on my fork: Tianocore says it lacks uuid-dev (libuuid-devel). I'm on Ubuntu, and uuid-dev is

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-07 Thread Nico Huber
On 07.01.23 23:53, Rafael Send wrote: > If I wanted to try your first suggestion, does the toolchain build > transcend directories? In order to not mix up trees & versions so far I > have just checked out the latest master and the version in question into > two totally separate coreboot folders.

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-07 Thread Rafael Send
Hi, If I wanted to try your first suggestion, does the toolchain build transcend directories? In order to not mix up trees & versions so far I have just checked out the latest master and the version in question into two totally separate coreboot folders. Thanks, R Am Sa., 7. Jan. 2023 um 14:32

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-07 Thread Nico Huber
Hi Rafael, On 07.01.23 22:03, Rafael Send wrote: > I didn't downgrade the toolchain intentionally, I'm looking to build a fork > of coreboot for a specific platform (mjg59's X2100 port) that never got > upstreamed. After pulling his repo at > https://github.com/mjg59/coreboot/tree/x2100_ng, that

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-07 Thread Rafael Send
Hi, I didn't downgrade the toolchain intentionally, I'm looking to build a fork of coreboot for a specific platform (mjg59's X2100 port) that never got upstreamed. After pulling his repo at https://github.com/mjg59/coreboot/tree/x2100_ng, that is what it wants to build with. I haven't build any

[coreboot] Re: Toolchain build on Ubuntu 22.04 fails (at GCC 8.3.0)?

2023-01-07 Thread Mike Banon
Hi there Rafael, Please tell me, what is a platform for which you are going to build a coreboot? Seeing that you have downgraded your toolchain's GCC version to 8.3.0, like I'm suggesting in this manual - http://dangerousprototypes.com/docs/Lenovo_G505S_hacking - I suspect that your platform is