Jeff Johnston | 2 Apr 18:51 2015
Picon

Re: Building shared lib for ARM

Looking into it, the problem is that libtool.m4 requires AC_PROG_CC which tries to
verify that the compiler works by building an executable.  In newlib, we replace
AC_PROG_CC with our own LIB_AC_PROG_CC_GNU macro.

As mentioned, it is not supported so you are in new territory.  I would
suggest the following.

Try editing libtool.m4 and replace AC_PROG_CC with newlib's LIB_AC_PROG_CC_GNU macro
or your own copy of it.  You can find the newlib macro in newlib/acinclude.m4.  If you can get that working, then
we just need to have our own version of libtool.m4 inside newlib.

-- Jeff J.

----- Original Message -----
> From: "Darpan KA" <darpanrulz <at> gmail.com>
> To: "Jeff Johnston" <jjohnstn <at> redhat.com>
> Cc: newlib <at> sourceware.org
> Sent: Wednesday, April 1, 2015 11:56:35 PM
> Subject: Re: Building shared lib for ARM
> 
> Dear Jeff,
> I have already tried that option and it does not work. Build fails with
> error "C compiler cannot create executables".
> Please help me what are the changes to be made in configure.host and other
> files to build shared library for arm.
> 
> Best Regards,
> Darpan
> 
> On Thursday, April 2, 2015, Jeff Johnston <jjohnstn <at> redhat.com> wrote:
(Continue reading)

Jeff Johnston | 1 Apr 22:33 2015
Picon

Re: Building shared lib for ARM

Hi Darpan,

This is not currently supported by the build.  There is an old comment about libtool trying to perform
an executable test which is an issue when building (i.e. library
doesn't exist yet), but I don't know if that comment is still valid.

Assuming libtool support for arm works, you could try adding a target to configure.host
that would identify an arm shared target or perhaps add a check for a configuration variable
and add code to the normal arm configuration such that it would set:

use_libtool=yes
a_ext=la
o_ext=lo
lpfx=

Then, try your build.  You might require some other tweaks.

-- Jeff J.

----- Original Message -----
From: "Darpan KA" <darpanrulz <at> gmail.com>
To: jjohnstn <at> redhat.com
Cc: newlib <at> sourceware.org
Sent: Wednesday, April 1, 2015 5:28:37 AM
Subject: Building shared lib for ARM

Dear Jeff,
Please could you provide the steps to be followed to build shared newlib
for ARM.
I am abke to build only static library for ARM. Shared library builds ony
(Continue reading)

Sebastian Huber | 1 Apr 09:58 2015
Picon

[PATCH v2] Add <sys/_stdint.h> for FreeBSD compatibility

v2: Move also intptr_t and uintptr_t.

newlib/ChangeLog
2015-04-01  Sebastian Huber  <sebastian.huber <at> embedded-brains.de>

	* libc/include/sys/_stdint.h: New file.
	* libc/include/stdint.h (int8_t): Move to <sys/_stdint.h>.
	(uint8_t): Likewise.
	(int16_t): Likewise.
	(uint16_t): Likewise.
	(int32_t): Likewise.
	(uint32_t): Likewise.
	(int64_t): Likewise.
	(uint64_t): Likewise.
	(intptr_t): Likewise.
	(uintptr_t): Likewise.
	* libc/include/sys/types.h: Include <sys/_stdint.h>.
	* libc/sys/rtems/machine/_types.h: Remove <stdint.h> include.
	* libc/sys/time.h>: Replace __uint32_t with uint32_t and
	__uint64_t with uint64_t.
---
 newlib/libc/include/stdint.h           | 28 +------------------
 newlib/libc/include/sys/_stdint.h      | 49 ++++++++++++++++++++++++++++++++++
 newlib/libc/include/sys/time.h         | 36 ++++++++++++-------------
 newlib/libc/include/sys/types.h        |  1 +
 newlib/libc/sys/rtems/machine/_types.h |  1 -
 5 files changed, 69 insertions(+), 46 deletions(-)
 create mode 100644 newlib/libc/include/sys/_stdint.h

diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h
(Continue reading)

Jon TURNEY | 31 Mar 17:43 2015
Picon

[PATCH] Add typedef of stack_t for Cygwin

	* libc/include/sys/signal.h (stack_t): Add typedef on Cygwin.
---
 newlib/ChangeLog                 | 4 ++++
 newlib/libc/include/sys/signal.h | 9 +++++++++
 2 files changed, 13 insertions(+)

diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 8ded7ab..24571e5 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
 <at>  <at>  -1,3 +1,7  <at>  <at> 
+2015-03-30  Jon TURNEY  <jon.turney <at> dronecode.org.uk>
+
+	* libc/include/sys/signal.h (stack_t): Add typedef on Cygwin.
+
 2015-03-23  Sebastian Huber  <sebastian.huber <at> embedded-brains.de>

 	* libc/include/sys/tree.h: New file.
diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
index 7fc30a7..6340884 100644
--- a/newlib/libc/include/sys/signal.h
+++ b/newlib/libc/include/sys/signal.h
 <at>  <at>  -138,6 +138,15  <at>  <at>  typedef struct sigaltstack {

 #elif defined(__CYGWIN__)
 #include <cygwin/signal.h>
+
+/*
+ * Structure used in sigaltstack call.
+ */
(Continue reading)

Yaakov Selkowitz | 25 Mar 22:46 2015
Picon

[PATCH] strftime: use tzname if TM_ZONE is NULL

* libc/time/strftime.c (strftime) <%Z>: Initialize tznam to NULL.
Use _tzname as fallback if TM_ZONE is NULL.
---
The following testcase (based on a real-world crash of WebKitGTK+ on
my system when attempting to authorize a Google account) crashes on
Cygwin:

#include <time.h>
#include <stdio.h>
#include <string.h>

int main (void) {
	struct tm tm = { 53, 54, 18, 23, 2, 115, 1, 81, 1, -18000, NULL };
	char s[32];
	/* tzset(); */
	strftime (s, 32, "%Z", &tm);
	printf("%d: %s\n", strlen(s), s);
	return 0;
}

The crash was due to a strlen(NULL) a few lines later, which should NOT
happen.  glibc takes this a step further and calls tzset() if not yet
called so that the returned string matches the local timezone (instead
of "GMT", or on Cygwin, " ").  The question is how to (portably)
determine if tzset() has been called already or not (e.g. a global
variable?).

 newlib/libc/time/strftime.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(Continue reading)

Mike Stump | 24 Mar 03:33 2015

newlib-2_2_0 tag missing?

Should 183c67027c75ccc0f5b4953ce65a85eaa710e826 be tagged with newlib-2_2_0?

I pulled down from the git repo and didn’t see a tag for newlib-2_2_0.
Sebastian Huber | 23 Mar 21:08 2015
Picon

[PATCH] Import <sys/tree.h> from FreeBSD

Newlib already ships a <sys/queue.h>.  The <sys/tree.h> is similar, but
provides red-black trees and splay trees instead of lists.  I would like
to use this file for RTEMS.  Maybe it is useful for Newlib in general.
I compared some red-black tree implementations and this one is not the
worst (https://github.com/sebhub/rb-bench).

newlib/ChangeLog
2015-03-23  Sebastian Huber  <sebastian.huber <at> embedded-brains.de>

	* libc/include/sys/tree.h: New file.
---
 newlib/libc/include/sys/tree.h | 801 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 801 insertions(+)
 create mode 100644 newlib/libc/include/sys/tree.h

diff --git a/newlib/libc/include/sys/tree.h b/newlib/libc/include/sys/tree.h
new file mode 100644
index 0000000..c9df686
--- /dev/null
+++ b/newlib/libc/include/sys/tree.h
 <at>  <at>  -0,0 +1,801  <at>  <at> 
+/*	$NetBSD: tree.h,v 1.8 2004/03/28 19:38:30 provos Exp $	*/
+/*	$OpenBSD: tree.h,v 1.7 2002/10/17 21:51:54 art Exp $	*/
+/* $FreeBSD$ */
+
+/*-
+ * Copyright 2002 Niels Provos <provos <at> citi.umich.edu>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
(Continue reading)

Sebastian Huber | 23 Mar 20:36 2015
Picon

[PATCH] Add <sys/_stdint.h> for FreeBSD compatibility

newlib/ChangeLog
2015-03-13  Sebastian Huber  <sebastian.huber <at> embedded-brains.de>

	* libc/include/sys/_stdint.h: New file.
	* libc/include/stdint.h (int8_t): Move to <sys/_stdint.h>.
	(uint8_t): Likewise.
	(int16_t): Likewise.
	(uint16_t): Likewise.
	(int32_t): Likewise.
	(uint32_t): Likewise.
	(int64_t): Likewise.
	(uint64_t): Likewise.
	* libc/include/sys/types.h: Include <sys/_stdint.h>.
	* libc/sys/rtems/machine/_types.h: Remove <stdint.h> include.
	* libc/sys/time.h>: Replace __uint32_t with uint32_t and
	__uint64_t with uint64_t.
---
 newlib/libc/include/stdint.h           | 25 +-----------------
 newlib/libc/include/sys/_stdint.h      | 46 ++++++++++++++++++++++++++++++++++
 newlib/libc/include/sys/time.h         | 36 +++++++++++++-------------
 newlib/libc/include/sys/types.h        |  1 +
 newlib/libc/sys/rtems/machine/_types.h |  1 -
 5 files changed, 66 insertions(+), 43 deletions(-)
 create mode 100644 newlib/libc/include/sys/_stdint.h

diff --git a/newlib/libc/include/stdint.h b/newlib/libc/include/stdint.h
index 7386164..afb7e8a 100644
--- a/newlib/libc/include/stdint.h
+++ b/newlib/libc/include/stdint.h
 <at>  <at>  -11,53 +11,30  <at>  <at> 
(Continue reading)

Jeff Johnston | 23 Mar 17:13 2015
Picon

Newlib snapshot for 03/23/2015 created and put up on ftp site

See subject.

Joel Sherrill | 23 Mar 15:20 2015

Resumption of Newlib Snapshots

Hi

Just a polite ping that with the move to git, a
new set of magic needs to be turned on. :)

--joel

Olof Kindgren | 21 Mar 20:26 2015
Picon

Typo in link to latest newlib snapshot

Hi guys,

The link to the 20150225 snapshot is broken on this page
ftp://sourceware.org/pub/newlib/index.html

It contains one '2' too many (201502225 should be 20150225)

Best regards,
Olof


Gmane