Hey,
sorry for the late replay, busy lately.
Yes, compiler and packages and such should not read host files (except when
they build natively run helper tools obviously).
However, there is no fancy sandbox or so that stops packagers to accidentally
doing so.
This is why cross compiled phase requires on proper guidance with configure and
Makefile switchers, patches etc. to guide packages to cross compile proper.
I do not remember seeing such error, and recently cross compiled trunk on a
relative fresh trunk installation on an amd64 to mips64 and aside minor hiccups
which I patched did not encounter major problems, ...
René
On Jun 6, 2016, at 15:37, Barry Kauler <[email protected]> wrote:
>
> It is reading the header file in my host system, should it be doing
> that in stage1?
>
> Anyway, I inserted this into /usr/include/x86_64-linux-gnu/sys/cdefs.h:
>
> --------------------------
> /* Convenience macros to test the version of gcc. */
> #undef __GNUC_PREREQ
> #if defined __GNUC__ && defined __GNUC_MINOR__
> # define __GNUC_PREREQ(maj, min) \
> ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
> #else
> # define __GNUC_PREREQ(maj, min) 0
> #endif
> ---------------------------
>
> Which seems to have fixed it, but then it has stopped on another error
> in another header file in my host system.
>
>
> On 6/6/16, Barry Kauler <[email protected]> wrote:
>> Continuing the "generic" x32 build, dietlibc has failed at stage1.
>>
>> ---------------------
>> x86_64-t2-linux-gnux32-cc -I. -isystem include -Os -fstrict-aliasing
>> -momit-leaf-frame-pointer -mfancy-math-387 -W -Wall -Wextra
>> -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations
>> -Wno-switch -Wno-unused -Wredundant-decls -c dyn_start.c -o
>> bin-x86_64/dyn_start.o -D__dietlibc__
>> In file included from dyn_start.c:4:0:
>> /usr/include/x86_64-linux-gnu/sys/cdefs.h:41:20: error: missing binary
>> operator before token "("
>> # if __GNUC_PREREQ (4, 6) && !defined _LIBC
>> ---------------------
>>
>> Rene,
>> does that error mean anything to you? It is that "(" it is objecting to.
>>
>> Regards,
>> Barry
>>
>
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [email protected] with a subject of: unsubscribe t2
--
ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin
http://exactcode.com | http://exactscan.com | http://ocrkit.com |
http://t2-project.org | http://rene.rebe.de
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2