Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43996 - emerge cdrtools failed
Summary: emerge cdrtools failed
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: Brandon Low (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-07 18:11 UTC by Armin
Modified: 2004-03-08 18:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armin 2004-03-07 18:11:17 UTC
emerge cdrtools fails to compile.

make[2]: Entering directory `/var/tmp/portage/cdrtools-2.01_alpha19/work/cdrtools-2.01/libscg'
        ==> COMPILING "OBJ/amd64-linux-cc/scsitransp.o"
        ==> COMPILING "OBJ/amd64-linux-cc/scsihack.o"
In file included from /usr/src/linux/include/linux/cdrom.h:14,
                 from scsi-linux-sg.c:89,
                 from scsihack.c:127:
/usr/src/linux/include/asm/byteorder.h:9: error: syntax error before "__u64"
/usr/src/linux/include/asm/byteorder.h:15: error: syntax error before "__u32"
In file included from /usr/src/linux/include/linux/byteorder/little_endian.h:11,
                 from /usr/src/linux/include/asm/byteorder.h:31,
                 from /usr/src/linux/include/linux/cdrom.h:14,
                 from scsi-linux-sg.c:89,
                 from scsihack.c:127:
/usr/src/linux/include/linux/byteorder/swab.h:133: error: syntax error before "__u16"
/usr/src/linux/include/linux/byteorder/swab.h:146: error: syntax error before "__u32"
/usr/src/linux/include/linux/byteorder/swab.h:160: error: syntax error before "__u64"
make[2]: *** [OBJ/amd64-linux-cc/scsihack.o] Error 1

offending lines are of the type:
static __inline__ __attribute_const__ __u64 ___arch__swab64(__u64 x)

Using a stage3 install of 2004.0 amd64 with the linux-2.6.3-gentoo-r2 sources.

__attribute_const__ (the likely problem?) seems to be defined in linux/compiler.h as nothing:

#ifndef __attribute_const__
# define __attribute_const__	/* unimplemented */
#endif

Both byteorder.h and swab.h include that.






Reproducible: Always
Steps to Reproduce:
1. emerge cdrtools

Actual Results:  
!!! ERROR: app-cdr/cdrtools-2.01_alpha19 failed.

Expected Results:  
successful emerge
Comment 1 Armin 2004-03-07 23:47:17 UTC
Update: possible false alarm. Could not reconfirm after reboot as the Gentoo partition failed to mount - one of 2 corrupted xfs partitions. Could have been an xfs failure instead of an emerge one.
Comment 2 Jason Huebel (RETIRED) gentoo-dev 2004-03-08 18:56:11 UTC
closing... This is an alpha version and it's now at alpha25.  resync, try alpha25 and reopen this bug if it's still an issue.  Emerged fine for me and I've used it several times.