Re: [Ghdl-discuss] ghdl build trouble

2016-10-02 Thread Stéphane Goujet

Hi,

On Fri, 23 Sep 2016, Simon Thijs de Feber wrote:


2. https://github.com/tgingold/ghdl/blob/master/BUILD.txt
Results of 2 :

During the make ghdllib

mv ghdl_main-tmp.ali ghdl_main.ali
gnatbind -Lgrt_ -o run-bind.adb -n ghdl_main.ali
gcc -c -g -gnatec./src/grt/grt.adc -gnat05 -gnatdY -o run-bind.o
run-bind.adb
gcc: error: run-bind.adb: Ada compiler not installed on this system
src/grt/Makefile.inc:119: recipe for target 'run-bind.o' failed
make: *** [run-bind.o] Error 1

However when I run a :

$> gnat --version
GNAT 5.3.0
Copyright 1996-2015, Free Software Foundation, Inc.

So it is there.


'gnat' is there but it trie to run 'gcc', as the error says:


gcc -c -g -gnatec./src/grt/grt.adc -gnat05 -gnatdY -o run-bind.o


  I had the same problem with 0.33 on a Gentoo and on OpenBSD.

  Find the Makefile(s) that define the ADAC variable. For example:

grep . -name "*ake*" | xargs grep ADAC

  The corresponding line is probably:

ADAC=$(CC)

  Replace it it with:

ADAC=gnatgcc

  if your distro's GNAT provides it in this form, or:

ADAC=gnat compile

  otherwise.


  That should help the compilation go further (I think I hit another 
problem later, and I corrected it too but I am not sure...).



Goodbye,
  Stéphane.___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss


Re: [Ghdl-discuss] ghdl build trouble

2016-09-26 Thread Tristan Gingold

On 26/09/16 12:38, Simon Thijs de Feber wrote:

I have rebuild ghdl in a clean environment, being a new install in a
virtual machine.
gcc = 5.3.0
gnat  = 5.3.0
Slackware 14.2 x86_64

The build completes successfully.

Next I downloaded the dlx example from the documents pages and tried to
build that accordingly.
I do absolutely not get a binary file.

Are there log files which I can check ?


How did you configure ghdl ?  You should configure it to use either llvm 
or gcc back-end.  See build.txt for the details.


Tristan.


___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss


Re: [Ghdl-discuss] ghdl build trouble

2016-09-26 Thread Simon Thijs de Feber
I have rebuild ghdl in a clean environment, being a new install in a
virtual machine.
gcc = 5.3.0
gnat  = 5.3.0
Slackware 14.2 x86_64

The build completes successfully.

Next I downloaded the dlx example from the documents pages and tried to
build that accordingly.
I do absolutely not get a binary file.

Are there log files which I can check ?

best regards


ST










On Mon, Sep 26, 2016 at 10:18 AM, Simon Thijs de Feber <
st.de.fe...@gmail.com> wrote:

> I tried that.
>
> First of all, it does not produce a binary.
> Second, I still get
>
> ghdl: unknown option '-Wl,-lm' for command '-e'
>
> So something is wrong with my build of GHDL.
>
> bg,
>
> ST
>
>
>
> On Sun, Sep 25, 2016 at 8:09 AM, Rene Doss  wrote:
>
>> Hi,
>>  I can not follow your problem.
>>
>> but I send you my ghdl command how I link it. Perhaps you get an idea.
>>
>>
>>
>> ghdl -a  --work=work --workdir=work cpu/pkg_mlite.vhd
>> ghdl -a  --work=work --workdir=work cpu/pkg_alu.vhd
>> ghdl -a  --work=work --workdir=work cpu/pkg_branch.vhd
>> ghdl -a  --work=work --workdir=work cpu/pkg_control.vhd
>> ghdl -a  --ieee=synopsys --work=work --workdir=work tb_sim.vhd
>>
>> ghdl -e   -Wl,c_sim.o -Wl,-lpthread --ieee=synopsys -fexplicit
>> --workdir=work -Pwork tb_sim
>> ghdl -r tb_sim  --wave=tbench.ghw
>>
>> Am 23.09.2016 um 12:07 schrieb Simon Thijs de Feber:
>> >
>> > Results of 1 :
>> > It produces the .cf file and ghdl says :
>> > ghdl: unknown option '-Wl,ax_wb_pli.o' for command '-m'
>> >
>>
>>
>> ___
>> Ghdl-discuss mailing list
>> Ghdl-discuss@gna.org
>> https://mail.gna.org/listinfo/ghdl-discuss
>>
>
>
___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss


Re: [Ghdl-discuss] ghdl build trouble

2016-09-26 Thread Simon Thijs de Feber
I tried that.

First of all, it does not produce a binary.
Second, I still get

ghdl: unknown option '-Wl,-lm' for command '-e'

So something is wrong with my build of GHDL.

bg,

ST



On Sun, Sep 25, 2016 at 8:09 AM, Rene Doss  wrote:

> Hi,
>  I can not follow your problem.
>
> but I send you my ghdl command how I link it. Perhaps you get an idea.
>
>
>
> ghdl -a  --work=work --workdir=work cpu/pkg_mlite.vhd
> ghdl -a  --work=work --workdir=work cpu/pkg_alu.vhd
> ghdl -a  --work=work --workdir=work cpu/pkg_branch.vhd
> ghdl -a  --work=work --workdir=work cpu/pkg_control.vhd
> ghdl -a  --ieee=synopsys --work=work --workdir=work tb_sim.vhd
>
> ghdl -e   -Wl,c_sim.o -Wl,-lpthread --ieee=synopsys -fexplicit
> --workdir=work -Pwork tb_sim
> ghdl -r tb_sim  --wave=tbench.ghw
>
> Am 23.09.2016 um 12:07 schrieb Simon Thijs de Feber:
> >
> > Results of 1 :
> > It produces the .cf file and ghdl says :
> > ghdl: unknown option '-Wl,ax_wb_pli.o' for command '-m'
> >
>
>
> ___
> Ghdl-discuss mailing list
> Ghdl-discuss@gna.org
> https://mail.gna.org/listinfo/ghdl-discuss
>
___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss


Re: [Ghdl-discuss] ghdl build trouble

2016-09-24 Thread Rene Doss
Hi,
 I can not follow your problem.

but I send you my ghdl command how I link it. Perhaps you get an idea.



ghdl -a  --work=work --workdir=work cpu/pkg_mlite.vhd
ghdl -a  --work=work --workdir=work cpu/pkg_alu.vhd
ghdl -a  --work=work --workdir=work cpu/pkg_branch.vhd
ghdl -a  --work=work --workdir=work cpu/pkg_control.vhd
ghdl -a  --ieee=synopsys --work=work --workdir=work tb_sim.vhd

ghdl -e   -Wl,c_sim.o -Wl,-lpthread --ieee=synopsys -fexplicit
--workdir=work -Pwork tb_sim
ghdl -r tb_sim  --wave=tbench.ghw 

Am 23.09.2016 um 12:07 schrieb Simon Thijs de Feber:
>
> Results of 1 :
> It produces the .cf file and ghdl says : 
> ghdl: unknown option '-Wl,ax_wb_pli.o' for command '-m'
>


___
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss