andreiw / RaspberryPiPkg

DEPRECATED - DO NOT USE | Go here instead ->
https://github.com/tianocore/edk2-platforms/tree/master/Platform/RaspberryPi/RPi3
744 stars 143 forks source link

compiling on native aarch64 host #48

Closed stefan2225 closed 5 years ago

stefan2225 commented 5 years ago

Hello,

I tried to compile this on an aarch64 host but I get some errors I can't seem to resolve. Seems like many other people have this issue but with compiling edk2 for an x86_64 host. Would be nice if you can tell me what I did wrong (I attached the log to this issue).

Thanks, Stefan. log.txt

andreiw commented 5 years ago

This has nothing to do with an AArch64 host.

You’re missing uuid-dev or whatever package providing libuuid lib/headers on your system.

'/home/**/git/edk2/BaseTools/Source/C/GenFv' gcc -o ../bin/GenFv GenFv.o GenFvInternalLib.o -L../libs -lCommon -luuid /usr/bin/ld: cannot find -luuid collect2: error: ld returned 1 exit status make[2]: *** [../Makefiles/app.makefile:24: A

On Jul 6, 2018, at 10:15 AM, stefan2225 notifications@github.com wrote:

Hello,

I tried to compile this on an aarch64 host but I get some errors I can't seem to resolve. Seems like many other people have this issue but with compiling edk2 for an x86_64 host. Would be nice if you can tell me what I did wrong (I attached the log to this issue).

Thanks, Stefan. log.txt

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

stefan2225 commented 5 years ago

Weird, I have installed uuid-dev both on my normal pc and on the aarch64 host but It only compiled on my normal pc. sorry

andreiw commented 5 years ago

Btw edk2 build only works on little endian hosts. Just in case you decide to try aarch64be...

A

On Jul 6, 2018, at 11:43 AM, stefan2225 notifications@github.com wrote:

Weird, I have installed uuid-dev both on my normal pc and on the aarch64 host but It only compiled on my normal pc. sorry

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

stefan2225 commented 5 years ago

Okay, I just ran lscpu on it and it tells me that it's little endian..

stefan2225 commented 5 years ago

Maybe it is something with the kernel, since it's mainline..?

andreiw commented 5 years ago

I'm confused about your question.

Your compilation issues stem from the build system not finding libuuid.

A

On Fri, Jul 6, 2018 at 11:55 AM stefan2225 notifications@github.com wrote:

Maybe it is something with the kernel, since it's mainline..?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andreiw/RaspberryPiPkg/issues/48#issuecomment-403074506, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsta2S0IFvLSpAPLWLvwLNY6tg636Xjks5uD4h-gaJpZM4VFiA4 .

-- A

stefan2225 commented 5 years ago

Yes, but I mean that I have them already installed

andreiw commented 5 years ago

Can you build this?

https://gist.github.com/yoggy/4483031

On Fri, Jul 6, 2018 at 1:31 PM stefan2225 notifications@github.com wrote:

Yes, but I mean that I have them already installed

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/andreiw/RaspberryPiPkg/issues/48#issuecomment-403099300, or mute the thread https://github.com/notifications/unsubscribe-auth/AAsta72JpkH69h0c7DCm_SSLVaYmLn5-ks5uD58KgaJpZM4VFiA4 .

-- A

stefan2225 commented 5 years ago

No, I get a error message instead:

/tmp/ccHcUT1C.o: In function main': uuid_test.c:(.text+0x14): undefined reference touuid_generate_time_safe' uuid_test.c:(.text+0x20): undefined reference to uuid_unparse_lower' uuid_test.c:(.text+0x40): undefined reference touuid_parse' uuid_test.c:(.text+0x4c): undefined reference to uuid_compare' uuid_test.c:(.text+0x74): undefined reference touuid_parse' uuid_test.c:(.text+0x80): undefined reference to uuid_compare' uuid_test.c:(.text+0x9c): undefined reference touuid_is_null' uuid_test.c:(.text+0xb8): undefined reference to uuid_clear' uuid_test.c:(.text+0xc0): undefined reference touuid_is_null' collect2: error: ld returned 1 exit status

I'll try reinstalling the libuuid packages.

andreiw commented 5 years ago

Not a RaspberryPiPkg issue