Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] glog: add dependency on dynamic library
@ 2015-06-25 13:43 Rahul Bedarkar
  2015-06-25 13:43 ` [Buildroot] [PATCH 2/2] glog: disable on blackfin external toolchains Rahul Bedarkar
  2015-06-28 13:34 ` [Buildroot] [PATCH 1/2] glog: add dependency on dynamic library Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Rahul Bedarkar @ 2015-06-25 13:43 UTC (permalink / raw)
  To: buildroot

when BR2_STATIC_LIBS=y

src/symbolize.cc:110:19: error: dlfcn.h: No such file or directory

glog requires dlfcn.h header. So add dependency on dynamic library

fixes:
http://autobuild.buildroot.net/results/75d/75d17ceb764c2c1136047c089a0c554770ca98a4/

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
---
 package/glog/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/package/glog/Config.in b/package/glog/Config.in
index aed0a3e..534997a 100644
--- a/package/glog/Config.in
+++ b/package/glog/Config.in
@@ -2,10 +2,12 @@ config BR2_PACKAGE_GLOG
 	bool "glog"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
+	depends on !BR2_STATIC_LIBS
 	help
 	  C++ implementation of the Google logging module
 
 	  https://github.com/google/glog
 
-comment "glog needs a toolchain w/ C++, threads"
-	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+comment "glog needs a toolchain w/ C++, threads, dynamic library"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
+		BR2_STATIC_LIBS
-- 
1.9.1

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

* [Buildroot] [PATCH 2/2] glog: disable on blackfin external toolchains
  2015-06-25 13:43 [Buildroot] [PATCH 1/2] glog: add dependency on dynamic library Rahul Bedarkar
@ 2015-06-25 13:43 ` Rahul Bedarkar
  2015-06-28 13:34   ` Thomas Petazzoni
  2015-06-28 13:34 ` [Buildroot] [PATCH 1/2] glog: add dependency on dynamic library Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Rahul Bedarkar @ 2015-06-25 13:43 UTC (permalink / raw)
  To: buildroot

With following blackfin toolchains

BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1
BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1
BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2

when BR2_BINFMT_FDPIC=y

../usr/include/bits/elf-fdpic.h: In function 'void* __reloc_pointer(void*, const elf32_fdpic_loadmap*)':
../usr/include/bits/elf-fdpic.h:95: error: invalid use of 'void'

code snippet at line 95 in elf-fdpic.h
-------------------------------------------------------
unsigned long offset = p - (void*)map->segs[c].p_vaddr;
-------------------------------------------------------

void pointer addition and subtraction is not allowed in C++ as it has undetermined size,
however in C with language extension it is possible because sizeof void is treated
as one byte.

This is toolchain-specific issue. So disable package on these external toolchains.

fixes:
http://autobuild.buildroot.net/results/c70/c704c70ae2f066f85dd6a5fa6a73789bc358d368/

Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
---
 package/glog/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/glog/Config.in b/package/glog/Config.in
index 534997a..3f54020 100644
--- a/package/glog/Config.in
+++ b/package/glog/Config.in
@@ -3,11 +3,18 @@ config BR2_PACKAGE_GLOG
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on !BR2_STATIC_LIBS
+	# build issues with these external toolchains
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2
 	help
 	  C++ implementation of the Google logging module
 
 	  https://github.com/google/glog
 
 comment "glog needs a toolchain w/ C++, threads, dynamic library"
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1
+	depends on !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2
 	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
 		BR2_STATIC_LIBS
-- 
1.9.1

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

* [Buildroot] [PATCH 1/2] glog: add dependency on dynamic library
  2015-06-25 13:43 [Buildroot] [PATCH 1/2] glog: add dependency on dynamic library Rahul Bedarkar
  2015-06-25 13:43 ` [Buildroot] [PATCH 2/2] glog: disable on blackfin external toolchains Rahul Bedarkar
@ 2015-06-28 13:34 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-06-28 13:34 UTC (permalink / raw)
  To: buildroot

Dear Rahul Bedarkar,

On Thu, 25 Jun 2015 19:13:23 +0530, Rahul Bedarkar wrote:
> when BR2_STATIC_LIBS=y
> 
> src/symbolize.cc:110:19: error: dlfcn.h: No such file or directory
> 
> glog requires dlfcn.h header. So add dependency on dynamic library
> 
> fixes:
> http://autobuild.buildroot.net/results/75d/75d17ceb764c2c1136047c089a0c554770ca98a4/
> 
> Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
> ---
>  package/glog/Config.in | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] [PATCH 2/2] glog: disable on blackfin external toolchains
  2015-06-25 13:43 ` [Buildroot] [PATCH 2/2] glog: disable on blackfin external toolchains Rahul Bedarkar
@ 2015-06-28 13:34   ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2015-06-28 13:34 UTC (permalink / raw)
  To: buildroot

Dear Rahul Bedarkar,

On Thu, 25 Jun 2015 19:13:24 +0530, Rahul Bedarkar wrote:
> With following blackfin toolchains
> 
> BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2014R1
> BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2013R1
> BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2
> 
> when BR2_BINFMT_FDPIC=y
> 
> ../usr/include/bits/elf-fdpic.h: In function 'void* __reloc_pointer(void*, const elf32_fdpic_loadmap*)':
> ../usr/include/bits/elf-fdpic.h:95: error: invalid use of 'void'
> 
> code snippet at line 95 in elf-fdpic.h
> -------------------------------------------------------
> unsigned long offset = p - (void*)map->segs[c].p_vaddr;
> -------------------------------------------------------

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-06-28 13:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-25 13:43 [Buildroot] [PATCH 1/2] glog: add dependency on dynamic library Rahul Bedarkar
2015-06-25 13:43 ` [Buildroot] [PATCH 2/2] glog: disable on blackfin external toolchains Rahul Bedarkar
2015-06-28 13:34   ` Thomas Petazzoni
2015-06-28 13:34 ` [Buildroot] [PATCH 1/2] glog: add dependency on dynamic library Thomas Petazzoni

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