build irqbalance for arm/arm64

Neil Horman nhorman at tuxdriver.com
Thu Aug 10 06:03:41 PDT 2017


On Thu, Aug 10, 2017 at 08:33:44PM +0800, Baolin Wang wrote:
> Hi Neil,
> 
> On 10 August 2017 at 19:35, Neil Horman <nhorman at tuxdriver.com> wrote:
> > On Thu, Aug 10, 2017 at 05:22:22PM +0800, Baolin Wang wrote:
> >> Hi,
> >>
> >> I want to compile irqbalance source code for arm/arm64 architecture,
> >> but I saw the makefile is not support for that. Has anyone compiled
> >> the irqbalance source code for arm/arm64? Could you show me how to
> >> build it? Since I am not familiar with the irqbalance now. Thanks a
> >> lot.
> >>
> >
> > Its always been buildable for arm:
> > https://koji.fedoraproject.org/koji/buildinfo?buildID=946579
> >
> > What error are you seeing when trying to build it?
> 
> Thanks for your quick response. I've solved some problems when
> building, but I still met below errors, is that my environment
> problem? Thanks.
> 
> make
> make  all-recursive
> make[1]: Entering directory
> `/home/likewise-open/SPREADTRUM/baolin.wang/work/iqbalance/irqbalance'
> make[2]: Entering directory
> `/home/likewise-open/SPREADTRUM/baolin.wang/work/iqbalance/irqbalance'
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o activate.o
> activate.c
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o bitmap.o
> bitmap.c
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o classify.o
> classify.c
> classify.c: In function ‘read_pci_data’:
> classify.c:201: warning: ignoring return value of ‘fscanf’, declared
> with attribute warn_unused_result
> classify.c: In function ‘add_one_irq_to_db’:
> classify.c:401: warning: ignoring return value of ‘fscanf’, declared
> with attribute warn_unused_result
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o cputree.o
> cputree.c
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o
> irqbalance.o irqbalance.c
> irqbalance.c: In function ‘sock_handle’:
> irqbalance.c:333: warning: missing initializer
> irqbalance.c:333: warning: (near initialization for ‘msg.msg_namelen’)
> irqbalance.c: In function ‘init_socket’:
> irqbalance.c:453: warning: implicit declaration of function ‘g_unix_fd_add’
> irqbalance.c: In function ‘main’:
> irqbalance.c:459: warning: declaration of ‘sigset’ shadows a global declaration
These can be ignored, I'm working on fixing them.

> /usr/include/signal.h:388: warning: shadowed declaration is here
> irqbalance.c:553: warning: ignoring return value of ‘write’, declared
> with attribute warn_unused_result
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o irqlist.o
> irqlist.c
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o numa.o
> numa.c
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o
> placement.o placement.c
> gcc -DHAVE_CONFIG_H -I.  -I. -W -Wall -Wshadow -Wformat -Wundef
> -D_GNU_SOURCE   -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include   -g -O2 -c -o
> procinterrupts.o procinterrupts.c
> /bin/bash ./libtool --tag=CC   --mode=link gcc
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
> -g -O2   -o irqbalance activate.o bitmap.o classify.o cputree.o
> irqbalance.o irqlist.o numa.o placement.o procinterrupts.o  -lglib-2.0
>   -lcurses -lm
> libtool: link: gcc -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -o irqbalance
> activate.o bitmap.o classify.o cputree.o irqbalance.o irqlist.o numa.o
> placement.o procinterrupts.o  -lglib-2.0 -lcurses -lm
> irqbalance.o: In function `init_socket':
> /home/likewise-open/SPREADTRUM/baolin.wang/work/iqbalance/irqbalance/irqbalance.c:453:
> undefined reference to `g_unix_fd_add'
> collect2: ld returned 1 exit status
> make[2]: *** [irqbalance] Error 1
> make[2]: Leaving directory
> `/home/likewise-open/SPREADTRUM/baolin.wang/work/iqbalance/irqbalance'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/home/likewise-open/SPREADTRUM/baolin.wang/work/iqbalance/irqbalance'
> make: *** [all] Error 2
> 
What version of glib2 are you building against.  At least version 2.36 is
required.  I should probably enhance the configure script to check for that

Neil

> -- 
> Baolin.wang
> Best Regards
> 



More information about the irqbalance mailing list