azac / cobol-on-wheelchair

Micro web-framework for COBOL
MIT License
950 stars 46 forks source link

Error with installation instructions #1

Open brandondrew opened 10 years ago

brandondrew commented 10 years ago

I followed the installation instructions in the README, and got this error:

/var/folders/m5/8ywlvk7517x1fj90lvkmdk800000gn/T//cob97241_0.c:496:5: error: indirect goto in
      function with no address-of-label expressions
    goto *frame_ptr->return_address;
    ^
1 error generated.

I'm running on OS X Mavericks, and installed COBOL with

brew update
brew install open-cobol

which seemed to go perfectly well.

ricardoaandres commented 10 years ago

same error here

Wolg commented 10 years ago

+

kevinohara80 commented 10 years ago

+1000 Our startup just lost it's funding because we can't get this running. Not sure what we do now...

ksmithbaylor commented 9 years ago

bump

rschmitt commented 7 years ago

I think this happens on OS X due to this bug in LLVM: https://llvm.org/bugs/show_bug.cgi?id=18658

rschmitt commented 7 years ago

As a workaround, try installing gnu-cobol instead of open-cobol.

MostParsingVex commented 7 years ago

The error is caused by LLVM not supporting a GCC extension for computed goto. You can install gcc with

 # brew tap homebrew/dupes
 # brew install apple-gcc42

You may need to adjust some symlinks or env vars to set the default compiler to gcc.

dkltda commented 2 years ago

hi... the problem persists, upgrade to macOS BigSur +

brew tap homebrew/dupes

brew install apple-gcc42

and the problem continues. someone solved?