Mail Archives: djgpp-workers/2013/02/02/15:06:37
On 01/15/2013 08:48 PM, Juan Manuel Guerrero wrote:
> Am 13.01.2013 20:06, schrieb Andris Pavenis:
>> Build of gcc-4.8.0-20130111 snapshot is now available for testing:
>>
>> http://ap1.pp.fi/djgpp/gcc/test/4.8.0-20130111/
>>
>> Both cross-compiler RPMS (built in CentOS-6.3 i686 chroot) and
>> native compiler for DJGPP v2.04 it there together with sources.
>>
>> Note that current CVS version of DJGPP v2.04 is required to use
>> this build (with update I committed last Friday 11.01.2013).
>>
>> Very limited testing is done. I only built gmp-5.0.5 with it and
>> did not have any test failures (improvement from previous tests
>> some months ago). Could not test gmp-5.1.0 as it does not build
>> due to absence of trunc(), but that is not a gcc problem.
>>
>> Andris
>>
> OFYI, I have compiled gcc480-20130111s using gcc472, bnu2231, perl588 and a
> freshly build libc.a from yesterdays repository state. The configuration,
> compilation and packing worked flawlessly. I discarded ada from the build.
> On WinXP it tooks almost 7 hs.
>
> After installing gcc480 and the other compilers, I tried to build libc and
> it aborted with the following error:
>
> building new response file
> C:/DJGPP-2.04/BIN/make.exe -C ansi/time
> gcc ... -c ctime.c
> In file included from ctime.c:44:0:
> e:/djgpp/include/time.h:117:23: fatal error: x86intrin.h: No such file or directory (ENOENT)
> #include <x86intrin.h>
> ^
> compilation terminated.
> make.exe[3]: *** [ctime.o] Error 1
> make.exe[2]: *** [all_subs] Error 2
> make.exe[1]: *** [all] Error 2
> make.exe: *** [subs] Error 2
Building now 20130202 version (stage2 of bootstrap at this moment).
About building DJGPP libc:
Perhaps we could define something like __DJGPP_LIBC_BUILD__ and avoid including x86intrin.h
in is such macro is defined.
#ifndef __DJGPP_LIBC_BUILD__
#include <x86intrin.h>
#endif
There may be more similar situations in future, so we could solve them in the same way.
Other way (perhaps better) could be finding GCC own include directory and add it to include
directories
GCC_INCLUDE_DIR := $(shell $(CROSS_GCC) -print-file-name=include)
After that we could add -I$(GCC_INCLUDE_DIR) to the compiler options before DJGPP own include dir
Andris
- Raw text -