mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain
@ 2012-02-23 12:39 Martin Breidung
  2012-02-23 13:01 ` Alexander Dahl
  2012-02-23 13:43 ` [ptxdist] " Andreas Bießmann
  0 siblings, 2 replies; 8+ messages in thread
From: Martin Breidung @ 2012-02-23 12:39 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 4778 bytes --]

I got errors on compiling the toolchain OSELAS.Toolchain-2011.11.1.

System: Ubuntu 11.10

On Ubuntu 10.4 LTS i got errors too withe OSELAS.Toolchain-2011.11.0.

Ubuntu is running under VMware Fusion on a MacBookPro i7 Early 2011.


Which OS is recommended for compiling the toolchain or what can I do to make it work?


echo CRTSTUFF_CFLAGS = '-O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2/gcc -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2/gcc/. -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2/gcc/../include -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2/gcc/../libcpp/include -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-host/include -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-host/include  -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2/gcc/../libdecnumber -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.11.1/platform-arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/build-cross/gcc-4.6.2/gcc/../libdecnumber/dpd -I../libdecnumber    -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fno-stack-protector ' >> tmp-libgcc.mvars
echo CRTSTUFF_T_CFLAGS = '' >> tmp-libgcc.mvars
echo CRTSTUFF_T_CFLAGS_S = ' -fPIC' >> tmp-libgcc.mvars
echo TARGET_SYSTEM_ROOT = '/opt/OSELAS.Toolchain-2011.11.1/arm-v4t-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/sysroot-arm-v4t-linux-gnueabi' >> tmp-libgcc.mvars
mv tmp-libgcc.mvars libgcc.mvars
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [lto/lto-lang.o] Error 1


Similar problem with OSELAS.Toolchain-2011.03.1:

gcc -c  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -I. -I. -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/build-cross/gcc-4.5.2/gcc -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/build-cross/gcc-4.5.2/gcc/. -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/build-cross/gcc-4.5.2/gcc/../include -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/build-cross/gcc-4.5.2/gcc/../libcpp/include -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/sysroot-host/include -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/sysroot-host/include  -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/build-cross/gcc-4.5.2/gcc/../libdecnumber -I/home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/build-cross/gcc-4.5.2/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/include/libelf  /home/titus/_workspace.ptx/OSELAS.Toolchain-2011.03.1/platform-arm-v4t-linux-gnueabi-gcc-4.5.2-glibc-2.13-binutils-2.21-kernel-2.6.36-sanitized/build-cross/gcc-4.5.2/gcc/rtlhooks.c -o rtlhooks.o
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [omp-low.o] Error 1


[-- Attachment #1.2: Type: text/html, Size: 6157 bytes --]

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

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain
  2012-02-23 12:39 [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain Martin Breidung
@ 2012-02-23 13:01 ` Alexander Dahl
  2012-02-24 18:48   ` Martin Breidung
  2012-02-25  0:31   ` [ptxdist] [SOLVED] " Martin Breidung
  2012-02-23 13:43 ` [ptxdist] " Andreas Bießmann
  1 sibling, 2 replies; 8+ messages in thread
From: Alexander Dahl @ 2012-02-23 13:01 UTC (permalink / raw)
  To: ptxdist

Hei Martin, 

Am 2012-02-23 13:39, schrieb Martin Breidung:
> I got errors on compiling the toolchain OSELAS.Toolchain-2011.11.1.
> 
> System: Ubuntu 11.10

Which architecture? `uname -m`?

> On Ubuntu 10.4 LTS i got errors too withe OSELAS.Toolchain-2011.11.0.

Same question, i686, x86_64, … ??

> Which OS is recommended for compiling the toolchain or what can I do
> to make it work?

I have compiled OSELAS Toolchain 2011.03.[01] and 2011.11.[01] on all
Ubuntu Releases since 10.04 both under i686 and x86_64 and had no single
problem. How do you build the toolchains, so what are the commands you
invoke? Did you set some special environment variables before?

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain
  2012-02-23 12:39 [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain Martin Breidung
  2012-02-23 13:01 ` Alexander Dahl
@ 2012-02-23 13:43 ` Andreas Bießmann
  2012-02-24 18:51   ` Martin Breidung
  1 sibling, 1 reply; 8+ messages in thread
From: Andreas Bießmann @ 2012-02-23 13:43 UTC (permalink / raw)
  To: ptxdist

Hi Martin,

On 23.02.2012 13:39, Martin Breidung wrote:
> I got errors on compiling the toolchain OSELAS.Toolchain-2011.11.1.
> 
> System: Ubuntu 11.10
> 
> On Ubuntu 10.4 LTS i got errors too withe OSELAS.Toolchain-2011.11.0.
> 
> Ubuntu is running under VMware Fusion on a MacBookPro i7 Early 2011.

so why don't use your host system if you already run OS X?

> Which OS is recommended for compiling the toolchain or what can I do to
> make it work?

Lion as host with OSELAS.Toolchain-2011.11.1 works for me with
arm-v4t-linux-gnueabi, arm-v5te-linux-gnueabi and
arm-cortexa8-linux-gnueabi.
It would be great to have more testers for ptxdist stuff on OS X host.
So if you do not insist on Linux host feel free to try it.
But keep in mind: OS X support is something alpha, not all functions
tested on Linux host already tested on OS X host and there may be some
issues.

regards

Andreas Bießmann

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain
  2012-02-23 13:01 ` Alexander Dahl
@ 2012-02-24 18:48   ` Martin Breidung
  2012-02-25  0:31   ` [ptxdist] [SOLVED] " Martin Breidung
  1 sibling, 0 replies; 8+ messages in thread
From: Martin Breidung @ 2012-02-24 18:48 UTC (permalink / raw)
  To: ptxdist

Hi Alex,

thank you for your answer.

Architecture is 32bit i686. My target arm is Mini2440 with 920T armv4.

I followed the instructions in OSELAS Quickstart. I set no other environment.

The build error occurs only in building the toolchain. A previously build with the FriendlyArm toolchain succeeded.

I gonna try it again next week.

Martin


Am 23.02.2012 um 14:01 schrieb Alexander Dahl:

> Hei Martin, 
> Am 2012-02-23 13:39, schrieb Martin Breidung:> I got errors on compiling the toolchain OSELAS.Toolchain-2011.11.1.> > System: Ubuntu 11.10
> Which architecture? `uname -m`?
>> On Ubuntu 10.4 LTS i got errors too withe OSELAS.Toolchain-2011.11.0.
> Same question, i686, x86_64, … ??
>> Which OS is recommended for compiling the toolchain or what can I do> to make it work?
> I have compiled OSELAS Toolchain 2011.03.[01] and 2011.11.[01] on allUbuntu Releases since 10.04 both under i686 and x86_64 and had no singleproblem. How do you build the toolchains, so what are the commands youinvoke? Did you set some special environment variables before?
> GreetsAlex
> -- »With the first link, the chain is forged. The first speech censured,the first thought forbidden, the first freedom denied, chains us allirrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***
> -- ptxdist mailing listptxdist@pengutronix.de


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain
  2012-02-23 13:43 ` [ptxdist] " Andreas Bießmann
@ 2012-02-24 18:51   ` Martin Breidung
  2012-02-25  8:21     ` Andreas Bießmann
  0 siblings, 1 reply; 8+ messages in thread
From: Martin Breidung @ 2012-02-24 18:51 UTC (permalink / raw)
  To: ptxdist

Hi Andreas,

hmm… sounds interesting. I did not know that it can be used under OS X.

But i have to install a lot of other stuff under Lion first, right?

Where can i get the necessary informations on setting up Lion for PDXdist? I would try it under Lion in a VM to protect my running system.

Thank you!

Martin



Am 23.02.2012 um 14:43 schrieb Andreas Bießmann:

> Hi Martin,
> 
> On 23.02.2012 13:39, Martin Breidung wrote:
>> I got errors on compiling the toolchain OSELAS.Toolchain-2011.11.1.
>> 
>> System: Ubuntu 11.10
>> 
>> On Ubuntu 10.4 LTS i got errors too withe OSELAS.Toolchain-2011.11.0.
>> 
>> Ubuntu is running under VMware Fusion on a MacBookPro i7 Early 2011.
> 
> so why don't use your host system if you already run OS X?
> 
>> Which OS is recommended for compiling the toolchain or what can I do to
>> make it work?
> 
> Lion as host with OSELAS.Toolchain-2011.11.1 works for me with
> arm-v4t-linux-gnueabi, arm-v5te-linux-gnueabi and
> arm-cortexa8-linux-gnueabi.
> It would be great to have more testers for ptxdist stuff on OS X host.
> So if you do not insist on Linux host feel free to try it.
> But keep in mind: OS X support is something alpha, not all functions
> tested on Linux host already tested on OS X host and there may be some
> issues.
> 
> regards
> 
> Andreas Bießmann
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] [SOLVED] Not reproducable bugs on compiling OSELAS Toolchain
  2012-02-23 13:01 ` Alexander Dahl
  2012-02-24 18:48   ` Martin Breidung
@ 2012-02-25  0:31   ` Martin Breidung
  1 sibling, 0 replies; 8+ messages in thread
From: Martin Breidung @ 2012-02-25  0:31 UTC (permalink / raw)
  To: ptxdist

Hi Alex and Andreas,

i've started a new build.

Former i used ptxdist 2011.12.0 for building the toolchain. In the newer Quickstart i read that it is tested with ptxdist 2011.11.0. Now the toolchain was successfully compiled in 31 minutes under VMware Fusion using 4 Cores and 8GB RAM.

@Andreas: I'm interested in using Lion for cross-compiling for my Mini2440. Please give me a hint where i can find OS X related documentation.

Thank you both,

Martin



Am 23.02.2012 um 14:01 schrieb Alexander Dahl:

> Hei Martin, 
> Am 2012-02-23 13:39, schrieb Martin Breidung:> I got errors on compiling the toolchain OSELAS.Toolchain-2011.11.1.> > System: Ubuntu 11.10
> Which architecture? `uname -m`?
>> On Ubuntu 10.4 LTS i got errors too withe OSELAS.Toolchain-2011.11.0.
> Same question, i686, x86_64, … ??
>> Which OS is recommended for compiling the toolchain or what can I do> to make it work?
> I have compiled OSELAS Toolchain 2011.03.[01] and 2011.11.[01] on allUbuntu Releases since 10.04 both under i686 and x86_64 and had no singleproblem. How do you build the toolchains, so what are the commands youinvoke? Did you set some special environment variables before?
> GreetsAlex
> -- »With the first link, the chain is forged. The first speech censured,the first thought forbidden, the first freedom denied, chains us allirrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***
> -- ptxdist mailing listptxdist@pengutronix.de


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain
  2012-02-24 18:51   ` Martin Breidung
@ 2012-02-25  8:21     ` Andreas Bießmann
  2012-02-26 17:55       ` Bernhard Walle
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Bießmann @ 2012-02-25  8:21 UTC (permalink / raw)
  To: ptxdist; +Cc: Martin Breidung

Hi Martin,

On 24.02.12 19:51, Martin Breidung wrote:
> Hi Andreas,
> 
> hmm… sounds interesting. I did not know that it can be used under OS X.
> 
> But i have to install a lot of other stuff under Lion first, right?

> Where can i get the necessary informations on setting up Lion for PDXdist? I would try it under Lion in a VM to protect my running system.

sorry, there is no documentation yet. I will sum it up if I have some
time and provide it to ptxdist.

Here are some step by step instructions (written down from memory ...
may lack some important steps).

You will first require the X-Code application from 'App Store'. It comes
with OS X headers, llvm-gcc, binutils for your mac a.s.o.

Next you will need some GNU tools like coreutils [1], gawk [2], sed [3],
tar [4], flex [5] and bison/yacc [6]. Remaining requirements of ptxdist
should be sufficient by OS X delivered software.

That sounds hard, but you do not need to install that tools by hand. You
may know either fink [7] or macports [8], just install your favorite
distribution and use it to install mentioned tools.
I can tell you that I use fink and one of my colleagues uses macports.
So questions targeted ptxdist regarding one of these distributions may
get an answer on this list. Beside that both distributions are actively
developed, you will get support from their mailing lists regarding
installing the distribution a.s.o.

If you got the required tools you can start using ptxdist source to
build it for your host. There comes another requirement to mind while
writing this. You will need ncurses[9] for building the kconf tools in
ptxdist. Ptxdists configure will search the required tools and complain
about missing ones.

Next get OSELAS.Toolchain source, extract, select target, ptxdist
migrate and go to build your favorite toolchain. As mentioned before I
tested arm-v4t, arm-v5te and arm-cortexa8 (all linux-gnueabi) toolchains
here.

Another important step is to build a rootfs. Here are some more
stumbling blocks, cause some target tools will require specific host
tools which are not yet tested on OS X.
Bernhard Walle started a generic arm bsp [10] (targeted on beagle-board
and clones). He uses ptxdist with OS X too, therefore this is a good
place to go for OS X adoptions of ptxdist bsp.
Beside that get git [11], read this list and react on patches regarding
OS X.

best regards

Andreas Bießmann

[1] http://www.gnu.org/software/coreutils/
[2] http://www.gnu.org/software/gawk/
[3] http://www.gnu.org/software/sed/
[4] http://www.gnu.org/software/tar/
[5] http://www.gnu.org/software/flex/
[6] http://www.gnu.org/software/bison/
[7] http://finkproject.org/
[8] http://www.macports.org/
[9] http://www.gnu.org/software/ncurses/
[10] https://bitbucket.org/bwalle/ptxdist-arm-boards
[11] http://gitscm.org/

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

* Re: [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain
  2012-02-25  8:21     ` Andreas Bießmann
@ 2012-02-26 17:55       ` Bernhard Walle
  0 siblings, 0 replies; 8+ messages in thread
From: Bernhard Walle @ 2012-02-26 17:55 UTC (permalink / raw)
  To: ptxdist

Hi,

* Andreas Bießmann <andreas@biessmann.de> [2012-02-25 09:21]:
> 
> Next you will need some GNU tools like coreutils [1], gawk [2], sed [3],
> tar [4], flex [5] and bison/yacc [6]. Remaining requirements of ptxdist
> should be sufficient by OS X delivered software.

flex and bison can be used from Apple (at least I have /usr/bin/flex and
/usr/bin/bison in my $PATH). You also need 'md5sum' (macports has the
'md5sha1sum' package). And also GNU ar because of the 'f' option, but I
want to check if it's really needed before sending a patch to check for
GNU ar.

> If you got the required tools you can start using ptxdist source to
> build it for your host. There comes another requirement to mind while
> writing this. You will need ncurses[9] for building the kconf tools in
> ptxdist. Ptxdists configure will search the required tools and complain
> about missing ones.

I'm not sure if the ncurses from Apple is sufficient, but at least
/usr/lib/libncuses.dylib is there. Apart from building kconfig, ptxdist
uses its own host-ncurses, though.

> Bernhard Walle started a generic arm bsp [10] (targeted on beagle-board
> and clones). He uses ptxdist with OS X too, therefore this is a good
> place to go for OS X adoptions of ptxdist bsp.

I would have called it 'playground'. :) I just checked that it builds
with ptxdist-2012.02 without any additional patches.

The only remaining patch that is in the queue of Michael is the
localedef stuff. If you need it now, you can take it from
https://bitbucket.org/bwalle/localedef/overview (darwin-fixes branch)
or as patch from
https://bitbucket.org/bwalle/ptxdist-vetero/src/770a9a83af73/patches/localedef-eglibc-2.11.90-ptx1.

Please note that the ptxdist-vetero project doesn't build currently on
Mac OS because of the mtd tools. I need to fix that when I have time.
('ptxdist go' works but 'ptxdist images' will fail.)



Regards,
Bernhard

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2012-02-26 17:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-23 12:39 [ptxdist] Not reproducable bugs on compiling OSELAS Toolchain Martin Breidung
2012-02-23 13:01 ` Alexander Dahl
2012-02-24 18:48   ` Martin Breidung
2012-02-25  0:31   ` [ptxdist] [SOLVED] " Martin Breidung
2012-02-23 13:43 ` [ptxdist] " Andreas Bießmann
2012-02-24 18:51   ` Martin Breidung
2012-02-25  8:21     ` Andreas Bießmann
2012-02-26 17:55       ` Bernhard Walle

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