First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 120867
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Karol Wojtaszek (RETIRED) <sekretarz@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Josh Nichols (RETIRED) <nichoj@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
firebird-gcc4.patch nearly complete gcc4 patch patch Hanno Meyer-Thurow 2006-02-26 03:26 0000 69.58 KB Details | Diff
firebird-gcc4.patch gcc-4.0 patch patch Mark Loeser 2006-03-16 23:07 0000 70.35 KB Details | Diff
firebird-1.5-gcc4-amd64.patch patch to fix compilation problems with gcc-4.1 on amd64 patch Karol Wojtaszek (RETIRED) 2006-08-05 15:44 0000 46.93 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 120867 depends on: Show dependency tree
Bug 120867 blocks: 117482
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-01-29 14:13 0000
I get the following when emerging firebird-1.5.2:

make[3]: Entering directory
`/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src'
g++ -march=k8 -O2 -pipe -march=k8 -O2 -pipe -I../src/include/gen
-I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC
-fmessage-length=0  -DPROD_BUILD -march=k8 -O2 -pipe -I../src/include/gen
-I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC
-fmessage-length=0  -DPROD_BUILD -I../src/include/gen -I../src/include
-fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 
-DPROD_BUILD -march=k8 -O2 -pipe -I../src/include/gen -I../src/include
-fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 
-DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer
-DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD
-I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX
-DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD -c
../src/common/classes/alloc.cpp -o ../temp/libfbcommon/common/classes/alloc.o
../src/common/classes/../../include/../common/classes/alloc.h:256: error: 

------- Comment #1 From Josh Nichols (RETIRED) 2006-01-29 14:13:22 0000 -------
I get the following when emerging firebird-1.5.2:

make[3]: Entering directory
`/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src'
g++ -march=k8 -O2 -pipe -march=k8 -O2 -pipe -I../src/include/gen
-I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC
-fmessage-length=0  -DPROD_BUILD -march=k8 -O2 -pipe -I../src/include/gen
-I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC
-fmessage-length=0  -DPROD_BUILD -I../src/include/gen -I../src/include
-fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 
-DPROD_BUILD -march=k8 -O2 -pipe -I../src/include/gen -I../src/include
-fno-omit-frame-pointer -DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0 
-DPROD_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer
-DNDEBUG -DLINUX -DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD
-I../src/include/gen -I../src/include -fno-omit-frame-pointer -DNDEBUG -DLINUX
-DAMD64 -MMD -fPIC -fmessage-length=0  -DPROD_BUILD -c
../src/common/classes/alloc.cpp -o ../temp/libfbcommon/common/classes/alloc.o
../src/common/classes/../../include/../common/classes/alloc.h:256: error:
‘void* operator new(size_t, Firebird::MemoryPool&)’ may not be declared as
static
../src/common/classes/../../include/../common/classes/alloc.h:260: error:
‘void* operator new [](size_t, Firebird::MemoryPool&)’ may not be declared as
static
make[3]: *** [../temp/libfbcommon/common/classes/alloc.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src'
make[2]: *** [libfbcommon] Error 2
make[2]: Leaving directory
`/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src'
make[1]: *** [../gen/firebird/bin/gpre_static] Error 2
make[1]: Leaving directory
`/var/tmp/portage/firebird-1.5.2/work/firebird-1.5.2.4731/src'
make: *** [firebird] Error 2

Portage 2.1_pre3-r1 (!/usr/gentoo-x86/profiles/default-linux/amd64/2005.1,
gcc-4.0.2, glibc-2.3.6-r2, 2.6.13-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
4400+
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/development/distfiles"
FEATURES="autoaddcvs autoconfig cvs digest distlocks multilib-strict sandbox
sfperms sign strict"
GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/local/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/development/overlays/java-experimental
/development/overlays/free-java-overlay /development/overlays/chewi-overlay
/development/overlays/axxo-overlay /development/overlays/maven-overlay
/development/overlays/crossdev-overlay"
SYNC="cvs://nichoj@cvs.gentoo.org:/var/cvsroot"
USE="amd64 X aac adns alsa apache2 arts audiofile automount avi bash-completion
berkdb bitmap-fonts bzip2 cairo cdr crypt cscope cups curl dbus devmap
divx4linux dvd dvdr dvi eds emboss encode exif expat faad fam ffmpeg firefox
flac foomaticdb fortran gdbm gif gimpprint glitz glut gmp gnome gpm gstreamer
gtk gtk2 gtkhtml hal howl idn imagemagick imlib ipv6 java javamail jpeg kde
lcms ldap libclamav libwww lzw lzw-tiff mad matroska mhash mng motif mozilla
mp3 mpeg mysql nautilus ncurses nls nptl nsplugin nvidia offensive ogg
oggvorbis opengl pam pcre pda pdflib perl php png postgres python qt quicktime
readline ruby samba sdl sox spell sqlite ssl subversion svg syslog tcpd tetex
theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales
vorbis wxwindows xine xml2 xmms xpm xv xvid zlib elibc_glibc kernel_linux
userland_GNU"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

------- Comment #2 From Christian Faulhammer 2006-01-30 15:28:37 0000 -------
The firebird team is not going to support gcc 4.x for firebird < 2.0
I could not find a distribution which claims to have successfully compiled 1.x
with gcc 4.x.

http://sourceforge.net/mailarchive/message.php?msg_id=14504848

------- Comment #3 From Hanno Meyer-Thurow 2006-02-26 03:26:45 0000 -------
Created an attachment (id=80752) [details]
nearly complete gcc4 patch

part from debian svn
http://svn.debian.org/wsvn/pkg-firebird/trunk/debian/patches/?rev=0&sc=1

fixed errors likewise

src/burp/std_desc.h from cvs

error:
g++  -DBOOT_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer
-fno-builtin -DNDEBUG -DLINUX -MMD -fPIC  -DPROD_BUILD -c ../src/burp/burp.cpp
-o ../temp/static.gbak/burp/burp.o
../src/burp/../burp/std_desc.h:65: Fehler: expected unqualified-id before 

------- Comment #4 From Hanno Meyer-Thurow 2006-02-26 03:26:45 0000 -------
Created an attachment (id=80752) [details]
nearly complete gcc4 patch

part from debian svn
http://svn.debian.org/wsvn/pkg-firebird/trunk/debian/patches/?rev=0&sc=1

fixed errors likewise

src/burp/std_desc.h from cvs

error:
g++  -DBOOT_BUILD -I../src/include/gen -I../src/include -fno-omit-frame-pointer
-fno-builtin -DNDEBUG -DLINUX -MMD -fPIC  -DPROD_BUILD -c ../src/burp/burp.cpp
-o ../temp/static.gbak/burp/burp.o
../src/burp/../burp/std_desc.h:65: Fehler: expected unqualified-id before »-«
token
make[3]: *** [../temp/static.gbak/burp/burp.o] Fehler 1

No idea how to solve this last error. :)

------- Comment #5 From Jakub Moc (RETIRED) 2006-03-13 14:58:13 0000 -------
*** Bug 126077 has been marked as a duplicate of this bug. ***

------- Comment #6 From Mark Loeser 2006-03-16 23:07:42 0000 -------
Created an attachment (id=82338) [details]
gcc-4.0 patch

This should fix the last piece that was broken.

Are there any plans to fix this, or just recommend upgrading to firebird-2.x? 
I plan on moving gcc-4.1 into ~arch soon, so you may want to think about it :)

------- Comment #7 From Hanno Meyer-Thurow 2006-03-17 07:06:22 0000 -------
Mark:
That is how I got it to compile, too. But now INVALID_HANDLE_VALUE is
undefined. Is that good?
However, I would recommend upgrading to firebird-2.x because of upstream
support for gcc4.

------- Comment #8 From Mark Loeser 2006-03-17 08:34:17 0000 -------
(In reply to comment #5)
> Mark:
> That is how I got it to compile, too. But now INVALID_HANDLE_VALUE is
> undefined. Is that good?

INVALID_HANDLE_VALUE is #define'd in another file, which is why you got the
error in the first place.  If you got this from upstream, I'm assuming they
finally did it the right way and decided to use a const instead.  Either way
works, and it would have failed at compile time if there was a problem...though
you should still test it and let me know if anything explodes. :)

------- Comment #9 From Mark Loeser 2006-03-31 21:50:47 0000 -------
Does this break anything, or can you apply this patch Karol?  Or should I?

------- Comment #10 From Ryan Hill 2006-07-22 08:26:12 0000 -------
ping.

------- Comment #11 From Karol Wojtaszek (RETIRED) 2006-08-05 15:44:32 0000 -------
Created an attachment (id=93546) [details]
patch to fix compilation problems with gcc-4.1 on amd64

This patch fixes problems with firebird and gcc-4.1 on amd64. Mainly there're
casting problems. This patch will be merged with gcc-4.0.patch and added to
portage today

------- Comment #12 From Karol Wojtaszek (RETIRED) 2006-08-07 00:57:45 0000 -------
Fixed in portage, thanks for help

------- Comment #13 From Ryan Hill 2006-08-16 16:31:29 0000 -------
any chance we could get this patch in 1.5.3?  this is blocking gcc 4.1
stabilization on x86 and amd64.  if it's better to stabilize 1.5.3-r1, lemme
know and i'll file the bug. :)

------- Comment #14 From Christian Faulhammer 2006-08-17 00:04:22 0000 -------
Please use bug #140707 for the stabilisation bugs if you want to bring a GCC
4.1 capable version into the stable tree...and that might be a different bug.

First Last Prev Next    No search results available      Search page      Enter new bug