Compilation using compat-GCC 3.2
Status: Alpha
Brought to you by:
dvdfrdmn
GDC 0.20 failed to build with FC5 compat-gcc, unless I used:
http://www.algonet.se/~afb/d/gdc-0.19-codegen-unused.patch
gdc-0.19-codegen-unused.patch
Logged In: YES
user_id=1378044
Originator: NO
Patch included in 0.21, but not tested. Let me know if it works. (Also used "D_GCC_VER")
gdc-0.21-codegen-unused.patch
Logged In: YES
user_id=5895
Originator: YES
Patch/0.21 didn't work, because of the changed macro name ?
http://www.algonet.se/~afb/d/gdc-0.21-codegen-unused.patch
By the way: What method are you using to compile for FC5 ?
I didn't have much luck using the system/rpm GCC version...
File Added: gdc-0.21-codegen-unused.patch
Logged In: YES
user_id=1378044
Originator: NO
I think I found the problem: I have to used ARG_UNUSED(name) instead of ATTRIBUTE_UNUSED in C++ code.
On FC5, I build with the gcc-4.1.0-3 RPM. My configure args are: --prefix=/.... --disable-shared --enable-languages=c,d
Logged In: YES
user_id=5895
Originator: YES
Wonder what could have been up with my builds then, will test again...
Having it compile with GCC 3.2 or 3.4 is nice, but I prefer GCC 4.1...
I am using RPM to build, and any feedback on the spec is appreciated ?
It's at http://prdownloads.sourceforge.net/gdcgnu/gdc-0.21-1.nosrc.rpm
rpmbuild --rebuild --define 'gcc 4.0.3' gdc-0.21-1.nosrc.rpm
(when the gcc-core and gcc-g++ tarballs are added to SOURCES)