mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] oselas-toolchain: fully automatic build / packaging
@ 2015-01-24 14:17 Enrico Weigelt, metux IT consult
  2015-01-26 13:56 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2015-01-24 14:17 UTC (permalink / raw)
  To: ptxdist

Hi folks,

I'd like to build/package oselas toolchains fully automatically.

I've got a little tool (*1) for such tasks (doing all the
git-buildpackage and pbuilder magic) - the idea is pretty simple:
It manages the local git clones for the individual packages
(eg. automatically syncs them when required), and within these
repos, I've got separate branches for the individual distros,
the target distro is guessed from the branch/tag prefix
(eg. for Ubuntu trusty, it's "trusty/"). All I now have to do
is checkout the proper branch and hit a button - after some
coffe cycle, I've got the ready-to-deploy package in a apt repo.

Now the oselas problems: it wants to operate directly in /opt/OSELAS-...
Not only is it non-interactive (I have to enter my root pw, so it
can sudo to get access to that directory), even worse: I can't do
the usual non-privileged and DESTDIR-based install here, which is
required for the whole deb packaging machinery.

By the way: the build just failed:

In file included from
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:45:0:
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script-c.h:221:7:
warning: 'yylex' initialized and declared 'extern' [enabled by default]
 yylex(YYSTYPE*, void* closure);
       ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script-c.h:221:7:
error: 'YYSTYPE' was not declared in this scope
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script-c.h:221:15:
error: expected primary-expression before ',' token
 yylex(YYSTYPE*, void* closure);
               ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script-c.h:221:17:
error: expected primary-expression before 'void'
 yylex(YYSTYPE*, void* closure);
                 ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script-c.h:221:30:
error: expression list treated as compound expression in initializer
[-fpermissive]
 yylex(YYSTYPE*, void* closure);
                              ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:
In static member function 'static int
gold::Lex::three_char_operator(char, char, char)':
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:557:9:
error: 'LSHIFTEQ' was not declared in this scope
  return LSHIFTEQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:561:9:
error: 'RSHIFTEQ' was not declared in this scope
  return RSHIFTEQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:
In static member function 'static int gold::Lex::two_char_operator(char,
char)':
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:580:9:
error: 'EQ' was not declared in this scope
  return EQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:584:9:
error: 'NE' was not declared in this scope
  return NE;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:588:9:
error: 'PLUSEQ' was not declared in this scope
  return PLUSEQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:592:9:
error: 'MINUSEQ' was not declared in this scope
  return MINUSEQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:596:9:
error: 'MULTEQ' was not declared in this scope
  return MULTEQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:600:9:
error: 'DIVEQ' was not declared in this scope
  return DIVEQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:604:9:
error: 'OREQ' was not declared in this scope
  return OREQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:606:9:
error: 'OROR' was not declared in this scope
  return OROR;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:610:9:
error: 'ANDEQ' was not declared in this scope
  return ANDEQ;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:612:9:
error: 'ANDAND' was not declared in this scope
  return ANDAND;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:616:9:
error: 'GE' was not declared in this scope
  return GE;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:618:9:
error: 'RSHIFT' was not declared in this scope
  return RSHIFT;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:622:9:
error: 'LE' was not declared in this scope
  return LE;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:624:9:
error: 'LSHIFT' was not declared in this scope
  return LSHIFT;
         ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:
In function 'bool gold::read_input_script(gold::Workqueue*,
gold::Symbol_table*, gold::Layout*, gold::Dirsearch*, int,
gold::Input_objects*, gold::Mapfile*, gold::Input_group*, const
gold::Input_argument*, gold::Input_file*, gold::Task_token*, bool*)':
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:1465:56:
error: 'PARSING_LINKER_SCRIPT' was not declared in this scope
   Lex lex(input_string.c_str(), input_string.length(),
PARSING_LINKER_SCRIPT);
                                                        ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:
In function 'bool gold::read_commandline_script(const char*,
gold::Command_line*)':
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:1612:27:
error: 'PARSING_LINKER_SCRIPT' was not declared in this scope
                           PARSING_LINKER_SCRIPT, Lex::LINKER_SCRIPT);
                           ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:
In function 'bool gold::read_version_script(const char*,
gold::Command_line*)':
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:1623:27:
error: 'PARSING_VERSION_SCRIPT' was not declared in this scope
                           PARSING_VERSION_SCRIPT, Lex::VERSION_SCRIPT);
                           ^
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:
In function 'bool gold::read_dynamic_list(const char*,
gold::Command_line*, gold::Script_options*)':
/home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:1634:27:
error: 'PARSING_DYNAMIC_LIST' was not declared in this scope
                           PARSING_DYNAMIC_LIST, Lex::DYNAMIC_LIST);
                           ^

<snip>

Does anyone have an idea, what's wrong here ?


cu
--
Enrico Weigelt,
metux IT consulting
+49-151-27565287

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] oselas-toolchain: fully automatic build / packaging
  2015-01-24 14:17 [ptxdist] oselas-toolchain: fully automatic build / packaging Enrico Weigelt, metux IT consult
@ 2015-01-26 13:56 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2015-01-26 13:56 UTC (permalink / raw)
  To: ptxdist

Hi,

On Sat, Jan 24, 2015 at 03:17:01PM +0100, Enrico Weigelt, metux IT consult wrote:
> I'd like to build/package oselas toolchains fully automatically.
> 
> I've got a little tool (*1) for such tasks (doing all the
> git-buildpackage and pbuilder magic) - the idea is pretty simple:
> It manages the local git clones for the individual packages
> (eg. automatically syncs them when required), and within these
> repos, I've got separate branches for the individual distros,
> the target distro is guessed from the branch/tag prefix
> (eg. for Ubuntu trusty, it's "trusty/"). All I now have to do
> is checkout the proper branch and hit a button - after some
> coffe cycle, I've got the ready-to-deploy package in a apt repo.
> 
> Now the oselas problems: it wants to operate directly in /opt/OSELAS-...
> Not only is it non-interactive (I have to enter my root pw, so it
> can sudo to get access to that directory), even worse: I can't do
> the usual non-privileged and DESTDIR-based install here, which is
> required for the whole deb packaging machinery.

Yes you can. The build_all_v2.mk does this as well, you can use it as an
example. You just need to set PTX_AUTOBUILD_DESTDIR to the desired DESTDIR.

> By the way: the build just failed:
> 
> In file included from
> /home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script.cc:45:0:
> /home/nekrad/metux/OSELAS.Toolchain/platform-arm-cortexa8-linux-gnueabi-gcc-4.9.2-glibc-2.20-binutils-2.24-kernel-3.16-sanitized/build-cross/binutils-2.24/gold/script-c.h:221:7:
> warning: 'yylex' initialized and declared 'extern' [enabled by default]
>  yylex(YYSTYPE*, void* closure);

This looks like a flex version mismatch. Which version are you using ('flex
--version')?

Michael

-- 
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-26 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-24 14:17 [ptxdist] oselas-toolchain: fully automatic build / packaging Enrico Weigelt, metux IT consult
2015-01-26 13:56 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox