Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTBFS zfs-2.1.4 i586 ppc64le #13303

Open
jengelh opened this issue Apr 6, 2022 · 8 comments
Open

FTBFS zfs-2.1.4 i586 ppc64le #13303

jengelh opened this issue Apr 6, 2022 · 8 comments
Labels
Type: Architecture Indicates an issue is specific to a single processor architecture Type: Building Indicates an issue related to building binaries Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@jengelh
Copy link
Contributor

jengelh commented Apr 6, 2022

i586
[  137s] /home/abuild/rpmbuild/BUILD/obj-default/include/os/linux/kernel/linux/simd_x86.h:154:2: error: #error "Toolchain needs to support the XSAVE assembler instruction"
[  137s]   154 | #error "Toolchain needs to support the XSAVE assembler instruction"
ppc64le
…rpmbuild/BUILD/obj-default/module/Module.symvers -e -i Module.symvers    -T -
[  249s] ERROR: modpost: GPL-incompatible module zfs.ko uses GPL-only symbol 'mmu_feature_keys'
[  249s] make[4]: *** [/usr/src/linux-5.17.1-1/scripts/Makefile.modpost:140: /home/abuild/rpmbuild/BUILD/obj-default/module/Module.symvers] Error 1
[  249s] make[4]: *** Deleting file '/home/abuild/rpmbuild/BUILD/obj-default/module/Module.symvers'
[  249s] make[3]: *** [../../../linux-5.17.1-1/Makefile:1760: modules] Error 2
[  249s] make[3]: Leaving directory '/usr/src/linux-5.17.1-1-obj/ppc64le/default'
@jengelh jengelh added the Type: Defect Incorrect behavior (e.g. crash, hang) label Apr 6, 2022
@AttilaFueloep
Copy link
Contributor

Unfortunately there's more information needed regarding the XSAVE build failure. What toolchain at what version are you using?
What is the CPU model? What distro are you building on? Could you give the cc line leading to this?

Regarding ppc64, see #12590.

@AttilaFueloep
Copy link
Contributor

Sorry, just realized this is about the original P5 from 20 years ago, so this must be some embedded system I'd guess. It didn't occur to me that there would be a need to run OpenZFS on such a system. I'm going to open a PR with a fix for the build failure. The fix will assume that the toolchain supports the FXSAVE instruction, can you confirm that this assumption is correct?

@rincebrain
Copy link
Contributor

The ppc64le thing is #12590 - Ubuntu wrote a patch to work around it, though that patch may break other things on older OpenZFS releases according to someone I know who tried running it.

@rincebrain rincebrain added Type: Architecture Indicates an issue is specific to a single processor architecture Type: Building Indicates an issue related to building binaries labels Apr 9, 2022
@jengelh
Copy link
Contributor Author

jengelh commented Apr 9, 2022

$ echo 'xsave (%ecx)' >x.s
$ gcc -c x.s -m32
$ objdump -d x.o

x.o:     file format elf32-i386


Disassembly of section .text:

00000000 <.text>:
   0:   0f ae 21                xsave  (%ecx)

@jengelh
Copy link
Contributor Author

jengelh commented Apr 9, 2022

GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.38.20220304-3
gcc version 11.2.1 20220316 [revision 6a1150d1524aeda3381b2171712e1a6611d441d6] (SUSE Linux)

@jengelh
Copy link
Contributor Author

jengelh commented Apr 9, 2022

The fix will assume that the toolchain supports the FXSAVE instruction, can you confirm that this assumption is correct?

Given FXSAVE was specified for x87, every toolchain ought to have it.

@szubersk
Copy link
Contributor

@jengelh would you mind confirming if #13367 solved the compilation issue for you?

@AttilaFueloep
Copy link
Contributor

@jengelh Regarding the XSAVE issue, I've prepared a fix months ago which unfortunately slipped through the cracks, sorry for that. Let me dig out the workspace with that fix an open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Architecture Indicates an issue is specific to a single processor architecture Type: Building Indicates an issue related to building binaries Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

4 participants