[BRLTTY] Problem to compile BRLTTY on AMD64 architecture

Adrian P. van Bloois adrian at accu.uu.nl
Tue Oct 11 18:18:42 EDT 2005


* El Tue, Oct 11, 2005 at 11:42:54PM +0200, escribiste:
> Hi,
> 
> since two or three days I try to compile BRLTTY on an AMD64 plateform
> installed with the debian testing for AMD64. I tried with BRLTTY 3.7
> tar.gz file and also with the last developpment code from subversion
> repository. Same problem appears. below an extract from the output of
> the "make" command.
> Please help if you have an idea of what can cause these errors. Perhaps
> BRLTTY code can't compile on AMD64 architecture but it seems that is not
> the case since I saw on this mlist that someone has ever compiled it on
> a similar architecture. If it is finally not possible how can I do to
> force 32 bit compilation on a such architecture and if it compiles in 32
> bits may I be able to run it after ?
> 
> Thanks in advance for your help !
The manpage suggests you use the -m32 flag to specify you will run the
program in 32-bit mode.
It's worth trying.

> 
> below result from the "make" command :
> 
> 
> 
> spy:/usr/local/src/svn/brltty# make
> cd Programs && make all
> make[1]: entrant dans le répertoire « /usr/local/src/svn/brltty/Programs »
> gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./usb_linux.c
> In file included from /usr/include/asm/div64.h:1,
>                  from /usr/include/linux/jiffies.h:9,
>                  from /usr/include/linux/sched.h:12,
>                  from /usr/include/asm/compat.h:8,
>                  from /usr/include/linux/compat.h:15,
>                  from /usr/include/linux/usbdevice_fs.h:35,
>                  from ./usb_linux.c:34:
> /usr/include/asm-generic/div64.h:54:3: error: #error do_div() does not yet support the C64
> In file included from /usr/include/linux/sched.h:12,
>                  from /usr/include/asm/compat.h:8,
>                  from /usr/include/linux/compat.h:15,
>                  from /usr/include/linux/usbdevice_fs.h:35,
>                  from ./usb_linux.c:34:
> /usr/include/linux/jiffies.h:84: error: syntax error before 'jiffies_64'
> /usr/include/linux/jiffies.h:88: error: syntax error before 'get_jiffies_64'
> /usr/include/linux/jiffies.h: In function 'timespec_to_jiffies':
> /usr/include/linux/jiffies.h:320: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:320: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:320: error: 'NSEC_PER_SEC' undeclared (first use in this function)
> /usr/include/linux/jiffies.h:320: error: (Each undeclared identifier is reported only once
> /usr/include/linux/jiffies.h:320: error: for each function it appears in.)
> /usr/include/linux/jiffies.h:321: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:321: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:324: error: syntax error before 'sec'
> /usr/include/linux/jiffies.h:324: error: syntax error before 'NSEC_PER_SEC'
> /usr/include/linux/jiffies.h:324: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:324: error: syntax error before ')' token
> /usr/include/linux/jiffies.h: In function 'jiffies_to_timespec':
> /usr/include/linux/jiffies.h:337: error: syntax error before 'nsec'
> /usr/include/linux/jiffies.h:338: error: syntax error before 'result'
> /usr/include/linux/jiffies.h:338: error: 'result' undeclared (first use in this function)
> /usr/include/linux/jiffies.h:338: error: 'NSEC_PER_SEC' undeclared (first use in this function)
> /usr/include/linux/jiffies.h: In function 'timeval_to_jiffies':
> /usr/include/linux/jiffies.h:359: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:359: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:359: error: 'NSEC_PER_SEC' undeclared (first use in this function)
> /usr/include/linux/jiffies.h:360: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:360: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:363: error: syntax error before 'sec'
> /usr/include/linux/jiffies.h:363: error: syntax error before 'NSEC_PER_SEC'
> /usr/include/linux/jiffies.h:363: error: called object 'u64' is not a function
> /usr/include/linux/jiffies.h:363: error: syntax error before ')' token
> /usr/include/linux/jiffies.h: In function 'jiffies_to_timeval':
> /usr/include/linux/jiffies.h:375: error: syntax error before 'nsec'
> /usr/include/linux/jiffies.h:376: error: syntax error before 'result'
> /usr/include/linux/jiffies.h:376: error: 'result' undeclared (first use in this function)
> /usr/include/linux/jiffies.h:376: error: 'NSEC_PER_SEC' undeclared (first use in this function)
> /usr/include/linux/jiffies.h:377: error: 'NSEC_PER_USEC' undeclared (first use in this function)
> In file included from /usr/include/linux/sched.h:12,
>                  from /usr/include/asm/compat.h:8,
>                  from /usr/include/linux/compat.h:15,
>                  from /usr/include/linux/usbdevice_fs.h:35,
>                  from ./usb_linux.c:34:
> /usr/include/linux/jiffies.h:385:41: error: division by zero in #if
> /usr/include/linux/jiffies.h:385:42: error: division by zero in #if
> /usr/include/linux/jiffies.h: In function 'jiffies_to_clock_t':
> -- 
> Nath
> 
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at mielke.cc
> For general information, go to: http://mielke.cc/mailman/listinfo/brltty

-- 
	Adrian P. van Bloois
Postbus 2575                 email:   adrian at accu.uu.nl
3500 GN  Utrecht             voice:   +31-(0)-30-68-94649
The Netherlands              fax:     +31-30-68-94649

The whole point of cooking is to get as much flavour out of the
ingredients as possible.
	-- Delia Smith



More information about the BRLTTY mailing list