This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cannot compute suffix of object files: cannot compile: -a64 unsupported


Thanks Jon,

Regarding the "permisison denied" error, I have added
"-DLOCAL_INCLUDE_DIR" and setup the environment variable to
/usr/include folder.
However, I am still getting it in config.log.

Any ideas on how to get this solved?

Our environment is setup like:
All standard head files are under /usr/include
The /usr/local/include exist but only readable to root.

configure:2842: /GCC/gcc-4.4.0-aix/./gcc/xgcc -B/smhs1_c2/u/cm/ljie/
GCC/gcc-4.4.0-aix/./gcc/ -B/GCC/gcc-4.4.0-aix/AIX32/powerpc-ibm-aix6
.1.0.0/bin/ -B/GCC/gcc-4.4.0-aix/AIX32/powerpc-ibm-aix6.1.0.0/lib/ -
isystem /GCC/gcc-4.4.0-aix/AIX32/powerpc-ibm-aix6.1.0.0/include -isy
stem /GCC/gcc-4.4.0-aix/AIX32/powerpc-ibm-aix6.1.0.0/sys-include  -c
 -g -DLOCAL_INCLUDE_DIR=/usr/include    conftest.c >&5
In file included from conftest.c:10:
/GCC/gcc-4.4.0-aix/./gcc/include-fixed/stdio.h:57:23: error: /usr/lo
cal/include/standards.h: Permission denied
In file included from conftest.c:11:
/GCC/gcc-4.4.0-aix/./gcc/include-fixed/sys/types.h:67:29: error: /us
r/local/include/strict_stdtypes.h: Permission denied
/GCC/gcc-4.4.0-aix/./gcc/include-fixed/sys/types.h:70:26: error: /us
r/local/include/sys/inttypes.h: Permission denied
/GCC/gcc-4.4.0-aix/./gcc/include-fixed/sys/types.h:73:33: error: /us
r/local/include/end_strict_stdtypes.h: Permission denied
conftest.c:12:22: error: /usr/local/include/sys/stat.h: Permission denied
conftest.c:15: error: expected '=', ',', ';', 'asm' or '__attribute__'
before '*' token
conftest.c:44: error: expected declaration specifiers or '...' before 'FILE'
configure:2848: $? = 1
configure: failed program was

Thanks in advance!

On Tue, Nov 26, 2013 at 1:40 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 26 November 2013 12:14, dellair jie wrote:
>> Hello Jon,
>>
>> Regarding the q32 option, I think it is a default behavior of xlc
>> compiler, it automatically adds q32 to build 32 bit objects.
>
> But the option is being added to a gcc command, not xlc.
>
> You might need to look earlier in libgcc/config.log for other relevant errors.
>
>> I added one more option "--disable-multilib", and the build seems to
>> go further then stopped at: Permission denied to
>> /usr/local/include/time.h
>>
>> In fact, the correct local include directory is: /usr/include instead
>> of /usr/local/include, any idea how we can specify it for compilation?
>
> It will automatically look in /usr/include
>
> The error suggests it is trying to also look in /usr/local/include but
> doesn't have permission to.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]