mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Matthias Klein" <matthias.klein@optimeas.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2013.12.0 released
Date: Sun, 22 Dec 2013 09:54:38 +0000	[thread overview]
Message-ID: <emf569a3f1-34b0-41b5-9ee3-666801f3e96d@nb-mak> (raw)
In-Reply-To: <20131220141920.GI22131@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 2466 bytes --]

Hello Michael,

Thanks for the new release !


I had two small problems while upgrading to the latest versions:

- The toochain arm-cortexa8-linux-gnueabihf creates the directory 
gcc-4.8.2-glibc-2.18-binutils-2.24-kernel-3.12-sanitized but gcc's 
version
     reports 4.8.3 and ptxdist complains about the version mismatch. As a 
workaround I created a symlink 
gcc-4.8.3-glibc-2.18-binutils-2.24-kernel-3.12-sanitized which made 
ptxdist happy.

- udev 182 does not build with glibc 2.18 of the new toolchain:

     src/udevd-sd-daemon.o: In function `sd_is_mq':
     .../build-target/udev-182/src/sd-daemon.c:394: undefined reference 
to `mq_getattr'
     I found a patch which worked for me: (the failing code is dead code, 
which can be commented out ...)

     https://github.com/gentoo/eudev/issues/41
     
https://github.com/gentoo/eudev/commit/3d6f228db94e8bfb81f3b163739250e9a578e819


The resulting code runs fine on our iMX.537.


Best regards,

Matthias


------ Originalnachricht ------
Von: "Michael Olbrich" <m.olbrich@pengutronix.de>
An: ptxdist@pengutronix.de
Gesendet: 20.12.2013 15:19:20
Betreff: [ptxdist] [ANNOUNCE] OSELAS.Toolchain() 2013.12.0 released
>Hi,
>
>I'm happy to announce that I've just released 
>OSELAS.Toolchain-2013.12.0.
>
>This is a major release with significant changes. All components of the
>primary toolchains have been updated to the latest versions. The 
>highlights
>are:
>  - gcc 4.8.2
>  - glibc 2.18.0
>  - binutils 2.24
>  - kernel headers 3.12
>  - gdb 7.6.1
>
>We've also removed several older toolchains that have not seen any 
>updates
>in some time. Instead several new toolchains have been added:
>  - arm-iwmmx-linux-gnueabi and i586-mingw32msvc are gone.
>  - arm-cortexm4-eabihf new hardfloat toolchain for Cortex-M4
>  - arm-cortexa9-linux-gnueabi* are replaced by arm-v7a-linux-gnueabi*
>    The new toolchains are Optimized for Cortex-A9 but should run on any 
>ARMv7
>Also, all ARMv7 toolchains no generate Thumb2 Code by default.
>
>Download the release here:
>http://www.pengutronix.de/oselas/toolchain/download/
>
>Enjoy,
>Michael Olbrich
>
>--
>Pengutronix e.K. | |
>Industrial Linux Solutions | http://www.pengutronix.de/ |
>Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
>Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
>
>--
>ptxdist mailing list
>ptxdist@pengutronix.de
>

[-- Attachment #2: 0001-fix-glibc-2.18-compilation-error.patch --]
[-- Type: application/octet-stream, Size: 3099 bytes --]

From: Matthias Klein <matthias.klein@optimeas.de>
Date: Sun, 22 Dec 2013 10:40:08 +0100
Subject: [PATCH] fix glibc 2.18 compilation error

---
 src/sd-daemon.c |   72 +++++++++++++++++++++++++++----------------------------
 src/sd-daemon.h |    2 +-
 2 files changed, 37 insertions(+), 37 deletions(-)

diff --git a/src/sd-daemon.c b/src/sd-daemon.c
index 763e079..6ce892d 100644
--- a/src/sd-daemon.c
+++ b/src/sd-daemon.c
@@ -382,42 +382,42 @@ _sd_export_ int sd_is_socket_unix(int fd, int type, int listening, const char *p
         return 1;
 }
 
-_sd_export_ int sd_is_mq(int fd, const char *path) {
-#if !defined(__linux__)
-        return 0;
-#else
-        struct mq_attr attr;
-
-        if (fd < 0)
-                return -EINVAL;
-
-        if (mq_getattr(fd, &attr) < 0)
-                return -errno;
-
-        if (path) {
-                char fpath[PATH_MAX];
-                struct stat a, b;
-
-                if (path[0] != '/')
-                        return -EINVAL;
-
-                if (fstat(fd, &a) < 0)
-                        return -errno;
-
-                strncpy(stpcpy(fpath, "/dev/mqueue"), path, sizeof(fpath) - 12);
-                fpath[sizeof(fpath)-1] = 0;
-
-                if (stat(fpath, &b) < 0)
-                        return -errno;
-
-                if (a.st_dev != b.st_dev ||
-                    a.st_ino != b.st_ino)
-                        return 0;
-        }
-
-        return 1;
-#endif
-}
+//_sd_export_ int sd_is_mq(int fd, const char *path) {
+//#if !defined(__linux__)
+//        return 0;
+//#else
+//        struct mq_attr attr;
+//
+//        if (fd < 0)
+//                return -EINVAL;
+//
+//        if (mq_getattr(fd, &attr) < 0)
+//                return -errno;
+//
+//        if (path) {
+//                char fpath[PATH_MAX];
+//                struct stat a, b;
+//
+//                if (path[0] != '/')
+//                        return -EINVAL;
+//
+//                if (fstat(fd, &a) < 0)
+//                        return -errno;
+//
+//                strncpy(stpcpy(fpath, "/dev/mqueue"), path, sizeof(fpath) - 12);
+//                fpath[sizeof(fpath)-1] = 0;
+//
+//                if (stat(fpath, &b) < 0)
+//                        return -errno;
+//
+//                if (a.st_dev != b.st_dev ||
+//                    a.st_ino != b.st_ino)
+//                        return 0;
+//        }
+//
+//        return 1;
+//#endif
+//}
 
 _sd_export_ int sd_notify(int unset_environment, const char *state) {
 #if defined(DISABLE_SYSTEMD) || !defined(__linux__) || !defined(SOCK_CLOEXEC)
diff --git a/src/sd-daemon.h b/src/sd-daemon.h
index fe51159..5b86f12 100644
--- a/src/sd-daemon.h
+++ b/src/sd-daemon.h
@@ -187,7 +187,7 @@ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t
   0 otherwise. If path is NULL a message queue name check is not
   done. Returns a negative errno style error code on failure.
 */
-int sd_is_mq(int fd, const char *path);
+//int sd_is_mq(int fd, const char *path);
 
 /*
   Informs systemd about changed daemon state. This takes a number of

[-- Attachment #3: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2013-12-22  9:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-20 14:19 Michael Olbrich
2013-12-22  9:54 ` Matthias Klein [this message]
2013-12-22 15:53   ` Michael Olbrich
2014-01-13 22:23 ` Jon Ringle
2014-01-13 23:34   ` Jon Ringle
2014-01-20 12:03     ` [ptxdist] [PATCH] cross-gcc: explicitly specify path for mpc Michael Olbrich
2014-01-24  9:25       ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=emf569a3f1-34b0-41b5-9ee3-666801f3e96d@nb-mak \
    --to=matthias.klein@optimeas.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox