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

Can't compile GetEventLog() func on 32-bit architecture #9

Closed
tSU-RooT opened this issue Jan 31, 2017 · 2 comments
Closed

Can't compile GetEventLog() func on 32-bit architecture #9

tSU-RooT opened this issue Jan 31, 2017 · 2 comments

Comments

@tSU-RooT
Copy link

How to reproduce

Make main.go file on 32-bit architecture(such as i386, i686)

package main

import (
        _ "github.com/coreos/go-tspi/tspi"
)

func main() {
}

And run below command.

$ go run main.go 
# github.com/coreos/go-tspi/tspi
../../coreos/go-tspi/tspi/tpm.go:92: type [1073741824]C.struct_tdTSS_PCR_EVENT larger than address space
../../coreos/go-tspi/tspi/tpm.go:92: type [1073741824]C.struct_tdTSS_PCR_EVENT too large

Environment

Debian GNU/Linux Sid i686

 $ uname -a
Linux debian-vm-tsr 4.8.0-2-686 #1 SMP Debian 4.8.11-1 (2016-12-02) i686 GNU/Linux

This problem is related to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849665

Thanks

@onlyjob
Copy link

onlyjob commented Jan 30, 2018

Ping? Any progress?

@onlyjob
Copy link

onlyjob commented May 1, 2018

Please?

alishuja added a commit to alishuja/go-tspi that referenced this issue Jul 10, 2020
The target host is a 32-bit Debian 9 on Armv7 Cortex-A7 dual-core 1 GHz using the official golang v.14 ARMv6l build. Anything over 26 was giving issue google#9. Was able to compile fine, however since I don't have access to a TPM1.2 device but a TPM2.0, the file /sys/kernel/security/tpm0/binary_bios_measurements does not exist for me.
ericchiang added a commit that referenced this issue Jul 2, 2021
Fix for issue #9 for 32-bit architectures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants