From: "Enrico Weigelt, metux IT consult" <enrico.weigelt@gr13.net>
To: ptxdist@pengutronix.de
Subject: [ptxdist] oselas-toolchain: fully automatic build / packaging
Date: Sat, 24 Jan 2015 15:17:01 +0100 [thread overview]
Message-ID: <54C3A95D.7000404@gr13.net> (raw)
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
next reply other threads:[~2015-01-24 14:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-24 14:17 Enrico Weigelt, metux IT consult [this message]
2015-01-26 13:56 ` 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=54C3A95D.7000404@gr13.net \
--to=enrico.weigelt@gr13.net \
--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