[BRLTTY] USB support does not build on AMD64

mlang mlang at delysid.org
Fri Nov 11 11:05:03 EST 2005


Hi.

I distinctly remember that brltty built on AMD64, about half
a year ago.  Now that I got my new box, I found out it only does
if USB is diabled.  Did we change anything to provoke this, or does
anyone know if there is some deficiency with gcc-4 and 2.6 and userspace
usb?  I am a bit puzzled by this one.

cd Programs && make all
make[1]: Entering directory `/home/mlang/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 ./main.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./config.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./options.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./misc.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./sys_linux.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./io_misc.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./queue.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./cut.c
gawk -f ./cmds.awk ./brldefs.h >cmds.auto.h
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./cmd.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./at2.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./tbl.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./ctb_compile.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./ctb_translate.c
gcc -Wall -g -O2 -I. -I.. -I. -I.. -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -DHAVE_CONFIG_H -c ./serial.c
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.c
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-x86_64/div64.h:1,
                 from /usr/include/asm/div64.h:8,
                 from /usr/include/linux/jiffies.h:9,
                 from /usr/include/linux/sched.h:12,
                 from /usr/include/asm-x86_64/compat.h:8,
                 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:32:
/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-x86_64/compat.h:8,
                 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:32:
/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-x86_64/compat.h:8,
                 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:32:
/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':
/usr/include/linux/jiffies.h:388: error: syntax error before 'tmp'
/usr/include/linux/jiffies.h:389: error: 'tmp' undeclared (first use in this function)
/usr/include/linux/jiffies.h:389: error: 'NSEC_PER_SEC' undeclared (first use in this function)
/usr/include/linux/jiffies.h:389: error: 'USER_HZ' undeclared (first use in this function)
/usr/include/linux/jiffies.h:396:18: error: division by zero in #if
/usr/include/linux/jiffies.h: In function 'clock_t_to_jiffies':
/usr/include/linux/jiffies.h:401: error: syntax error before 'jif'
/usr/include/linux/jiffies.h:404: error: 'USER_HZ' undeclared (first use in this function)
/usr/include/linux/jiffies.h:408: error: 'jif' undeclared (first use in this function)
/usr/include/linux/jiffies.h:408: error: syntax error before numeric constant
/usr/include/linux/jiffies.h: At top level:
/usr/include/linux/jiffies.h:414: error: syntax error before 'jiffies_64_to_clock_t'
/usr/include/linux/jiffies.h:414: error: syntax error before 'x'
/usr/include/linux/jiffies.h:416:41: error: division by zero in #if
/usr/include/linux/jiffies.h:416:42: error: division by zero in #if
/usr/include/linux/jiffies.h: In function 'jiffies_64_to_clock_t':
/usr/include/linux/jiffies.h:424: error: 'x' undeclared (first use in this function)
/usr/include/linux/jiffies.h:425: error: 'NSEC_PER_SEC' undeclared (first use in this function)
/usr/include/linux/jiffies.h:425: error: 'USER_HZ' undeclared (first use in this function)
/usr/include/linux/jiffies.h: At top level:
/usr/include/linux/jiffies.h:430: error: syntax error before 'nsec_to_clock_t'
/usr/include/linux/jiffies.h:430: error: syntax error before 'x'
/usr/include/linux/jiffies.h:432:28: error: division by zero in #if
/usr/include/linux/jiffies.h: In function 'nsec_to_clock_t':
/usr/include/linux/jiffies.h:433: error: 'x' undeclared (first use in this function)
/usr/include/linux/jiffies.h:433: error: 'NSEC_PER_SEC' undeclared (first use in this function)
/usr/include/linux/jiffies.h:433: error: 'USER_HZ' undeclared (first use in this function)
In file included from /usr/include/linux/cpumask.h:82,
                 from /usr/include/linux/sched.h:15,
                 from /usr/include/asm-x86_64/compat.h:8,
                 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:32:
/usr/include/linux/bitmap.h: In function 'bitmap_zero':
/usr/include/linux/bitmap.h:119: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_fill':
/usr/include/linux/bitmap.h:134: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_copy':
/usr/include/linux/bitmap.h:140: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_and':
/usr/include/linux/bitmap.h:151: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_or':
/usr/include/linux/bitmap.h:160: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_xor':
/usr/include/linux/bitmap.h:169: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_andnot':
/usr/include/linux/bitmap.h:178: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_complement':
/usr/include/linux/bitmap.h:187: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_equal':
/usr/include/linux/bitmap.h:196: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_intersects':
/usr/include/linux/bitmap.h:205: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_subset':
/usr/include/linux/bitmap.h:214: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_empty':
/usr/include/linux/bitmap.h:222: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_full':
/usr/include/linux/bitmap.h:230: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_shift_right':
/usr/include/linux/bitmap.h:244: error: 'BITS_PER_LONG' undeclared (first use in this function)
/usr/include/linux/bitmap.h: In function 'bitmap_shift_left':
/usr/include/linux/bitmap.h:253: error: 'BITS_PER_LONG' undeclared (first use in this function)
In file included from /usr/include/linux/sched.h:15,
                 from /usr/include/asm-x86_64/compat.h:8,
                 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:32:
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:85: error: syntax error before 'DECLARE_BITMAP'
/usr/include/linux/cpumask.h:86: error: syntax error before '_unused_cpumask_arg_'
/usr/include/linux/cpumask.h:89: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpu_set':
/usr/include/linux/cpumask.h:91: error: 'cpu' undeclared (first use in this function)
/usr/include/linux/cpumask.h:91: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:95: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpu_clear':
/usr/include/linux/cpumask.h:97: error: 'cpu' undeclared (first use in this function)
/usr/include/linux/cpumask.h:97: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:101: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_setall':
/usr/include/linux/cpumask.h:103: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:103: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:107: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_clear':
/usr/include/linux/cpumask.h:109: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:109: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:116: error: syntax error before 'cpumask_t'
/usr/include/linux/cpumask.h: In function '__cpu_test_and_set':
/usr/include/linux/cpumask.h:118: error: 'cpu' undeclared (first use in this function)
/usr/include/linux/cpumask.h:118: error: 'addr' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:122: error: syntax error before '*' token
/usr/include/linux/cpumask.h: In function '__cpus_and':
/usr/include/linux/cpumask.h:125: error: 'dstp' undeclared (first use in this function)
/usr/include/linux/cpumask.h:125: error: 'src1p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:125: error: 'src2p' undeclared (first use in this function)
/usr/include/linux/cpumask.h:125: error: 'nbits' undeclared (first use in this function)
/usr/include/linux/cpumask.h: At top level:
/usr/include/linux/cpumask.h:129: error: syntax error before '*' token

[...]

make[1]: *** [usb_linux.o] Error 1
make[1]: Leaving directory `/home/mlang/svn/brltty/Programs'
make: *** [all] Error 2

-- 
CYa,
  Mario


More information about the BRLTTY mailing list