Announcement

Collapse
No announcement yet.

fglrx kernel module compile failed

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • deltatux
    started a topic fglrx kernel module compile failed

    fglrx kernel module compile failed

    Hey guys,

    I've been trying to compile the kernel module for my system but it fails with this following message:

    /usr/src/kernel-modules/fglrx/firegl_public.c: In function ?KCL_flush_tlb_onepage?:
    /usr/src/kernel-modules/fglrx/firegl_public.c:2352: error: too many arguments to function ?on_each_cpu?
    /usr/src/kernel-modules/fglrx/firegl_public.c: In function ?__ke_flush_cache?:
    /usr/src/kernel-modules/fglrx/firegl_public.c:2791: error: too many arguments to function ?smp_call_function?
    /usr/src/kernel-modules/fglrx/firegl_public.c: In function ?__ke_vm_phys_addr_str?:
    /usr/src/kernel-modules/fglrx/firegl_public.c:3522: warning: return makes pointer from integer without a cast
    /usr/src/kernel-modules/fglrx/firegl_public.c:3523: warning: return makes pointer from integer without a cast
    /usr/src/kernel-modules/fglrx/firegl_public.c:3524: warning: return makes pointer from integer without a cast
    /usr/src/kernel-modules/fglrx/firegl_public.c:3526: warning: return makes pointer from integer without a cast
    /usr/src/kernel-modules/fglrx/firegl_public.c: In function ?KCL_enable_pat?:
    /usr/src/kernel-modules/fglrx/firegl_public.c:4063: error: too many arguments to function ?smp_call_function?
    /usr/src/kernel-modules/fglrx/firegl_public.c: In function ?KCL_disable_pat?:
    /usr/src/kernel-modules/fglrx/firegl_public.c:4082: error: too many arguments to function ?smp_call_function?
    /usr/src/kernel-modules/fglrx/firegl_public.c: At top level:
    /usr/src/kernel-modules/fglrx/firegl_public.c:5774: warning: initialization from incompatible pointer type
    /usr/src/kernel-modules/fglrx/firegl_public.c:5800: warning: initialization from incompatible pointer type
    make[1]: *** [/usr/src/kernel-modules/fglrx/firegl_public.o] Error 1
    make: *** [_module_/usr/src/kernel-modules/fglrx] Error 2
    make: Leaving directory `/usr/src/linux-2.6.27.4'
    This is a vanilla kernel install of Linux 2.6.27.4 kernel (latest version at time of writing).

    Thanks,
    deltatux

  • deltatux
    replied
    I give up, i'll wait until 8.11, 'cuz I've been trying to patch this with so many possible solutions but none works >.>"

    Thanks anyways,
    deltatux

    Leave a comment:


  • spikethehobbitmage
    replied
    $ uudecode < temp
    $ patch -p1 < firegl_public.patch

    Leave a comment:


  • deltatux
    replied
    Originally posted by spikethehobbitmage View Post
    It seems phoronix corrupts patches when you post them.

    md5sum
    f9c15acbf28f780a15930b400cb07cc1 firegl_public.c (original)
    aa259a13effc4b0a941f707818b8474a firegl_public.patch
    4d464c2b6faccb57e0a4ac094b1e006e firegl_public.c (patched)

    pipe this message into uudecode to extract

    begin-base64 444 firegl_public.patch
    LS0tIDguMTAvZmlyZWdsX3B1YmxpYy5jCTIwMDgtMTAtMTQgMD k6MjU6MzAu
    MDAwMDAwMDAwIC0wNjAwCisrKyBuZXcvZmlyZWdsX3B1YmxpYy 5jCTIwMDgt
    MTEtMDQgMjE6NDE6MzkuMDAwMDAwMDAwIC0wNzAwCkBAIC0yMD AsNiArMjAw
    LDEyIEBACiAjZGVmaW5lIHByZWVtcHRfZW5hYmxlKCkKICNlbm RpZgogCisv
    KiBTaW5jZSAyLjYuMjcgc21wX2NhbGxfZnVuY3Rpb24gZG9lc2 4ndCBoYXZl
    IGEgbm9uYXRvbWljL3JldHJ5IGFyZ3VtZW50ICovCisjaWYgTE lOVVhfVkVS
    U0lPTl9DT0RFID49IEtFUk5FTF9WRVJTSU9OKDIsNiwyNykKKy NkZWZpbmUg
    U01QX0NBTExfRlVOQ1RJT04oZnVuYywgaW5mbywgcmV0cnksIH dhaXQpIHNt
    cF9jYWxsX2Z1bmN0aW9uKGZ1bmMsIGluZm8sIHdhaXQpCisjZW xzZQorI2Rl
    ZmluZSBTTVBfQ0FMTF9GVU5DVElPTihmdW5jLCBpbmZvLCByZX RyeSwgd2Fp
    dCkgc21wX2NhbGxfZnVuY3Rpb24oZnVuYywgaW5mbywgcmV0cn ksIHdhaXQp
    CisjZW5kaWYKIC8vID09PT09PT09PT09PT09PT09PT09PT09PT 09PT09PT09
    PT09PT09PT09PT09PT09PT09PT09PT09PT09PQogLyogZ2xvYm FscyAqLwog
    CkBAIC0yNTEsNyArMjU3LDcgQEAKIGNvbnN0IGNoYXIgQlVJTE RfS0VSTkVM
    X0hBU19NT0RWRVJTSU9OU19DTEVBUkVEOwogI2VuZGlmCiAKLS NpZmRlZiBf
    X1NNUF9fCisjaWZkZWYgQ09ORklHX1NNUAogY29uc3QgdW5zaW duZWQgbG9u
    ZyBfX2tlX1NNUF9TdGF0ZSA9IDE7CiBjb25zdCBjaGFyIEJVSU xEX0tFUk5F
    TF9IQVNfU01QX1NFVDsKICNlbHNlCkBAIC0yMzQ4LDggKzIzNT QsOCBAQAog
    ewogLypTb21lIGtlcm5lbCBkZXZlbG9wZXIgcmVtb3ZlZCB0aG UgZXhwb3J0
    IG9mIHN5bWJvbCAiZmx1c2hfdGxiX3BhZ2UiIG9uIDIuNi4yNS B4ODZfNjQg
    U01QIGtlcm5lbC4KICAgRGVmaW5lIGEgc2ltcGxlIHZlcnNpb2 4gaGVyZS4q
    LwotI2lmIGRlZmluZWQoX194ODZfNjRfXykgJiYgZGVmaW5lZC hfX1NNUF9f
    KSAmJiAoTElOVVhfVkVSU0lPTl9DT0RFID49IEtFUk5FTF9WRV JTSU9OKDIs
    NiwyNSkpIAotICAgIG9uX2VhY2hfY3B1KEtDTF9mbHVzaF90bG Jfb25lLCAm
    dmEsIDEsIDEpOworI2lmIGRlZmluZWQoX194ODZfNjRfXykgJi YgKExJTlVY
    X1ZFUlNJT05fQ09ERSA+PSBLRVJORUxfVkVSU0lPTigyLDYsMj UpKSAKKyAg
    ICBvbl9lYWNoX2NwdShLQ0xfZmx1c2hfdGxiX29uZSwgJnZhLC AxKTsKICNl
    bHNlCiAgICAgZmx1c2hfdGxiX3BhZ2Uodm1hLCB2YSk7CiAjZW 5kaWYKQEAg
    LTI3NjYsNyArMjc3Miw3IEBACiAKIC8qKioqKioqKioqKioqKi oqKioqKioq
    KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi oqKioqKioq
    KioqKioqKioqKi8KIAotI2lmZGVmIF9fU01QX18KKyNpZmRlZi BDT05GSUdf
    U01QCiBzdGF0aWMgYXRvbWljX3QgY3B1c193YWl0aW5nOwogCi BzdGF0aWMg
    dm9pZCBkZWZlcnJlZF9mbHVzaCh2b2lkKiBjb250ZXh0cCkKQE AgLTI3ODIs
    MTMgKzI3ODgsMTMgQEAKIAl3aGlsZSAoYXRvbWljX3JlYWQoJm NwdXNfd2Fp
    dGluZykgPiAwKQogCQliYXJyaWVyKCk7CiB9Ci0jZW5kaWYgLy ogX19TTVBf
    XyAqLworI2VuZGlmIC8qIENPTkZJR19TTVAgKi8KIAogaW50IE FUSV9BUElf
    Q0FMTCBfX2tlX2ZsdXNoX2NhY2hlKHZvaWQpCiB7Ci0jaWZkZW YgX19TTVBf
    XworI2lmZGVmIENPTkZJR19TTVAKICAgICAvKiB3cml0ZSBiYW NrIGludmFs
    aWRhdGUgYWxsIG90aGVyIENQVXMgKGV4cG9ydGVkIGJ5IGtlcm 5lbCkgKi8K
    LQlpZiAoc21wX2NhbGxfZnVuY3Rpb24oZGVmZXJyZWRfZmx1c2 gsIE5VTEws
    IDEsIDApICE9IDApCisJaWYgKFNNUF9DQUxMX0ZVTkNUSU9OKG RlZmVycmVk
    X2ZsdXNoLCBOVUxMLCAxLCAwKSAhPSAwKQogCQlwYW5pYygidG ltZWQgb3V0
    IHdhaXRpbmcgZm9yIHRoZSBvdGhlciBDUFVzIVxuIik7CiAKIC AgICAvKiBp
    bnZhbGlkYXRlIHRoaXMgQ1BVICovCkBAIC0yODAyLDcgKzI4MD gsNyBAQAog
    CiAJd2hpbGUgKGF0b21pY19yZWFkKCZjcHVzX3dhaXRpbmcpID 4gMCkKIAkJ
    YmFycmllcigpOwotI2Vsc2UgLyogIV9fU01QX18gKi8KKyNlbH NlIC8qICFD
    T05GSUdfU01QICovCiAjaWYgZGVmaW5lZChfX2kzODZfXykgfH wgZG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AsIDEp
    ICE9IDApCiAgICAgICAgcmV0dXJuOwogI2VuZGlmCiAgICAgS0 NMX3Jlc3Rv
    cmVfcGF0KE5VTEwpOwo=
    ====
    Ummm... although I do have quite the Linux experience background. I don't know how to use this uudecode thing you speak of =S.

    EDIT: I tried this but it gave nothing on the output:
    [email protected]:~> nano temp
    [email protected]:~> uudecode temp >> firegl_public.c
    temp contains the glob of text above.

    Thanks,
    deltatux
    Last edited by deltatux; 11-11-2008, 12:56 AM.

    Leave a comment:


  • spikethehobbitmage
    replied
    It seems phoronix corrupts patches when you post them.

    md5sum
    f9c15acbf28f780a15930b400cb07cc1 firegl_public.c (original)
    aa259a13effc4b0a941f707818b8474a firegl_public.patch
    4d464c2b6faccb57e0a4ac094b1e006e firegl_public.c (patched)

    pipe this message into uudecode to extract

    begin-base64 444 firegl_public.patch
    LS0tIDguMTAvZmlyZWdsX3B1YmxpYy5jCTIwMDgtMTAtMTQgMD k6MjU6MzAu
    MDAwMDAwMDAwIC0wNjAwCisrKyBuZXcvZmlyZWdsX3B1YmxpYy 5jCTIwMDgt
    MTEtMDQgMjE6NDE6MzkuMDAwMDAwMDAwIC0wNzAwCkBAIC0yMD AsNiArMjAw
    LDEyIEBACiAjZGVmaW5lIHByZWVtcHRfZW5hYmxlKCkKICNlbm RpZgogCisv
    KiBTaW5jZSAyLjYuMjcgc21wX2NhbGxfZnVuY3Rpb24gZG9lc2 4ndCBoYXZl
    IGEgbm9uYXRvbWljL3JldHJ5IGFyZ3VtZW50ICovCisjaWYgTE lOVVhfVkVS
    U0lPTl9DT0RFID49IEtFUk5FTF9WRVJTSU9OKDIsNiwyNykKKy NkZWZpbmUg
    U01QX0NBTExfRlVOQ1RJT04oZnVuYywgaW5mbywgcmV0cnksIH dhaXQpIHNt
    cF9jYWxsX2Z1bmN0aW9uKGZ1bmMsIGluZm8sIHdhaXQpCisjZW xzZQorI2Rl
    ZmluZSBTTVBfQ0FMTF9GVU5DVElPTihmdW5jLCBpbmZvLCByZX RyeSwgd2Fp
    dCkgc21wX2NhbGxfZnVuY3Rpb24oZnVuYywgaW5mbywgcmV0cn ksIHdhaXQp
    CisjZW5kaWYKIC8vID09PT09PT09PT09PT09PT09PT09PT09PT 09PT09PT09
    PT09PT09PT09PT09PT09PT09PT09PT09PT09PQogLyogZ2xvYm FscyAqLwog
    CkBAIC0yNTEsNyArMjU3LDcgQEAKIGNvbnN0IGNoYXIgQlVJTE RfS0VSTkVM
    X0hBU19NT0RWRVJTSU9OU19DTEVBUkVEOwogI2VuZGlmCiAKLS NpZmRlZiBf
    X1NNUF9fCisjaWZkZWYgQ09ORklHX1NNUAogY29uc3QgdW5zaW duZWQgbG9u
    ZyBfX2tlX1NNUF9TdGF0ZSA9IDE7CiBjb25zdCBjaGFyIEJVSU xEX0tFUk5F
    TF9IQVNfU01QX1NFVDsKICNlbHNlCkBAIC0yMzQ4LDggKzIzNT QsOCBAQAog
    ewogLypTb21lIGtlcm5lbCBkZXZlbG9wZXIgcmVtb3ZlZCB0aG UgZXhwb3J0
    IG9mIHN5bWJvbCAiZmx1c2hfdGxiX3BhZ2UiIG9uIDIuNi4yNS B4ODZfNjQg
    U01QIGtlcm5lbC4KICAgRGVmaW5lIGEgc2ltcGxlIHZlcnNpb2 4gaGVyZS4q
    LwotI2lmIGRlZmluZWQoX194ODZfNjRfXykgJiYgZGVmaW5lZC hfX1NNUF9f
    KSAmJiAoTElOVVhfVkVSU0lPTl9DT0RFID49IEtFUk5FTF9WRV JTSU9OKDIs
    NiwyNSkpIAotICAgIG9uX2VhY2hfY3B1KEtDTF9mbHVzaF90bG Jfb25lLCAm
    dmEsIDEsIDEpOworI2lmIGRlZmluZWQoX194ODZfNjRfXykgJi YgKExJTlVY
    X1ZFUlNJT05fQ09ERSA+PSBLRVJORUxfVkVSU0lPTigyLDYsMj UpKSAKKyAg
    ICBvbl9lYWNoX2NwdShLQ0xfZmx1c2hfdGxiX29uZSwgJnZhLC AxKTsKICNl
    bHNlCiAgICAgZmx1c2hfdGxiX3BhZ2Uodm1hLCB2YSk7CiAjZW 5kaWYKQEAg
    LTI3NjYsNyArMjc3Miw3IEBACiAKIC8qKioqKioqKioqKioqKi oqKioqKioq
    KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi oqKioqKioq
    KioqKioqKioqKi8KIAotI2lmZGVmIF9fU01QX18KKyNpZmRlZi BDT05GSUdf
    U01QCiBzdGF0aWMgYXRvbWljX3QgY3B1c193YWl0aW5nOwogCi BzdGF0aWMg
    dm9pZCBkZWZlcnJlZF9mbHVzaCh2b2lkKiBjb250ZXh0cCkKQE AgLTI3ODIs
    MTMgKzI3ODgsMTMgQEAKIAl3aGlsZSAoYXRvbWljX3JlYWQoJm NwdXNfd2Fp
    dGluZykgPiAwKQogCQliYXJyaWVyKCk7CiB9Ci0jZW5kaWYgLy ogX19TTVBf
    XyAqLworI2VuZGlmIC8qIENPTkZJR19TTVAgKi8KIAogaW50IE FUSV9BUElf
    Q0FMTCBfX2tlX2ZsdXNoX2NhY2hlKHZvaWQpCiB7Ci0jaWZkZW YgX19TTVBf
    XworI2lmZGVmIENPTkZJR19TTVAKICAgICAvKiB3cml0ZSBiYW NrIGludmFs
    aWRhdGUgYWxsIG90aGVyIENQVXMgKGV4cG9ydGVkIGJ5IGtlcm 5lbCkgKi8K
    LQlpZiAoc21wX2NhbGxfZnVuY3Rpb24oZGVmZXJyZWRfZmx1c2 gsIE5VTEws
    IDEsIDApICE9IDApCisJaWYgKFNNUF9DQUxMX0ZVTkNUSU9OKG RlZmVycmVk
    X2ZsdXNoLCBOVUxMLCAxLCAwKSAhPSAwKQogCQlwYW5pYygidG ltZWQgb3V0
    IHdhaXRpbmcgZm9yIHRoZSBvdGhlciBDUFVzIVxuIik7CiAKIC AgICAvKiBp
    bnZhbGlkYXRlIHRoaXMgQ1BVICovCkBAIC0yODAyLDcgKzI4MD gsNyBAQAog
    CiAJd2hpbGUgKGF0b21pY19yZWFkKCZjcHVzX3dhaXRpbmcpID 4gMCkKIAkJ
    YmFycmllcigpOwotI2Vsc2UgLyogIV9fU01QX18gKi8KKyNlbH NlIC8qICFD
    T05GSUdfU01QICovCiAjaWYgZGVmaW5lZChfX2kzODZfXykgfH wgZGVmaW5l
    ZChfX3g4Nl82NF9fKQogCWFzbSB2b2xhdGlsZSAoIndiaW52ZC I6OjoibWVt
    b3J5Iik7CiAjZWxpZiBkZWZpbmVkKF9fYWxwaGFfXykgfHwgZG VmaW5lZChf
    X3NwYXJjX18pCkBAIC0yODEwLDcgKzI4MTYsNyBAQAogI2Vsc2 UKICNlcnJv
    ciAiUGxlYXNlIGRlZmluZSBmbHVzaF9jYWNoZSBmb3IgeW91ci BhcmNoaXRl
    Y3R1cmUuIgogI2VuZGlmCi0jZW5kaWYgLyogIV9fU01QX18gKi 8KKyNlbmRp
    ZiAvKiAhQ09ORklHX1NNUCAqLwogCiAgICAgLy9mb3Iga2Vybm VsIDIuNi4y
    NSwgdGxiX2ZsdXNoIGhhcyBiZWVuIGluY2x1ZGVkIHdoZW4gY2 FsbGluZyBz
    ZXRfcGFnZXNfKi4KICAgICAjaWYgTElOVVhfVkVSU0lPTl9DT0 RFIDwgS0VS
    TkVMX1ZFUlNJT04oMiw2LDI1KQpAQCAtNDA2MCw3ICs0MDY2LD cgQEAKICAg
    IH0KIAogI2lmZGVmIENPTkZJR19TTVAKLSAgIGlmIChzbXBfY2 FsbF9mdW5j
    dGlvbihLQ0xfc2V0dXBfcGF0LCBOVUxMLCAwLCAxKSAhPSAwKQ orICAgaWYg
    KFNNUF9DQUxMX0ZVTkNUSU9OKEtDTF9zZXR1cF9wYXQsIE5VTE wsIDAsIDEp
    ICE9IDApCiAgICAgICAgcmV0dXJuIDA7CiAjZW5kaWYKICAgIE tDTF9zZXR1
    cF9wYXQoTlVMTCk7CkBAIC00MDc5LDcgKzQwODUsNyBAQAogIC AgIH0KIAog
    I2lmZGVmIENPTkZJR19TTVAKLSAgICBpZiAoc21wX2NhbGxfZn VuY3Rpb24o
    S0NMX3Jlc3RvcmVfcGF0LCBOVUxMLCAwLCAxKSAhPSAwKQorIC AgIGlmIChT
    TVBfQ0FMTF9GVU5DVElPTihLQ0xfcmVzdG9yZV9wYXQsIE5VTE wsIDAsIDEp
    ICE9IDApCiAgICAgICAgcmV0dXJuOwogI2VuZGlmCiAgICAgS0 NMX3Jlc3Rv
    cmVfcGF0KE5VTEwpOwo=
    ====

    Leave a comment:


  • deltatux
    replied
    I just tried a clean patch again. No difference.

    Thanks,
    deltatux

    Leave a comment:


  • deltatux
    replied
    Originally posted by spikethehobbitmage View Post
    I'll post it when I get home from work.

    Just in case, please make sure you are patching an unmodified source tree. If Kano's patch partially applied, mine won't work anymore, so you would need to unpack again.
    Alright, I'll keep that in mind, I'm sure that I patched a clean one but I'll reinstall just in case.

    deltatux

    Leave a comment:


  • spikethehobbitmage
    replied
    I'll post it when I get home from work.

    Just in case, please make sure you are patching an unmodified source tree. If Kano's patch partially applied, mine won't work anymore, so you would need to unpack again.

    Leave a comment:


  • deltatux
    replied
    It failed again:

    [email protected]:/usr/src/kernel-modules/fglrx> sudo patch < firegl_public.patch
    patching file firegl_public.c
    Hunk #1 succeeded at 207 with fuzz 1 (offset 7 lines).
    Hunk #2 FAILED at 264.
    Hunk #3 FAILED at 2361.
    Hunk #4 FAILED at 2779.
    Hunk #5 FAILED at 2795.
    Hunk #6 succeeded at 2815 (offset 7 lines).
    Hunk #7 succeeded at 2823 (offset 7 lines).
    Hunk #8 succeeded at 4073 (offset 7 lines).
    Can you post your patched firegl_public.c file?

    Thanks,
    deltatux

    Leave a comment:


  • deltatux
    replied
    I'll try it again when i have time to play with 2.6.27.4.

    Thanks,
    deltatux

    Leave a comment:

Working...
X