{"action":"created","issue":{"url":"https://api.github.com/repos/cyring/CoreFreq/issues/11","repository_url":"https://api.github.com/repos/cyring/CoreFreq","labels_url":"https://api.github.com/repos/cyring/CoreFreq/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/cyring/CoreFreq/issues/11/comments","events_url":"https://api.github.com/repos/cyring/CoreFreq/issues/11/events","html_url":"https://github.com/cyring/CoreFreq/issues/11","id":183551369,"number":11,"title":"error: ‘MSR_NHM_TURBO_RATIO_LIMIT’ undeclared","user":{"login":"JodiTheTigger","id":1227127,"avatar_url":"https://avatars.githubusercontent.com/u/1227127?v=3","gravatar_id":"","url":"https://api.github.com/users/JodiTheTigger","html_url":"https://github.com/JodiTheTigger","followers_url":"https://api.github.com/users/JodiTheTigger/followers","following_url":"https://api.github.com/users/JodiTheTigger/following{/other_user}","gists_url":"https://api.github.com/users/JodiTheTigger/gists{/gist_id}","starred_url":"https://api.github.com/users/JodiTheTigger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JodiTheTigger/subscriptions","organizations_url":"https://api.github.com/users/JodiTheTigger/orgs","repos_url":"https://api.github.com/users/JodiTheTigger/repos","events_url":"https://api.github.com/users/JodiTheTigger/events{/privacy}","received_events_url":"https://api.github.com/users/JodiTheTigger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-17T23:07:42Z","updated_at":"2016-10-18T11:59:18Z","closed_at":null,"body":"Trying to install from Arch AUR and I get the build error:\r\n\r\n```\r\naur-corefreq-git/src/CoreFreq/corefreqk.c:824:15: error: ‘MSR_NHM_TURBO_RATIO_LIMIT’ undeclared (first use in this function)\r\n  RDMSR(Turbo, MSR_NHM_TURBO_RATIO_LIMIT);\r\n               ^\r\n```\r\n\r\n```\r\n==> Starting build()...\r\nmake: Entering directory 'aur-corefreq-git/src/CoreFreq'\r\ncc -c corefreqd.c -o corefreqd.o\r\ncc -lpthread -lrt -o corefreqd corefreqd.c\r\ncc -c corefreq-cli.c -o corefreq-cli.o\r\ncc -lrt -o corefreq-cli corefreq-cli.c\r\nmake -C /lib/modules/4.8.2-1-ARCH/build M=aur-corefreq-git/src/CoreFreq modules\r\nmake[1]: Entering directory '/usr/lib/modules/4.8.2-1-ARCH/build'\r\n  CC [M]  aur-corefreq-git/src/CoreFreq/corefreqk.o\r\nIn file included from aur-corefreq-git/src/CoreFreq/corefreqk.c:23:0:\r\naur-corefreq-git/src/CoreFreq/corefreqk.c: In function ‘Nehalem_Platform_Info’:\r\naur-corefreq-git/src/CoreFreq/corefreqk.c:824:15: error: ‘MSR_NHM_TURBO_RATIO_LIMIT’ undeclared (first use in this function)\r\n  RDMSR(Turbo, MSR_NHM_TURBO_RATIO_LIMIT);\r\n               ^\r\naur-corefreq-git/src/CoreFreq/corefreqk.h:51:10: note: in definition of macro ‘RDMSR’\r\n   : \"c\" (_reg)      \\\r\n          ^~~~\r\naur-corefreq-git/src/CoreFreq/corefreqk.c:824:15: note: each undeclared identifier is reported only once for each function it appears in\r\n  RDMSR(Turbo, MSR_NHM_TURBO_RATIO_LIMIT);\r\n               ^\r\naur-corefreq-git/src/CoreFreq/corefreqk.h:51:10: note: in definition of macro ‘RDMSR’\r\n   : \"c\" (_reg)      \\\r\n          ^~~~\r\nmake[2]: *** [scripts/Makefile.build:296: aur-corefreq-git/src/CoreFreq/corefreqk.o] Error 1\r\nmake[1]: *** [Makefile:1471: _module_aur-corefreq-git/src/CoreFreq] Error 2\r\nmake[1]: Leaving directory '/usr/lib/modules/4.8.2-1-ARCH/build'\r\nmake: *** [Makefile:6: all] Error 2\r\nmake: Leaving directory 'aur-corefreq-git/src/CoreFreq'\r\n==> ERROR: A failure occurred in build().\r\n    Aborting...\r\n==> ERROR: Makepkg was unable to build corefreq-git.\r\n\r\n```\r\n\r\n```\r\ncat /proc/cpuinfo \r\nprocessor       : 0\r\nvendor_id       : GenuineIntel\r\ncpu family      : 6\r\nmodel           : 60\r\nmodel name      : Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz\r\nstepping        : 3\r\nmicrocode       : 0x19\r\ncpu MHz         : 3902.343\r\ncache size      : 8192 KB\r\nphysical id     : 0\r\nsiblings        : 8\r\ncore id         : 0\r\ncpu cores       : 4\r\napicid          : 0\r\ninitial apicid  : 0\r\nfpu             : yes\r\nfpu_exception   : yes\r\ncpuid level     : 13\r\nwp              : yes\r\nflags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm xsaveopt dtherm ida arat pln pts\r\nbugs            :\r\nbogomips        : 7198.35\r\nclflush size    : 64\r\ncache_alignment : 64\r\naddress sizes   : 39 bits physical, 48 bits virtual\r\npower management:\r\n\r\n<snip for other 7 cores>\r\n```"},"comment":{"url":"https://api.github.com/repos/cyring/CoreFreq/issues/comments/254486375","html_url":"https://github.com/cyring/CoreFreq/issues/11#issuecomment-254486375","issue_url":"https://api.github.com/repos/cyring/CoreFreq/issues/11","id":254486375,"user":{"login":"cyring","id":11563789,"avatar_url":"https://avatars.githubusercontent.com/u/11563789?v=3","gravatar_id":"","url":"https://api.github.com/users/cyring","html_url":"https://github.com/cyring","followers_url":"https://api.github.com/users/cyring/followers","following_url":"https://api.github.com/users/cyring/following{/other_user}","gists_url":"https://api.github.com/users/cyring/gists{/gist_id}","starred_url":"https://api.github.com/users/cyring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyring/subscriptions","organizations_url":"https://api.github.com/users/cyring/orgs","repos_url":"https://api.github.com/users/cyring/repos","events_url":"https://api.github.com/users/cyring/events{/privacy}","received_events_url":"https://api.github.com/users/cyring/received_events","type":"User","site_admin":false},"created_at":"2016-10-18T11:59:18Z","updated_at":"2016-10-18T11:59:18Z","body":"Thanks for your return :100: \r\n\r\nI have also noticed that you are using a testing version 4.8 of the kernel (as JodiTheTigger's log) whereas I'm compiling with the current version 4.7.6-1 for ArchLinux.\r\n\r\nMeanwhile I also found that 2 packages provide the msr definition:\r\n1. linux-api-headers (/usr/include/asm/msr-index.h)\r\n2. linux-headers /usr/lib/modules/4.7.6-1-ARCH/build/arch/x86/include/asm/msr-index.h)\r\n(any diff however between these 2 files).\r\n\r\nIf you want to stick with the testing kernel, I suggest you to copy/write the few missing definitions into the CoreFreq header file 'intelmsr.h' , such as:\r\n\r\n#define MSR_NHM_TURBO_RATIO_LIMIT\t0x000001ad"}}
{"actor":{"display_login":"cyring"}}