-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 on "ppc64el" #230
Comments
perhaps, #225 is related. But as I said, I can not work because I don't have that arch. |
hello @shirou I've tried building latest git master on ppc64el and not quite there yet it seems (unless I've made a mistake which is very possible). It fails on a testcase, here's a snippet from the build log: === RUN TestCPUPercentIntervalZeroPerCPU Which later ends with: dh_auto_test: go test -v -p 1 github.com/shirou/gopsutil github.com/shirou/gopsutil/cpu github.com/shirou/gopsutil/disk github.com/shirou/gopsutil/docker github.com/shirou/gopsutil/host github.com/shirou/gopsutil/internal/common github.com/shirou/gopsutil/load github.com/shirou/gopsutil/mem github.com/shirou/gopsutil/net github.com/shirou/gopsutil/process returned exit code 1 Any suggestions what I could try? PS. if you want ppc64el access I'm sure we can arrange a guest account on debian porter boxes. |
Oh, I might have just missed the relevant part of the log: --- FAIL: TestCpuInfo (0.00s) Which seems pretty self-explaning. Would be appreciated if the test-suite could deal with /sys not being available though. |
hmm... /sys is actually available, but cpufreq/ is not available in /sys/devices/system/cpu/cpu0/ on the ppc64el porter box it seems. Regression introduced in commit 10a1ae2 |
Even with above commit, tests still fails because there's no "model name" in cpuinfo.... This is how it looks:
|
So, model is something different (and included for each processor) on my x86. Also even if we tried "machine" (for "model name") not sure if we can use the "trailing generic info" at all with the current parser. If I read the code correctly it just skips over the empty lines instead of treating them as block separators, thus the trailing generic info will likely end up as just additional info to the last processor block. Easiest way to just make the testsuite pass on ppc64el should be to use the "cpu" field that exists for each processor block as the "model name", eg in cpu/cpu_linux.go:
Comments welcome. |
Wow! I can't say the regression come from my commit. The content of
Instead of |
@dvusboy yeah I noticed you followed it up with commit 3dc4e52 so might not have pinpointed the right cause, but there's still an exception thrown. On v2.1 it's probably just gets parsed as 0 MHz and no exception. Anyway, #269 should resolve it. Would be great with your review on that.
And yes, /proc/cpuinfo (as well as many other files in /proc) is very arch specific. There are likely other tools out there (procps? util-linux? ...) which possibly has a test-suite for a wide selection of architectures which anyone interested in writing a more cross-architecture parser should look at importing in gopsutil. |
Version 2.1 FTBFS on ppc64el as follows:
See full build log: https://buildd.debian.org/status/fetch.php?pkg=nomad&arch=ppc64el&ver=0.4.0%2Bdfsg-1&stamp=1468713257
The text was updated successfully, but these errors were encountered: