Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
Hi, I have reproduced the problem with ccache on a second machine. Ccache feels not very confiding for me at the moment, I liked this feature ... We decided to disable the ccache until further notice. lot of work, so for now, you can get the old behaviour by setting: PTXCONF_TARGET_EXTRA_LDFLAGS=-Wl,--copy-dt-needed-entries in the platformconfig. works perfect! System is up again with all the shiny new stuff: Ptxdist: 2012.10.0 - 2012.12.0. Toolchain: 2011.11.1 - 2012.12.0 (i686-unknown-linux-gnu - i686-atom-linux-gnu) Kernel: 3.4.2rt - 3.6.10rt We are still testing, but system seems to run stable atm :) Thanks again and Merry Christmas Gavin Eckelmann Aktiengesellschaft Vorstand: Dr.-Ing. Gerd Eckelmann (Vorsitzender) Dr.-Ing. Peter Cordes, Dr.-Ing. Frank-Thomas Mellert Vorsitzender des Aufsichtsrats: Hubertus G. Krossa Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636 http://www.eckelmann.de -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
Hi, On Wed, Dec 19, 2012 at 11:22:09AM +, Schenk, Gavin wrote: libgcrypt does not finish compile step xterm does not finish compile step Logs attached, can you confirm? Ah, yes, I forgot about that. The latest version of binutils changed some defaults. What happens is this: libb.so links to liba.so A program uses symbols from liba.so and libb.so. With the old binutils it was ok to just add '-lb' when linking. liba.so was picked up indirectly. With the new binutils it fails with the errors you're seeing. The real solution would be to fix all packages with this problem. However this is a lot of work, so for now, you can get the old behaviour by setting: PTXCONF_TARGET_EXTRA_LDFLAGS=-Wl,--copy-dt-needed-entries in the platformconfig. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
Hi, enjoy your holidays, I have no time pressure switching to the new toolchain! After learning about logfiles and ptxdist :D, the command-wrapper produces reasonable output on console in the libpng folder. There is no output when I prefix ccache, but calling the compiler directly the output is like this: snip /opt/OSELAS.Toolchain-2012.12.0/i686-atom-linux-gnu/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/i686-atom-linux-gnu-cpp -frecord-gcc-switches -isystem /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/include -isystem /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include -DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h # 1 ./png.h # 1 command-line # 1 ./png.h # 536 ./png.h # 1 /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include/zlib.h 1 3 4 # 34 /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include/zlib.h 3 4 # 1 /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include/zconf.h 1 3 4 # 365 /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include/zconf.h 3 4 typedef unsigned char Byte; typedef unsigned int uInt; typedef unsigned long uLong; ... extern PNG_FUNCTION_EXPORT png_save_uint_16 END (png_bytep buf, unsigned int i); /snip Attached you find two logfiles, one with ccache enabled, one without. I tried to figure out what is going on, but I need a Guru ... THATS YOU :D. I hope to become more familiar with ptxdist in future. Maybe it is the order, or parallelization of build process? I have a Multi-CPU system with 8 cores. Even when I disable ccache the buildprocess does not finish. Next I am bailing out at building gdbserver. make[1]: Entering directory `/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build-target/gdbserver-7.2-build ... /var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build-target/gdbserver-7.2/gdb/gdbserver/linux-low.c:4691:40: error: invalid application of 'sizeof' to incomplete type 'struct siginfo' ... Thanks for your help, Gavin -Original Message- From: ptxdist-boun...@pengutronix.de [mailto:ptxdist- boun...@pengutronix.de] On Behalf Of Michael Olbrich Sent: Monday, December 17, 2012 5:38 PM To: ptxdist@pengutronix.de Cc: Marc Kleine-Budde Subject: Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux On Fri, Dec 14, 2012 at 07:19:35PM +0100, Michael Olbrich wrote: On Fri, Dec 14, 2012 at 01:46:01PM +, Schenk, Gavin wrote: I am a bit short in time today I do not find a line like: wrapper: i686-atom-linux-gnu-cpp [...] -DPNG_CONFIGURE_LIBPNG - DPNG_BUILDSYMS ./png.h Attached the complete log from ptxdist -v compile libpng. Not the output in the shell but platform-BB11QA6/logfile. And it's probably: wrapper: /usr/bin/ccache i686-atom-linux-gnu-cpp [...] - DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h The compilestage succeeds, if I disable ccache. Please try if you can reproduce the error when ccache is activated. I'll see, when I find some time. Christmas holidays start for me just about now. :-) I've enabled ccache. Still no error. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de Eckelmann Aktiengesellschaft Vorstand: Dr.-Ing. Gerd Eckelmann (Vorsitzender) Dr.-Ing. Peter Cordes, Dr.-Ing. Frank-Thomas Mellert Vorsitzender des Aufsichtsrats: Hubertus G. Krossa Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636 http://www.eckelmann.de logfiles.tgz Description: logfiles.tgz -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
On Tue, Dec 18, 2012 at 10:00:47AM +, Schenk, Gavin wrote: enjoy your holidays, I have no time pressure switching to the new toolchain! After learning about logfiles and ptxdist :D, the command-wrapper produces reasonable output on console in the libpng folder. There is no output when I prefix ccache, but calling the compiler directly the output is like this: snip /opt/OSELAS.Toolchain-2012.12.0/i686-atom-linux-gnu/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/i686-atom-linux-gnu-cpp -frecord-gcc-switches -isystem /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/include -isystem /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include -DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h # 1 ./png.h # 1 command-line # 1 ./png.h # 536 ./png.h # 1 /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include/zlib.h 1 3 4 # 34 /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include/zlib.h 3 4 # 1 /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include/zconf.h 1 3 4 # 365 /home/gschenk/projects/prodos3_experimental/ptxdist/platform-BB11QA6/sysroot-target/usr/include/zconf.h 3 4 typedef unsigned char Byte; typedef unsigned int uInt; typedef unsigned long uLong; ... extern PNG_FUNCTION_EXPORT png_save_uint_16 END (png_bytep buf, unsigned int i); /snip This is what you should get. Attached you find two logfiles, one with ccache enabled, one without. I tried to figure out what is going on, but I need a Guru ... THATS YOU :D. I hope to become more familiar with ptxdist in future. Maybe it is the order, or parallelization of build process? I have a Multi-CPU system with 8 cores. Maybe a bad file in the cache? I've seen ccache picking the wrong file, resulting in build errors... Even when I disable ccache the buildprocess does not finish. Next I am bailing out at building gdbserver. make[1]: Entering directory `/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build-target/gdbserver-7.2-build ... /var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build-target/gdbserver-7.2/gdb/gdbserver/linux-low.c:4691:40: error: invalid application of 'sizeof' to incomplete type 'struct siginfo' ... Change the gdb version to 7.5 (like the gdb in the toolchain). gcc-4.7 has problems compiling gdbserver-7.2 and the versions should match anyways. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
On Fri, Dec 14, 2012 at 07:19:35PM +0100, Michael Olbrich wrote: On Fri, Dec 14, 2012 at 01:46:01PM +, Schenk, Gavin wrote: I am a bit short in time today I do not find a line like: wrapper: i686-atom-linux-gnu-cpp [...] -DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h Attached the complete log from ptxdist -v compile libpng. Not the output in the shell but platform-BB11QA6/logfile. And it's probably: wrapper: /usr/bin/ccache i686-atom-linux-gnu-cpp [...] -DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h The compilestage succeeds, if I disable ccache. Please try if you can reproduce the error when ccache is activated. I'll see, when I find some time. Christmas holidays start for me just about now. :-) I've enabled ccache. Still no error. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
On Thu, Dec 13, 2012 at 12:40:53PM +, Schenk, Gavin wrote: yesterday I read about the new toolchain, that has Atom optimization by default. I decided to give it a try and: Compiled the new toolchain: gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized Migrated my project: 2012.10.0 to 2012.12.0 Update Kernel and rt-patchstack: 3.4.2 to 3.6.10 Now the compilation fails on libpng 1.2.50 that is the same version as in ptxdist-2012.10.0. snip libtool: link: i686-atom-linux-gnu-gcc -shared .libs/libpng12_la-png.o .libs/libpng12_la-pngset.o .libs/libpng12_la-pngget.o .libs/libpng12_la-pngrutil.o .libs/libpng12_la-pngtrans.o .libs/libpng12_la-pngwutil.o .libs/libpng12_la-pngread.o .libs/libpng12_la-pngrio.o .libs/libpng12_la-pngwio.o .libs/libpng12_la-pngwrite.o .libs/libpng12_la-pngrtran.o .libs/libpng12_la-pngwtran.o .libs/libpng12_la-pngmem.o .libs/libpng12_la-pngerror.o .libs/libpng12_la-pngpread.o -lz -lm -Wl,--version-script=libpng.vers -Wl,-soname -Wl,libpng12.so.0 -o .libs/libpng12.so.0.50.0 /opt/OSELAS.Toolchain-2012.12.0/i686-atom-linux-gnu/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/i686-atom-linux-gnu/4.7.2/../../../../i686-atom-linux-gnu/bin/ld:libpng.vers:2: syntax error in VERSION script collect2: error: ld returned 1 exit status make[2]: *** [libpng12.la] Error 1 make[2]: Leaving directory `/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build-target/libpng-1.2.50' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build-target/libpng-1.2.50' make: *** [/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/state/libpng.compile] Error 2 /snip I cannot reproduce this here so far. Please sent the output of the whole compile stage. There should be some output about creating libpng.vers. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
...@pengutronix.de [mailto:ptxdist- boun...@pengutronix.de] On Behalf Of Michael Olbrich Sent: Friday, December 14, 2012 10:43 AM To: ptxdist@pengutronix.de Subject: Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux On Thu, Dec 13, 2012 at 12:40:53PM +, Schenk, Gavin wrote: yesterday I read about the new toolchain, that has Atom optimization by default. I decided to give it a try and: Compiled the new toolchain: gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a- kernel-2.6.39-sanitized Migrated my project: 2012.10.0 to 2012.12.0 Update Kernel and rt-patchstack: 3.4.2 to 3.6.10 Now the compilation fails on libpng 1.2.50 that is the same version as in ptxdist-2012.10.0. snip libtool: link: i686-atom-linux-gnu-gcc -shared .libs/libpng12_la-png.o .libs/libpng12_la-pngset.o .libs/libpng12_la-pngget.o .libs/libpng12_la- pngrutil.o .libs/libpng12_la-pngtrans.o .libs/libpng12_la-pngwutil.o .libs/libpng12_la-pngread.o .libs/libpng12_la-pngrio.o .libs/libpng12_la- pngwio.o .libs/libpng12_la-pngwrite.o .libs/libpng12_la-pngrtran.o .libs/libpng12_la-pngwtran.o .libs/libpng12_la-pngmem.o .libs/libpng12_la- pngerror.o .libs/libpng12_la-pngpread.o -lz -lm -Wl,--version- script=libpng.vers -Wl,-soname -Wl,libpng12.so.0 -o .libs/libpng12.so.0.50.0 /opt/OSELAS.Toolchain-2012.12.0/i686-atom-linux-gnu/gcc-4.7.2-glibc- 2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/i686-atom-linux- gnu/4.7.2/../../../../i686-atom-linux-gnu/bin/ld:libpng.vers:2: syntax error in VERSION script collect2: error: ld returned 1 exit status make[2]: *** [libpng12.la] Error 1 make[2]: Leaving directory `/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build- target/libpng-1.2.50' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build- target/libpng-1.2.50' make: *** [/var/projects/prodos3_experimental/ptxdist/platform- BB11QA6/state/libpng.compile] Error 2 /snip I cannot reproduce this here so far. Please sent the output of the whole compile stage. There should be some output about creating libpng.vers. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de Eckelmann Aktiengesellschaft Vorstand: Dr.-Ing. Gerd Eckelmann (Vorsitzender) Dr.-Ing. Peter Cordes, Dr.-Ing. Frank-Thomas Mellert Vorsitzender des Aufsichtsrats: Hubertus G. Krossa Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636 http://www.eckelmann.de -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
On Fri, Dec 14, 2012 at 09:48:54AM +, Schenk, Gavin wrote: i686-atom-linux-gnu-cpp -DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h | \ /opt/ptxdist/lib/ptxdist-2012.12.0/bin/sed -n -e \ 's|^.*PNG_FUNCTION_EXPORT[ ]*\(['_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789']*\).*$|\1|p' \ -e 's|^.*PNG_DATA_EXPORT[ ]*\(['_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789']*\).*$|\1|p' \ libpng.sym.new The libpng.sym is generated here. Please run: $ ptxdist clean libpng $ ptxdist -v compile libpng Now look at the logfile. There should be a line like this: wrapper: i686-atom-linux-gnu-cpp [...] -DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h That's the actual command line that is called. Try to run this manually in build-target/libpng-1.2.50/: $ ../../selected_toolchain/i686-atom-linux-gnu-cpp [...] Do you get some reasonable output here? Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
./png.h:536:18: fatal error: zlib.h: No such file or directory compilation terminated. Gavin -Original Message- From: ptxdist-boun...@pengutronix.de [mailto:ptxdist- boun...@pengutronix.de] On Behalf Of Michael Olbrich Sent: Friday, December 14, 2012 11:08 AM To: ptxdist@pengutronix.de Subject: Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux On Fri, Dec 14, 2012 at 09:48:54AM +, Schenk, Gavin wrote: i686-atom-linux-gnu-cpp -DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h | \ /opt/ptxdist/lib/ptxdist-2012.12.0/bin/sed -n -e \ 's|^.*PNG_FUNCTION_EXPORT[ ]*\(['_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789']*\). *$|\1|p' \ -e 's|^.*PNG_DATA_EXPORT[ ]*\(['_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789']*\). *$|\1|p' \ libpng.sym.new The libpng.sym is generated here. Please run: $ ptxdist clean libpng $ ptxdist -v compile libpng Now look at the logfile. There should be a line like this: wrapper: i686-atom-linux-gnu-cpp [...] -DPNG_CONFIGURE_LIBPNG - DPNG_BUILDSYMS ./png.h That's the actual command line that is called. Try to run this manually in build-target/libpng-1.2.50/: $ ../../selected_toolchain/i686-atom-linux-gnu-cpp [...] Do you get some reasonable output here? Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de Eckelmann Aktiengesellschaft Vorstand: Dr.-Ing. Gerd Eckelmann (Vorsitzender) Dr.-Ing. Peter Cordes, Dr.-Ing. Frank-Thomas Mellert Vorsitzender des Aufsichtsrats: Hubertus G. Krossa Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636 http://www.eckelmann.de -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
On Fri, Dec 14, 2012 at 10:26:24AM +, Schenk, Gavin wrote: ./png.h:536:18: fatal error: zlib.h: No such file or directory compilation terminated. What's the complete commandline? The wrapper should add -isystem [...]/sysroot-target/usr/include. There should be a zlib.h there. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
On Fri, Dec 14, 2012 at 01:46:01PM +, Schenk, Gavin wrote: I am a bit short in time today I do not find a line like: wrapper: i686-atom-linux-gnu-cpp [...] -DPNG_CONFIGURE_LIBPNG -DPNG_BUILDSYMS ./png.h Attached the complete log from ptxdist -v compile libpng. Not the output in the shell but platform-BB11QA6/logfile. The compilestage succeeds, if I disable ccache. Please try if you can reproduce the error when ccache is activated. I'll see, when I find some time. Christmas holidays start for me just about now. :-) I think ccache should not be called for cpp? Marc: what do you think? Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
Hi, yesterday I read about the new toolchain, that has Atom optimization by default. I decided to give it a try and: Compiled the new toolchain: gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized Migrated my project: 2012.10.0 to 2012.12.0 Update Kernel and rt-patchstack: 3.4.2 to 3.6.10 Now the compilation fails on libpng 1.2.50 that is the same version as in ptxdist-2012.10.0. snip libtool: link: i686-atom-linux-gnu-gcc -shared .libs/libpng12_la-png.o .libs/libpng12_la-pngset.o .libs/libpng12_la-pngget.o .libs/libpng12_la-pngrutil.o .libs/libpng12_la-pngtrans.o .libs/libpng12_la-pngwutil.o .libs/libpng12_la-pngread.o .libs/libpng12_la-pngrio.o .libs/libpng12_la-pngwio.o .libs/libpng12_la-pngwrite.o .libs/libpng12_la-pngrtran.o .libs/libpng12_la-pngwtran.o .libs/libpng12_la-pngmem.o .libs/libpng12_la-pngerror.o .libs/libpng12_la-pngpread.o -lz -lm -Wl,--version-script=libpng.vers -Wl,-soname -Wl,libpng12.so.0 -o .libs/libpng12.so.0.50.0 /opt/OSELAS.Toolchain-2012.12.0/i686-atom-linux-gnu/gcc-4.7.2-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/lib/gcc/i686-atom-linux-gnu/4.7.2/../../../../i686-atom-linux-gnu/bin/ld:libpng.vers:2: syntax error in VERSION script collect2: error: ld returned 1 exit status make[2]: *** [libpng12.la] Error 1 make[2]: Leaving directory `/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build-target/libpng-1.2.50' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/build-target/libpng-1.2.50' make: *** [/var/projects/prodos3_experimental/ptxdist/platform-BB11QA6/state/libpng.compile] Error 2 /snip On my old system content of libpng.vers was: PNG12_0 {global: png_libpng_ver; png_pass_start; png_pass_inc; png_pass_ystart; png_pass_yinc; png_pass_mask; png_pass_dsp_mask; png_access_version_number; png_set_sig_bytes; png_sig_cmp; png_check_sig; png_create_read_struct; png_create_write_struct; png_get_compression_buffer_size; png_set_compression_buffer_size; png_reset_zstream; png_create_read_struct_2; png_create_write_struct_2; png_write_chunk; png_write_chunk_start; png_write_chunk_data; png_write_chunk_end; png_create_info_struct; png_info_init; png_info_init_3; png_write_info_before_PLTE; png_write_info; png_read_info; png_convert_to_rfc1123; png_convert_from_struct_tm; png_convert_from_time_t; png_set_expand; png_set_expand_gray_1_2_4_to_8; png_set_palette_to_rgb; png_set_tRNS_to_alpha; png_set_gray_1_2_4_to_8; png_set_bgr; png_set_gray_to_rgb; png_set_rgb_to_gray; png_set_rgb_to_gray_fixed; png_get_rgb_to_gray_status; Now the content is: PNG12_0 {global: local: *; }; The libpng.sym file is empty. Can you please assist me solving this error? Best Regards, Gavin Schenk Eckelmann Aktiengesellschaft Vorstand: Dr.-Ing. Gerd Eckelmann (Vorsitzender) Dr.-Ing. Peter Cordes, Dr.-Ing. Frank-Thomas Mellert Vorsitzender des Aufsichtsrats: Hubertus G. Krossa Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636 http://www.eckelmann.de -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Linker problem: libpng-1.2.50, ptxdist-2012.12.0, and new atom toolchain i686-atom-linux
On 12/13/2012 06:40 AM, Schenk, Gavin wrote: Hi, yesterday I read about the new toolchain, that has Atom optimization by default. I decided to give it a try and: Compiled the new toolchain: gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized Migrated my project: 2012.10.0 to 2012.12.0 Update Kernel and rt-patchstack: 3.4.2 to 3.6.10 Now the compilation fails on libpng 1.2.50 that is the same version as in ptxdist-2012.10.0. snip I'm using libpng on Atom as well. I had a few unrelated (I think) problems with the new wrappers and a problem with CROSS python changes in ptxdist so I had to revert back to ptxdist as of November 12, 2012 with OSELAS.Toolchain-2011.11.3/i686-unknown-linux-gnu/gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized. I'll make it a point to try to get my build going with the newest ptxdist and toolchain and see if I run into the same problem. Regards, George McCollister -- ptxdist mailing list ptxdist@pengutronix.de