Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] problem with ccache during valgrind compiling
@ 2011-12-09 19:09 Belisko Marek
  2011-12-22  9:37 ` Diego Iastrubni
  2011-12-30  8:06 ` Thomas Petazzoni
  0 siblings, 2 replies; 7+ messages in thread
From: Belisko Marek @ 2011-12-09 19:09 UTC (permalink / raw)
  To: buildroot

Hi,

I'm trying to build valgrind but it fails on my system with:

../coregrind/link_tool_exe_linux 0x38000000
/home/open-nandra/projects/buildroot-new/output/host/usr/bin/ccache
/home/open-nandra/projects/buildroot-new/output/host/usr/bin/arm-none-linux-gnueabi-gcc
 -Wno-long-long -pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -Wno-pointer-sign -fno-stack-protector   -o
memcheck-arm-linux -O2 -g -Wall -Wmissing-prototypes -Wshadow
-Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
-Wno-format-zero-length -fno-strict-aliasing -marm -O2 -static
-nodefaultlibs -nostartfiles -u _start -Wl,--build-id=none
memcheck_arm_linux-mc_leakcheck.o
memcheck_arm_linux-mc_malloc_wrappers.o memcheck_arm_linux-mc_main.o
memcheck_arm_linux-mc_translate.o memcheck_arm_linux-mc_machine.o
memcheck_arm_linux-mc_errors.o ../coregrind/libcoregrind-arm-linux.a
../VEX/libvex-arm-linux.a -lgcc
mkdir -p ../.in_place; \
	for f in ; do \
	  rm -f ../.in_place/$f.dSYM; \
	  ln -f -s ../memcheck/$f.dSYM ../.in_place; \
	done
cache directory                     /home/open-nandra/.buildroot-ccache
cache hit (direct)                     1
cache hit (preprocessed)               1
cache miss                           543
called for link                       10
compile failed                        10
preprocessor error                     9
bad compiler arguments                 2
unsupported source language           22
autoconf compile/link                 40
unsupported compiler option            4
no input file                         76
files in cache                      1593
cache size                          18.8 Mbytes
max cache size                       1.0 Gbytes
/home/open-nandra/projects/buildroot-new/output/host/usr/bin/ccache:
invalid option -- 't'
Usage:
    ccache [options]
    ccache compiler [compiler options]
    compiler [compiler options]          (via symbolic link)

Options:
    -c, --cleanup         delete old files and recalculate size counters
                          (normally not needed as this is done automatically)
    -C, --clear           clear the cache completely
    -F, --max-files=N     set maximum number of files in cache to N (use 0 for
                          no limit)
    -M, --max-size=SIZE   set maximum size of cache to SIZE (use 0 for no
                          limit; available suffixes: G, M and K; default
                          suffix: G)
    -s, --show-stats      show statistics summary
    -z, --zero-stats      zero statistics counters

    -h, --help            print this help text
    -V, --version         print version and copyright information

See also <http://ccache.samba.org>.

Config is in attachment.

Thanks,

Marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 17238 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111209/55fe0a3a/attachment-0001.obj>

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

* [Buildroot] problem with ccache during valgrind compiling
  2011-12-09 19:09 [Buildroot] problem with ccache during valgrind compiling Belisko Marek
@ 2011-12-22  9:37 ` Diego Iastrubni
  2011-12-22 11:31   ` Thomas Petazzoni
  2011-12-30  8:06 ` Thomas Petazzoni
  1 sibling, 1 reply; 7+ messages in thread
From: Diego Iastrubni @ 2011-12-22  9:37 UTC (permalink / raw)
  To: buildroot

On Fri, Dec 9, 2011 at 9:09 PM, Belisko Marek <marek.belisko@gmail.com>wrote:

> Hi,
>
> I'm trying to build valgrind but it fails on my system with:
>
> ../coregrind/link_tool_exe_linux 0x38000000
> /home/open-nandra/projects/buildroot-new/output/host/usr/bin/ccache
>
> /home/open-nandra/projects/buildroot-new/output/host/usr/bin/arm-none-linux-gnueabi-gcc
>  -Wno-long-long -pipe -Os  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Wno-pointer-sign -fno-stack-protector   -o
> memcheck-arm-linux -O2 -g -Wall -Wmissing-prototypes -Wshadow
> -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
> -Wno-format-zero-length -fno-strict-aliasing -marm -O2 -static
> -nodefaultlibs -nostartfiles -u _start -Wl,--build-id=none
> memcheck_arm_linux-mc_leakcheck.o
> memcheck_arm_linux-mc_malloc_wrappers.o memcheck_arm_linux-mc_main.o
> memcheck_arm_linux-mc_translate.o memcheck_arm_linux-mc_machine.o
> memcheck_arm_linux-mc_errors.o ../coregrind/libcoregrind-arm-linux.a
> ../VEX/libvex-arm-linux.a -lgcc
> mkdir -p ../.in_place; \
>        for f in ; do \
>          rm -f ../.in_place/$f.dSYM; \
>          ln -f -s ../memcheck/$f.dSYM ../.in_place; \
>        done
> cache directory                     /home/open-nandra/.buildroot-ccache
> cache hit (direct)                     1
> cache hit (preprocessed)               1
> cache miss                           543
> called for link                       10
> compile failed                        10
> preprocessor error                     9
> bad compiler arguments                 2
> unsupported source language           22
> autoconf compile/link                 40
> unsupported compiler option            4
> no input file                         76
> files in cache                      1593
> cache size                          18.8 Mbytes
> max cache size                       1.0 Gbytes
> /home/open-nandra/projects/buildroot-new/output/host/usr/bin/ccache:
> invalid option -- 't'
> Usage:
>    ccache [options]
>    ccache compiler [compiler options]
>    compiler [compiler options]          (via symbolic link)
>
> Options:
>    -c, --cleanup         delete old files and recalculate size counters
>                          (normally not needed as this is done
> automatically)
>    -C, --clear           clear the cache completely
>    -F, --max-files=N     set maximum number of files in cache to N (use 0
> for
>                          no limit)
>    -M, --max-size=SIZE   set maximum size of cache to SIZE (use 0 for no
>                          limit; available suffixes: G, M and K; default
>                          suffix: G)
>    -s, --show-stats      show statistics summary
>    -z, --zero-stats      zero statistics counters
>
>    -h, --help            print this help text
>    -V, --version         print version and copyright information
>
> See also <http://ccache.samba.org>.
>
>
Same here. Is it possible to disable ccache for a single package?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111222/07a782b9/attachment-0001.html>

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

* [Buildroot] problem with ccache during valgrind compiling
  2011-12-22  9:37 ` Diego Iastrubni
@ 2011-12-22 11:31   ` Thomas Petazzoni
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2011-12-22 11:31 UTC (permalink / raw)
  To: buildroot

Le Thu, 22 Dec 2011 11:37:20 +0200,
Diego Iastrubni <diegoiast@gmail.com> a ?crit :

> Same here. Is it possible to disable ccache for a single package?

I have reproduced the issue and I think I have a fix. I'll send it soon.

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] 7+ messages in thread

* [Buildroot] problem with ccache during valgrind compiling
  2011-12-09 19:09 [Buildroot] problem with ccache during valgrind compiling Belisko Marek
  2011-12-22  9:37 ` Diego Iastrubni
@ 2011-12-30  8:06 ` Thomas Petazzoni
  2011-12-31 12:12   ` Belisko Marek
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2011-12-30  8:06 UTC (permalink / raw)
  To: buildroot

Belisko, Diego,

Le Fri, 9 Dec 2011 20:09:58 +0100,
Belisko Marek <marek.belisko@gmail.com> a ?crit :

> I'm trying to build valgrind but it fails on my system with:

I have sent yesterday a patch that updates Valgrind to 3.7.0 and that
fixes the build problem with ccache. See
http://lists.busybox.net/pipermail/buildroot/2011-December/048683.html.

If would be great if you had the time to test this patch and see if
Valgrind works for you.

Best regards,

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] 7+ messages in thread

* [Buildroot] problem with ccache during valgrind compiling
  2011-12-30  8:06 ` Thomas Petazzoni
@ 2011-12-31 12:12   ` Belisko Marek
  2011-12-31 14:04     ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Belisko Marek @ 2011-12-31 12:12 UTC (permalink / raw)
  To: buildroot

On Fri, Dec 30, 2011 at 9:06 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Belisko, Diego,
>
> Le Fri, 9 Dec 2011 20:09:58 +0100,
> Belisko Marek <marek.belisko@gmail.com> a ?crit :
>
>> I'm trying to build valgrind but it fails on my system with:
>
> I have sent yesterday a patch that updates Valgrind to 3.7.0 and that
> fixes the build problem with ccache. See
> http://lists.busybox.net/pipermail/buildroot/2011-December/048683.html.
>
> If would be great if you had the time to test this patch and see if
> Valgrind works for you.
I apply patch you sent and there is another problem:
mv -f .deps/libcoregrind_arm_linux_a-readdwarf3.Tpo
.deps/libcoregrind_arm_linux_a-readdwarf3.Po
/home/open-nandra/projects/buildroot-new/output/host/usr/bin/arm-none-linux-gnueabi-gcc
-DHAVE_CONFIG_H -I. -I..  -I.. -I../include -I../VEX/pub -DVGA_arm=1
-DVGO_linux=1 -DVGP_arm_linux=1 -DVGPV_arm_linux_vanilla=1
-I../coregrind -DVG_LIBDIR="\"/usr/lib/valgrind"\"
-DVG_PLATFORM="\"arm-linux\""  -O2 -g -Wall -Wmissing-prototypes
-Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-declarations
-Wno-format-zero-length -fno-strict-aliasing -fno-builtin -marm
-mcpu=cortex-a8 -Wno-long-long -pipe -Os  -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-pointer-sign
-fno-stack-protector -MT libcoregrind_arm_linux_a-readstabs.o -MD -MP
-MF .deps/libcoregrind_arm_linux_a-readstabs.Tpo -c -o
libcoregrind_arm_linux_a-readstabs.o `test -f
'm_debuginfo/readstabs.c' || echo './'`m_debuginfo/readstabs.c
m_debuginfo/readstabs.c:55:45: fatal error: linux/nlist.h: No such
file or directory
compilation terminated.
make[4]: *** [libcoregrind_arm_linux_a-readstabs.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/libcoregrind_arm_linux_a-readpdb.Tpo
.deps/libcoregrind_arm_linux_a-readpdb.Po
make[4]: Leaving directory
`/home/open-nandra/projects/buildroot-new/output/build/valgrind-3.7.0/coregrind'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/open-nandra/projects/buildroot-new/output/build/valgrind-3.7.0/coregrind'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/open-nandra/projects/buildroot-new/output/build/valgrind-3.7.0'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/open-nandra/projects/buildroot-new/output/build/valgrind-3.7.0'
make: *** [/home/open-nandra/projects/buildroot-new/output/build/valgrind-3.7.0/.stamp_built]
Error 2

Config in attachment.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 17547 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111231/17740737/attachment.obj>

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

* [Buildroot] problem with ccache during valgrind compiling
  2011-12-31 12:12   ` Belisko Marek
@ 2011-12-31 14:04     ` Thomas Petazzoni
  2012-01-01 13:08       ` Belisko Marek
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2011-12-31 14:04 UTC (permalink / raw)
  To: buildroot

Le Sat, 31 Dec 2011 13:12:34 +0100,
Belisko Marek <marek.belisko@gmail.com> a ?crit :

> I apply patch you sent and there is another problem:

Ah, yes, that's a mistake on my side. The patch
valgrind-3.7.0-readstab-fix.patch shouldn't have been part of the
commit. Can you just remove it and retry?

I will send a new updated version soon.

Thanks a lot for your testing!

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] 7+ messages in thread

* [Buildroot] problem with ccache during valgrind compiling
  2011-12-31 14:04     ` Thomas Petazzoni
@ 2012-01-01 13:08       ` Belisko Marek
  0 siblings, 0 replies; 7+ messages in thread
From: Belisko Marek @ 2012-01-01 13:08 UTC (permalink / raw)
  To: buildroot

On Sat, Dec 31, 2011 at 3:04 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Le Sat, 31 Dec 2011 13:12:34 +0100,
> Belisko Marek <marek.belisko@gmail.com> a ?crit :
>
>> I apply patch you sent and there is another problem:
>
> Ah, yes, that's a mistake on my side. The patch
> valgrind-3.7.0-readstab-fix.patch shouldn't have been part of the
> commit. Can you just remove it and retry?
Much better. It work's now perfectly. Thanks for your effort.
You can add my : Tested-by: Marek Belisko <marek.belisko@open-nandra.com>
>
> I will send a new updated version soon.
>
> Thanks a lot for your testing!
>
> Thomas
> --
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com

Regards,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

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

end of thread, other threads:[~2012-01-01 13:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-09 19:09 [Buildroot] problem with ccache during valgrind compiling Belisko Marek
2011-12-22  9:37 ` Diego Iastrubni
2011-12-22 11:31   ` Thomas Petazzoni
2011-12-30  8:06 ` Thomas Petazzoni
2011-12-31 12:12   ` Belisko Marek
2011-12-31 14:04     ` Thomas Petazzoni
2012-01-01 13:08       ` Belisko Marek

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