site  contact  subhomenews

gcc 4.3.4 recompiled

December 05, 2009 — BarryK
An old problem has come back. Previously when I compiled in T2, such as the base packages for Puppy 4.0, there was a problem with the gcc compiler. When using it in an alpha of Puppy 4.0, some packages would not compile, with error "__sync_fetch_and_add_4 undefined". I reported this, and the solution, in my news archive (do a search for "gcc bug fixed"):

http://www.puppylinux.com/news/news400a3-400a5.htm

With the recent T2 compile I made some changes that I thought would have fixed this problem, but not so. It has to do with the cross-compile environment that T2 runs in. So, here we go again...

These are patches I got out of T2, and the configure parameters are based on information in var/adm/logs/5-gcc.log in the T2 build:

# patch -p1 < ../fixincl.patch
# patch -p1 < ../fixincl2.patch
# patch -p1 < ../libstdcpp-with-tag-cc.patch
# patch -p1 < ../no-install-libiberty.patch
# patch -p1 < ../stdc++-include_next.patch

# mkdir objdir
# cd objdir
# ../configure --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include --infodir=/usr/info --mandir=/usr/man --sysconfdir=/etc --localstatedir=/var --disable-debug --without-libpam --without-pam --disable-libpam --disable-pam --build=i486-t2-linux-gnu --enable-__cxa_atexit --disable-checking --disable-bootstrap --disable-libstdcxx-pch --disable-multilib --with-gnu-as --with-gnu-ld --enable-threads=posix --disable-libgcj --enable-languages=c,c++,fortran --enable-shared

...it's compiling right now. Gonna take awhile, it's a big package.

Note, this time I have enabled the Fortran compiler, which is missing from the Puppy 4.x series.

This is delaying the upload of the first pre-alpha of Quirky for a couple more days. I found bugs with Abiword 2.8.1, so I wanted to try compiling Abiword from SVN, and I also recompiled the Enchant package or rather tried to -- I hit that "__sync_fetch_and_add_4" bug.

Comments

thanks for FORTRAN!


GlibC
Username: ttuuxxx
"Barry your the man, I can't wait for the new GlibC, its like an early Christmas gift, hmmm since your in the mood for larger packages what about a new official QT version, 4 series QT is way dated and half the newer apps won't compile with it. ttuuxxx

Qt 4.5.3
Username: BarryK
"ttuuxxx, In my recent T2 compile I did do Qt version 4.5.3. I especially modified the binary package to include static libraries as well as shared, but I ended up with a binary tarball of 110MB, so I haven't uploaded it. There is a lot of unnecessary stuff in it, like examples, so I could have a go at pruning it a bit. This Qt is compiled in my recent T2 compile, so probably is not suitable for Puppy 4.x.

please help
Username: Daniel B. Davis
"A friend of mine is using puppy Linux for a particular application. One situation requires that at bootup the displayed material and any responses be able to appear relatively close to the center of the display area, but there is some play there. While I am not doing his programming, if you could advise me which sources need be changed to accomplish this, he (and I) would be grateful. I have used puppy only to look at briefly. Can it be accomplished via terminfo? (defining a terminal of 12 lines by 35 characters, say), and then writing a terminal driver, or is bootup too early for that to be of any use? If not, what source modules should be looked at? Many thanks for any directions to look. I am at dbd400@gmail.com, and will also periodically check back here."30 May 2010, 6:24"01236"216.164.51.27'Re center"BarryK"An application can make a request to the window manager (JWM) to display in the center. Gtkdialog for example accepts some commandline parameters for this -- I think that the main Gtkdialog thread in the forum has some discussion on this. Regarding compiled GTK apps, I think such a request has to be coded into the source, unless the app has been designed with a commandline centering parameter. Ditto for Xlib apps. I don't know of any generic wrapper that can tell the window manager to center any application. I don't know if JWM has anything for this -- you would have to read the JWM docs. Username: 30 May 2010, 8:27
"01236"114.129.167.148'Can't Delete"Daniel B. Davis"Have been trying and failing to delete my entry so to give you back the space. Thank you much for the answer. Don't know why it says wrong password, since I've been using it forever. Username: 1 Jun 2010, 10:10
"01236"216.164.51.27'Re deleting"BarryK"It is a limitation of this blog, only the administrator can delete comments. Username: 1 Jun 2010, 20:30
"01236"114.129.167.148'

Tags: quirky