Thanks Christophe, I tried it but it didn't work right away so I'll have to give that a try after the holidays.
Greg On Tue, Dec 21, 2010 at 4:40 PM, Christophe CURIS <[email protected]> wrote: > Greg, > > I understand recompiling ghdl may be quite complex, so there is another > solution I could propose you to try, although I have not tested it: > ghdl -a -Wc,-m32 std_functions_pkg.vhd > > Basically, this tries to cross-compile to the 32-bits architecture, which is > what your GHDL seems to expect. Note, on my side it failed (now generating > the same error you have), but that's because my GHDL expects 64bits... So I > can't be sure that is enough... > > Christophe. > > > On Tuesday 21 December 2010 20:45, Greg Beaton wrote: >> Thanks Christophe. I think you may be right. My linux is 64-bit. >> Unfortunately now, I guess I have to install from source code which >> has always been problematic with ghdl. >> >> >> On Tue, Dec 21, 2010 at 1:51 PM, Christophe CURIS >> >> <[email protected]> wrote: >> > Hello, >> > >> > Works for me too, on 64bits linux... >> > Some hints from google seems to point that you are trying to run a 32-bit >> > version of GHDL (cf: "...gcc/i686-pc-linux-gnu...") on a 64-bit machine. >> > >> > By the way, you are defining twice the "--workdir", which may not do what >> > you expect... >> > >> > Regards, >> > Christophe. >> > >> > On Thursday 16 December 2010 22:24, Greg Beaton wrote: >> >> Is this a bug? >> >> >> >> I get a compile error but its reported in the s file generated by ghdl >> >> - The s file is created but it is then processed by the assembler, >> >> /usr/bin/as which flags an error in the s file. >> >> >> >> >> >> I am using a binary distribution show below: >> >> >> >> [gbea...@wt0433 generic_lib]$ ghdl --version >> >> GHDL 0.29 (20100109) [Sokcho edition] >> >> Compiled with GNAT Version: GPL 2008 (20080521) >> >> GCC back-end code generator >> >> Written by Tristan Gingold. >> >> >> >> Copyright (C) 2003 - 2010 Tristan Gingold. >> >> GHDL is free software, covered by the GNU General Public License. There >> >> is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR >> >> PURPOSE. [gbea...@wt0433 generic_lib]$ >> >> >> >> >> >> My gcc version is 4.1.2 (but I would think that that shouldn't matter >> >> for the binary distribution). >> >> >> >> >> >> In the example below, one of the base vhdl files (attached) is >> >> compiled by itself and produces errors. >> >> >> >> [gbea...@wt0433 generic_lib]$ ghdl -a -g -v --workdir=work >> >> --work=wavesat --ieee=synopsys std_functions_pkg.vhd >> >> /usr/local/libexec/gcc/i686-pc-linux-gnu/4.3.4/ghdl1 -g --workdir=work >> >> --work=wavesat >> >> -P/usr/local/lib/gcc/i686-pc-linux-gnu/4.3.4/vhdl/lib//v93/std/ >> >> -P/usr/local/lib/gcc/i686-pc-linux-gnu/4.3.4/vhdl/lib//v93/synopsys/ >> >> -quiet -o work/std_functions_pkg.s std_functions_pkg.vhd >> >> /usr/bin/as -o work/std_functions_pkg.o work/std_functions_pkg.s >> >> work/std_functions_pkg.s: Assembler messages: >> >> work/std_functions_pkg.s:131: Error: suffix or operands invalid for >> >> `push' work/std_functions_pkg.s:208: Error: suffix or operands invalid >> >> for `push' work/std_functions_pkg.s:259: Error: suffix or operands >> >> invalid for `push' work/std_functions_pkg.s:300: Error: suffix or >> >> operands invalid for `push' work/std_functions_pkg.s:328: Error: suffix >> >> or operands invalid for `push' work/std_functions_pkg.s:360: Error: >> >> suffix or operands invalid for `push' work/std_functions_pkg.s:392: >> >> Error: suffix or operands invalid for `push' >> >> work/std_functions_pkg.s:718: Error: suffix or operands invalid for >> >> `push' work/std_functions_pkg.s:744: Error: suffix or operands invalid >> >> for `push' work/std_functions_pkg.s:970: Error: suffix or operands >> >> invalid for `push' work/std_functions_pkg.s:1202: Error: suffix or >> >> operands invalid for `push' work/std_functions_pkg.s:1397: Error: suffix >> >> or operands invalid for `push' ghdl: compilation error >> >> >> >> >> >> Thanks, >> >> Greg >> > >> > _______________________________________________ >> > Ghdl-discuss mailing list >> > [email protected] >> > https://mail.gna.org/listinfo/ghdl-discuss >> >> _______________________________________________ >> Ghdl-discuss mailing list >> [email protected] >> https://mail.gna.org/listinfo/ghdl-discuss > > _______________________________________________ > Ghdl-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/ghdl-discuss > _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
