From mint-bounce@lists.fishpool.fi Sun May 10 06:27:40 2009
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=googlemail.com; s=gamma;
h=domainkey-signature:received:received:date:from:to:subject
:message-id:x-mailer:mime-version:content-type
:content-transfer-encoding;
bh=Lo02iZG4auPAN0q73vha5sqRp2MHEh48xQUmETKPWbk=;
b=X/XZCY2LAbIZ9IlxcHZQGVmlNi5BnWClk6U8qi/HpFN1rn08ijSVWuG8KuaG4170wR
/DlPzjbGP0VSj2TM91UzegcDpw64Rc2hgEYWH+QXPArm9P3PoJF8WWAXo2qsh/g+woaY
9HU9kJ++KurQ/kNkquHjYPniPjg3w+mX18Cvw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=googlemail.com; s=gamma;
h=date:from:to:subject:message-id:x-mailer:mime-version:content-type
:content-transfer-encoding;
b=QV7obaaISQykhh/eo6ioqYbjvM61zffbKopEdfBwbJfL2BpiVmJQ05kM6Tuv52Sf3v
nGitarJC8V3cqnZWuFczMarN/SJjzjeDtgMstA3kg18E+HM0z+5vmRIwB9tA4p/0uxqp
uaaNWnAXes9Xo1REduWOwbDw/h7NJ32h2gRwQ=
Date: Sun, 10 May 2009 10:39:46 +0200
From: Thomas Huth
To: MiNT-List
Subject: [MiNT] mintlib Makefile requires bash as shell
Message-ID: <20090510103946.2e2a4e59@phineus>
X-Mailer: Claws Mail 3.6.1 (GTK+ 2.16.1; powerpc-unknown-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: th.huth@googlemail.com
Precedence: bulk
List-help:
List-unsubscribe:
List-Id:
X-List-ID:
List-subscribe:
List-owner:
List-post:
Hi all!
While installing Vincent's new GCC 4.4 on my Ubuntu 9.04 Linux system, I
also cross compiled the mintlib for that system.
However, compilation did not work, I've encountered an error:
Making all in lib
make[1]: Entering directory `/home/thomas/src/mintlib-0.58.0/lib'
m68k-atari-mint-gcc -Wall -O2 -fomit-frame-pointer -O3
-fexpensive-optimizations -nostdinc -I../crypt -I.. -I../include
-I../mintlib -I../stdlib -I$(<../includepath) -DHAVE_CONFIG_H -D_LIBC
-D_REENTRANT -c ../crypt/crypt-entry.c -o crypt-entry.o In file
included from ../crypt/crypt-entry.c:32: ../include/string.h:17:20:
error: stddef.h: No such file or directory
After some investigation, I've found out that the problem is due
to /bin/sh not being the bash on Ubuntu (and Debian), but an
alternative shell called "dash".
When I compile the mintlib with "make SHELL=/bin/bash", everything
works fine.
The problem seems to be the -I$(<../includepath): When I type "echo
$(<../includepath)" in the bash, I get the paths. When I type it in
dash, I get no output at all.
When I replace the "<" by "cat " at the corresponding places in
buildrules and checkrules, it also compiles fine with the dash again.
Don't know if this should be fixed in mintlib or rather in dash, but I
though I'd let you know in case somebody else wants to cross-compile
the mintlib on Ubuntu or Debian.
Thomas