* [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1
@ 2015-06-22 17:58 George Redivo
2015-06-22 20:51 ` Peter Korsgaard
2015-06-22 21:21 ` Matthew Weber
0 siblings, 2 replies; 6+ messages in thread
From: George Redivo @ 2015-06-22 17:58 UTC (permalink / raw)
To: buildroot
* Adds powerpc architecture support
Signed-off-by: George Redivo <george.redivo@datacom.ind.br>
---
package/protobuf/Config.in | 5 ++---
package/protobuf/protobuf.mk | 2 +-
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/package/protobuf/Config.in b/package/protobuf/Config.in
index bbb927f..d112d4e 100644
--- a/package/protobuf/Config.in
+++ b/package/protobuf/Config.in
@@ -3,8 +3,7 @@ config BR2_PACKAGE_PROTOBUF
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
# See src/google/protobuf/stubs/platform_macros.h for supported archs.
- # PowerPC doesn't actually work.
- depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64
+ depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64 || BR2_powerpc
# host-protobuf only builds on certain architectures
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
help
@@ -15,5 +14,5 @@ config BR2_PACKAGE_PROTOBUF
comment "protobuf needs a toolchain w/ C++, threads"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
- depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64
+ depends on BR2_arm || BR2_i386 || BR2_mipsel || BR2_x86_64 || BR2_powerpc
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
diff --git a/package/protobuf/protobuf.mk b/package/protobuf/protobuf.mk
index 0426fce..144e5fb 100644
--- a/package/protobuf/protobuf.mk
+++ b/package/protobuf/protobuf.mk
@@ -4,7 +4,7 @@
#
################################################################################
-PROTOBUF_VERSION = v2.5.0
+PROTOBUF_VERSION = v2.6.1
PROTOBUF_SITE = $(call github,google,protobuf,$(PROTOBUF_VERSION))
PROTOBUF_LICENSE = BSD-3c
PROTOBUF_LICENSE_FILES = COPYING.txt
--
1.9.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1
2015-06-22 17:58 [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1 George Redivo
@ 2015-06-22 20:51 ` Peter Korsgaard
2015-06-22 21:21 ` Matthew Weber
1 sibling, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2015-06-22 20:51 UTC (permalink / raw)
To: buildroot
>>>>> "George" == George Redivo <george.redivo@datacom.ind.br> writes:
> * Adds powerpc architecture support
> Signed-off-by: George Redivo <george.redivo@datacom.ind.br>
I was about to commit this after also updating the architecture
dependency of ola (which selects protobuf), but then I did a test build
on powerpc (603e, default external toolchain) which failed:
libtool: compile: /home/peko/source/buildroot/output/host/usr/bin/powerpc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c google/protobuf/stubs/atomicops_internals_x86_gcc.cc -fPIC -DPIC -o google/protobuf/stubs/.libs/atomicops_internals_x86_gcc.o
In file included from google/protobuf/stubs/atomicops_internals_x86_msvc.cc:37:0:
./google/protobuf/stubs/atomicops.h:209:1: error: stray '#' in program
In file included from ./google/protobuf/stubs/once.h:81:0,
from google/protobuf/stubs/common.cc:34:
./google/protobuf/stubs/atomicops.h:209:1: error: stray '#' in program
In file included from ./google/protobuf/stubs/once.h:81:0,
from google/protobuf/stubs/once.cc:38:
./google/protobuf/stubs/atomicops.h:209:1: error: stray '#' in program
In file included from google/protobuf/stubs/atomicops_internals_x86_gcc.cc:36:0:
./google/protobuf/stubs/atomicops.h:209:1: error: stray '#' in program
./google/protobuf/stubs/atomicops.h:209:1: error: 'error' does not name a type
Makefile:2067: recipe for target 'google/protobuf/stubs/atomicops_internals_x86_msvc.lo' failed
[snip]
package/pkg-generic.mk:156: recipe for target '/home/peko/source/buildroot/output/build/protobuf-v2.6.1/.stamp_built' failed
So something seems wrong here. The 'x86' in the file name also looks
suspicious.
If you want to reproduce, the defconfig is simply:
BR2_powerpc=y
BR2_powerpc_603e=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OLA=y
(put in .config and run make olddefconfig; make)
Care to investigate & fix and send an updated patch? Thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1
2015-06-22 17:58 [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1 George Redivo
2015-06-22 20:51 ` Peter Korsgaard
@ 2015-06-22 21:21 ` Matthew Weber
2015-06-24 18:51 ` George Redivo
1 sibling, 1 reply; 6+ messages in thread
From: Matthew Weber @ 2015-06-22 21:21 UTC (permalink / raw)
To: buildroot
George,
On Mon, Jun 22, 2015 at 12:58 PM, George Redivo <
george.redivo@datacom.ind.br> wrote:
> * Adds powerpc architecture support
>
FYI, there is an old email thread related to a previous attempt at bumping
where any compiler older then GCC4.7 has build issues with atomics.
http://lists.busybox.net/pipermail/buildroot/2014-October/110418.html
There was also some discussion at one of the previous Buildroot developer
meetings about the direction suggested for handling this case. I was
leaning towards just restricting based on toolchain version.....
Thanks,
--
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure
Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com
Note: Any Export License Required Information and License Restricted Third
Party Intellectual Property (TPIP) content must be encrypted and sent to
matthew.weber at corp.rockwellcollins.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150622/376f0f4c/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1
2015-06-22 21:21 ` Matthew Weber
@ 2015-06-24 18:51 ` George Redivo
2015-06-30 14:48 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: George Redivo @ 2015-06-24 18:51 UTC (permalink / raw)
To: buildroot
Hi, Peter.
I looked to the ola's Config.in file and there is no powerpc dependency declared in there.
So I'm not sure if it's valid to try to make a build to powerpc arch including this package. Is it?
Anyway, I tried to reproduce the reported error by adding those flags in my .config file.
In addition, I removed BR2_powerpc_8548=y, that was declared.
I ran make olddefconfig and the .config changed.
The BR2_PACKAGE_OLA flag simply dropped out from the .config file.
May you send me your entire .config after running make olddefconfig please?
Thanks for your attention.
George Redivo
DATACOM
Ethernet Switches
Rua Am?rica, 1000 - Eldorado do Sul, RS
Ramal: 3444
george.redivo at datacom.ind.br
www.datacom.ind.br
De: "Matthew Weber" <matthew.weber@rockwellcollins.com>
Para: "DATACOM" <george.redivo@datacom.ind.br>
Cc: "buildroot" <buildroot@buildroot.org>
Enviadas: Segunda-feira, 22 de junho de 2015 18:21:13
Assunto: Re: [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1
George,
On Mon, Jun 22, 2015 at 12:58 PM, George Redivo < george.redivo@datacom.ind.br > wrote:
* Adds powerpc architecture support
FYI, there is an old email thread related to a previous attempt at bumping where any compiler older then GCC4.7 has build issues with atomics.
http://lists.busybox.net/pipermail/buildroot/2014-October/110418.html
There was also some discussion at one of the previous Buildroot developer meetings about the direction suggested for handling this case. I was leaning towards just restricting based on toolchain version.....
Thanks,
--
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com
Note: Any Export License Required Information and License Restricted Third Party Intellectual Property (TPIP) content must be encrypted and sent to matthew.weber at corp.rockwellcollins.com .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150624/07b923c2/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1
2015-06-24 18:51 ` George Redivo
@ 2015-06-30 14:48 ` Thomas Petazzoni
2015-07-07 15:06 ` George Redivo
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2015-06-30 14:48 UTC (permalink / raw)
To: buildroot
Dear George Redivo,
On Wed, 24 Jun 2015 15:51:54 -0300 (BRT), George Redivo wrote:
> I looked to the ola's Config.in file and there is no powerpc dependency declared in there.
> So I'm not sure if it's valid to try to make a build to powerpc arch including this package. Is it?
I think Peter added || BR2_powerpc in ola/Config.in. The ola package
itself does not have any architecture dependency, it only has such
dependencies because it selects protobuf. So if protobuf now supports
PowerPC, then it should also be possible to build Ola.
And anyway, the error reported by Peter occurred during the build of
protobuf itself, so Ola is not relevant here.
> Anyway, I tried to reproduce the reported error by adding those flags in my .config file.
> In addition, I removed BR2_powerpc_8548=y, that was declared.
>
> I ran make olddefconfig and the .config changed.
> The BR2_PACKAGE_OLA flag simply dropped out from the .config file.
>
> May you send me your entire .config after running make olddefconfig please?
Just do:
$ cat > .config <<EOF
BR2_powerpc=y
BR2_powerpc_603e=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OLA=y
EOF
and then:
$ make olddefconfig
$ make
As explained by Peter.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1
2015-06-30 14:48 ` Thomas Petazzoni
@ 2015-07-07 15:06 ` George Redivo
0 siblings, 0 replies; 6+ messages in thread
From: George Redivo @ 2015-07-07 15:06 UTC (permalink / raw)
To: buildroot
Hi, Thomas.
I could not reproduce this error.
I inserted these flags in .config and followed exactly what you sad, but it worked fine.
I looked the code and I found 2 interesting things:
1) There is a syntax error in a protobuf's header file. The code that should generate an error message is broke and generates a compilation error itself.
2) Anyway, at this point it has to generate an error (at least it was the intention). This error is trigged by compiler version. It looks that it is exacltly the your problem.
So to the problem (1), I fixed the wrong syntax and I've done a pull request on Google Protobuf. I have a patch for this.
May I include it in this Buildroot patch?
And to the problem (2), maybe the problem is your compiler version. Would you let me know your compiler version?
If this problem is really this, I'll try to do the protobuf dependent to GCC version.
Thanks
George Redivo
DATACOM
Ethernet Switches
Rua Am?rica, 1000 - Eldorado do Sul, RS
Ramal: 3444
george.redivo at datacom.ind.br
www.datacom.ind.br
----- Mensagem original -----
De: "Thomas Petazzoni" <thomas.petazzoni@free-electrons.com>
Para: "DATACOM" <george.redivo@datacom.ind.br>
Cc: "Peter Korsgaard" <jacmet@gmail.com>, "buildroot" <buildroot@buildroot.org>
Enviadas: Ter?a-feira, 30 de junho de 2015 11:48:14
Assunto: Re: [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1
Dear George Redivo,
On Wed, 24 Jun 2015 15:51:54 -0300 (BRT), George Redivo wrote:
> I looked to the ola's Config.in file and there is no powerpc dependency declared in there.
> So I'm not sure if it's valid to try to make a build to powerpc arch including this package. Is it?
I think Peter added || BR2_powerpc in ola/Config.in. The ola package
itself does not have any architecture dependency, it only has such
dependencies because it selects protobuf. So if protobuf now supports
PowerPC, then it should also be possible to build Ola.
And anyway, the error reported by Peter occurred during the build of
protobuf itself, so Ola is not relevant here.
> Anyway, I tried to reproduce the reported error by adding those flags in my .config file.
> In addition, I removed BR2_powerpc_8548=y, that was declared.
>
> I ran make olddefconfig and the .config changed.
> The BR2_PACKAGE_OLA flag simply dropped out from the .config file.
>
> May you send me your entire .config after running make olddefconfig please?
Just do:
$ cat > .config <<EOF
BR2_powerpc=y
BR2_powerpc_603e=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_OLA=y
EOF
and then:
$ make olddefconfig
$ make
As explained by Peter.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-07 15:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-22 17:58 [Buildroot] [PATCH 1/1] protobuf: bump version to 2.6.1 George Redivo
2015-06-22 20:51 ` Peter Korsgaard
2015-06-22 21:21 ` Matthew Weber
2015-06-24 18:51 ` George Redivo
2015-06-30 14:48 ` Thomas Petazzoni
2015-07-07 15:06 ` George Redivo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox