Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Error trying to build Csound7 for Daisy

Date2024-11-19 02:44
FromIain Duncan
Subject[Csnd-dev] Error trying to build Csound7 for Daisy
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-19 02:53
FromScott Sitar
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-19 03:17
FromIain Duncan
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
Thanks Scott. Yes, I am running ancient Bison. I've installed a new one use brew (I'm on MacOS), but it tells me the following:


  bison is keg-only, which means it was not symlinked into /opt/homebrew,
  because macOS already provides this software and installing another version in
  parallel can cause all kinds of trouble.
 
  If you need to have bison first in your PATH, run:
    echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
 
  For compilers to find bison you may need to set:
    export LDFLAGS="-L/opt/homebrew/opt/bison/lib"

I don't really know cmake, wondering if anyone can tell me the incantations to get cmake's generated make to use my newer Bison?

thanks!
iain

On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <scottsitar@gmail.com> wrote:
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-19 03:25
FromScott Sitar
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
I had that issue as well, since I kind of hand-crafted my dev environment.  It turns out there's a cmake variable you can set to point it at whatever bison path you like, so in your cmake invocation, you can do:

cmake <stuff> <stuff> -DBISON_EXECUTABLE=/full/path/to/the/bison/you/want <stuff> <stuff>

That will set all the variables in the generated makefile properly, so just running make afterwards should work.

Scott

On Mon, Nov 18, 2024 at 7:17 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott. Yes, I am running ancient Bison. I've installed a new one use brew (I'm on MacOS), but it tells me the following:


  bison is keg-only, which means it was not symlinked into /opt/homebrew,
  because macOS already provides this software and installing another version in
  parallel can cause all kinds of trouble.
 
  If you need to have bison first in your PATH, run:
    echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
 
  For compilers to find bison you may need to set:
    export LDFLAGS="-L/opt/homebrew/opt/bison/lib"

I don't really know cmake, wondering if anyone can tell me the incantations to get cmake's generated make to use my newer Bison?

thanks!
iain

On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <scottsitar@gmail.com> wrote:
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-19 05:03
FromIain Duncan
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
Thanks Scott, that did it! I've got libcsound.a building now. Will have to pick up the next steps in a day or two.

Much appreciated!
iain

On Mon, Nov 18, 2024 at 7:25 PM Scott Sitar <scottsitar@gmail.com> wrote:
I had that issue as well, since I kind of hand-crafted my dev environment.  It turns out there's a cmake variable you can set to point it at whatever bison path you like, so in your cmake invocation, you can do:

cmake <stuff> <stuff> -DBISON_EXECUTABLE=/full/path/to/the/bison/you/want <stuff> <stuff>

That will set all the variables in the generated makefile properly, so just running make afterwards should work.

Scott

On Mon, Nov 18, 2024 at 7:17 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott. Yes, I am running ancient Bison. I've installed a new one use brew (I'm on MacOS), but it tells me the following:


  bison is keg-only, which means it was not symlinked into /opt/homebrew,
  because macOS already provides this software and installing another version in
  parallel can cause all kinds of trouble.
 
  If you need to have bison first in your PATH, run:
    echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
 
  For compilers to find bison you may need to set:
    export LDFLAGS="-L/opt/homebrew/opt/bison/lib"

I don't really know cmake, wondering if anyone can tell me the incantations to get cmake's generated make to use my newer Bison?

thanks!
iain

On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <scottsitar@gmail.com> wrote:
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-19 06:48
FromScott Sitar
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
Sweet!  I'm glad that worked.  Yeah, I've been getting more and more frustrated with the way MacOS bundles up its development tools lately.  It's nice that the OS is mostly still BSD- and POSIX-y, but they've made some pretty developer-unfriendly choices recently.  That being said, I'm an old assembly language curmudgeon, so maybe I should get with the times, haha.

Scott

On Mon, Nov 18, 2024 at 9:04 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott, that did it! I've got libcsound.a building now. Will have to pick up the next steps in a day or two.

Much appreciated!
iain

On Mon, Nov 18, 2024 at 7:25 PM Scott Sitar <scottsitar@gmail.com> wrote:
I had that issue as well, since I kind of hand-crafted my dev environment.  It turns out there's a cmake variable you can set to point it at whatever bison path you like, so in your cmake invocation, you can do:

cmake <stuff> <stuff> -DBISON_EXECUTABLE=/full/path/to/the/bison/you/want <stuff> <stuff>

That will set all the variables in the generated makefile properly, so just running make afterwards should work.

Scott

On Mon, Nov 18, 2024 at 7:17 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott. Yes, I am running ancient Bison. I've installed a new one use brew (I'm on MacOS), but it tells me the following:


  bison is keg-only, which means it was not symlinked into /opt/homebrew,
  because macOS already provides this software and installing another version in
  parallel can cause all kinds of trouble.
 
  If you need to have bison first in your PATH, run:
    echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
 
  For compilers to find bison you may need to set:
    export LDFLAGS="-L/opt/homebrew/opt/bison/lib"

I don't really know cmake, wondering if anyone can tell me the incantations to get cmake's generated make to use my newer Bison?

thanks!
iain

On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <scottsitar@gmail.com> wrote:
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-19 06:50
Fromvlz
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
We're so used to the bison problem that we forgot all about it. It is in the BUILD.md but not in the Daisy instructions.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 19 Nov 2024, at 06:48, Scott Sitar <scottsitar@gmail.com> wrote:


Sweet!  I'm glad that worked.  Yeah, I've been getting more and more frustrated with the way MacOS bundles up its development tools lately.  It's nice that the OS is mostly still BSD- and POSIX-y, but they've made some pretty developer-unfriendly choices recently.  That being said, I'm an old assembly language curmudgeon, so maybe I should get with the times, haha.

Scott

On Mon, Nov 18, 2024 at 9:04 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott, that did it! I've got libcsound.a building now. Will have to pick up the next steps in a day or two.

Much appreciated!
iain

On Mon, Nov 18, 2024 at 7:25 PM Scott Sitar <scottsitar@gmail.com> wrote:
I had that issue as well, since I kind of hand-crafted my dev environment.  It turns out there's a cmake variable you can set to point it at whatever bison path you like, so in your cmake invocation, you can do:

cmake <stuff> <stuff> -DBISON_EXECUTABLE=/full/path/to/the/bison/you/want <stuff> <stuff>

That will set all the variables in the generated makefile properly, so just running make afterwards should work.

Scott

On Mon, Nov 18, 2024 at 7:17 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott. Yes, I am running ancient Bison. I've installed a new one use brew (I'm on MacOS), but it tells me the following:


  bison is keg-only, which means it was not symlinked into /opt/homebrew,
  because macOS already provides this software and installing another version in
  parallel can cause all kinds of trouble.
 
  If you need to have bison first in your PATH, run:
    echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
 
  For compilers to find bison you may need to set:
    export LDFLAGS="-L/opt/homebrew/opt/bison/lib"

I don't really know cmake, wondering if anyone can tell me the incantations to get cmake's generated make to use my newer Bison?

thanks!
iain

On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <scottsitar@gmail.com> wrote:
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-19 14:43
FromIain Duncan
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
Thanks Victor and Scott. Once I get further along (i.e., actually making sounds with it...) I can submit a pull request with further readme text if that's helpful.

iain

On Mon, Nov 18, 2024 at 10:50 PM vlz <viclazzarini@gmail.com> wrote:
We're so used to the bison problem that we forgot all about it. It is in the BUILD.md but not in the Daisy instructions.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 19 Nov 2024, at 06:48, Scott Sitar <scottsitar@gmail.com> wrote:


Sweet!  I'm glad that worked.  Yeah, I've been getting more and more frustrated with the way MacOS bundles up its development tools lately.  It's nice that the OS is mostly still BSD- and POSIX-y, but they've made some pretty developer-unfriendly choices recently.  That being said, I'm an old assembly language curmudgeon, so maybe I should get with the times, haha.

Scott

On Mon, Nov 18, 2024 at 9:04 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott, that did it! I've got libcsound.a building now. Will have to pick up the next steps in a day or two.

Much appreciated!
iain

On Mon, Nov 18, 2024 at 7:25 PM Scott Sitar <scottsitar@gmail.com> wrote:
I had that issue as well, since I kind of hand-crafted my dev environment.  It turns out there's a cmake variable you can set to point it at whatever bison path you like, so in your cmake invocation, you can do:

cmake <stuff> <stuff> -DBISON_EXECUTABLE=/full/path/to/the/bison/you/want <stuff> <stuff>

That will set all the variables in the generated makefile properly, so just running make afterwards should work.

Scott

On Mon, Nov 18, 2024 at 7:17 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott. Yes, I am running ancient Bison. I've installed a new one use brew (I'm on MacOS), but it tells me the following:


  bison is keg-only, which means it was not symlinked into /opt/homebrew,
  because macOS already provides this software and installing another version in
  parallel can cause all kinds of trouble.
 
  If you need to have bison first in your PATH, run:
    echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
 
  For compilers to find bison you may need to set:
    export LDFLAGS="-L/opt/homebrew/opt/bison/lib"

I don't really know cmake, wondering if anyone can tell me the incantations to get cmake's generated make to use my newer Bison?

thanks!
iain

On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <scottsitar@gmail.com> wrote:
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-20 12:18
From"Dr. Richard Boulanger"
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
Yes please submit so that this is flagged and possibly corrected in the makefile for Mac users 

On Tue, Nov 19, 2024 at 9:44 AM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Victor and Scott. Once I get further along (i.e., actually making sounds with it...) I can submit a pull request with further readme text if that's helpful.

iain

On Mon, Nov 18, 2024 at 10:50 PM vlz <viclazzarini@gmail.com> wrote:
We're so used to the bison problem that we forgot all about it. It is in the BUILD.md but not in the Daisy instructions.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 19 Nov 2024, at 06:48, Scott Sitar <scottsitar@gmail.com> wrote:


Sweet!  I'm glad that worked.  Yeah, I've been getting more and more frustrated with the way MacOS bundles up its development tools lately.  It's nice that the OS is mostly still BSD- and POSIX-y, but they've made some pretty developer-unfriendly choices recently.  That being said, I'm an old assembly language curmudgeon, so maybe I should get with the times, haha.

Scott

On Mon, Nov 18, 2024 at 9:04 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott, that did it! I've got libcsound.a building now. Will have to pick up the next steps in a day or two.

Much appreciated!
iain

On Mon, Nov 18, 2024 at 7:25 PM Scott Sitar <scottsitar@gmail.com> wrote:
I had that issue as well, since I kind of hand-crafted my dev environment.  It turns out there's a cmake variable you can set to point it at whatever bison path you like, so in your cmake invocation, you can do:

cmake <stuff> <stuff> -DBISON_EXECUTABLE=/full/path/to/the/bison/you/want <stuff> <stuff>

That will set all the variables in the generated makefile properly, so just running make afterwards should work.

Scott

On Mon, Nov 18, 2024 at 7:17 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott. Yes, I am running ancient Bison. I've installed a new one use brew (I'm on MacOS), but it tells me the following:


  bison is keg-only, which means it was not symlinked into /opt/homebrew,
  because macOS already provides this software and installing another version in
  parallel can cause all kinds of trouble.
 
  If you need to have bison first in your PATH, run:
    echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
 
  For compilers to find bison you may need to set:
    export LDFLAGS="-L/opt/homebrew/opt/bison/lib"

I don't really know cmake, wondering if anyone can tell me the incantations to get cmake's generated make to use my newer Bison?

thanks!
iain

On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <scottsitar@gmail.com> wrote:
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2

Date2024-11-20 12:24
From"Dr. Richard Boulanger"
SubjectRe: [Csnd-dev] Error trying to build Csound7 for Daisy
Iain,

I also hope that you, Scott Sitar, and Dave Seidel will all share your progress and experience with Csound Daisy. Maybe consider submitting a paper/demo to the upcoming ICMC in Boston? (Victor ICMC? - Aman ICMC? Computer Music Journal?)


Dr. Richard Boulanger
Professor
Electronic Production and Design
Berklee College of Music

On Nov 20, 2024, at 7:18 AM, Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:


Yes please submit so that this is flagged and possibly corrected in the makefile for Mac users 

On Tue, Nov 19, 2024 at 9:44 AM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Victor and Scott. Once I get further along (i.e., actually making sounds with it...) I can submit a pull request with further readme text if that's helpful.

iain

On Mon, Nov 18, 2024 at 10:50 PM vlz <viclazzarini@gmail.com> wrote:
We're so used to the bison problem that we forgot all about it. It is in the BUILD.md but not in the Daisy instructions.

Prof. Victor Lazzarini
Maynooth University
Ireland

On 19 Nov 2024, at 06:48, Scott Sitar <scottsitar@gmail.com> wrote:


Sweet!  I'm glad that worked.  Yeah, I've been getting more and more frustrated with the way MacOS bundles up its development tools lately.  It's nice that the OS is mostly still BSD- and POSIX-y, but they've made some pretty developer-unfriendly choices recently.  That being said, I'm an old assembly language curmudgeon, so maybe I should get with the times, haha.

Scott

On Mon, Nov 18, 2024 at 9:04 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott, that did it! I've got libcsound.a building now. Will have to pick up the next steps in a day or two.

Much appreciated!
iain

On Mon, Nov 18, 2024 at 7:25 PM Scott Sitar <scottsitar@gmail.com> wrote:
I had that issue as well, since I kind of hand-crafted my dev environment.  It turns out there's a cmake variable you can set to point it at whatever bison path you like, so in your cmake invocation, you can do:

cmake <stuff> <stuff> -DBISON_EXECUTABLE=/full/path/to/the/bison/you/want <stuff> <stuff>

That will set all the variables in the generated makefile properly, so just running make afterwards should work.

Scott

On Mon, Nov 18, 2024 at 7:17 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Thanks Scott. Yes, I am running ancient Bison. I've installed a new one use brew (I'm on MacOS), but it tells me the following:


  bison is keg-only, which means it was not symlinked into /opt/homebrew,
  because macOS already provides this software and installing another version in
  parallel can cause all kinds of trouble.
 
  If you need to have bison first in your PATH, run:
    echo 'export PATH="/opt/homebrew/opt/bison/bin:$PATH"' >> ~/.zshrc
 
  For compilers to find bison you may need to set:
    export LDFLAGS="-L/opt/homebrew/opt/bison/lib"

I don't really know cmake, wondering if anyone can tell me the incantations to get cmake's generated make to use my newer Bison?

thanks!
iain

On Mon, Nov 18, 2024 at 6:53 PM Scott Sitar <scottsitar@gmail.com> wrote:
Hello,

What version of bison are you running?  (bison --version)

On MacOS, the one that ships with XCode by default is quite old, and it gave me errors when I tried to use it as well.  I manually installed the latest (at the time) version, 3.8.2, and that worked much better.

Best,
Scott

On Mon, Nov 18, 2024 at 6:45 PM Iain Duncan <iainduncanlists@gmail.com> wrote:
Hi devs, apologies if this is my unfamiliarity with CMake at fault. I'm trying to build the libcsound for Daisy and running into errors.

What I have done:
- clone the develop branch of csound
- followed instructions in the Daisy examples README

the cmake command runs fine. Then when I run "make", I get the errors pasted below. This looks like a code error, is there perhaps a tag or branch I need to checkout? (or something else I am doing wrong?)

thanks!
iain


iainduncan@macmini build % make
/opt/homebrew/bin/cmake -S/Users/iainduncan/Documents/csound -B/Users/iainduncan/Documents/csound/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/homebrew/bin/cmake -E cmake_progress_start /Users/iainduncan/Documents/csound/build/CMakeFiles /Users/iainduncan/Documents/csound/build//CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/csound.dir/build.make CMakeFiles/csound.dir/depend
[  0%] Generating csound_prslex.c
/usr/bin/flex -B -t -d /Users/iainduncan/Documents/csound/Engine/csound_prs.lex > /Users/iainduncan/Documents/csound/build/csound_prslex.c
[  0%] Generating csound_orclex.c
/usr/bin/flex -B -t /Users/iainduncan/Documents/csound/Engine/csound_orc.lex > /Users/iainduncan/Documents/csound/build/csound_orclex.c
[  0%] Generating csound_orcparse.c, csound_orcparse.h
/usr/bin/bison -pcsound_orc -d --report=itemset -o /Users/iainduncan/Documents/csound/build/csound_orcparse.c /Users/iainduncan/Documents/csound/Engine/csound_orc.y
/Users/iainduncan/Documents/csound/Engine/csound_orc.y:24.9-16: syntax error, unexpected identifier, expecting string
make[2]: *** [csound_orcparse.c] Error 1
make[1]: *** [CMakeFiles/csound.dir/all] Error 2
make: *** [all] Error 2