Skip to contentSkip to conversation

redhat 7.3, no always_inline

DISCUSSION Tim Freeman 3 participants 3 messages Sep 4, 2004

lore
Share & tools
lore
#0 lore raw

I'm having trouble compiling on a redhat 7.3 system, it is the same for xen-2.0 and xeno-unstable. I don't know enough to deduct anything, is it the gcc version I'm using (I'm noting the invalid option)? Thanks for any insights!

Linux 2.4.26 SMP
PIII
gcc version 2.96

make -C common
make[3]: Entering directory `/sandbox/xen/xeno-unstable.bk/xen/common'
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -O3 -iwithprefix include -Wall -Werror -fomit-frame-pointer -pipe -I/sandbox/xen/xeno-unstable.bk/xen/include -Wno-pointer-arith -Wredundant-decls -msoft-float -m32 -march=i686 -DNDEBUG -c ac_timer.c -o ac_timer.o
cc1: Invalid option `32'
cc1: warnings being treated as errors
In file included from /sandbox/xen/xeno-unstable.bk/xen/include/xen/spinlock.h:5,

                 from /sandbox/xen/xeno-unstable.bk/xen/include/xen/sched.h:9,
                 from ac_timer.c:19:
/sandbox/xen/xeno-unstable.bk/xen/include/asm/system.h:28: warning: `always_inline' attribute directive ignored
/sandbox/xen/xeno-unstable.bk/xen/include/asm/system.h:75: warning: `always_inline' attribute directive ignored
In file included from /sandbox/xen/xeno-unstable.bk/xen/include/asm/uaccess.h:5,
                 from /sandbox/xen/xeno-unstable.bk/xen/include/xen/sched.h:149,
                 from ac_timer.c:19:

/sandbox/xen/xeno-unstable.bk/xen/include/asm/x86_32/uaccess.h:338: warning: always_inline' attribute directive ignored /sandbox/xen/xeno-unstable.bk/xen/include/asm/x86_32/uaccess.h:377: warning: always_inline' attribute directive ignored In file included from ac_timer.c:19:
/sandbox/xen/xeno-unstable.bk/xen/include/xen/sched.h:169: warning: `always_inline' attribute directive ignored make[3]: *** [ac_timer.o] Error 1
make[3]: Leaving directory `/sandbox/xen/xeno-unstable.bk/xen/common'
make[2]: *** [/sandbox/xen/xeno-unstable.bk/xen/xen] Error 2
make[2]: Leaving directory `/sandbox/xen/xeno-unstable.bk/xen'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/sandbox/xen/xeno-unstable.bk'
make: *** [world] Error 2

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

#1 lore raw

Yes, you need gcc >= 3.2.x. If there's no RPM for RH 7.3 it is easy to build from source tarball. Xen is happy up to the latest gcc (3.4.1) but that may not be the case for Linux! A happy middleground is perhaps 3.3.3.

-- Keir

Quoted 35 lines

I'm having trouble compiling on a redhat 7.3 system, it is the same for xen-2.0 and xeno-unstable. I don't know enough to deduct anything, is it the gcc version I'm using (I'm noting the invalid option)? Thanks for any insights!

Linux 2.4.26 SMP
PIII
gcc version 2.96

make -C common
make[3]: Entering directory `/sandbox/xen/xeno-unstable.bk/xen/common'
gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -O3 -iwithprefix include -Wall -Werror -fomit-frame-pointer -pipe -I/sandbox/xen/xeno-unstable.bk/xen/include -Wno-pointer-arith -Wredundant-decls -msoft-float -m32 -march=i686 -DNDEBUG -c ac_timer.c -o ac_timer.o
cc1: Invalid option `32'
cc1: warnings being treated as errors
In file included from /sandbox/xen/xeno-unstable.bk/xen/include/xen/spinlock.h:5,

                 from /sandbox/xen/xeno-unstable.bk/xen/include/xen/sched.h:9,
                 from ac_timer.c:19:
/sandbox/xen/xeno-unstable.bk/xen/include/asm/system.h:28: warning: `always_inline' attribute directive ignored
/sandbox/xen/xeno-unstable.bk/xen/include/asm/system.h:75: warning: `always_inline' attribute directive ignored
In file included from /sandbox/xen/xeno-unstable.bk/xen/include/asm/uaccess.h:5,
                 from /sandbox/xen/xeno-unstable.bk/xen/include/xen/sched.h:149,
                 from ac_timer.c:19:

/sandbox/xen/xeno-unstable.bk/xen/include/asm/x86_32/uaccess.h:338: warning: always_inline' attribute directive ignored /sandbox/xen/xeno-unstable.bk/xen/include/asm/x86_32/uaccess.h:377: warning: always_inline' attribute directive ignored In file included from ac_timer.c:19:
/sandbox/xen/xeno-unstable.bk/xen/include/xen/sched.h:169: warning: `always_inline' attribute directive ignored make[3]: *** [ac_timer.o] Error 1
make[3]: Leaving directory `/sandbox/xen/xeno-unstable.bk/xen/common'
make[2]: *** [/sandbox/xen/xeno-unstable.bk/xen/xen] Error 2
make[2]: Leaving directory `/sandbox/xen/xeno-unstable.bk/xen'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/sandbox/xen/xeno-unstable.bk'
make: *** [world] Error 2

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Xen-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click

#2 lore raw
In reply to Tim Freeman
Quoted 4 lines

I'm having trouble compiling on a redhat 7.3 system, it is the same for xen-2.0 and xeno-unstable. I don't know enough to deduct anything, is it the gcc version I'm using (I'm noting the invalid option)? Thanks for any insights!

Yep -- The version of gcc that comes with RH7.3 (2.96) is just too old. Building and installing newer gcc versions from src is pretty easy, though you should be able to force an install of the gcc rpm that comes with RH9.

Ian

-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click