* [Buildroot] MIPS target: some packages fail on compilation
[not found] <CACZwKmuhunVfNwRTZfVMOxhbe0h=-fzjG74rCzLYvraOg6Zvkw@mail.gmail.com>
@ 2012-06-08 11:13 ` Evgeny Rovinsky
2012-06-09 13:11 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Evgeny Rovinsky @ 2012-06-08 11:13 UTC (permalink / raw)
To: buildroot
Hello
I'm building a rootfs system for MIPS IV target platform (using the
crosstool-ng-1.14.1 , n64 ABI with "-O3 -march=7k" flags, the 2.6.37
kernel. Buildroot version 2012.05-rc3).
I've got the number of packages that fail on compilation stage. Here is the
list:
dmalloc
lmbench
pv
qt (the opensource version)
sysvinit
xstroke
strace
ltp-testsuite
directfb
I had to disable the compilation of all the above packages.
For instance, the "strace" package compilation fails with the following
diagnostics:
(...)
mips64-n64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./linux/mips -I./linux
-Wall -pipe -march=7k -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -MT file.o -MD -MP -MF .deps/file.Tpo -c -o file.o
file.c
file.c: In function 'printstat64':
file.c:1046:16: error: storage size of 'statbuf' isn't known
file.c:1046:16: warning: unused variable 'statbuf' [-Wunused-variable]
make[2]: *** [file.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/util.Tpo .deps/util.Po
The diagnostics may vary for different packages.
Also, to obtain the successful build, I had to make some changes to the
package/Makefile.in file.
1) I replaced
GNU_TARGET_NAME=$(ARCH)-linux
with
GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX)
on line 13
2) I commented
TARGET_CFLAGS+=-fno-pic -mno-abicalls
on line 89
Of course, it is possible make individual changes to the packages
(modifying their Makefile and source files). But maybe there's better way?
Is it possible to make all packages compile successfully?
Regards,
Evgeny Rovinsky
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120608/4912538b/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] MIPS target: some packages fail on compilation
2012-06-08 11:13 ` [Buildroot] MIPS target: some packages fail on compilation Evgeny Rovinsky
@ 2012-06-09 13:11 ` Thomas Petazzoni
[not found] ` <CACZwKms6Lf6XY7J8cG8FdDPExqbqM4TbAjzrFqe92cL1JmFBfg@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2012-06-09 13:11 UTC (permalink / raw)
To: buildroot
Hello,
Le Fri, 8 Jun 2012 15:13:11 +0400,
Evgeny Rovinsky <e.rovinsky@gmail.com> a ?crit :
> I'm building a rootfs system for MIPS IV target platform (using the
> crosstool-ng-1.14.1 , n64 ABI with "-O3 -march=7k" flags, the 2.6.37
> kernel. Buildroot version 2012.05-rc3).
> I've got the number of packages that fail on compilation stage. Here is the
> list:
>
> dmalloc
> lmbench
> pv
> qt (the opensource version)
> sysvinit
> xstroke
> strace
> ltp-testsuite
> directfb
>
> I had to disable the compilation of all the above packages.
Could you please send your Buildroot .config file so we can reproduce
those problems?
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] MIPS target: some packages fail on compilation
[not found] ` <CACZwKms6Lf6XY7J8cG8FdDPExqbqM4TbAjzrFqe92cL1JmFBfg@mail.gmail.com>
@ 2012-06-13 12:14 ` Evgeny Rovinsky
0 siblings, 0 replies; 3+ messages in thread
From: Evgeny Rovinsky @ 2012-06-13 12:14 UTC (permalink / raw)
To: buildroot
Attaching my buildroot .config file.
I'm also attaching my crosstools-ng config file in case it would be useful.
Thank you,
Evgeny Rovinsky
On Sat, Jun 9, 2012 at 5:11 PM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:
>
>
> Could you please send your Buildroot .config file so we can reproduce
> those problems?
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120613/4d3a3970/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 34292 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120613/4d3a3970/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crosstools-ng.config
Type: application/octet-stream
Size: 10711 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120613/4d3a3970/attachment-0003.obj>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-13 12:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CACZwKmuhunVfNwRTZfVMOxhbe0h=-fzjG74rCzLYvraOg6Zvkw@mail.gmail.com>
2012-06-08 11:13 ` [Buildroot] MIPS target: some packages fail on compilation Evgeny Rovinsky
2012-06-09 13:11 ` Thomas Petazzoni
[not found] ` <CACZwKms6Lf6XY7J8cG8FdDPExqbqM4TbAjzrFqe92cL1JmFBfg@mail.gmail.com>
2012-06-13 12:14 ` Evgeny Rovinsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox