delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/05/26/16:43:42

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:date:message-id:subject:from:to:content-type;
bh=PBLBZCOjRaGPyxAJXMxs4MiXibEEh9SBnIq3v5VRqd0=;
b=toOQA4O+YFJUtONAyZPAxEktFH3cjwFwdUsGMM2TZsoxuJ7V/6mcssz5ONgNf/JAsL
qfN2Fmn5hs9Tw3wnuxPskdpIxV3Qas9Z5qcE1itFINW1//cBHfqjj+I1jBIenPCgnL5q
5mRg+Q/WPLgGnwA7AykxC6GIhIsMiydXbnjTm9NKXyEAkOYWQjthmSi7dVv8gf0DMKVQ
TFByLk212/gSLjwxmZf9hUEPlRlvWN/QK6YGqiVa9o22qE0dNvQbXQ+Ak6lWp2IkMTTz
dtZhWDC9B34VWO8sLZOs/Ui3BnvbSuKiviBupC6SNGgo4u62UkQ/RMYX2O0kv7XQhE1y
Rqxg==
MIME-Version: 1.0
X-Received: by 10.50.164.138 with SMTP id yq10mr32004887igb.29.1432673009551;
Tue, 26 May 2015 13:43:29 -0700 (PDT)
Date: Tue, 26 May 2015 23:43:29 +0300
Message-ID: <CAA2C=vAoqGoWbOXt1_9ab_GyR5OU0siLOMDx1LsOaifLV-YzUA@mail.gmail.com>
Subject: limits.h problem in cross-toolchain
From: "Ozkan Sezer (sezeroz AT gmail DOT com)" <djgpp AT delorie DOT com>
To: djgpp <djgpp AT delorie DOT com>
Reply-To: djgpp AT delorie DOT com

In my linux hosted cross-djgpp toolchains, gcc-provided limits.h doesn't
include_next the djgpp-provided limits.h, I have to manually correct it.
cross-gcc is configured like:
../gcc-3.46/configure --prefix=/usr/local/cross-djgpp
--target=i586-pc-msdosdjgpp
--with-headers=/usr/local/cross-djgpp/i586-pc-msdosdjgpp/include
--enable-languages=c,c++ --disable-libgcj --disable-libada
--disable-nls

Same thing happens with gcc 3.3.6 and gcc 5.1.0 too.  Before configuring
and building gcc, djgpp libs and headers are of course copied under
/usr/local/cross-djgpp/i586-pc-msdosdjgpp/

$ cat t.c
#include <limits.h>
#ifndef PATH_MAX
#error bad limits.h
#endif

If I don't correct the installed gcc limits.h myself, the above test surely
errors, which is annoying.  What am I missing?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019