rks_i1_13
April 22nd, 2007, 10:04 AM
I have posted this problem in 64-bit user section, but a reply told me to post it here (sorry for repeated post :oops: ).
I have Pentium Core 2 Duo processor running Ubuntu-7.04 (Fiesty) along with win32(XP). When I compile certain sources, make complains that a file included :-<gnu/stubs-32.h> doesn't exist. Indeed it does not exist, actually it is <gnu/stubs-64.h> that actually exists in /usr/include/gnu.
On checking the actual source of error i found the following in stubs.h :-
Code:
#include <bits/wordsize.h>
#if __WORDSIZE == 32
# include <gnu/stubs-32.h>
#elif __WORDSIZE == 64
# include <gnu/stubs-64.h>
#else
# error "unexpected value for __WORDSIZE macro"
#endif
On checking <bits/wordsize.h>, I found the following :-
Code:
#if defined __x86_64__
# define __WORDSIZE 64
# define __WORDSIZE_COMPAT32 1
#else
# define __WORDSIZE 32
#endif
My problem is:- should I manually define __x86_64__, or do anything else ?
Thanks in advance. :)
I have Pentium Core 2 Duo processor running Ubuntu-7.04 (Fiesty) along with win32(XP). When I compile certain sources, make complains that a file included :-<gnu/stubs-32.h> doesn't exist. Indeed it does not exist, actually it is <gnu/stubs-64.h> that actually exists in /usr/include/gnu.
On checking the actual source of error i found the following in stubs.h :-
Code:
#include <bits/wordsize.h>
#if __WORDSIZE == 32
# include <gnu/stubs-32.h>
#elif __WORDSIZE == 64
# include <gnu/stubs-64.h>
#else
# error "unexpected value for __WORDSIZE macro"
#endif
On checking <bits/wordsize.h>, I found the following :-
Code:
#if defined __x86_64__
# define __WORDSIZE 64
# define __WORDSIZE_COMPAT32 1
#else
# define __WORDSIZE 32
#endif
My problem is:- should I manually define __x86_64__, or do anything else ?
Thanks in advance. :)