s1s0 / toped

Cross platform, open source IC layout editor
http://www.toped.org.uk/
GNU General Public License v2.0
15 stars 8 forks source link

tpd_ifaces/Makefile requires -fpermissive #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce the problem:
1. Use svn snapshot 2013 on Fedora-16
2. make -f Makefile.cvs
3. ./configure
4. make

What is the expected output? What do you see instead?

make[3]: Entering directory 
`/home/chitlesh/rpmbuild/BUILD/toped-0.9.7.1/tpd_ifaces'
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../tpd_common -I../tpd_DB  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 
-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -Wall 
-O2 -fexceptions -c -o cif_io.lo cif_io.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../tpd_common -I../tpd_DB 
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wall -O2 -fexceptions -c 
cif_io.cpp  -fPIC -DPIC -o .libs/cif_io.o
/bin/sh ../ylwrap cif_lex.ll lex.cif.c cif_lex.cc -- flex  -Pcif
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../tpd_common -I../tpd_DB  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 
-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -Wall 
-O2 -fexceptions -c -o cif_lex.lo cif_lex.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../tpd_common -I../tpd_DB 
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wall -O2 -fexceptions -c 
cif_lex.cc  -fPIC -DPIC -o .libs/cif_lex.o
cif_lex.cc:1929:13: warning: 'void yy_fatal_error(const char*)' defined but not 
used [-Wunused-function]
cif_lex.cc:1461:17: warning: 'void yyunput(int, char*)' defined but not used 
[-Wunused-function]
/bin/sh ../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. 
-I../tpd_common -I../tpd_DB  -I/usr/lib/wx/include/gtk2-unicode-release-2.8 
-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__  -Wall 
-O2 -fexceptions -c -o cif_yacc.lo cif_yacc.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../tpd_common -I../tpd_DB 
-I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wall -O2 -fexceptions -c 
cif_yacc.cc  -fPIC -DPIC -o .libs/cif_yacc.o
cif_yacc.cc: In function 'int cifparse()':
cif_yacc.cc:2238:24: error: invalid conversion from 'const char*' to 'char*' 
[-fpermissive]
cif_io.h:37:5: error:   initializing argument 1 of 'int ciferror(char*)' 
[-fpermissive]
cif_yacc.cc:2359:35: warning: deprecated conversion from string constant to 
'char*' [-Wwrite-strings]
make[3]: *** [cif_yacc.lo] Error 1
make[3]: Leaving directory 
`/home/chitlesh/rpmbuild/BUILD/toped-0.9.7.1/tpd_ifaces'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/home/chitlesh/rpmbuild/BUILD/toped-0.9.7.1/tpd_ifaces'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chitlesh/rpmbuild/BUILD/toped-0.9.7.1'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.eywPEv (%build)

Had to compile with:
sed -i -e "s|CXXFLAGS =|CXXFLAGS = -fpermissive |g" tpd_ifaces/Makefile

Original issue reported on code.google.com by chitlesh on 10 Dec 2011 at 1:12

GoogleCodeExporter commented 9 years ago
... will need to install F16, I guess there might be more troubles of this kind 
with yacc and bison

Original comment by krustev....@gmail.com on 10 Dec 2011 at 1:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
That would be r2016 (previous message is a typo)

Original comment by krustev....@gmail.com on 11 Dec 2011 at 6:03

GoogleCodeExporter commented 9 years ago

Original comment by krustev....@gmail.com on 1 Apr 2012 at 12:21