You are not logged in.

#1 2011-06-27 18:08:54

lgolebio
Member
From: Poland / Wroclaw
Registered: 2008-07-28
Posts: 101

[SOLVED] Can't build 'crystalhd-git' package

Hi
I've bought  Broadcom  BCM70012 Video Decoder [Crystal HD] today. I'm trying to compile driver for this device. I need to compile two packages.

1. libcrystalhd-git
2. crystalhd-git

Libcrytstalhd-git compiles just fine, no errors. But I can't build the driver crystalhd-git . Here is the output :

make -C /lib/modules/2.6.39-ARCH/build SUBDIRS=/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux modules
make[1]: Wejście do katalogu `/usr/src/linux-2.6.39-ARCH'
  CC [M]  /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_lnx.o
  CC [M]  /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_misc.o
  CC [M]  /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_cmds.o
  CC [M]  /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_hw.o
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_hw.c: In function ‘crystalhd_hw_post_tx’:
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_hw.c:719:21: warning: variable ‘high_addr’ set but not used [-Wunused-but-set-variable]
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_hw.c:719:11: warning: variable ‘low_addr’ set but not used [-Wunused-but-set-variable]
  CC [M]  /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_linkfuncs.o
  CC [M]  /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.o
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c: In function ‘crystalhd_flea_init_dram’:
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c:171:42: warning: variable ‘sd_1_row_size’ set but not used [-Wunused-but-set-variable]
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c:171:26: warning: variable ‘sd_1_bank_size’ set but not used [-Wunused-but-set-variable]
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c:171:11: warning: variable ‘sd_1_col_size’ set but not used [-Wunused-but-set-variable]
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c: In function ‘crystalhd_flea_set_power_state’:
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_fleafuncs.c:847:12: warning: variable ‘sts’ set but not used [-Wunused-but-set-variable]
  CC [M]  /tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.o
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c: In function ‘crystalhd_flea_ddr_pll_config’:
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:152:5: error: implicit declaration of function ‘msleep_interruptible’ [-Werror=implicit-function-declaration]
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c: In function ‘crystalhd_flea_ddr_ctrl_init’:
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:324:10: warning: variable ‘DQ_IDLE_MODE’ set but not used [-Wunused-but-set-variable]
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:323:10: warning: variable ‘CTL_IDLE_MODE’ set but not used [-Wunused-but-set-variable]
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:322:10: warning: variable ‘DM_IDLE_MODE’ set but not used [-Wunused-but-set-variable]
/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.c:320:10: warning: variable ‘DQ_WIDTH’ set but not used [-Wunused-but-set-variable]
cc1: some warnings being treated as errors

make[2]: *** [/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux/crystalhd_flea_ddr.o] Błąd 1
make[1]: *** [_module_/tmp/yaourt-tmp-lukasz/aur-crystalhd-git/src/crystalhd/driver/linux] Błąd 2
make[1]: Opuszczenie katalogu `/usr/src/linux-2.6.39-ARCH'
make: *** [all] Błąd 2
==> BŁĄD: Wystąpił błąd w build().
    Przerywam...
==> ERROR: Makepkg was unable to build .
==> Restart building crystalhd-git ? [y/N]
==> --------------------------------------
==> 

Last edited by lgolebio (2011-06-29 06:01:46)

Offline

#2 2011-06-27 18:50:33

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: [SOLVED] Can't build 'crystalhd-git' package

Try replacing `sed -i 's/'-Werror'/''/g' Makefile` with `sed -i 's/-Werror/-Wno-error=implicit-function-declaration/g' Makefile` in the PKGBUILD. This won't fix the warning but the package should build.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2011-06-29 06:01:24

lgolebio
Member
From: Poland / Wroclaw
Registered: 2008-07-28
Posts: 101

Re: [SOLVED] Can't build 'crystalhd-git' package

Thanks, that worked smile

Offline

Board footer

Powered by FluxBB