[BRLTTY] Problem to compile BRLTTY on AMD64 architecture

Nath nath.ml at free.fr
Tue Oct 11 17:42:54 EDT 2005


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 !

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



More information about the BRLTTY mailing list