Author Topic: perl with threads reguired for using toolchain?  (Read 2321 times)

Wild Penguin (OP)

  • *
  • Posts: 69
perl with threads reguired for using toolchain?
« on: December 25, 2013, 03:24:12 pm »
Hi!

I'm a newbie in programming so I may be making some stupid mistake when using the toolchain. However, I get this error when running "autogen.sh" when using the toolchain. This is how I use the toolchain (I'm using Gentoo):

Code: [Select]
PATH="/opt/gcw0-toolchain/usr/bin:$PATH"
If I run autogen.sh (for compiling DOSBox), I get:

Code: [Select]
$ ./autogen.sh
Generating build information using aclocal, autoheader, automake and autoconf
This may take a while ...
This Perl not built to support threads
Compilation failed in require at /opt/gcw0-toolchain/usr/share/automake-1.11/Automake/ChannelDefs.pm line 24.
BEGIN failed--compilation aborted at /opt/gcw0-toolchain/usr/share/automake-1.11/Automake/ChannelDefs.pm line 27.
Compilation failed in require at /opt/gcw0-toolchain/usr/share/automake-1.11/Automake/Configure_ac.pm line 26.
BEGIN failed--compilation aborted at /opt/gcw0-toolchain/usr/share/automake-1.11/Automake/Configure_ac.pm line 26.
Compilation failed in require at /opt/gcw0-toolchain/usr/bin/aclocal line 38.
BEGIN failed--compilation aborted at /opt/gcw0-toolchain/usr/bin/aclocal line 38.
This Perl not built to support threads
Compilation failed in require at /opt/gcw0-toolchain/usr/bin/automake line 139.
BEGIN failed--compilation aborted at /opt/gcw0-toolchain/usr/bin/automake line 144.
Now you are ready to run ./configure.
You can also run  ./configure --help for extra features to enable/disable.

(and, of course, the stuff made by autotools is not created).

But, if I do not set the path (and so, autotools is used from my /usr/bin instead of the toolchain), autogen.sh then works. I can then configure and compile with the toolchain seemingly without issues (and it works on my GCW-Zero).

Should I be able to run autogen.sh by using the toolchain?

There is no perl in the toolchain, but I'm now trying to compile perl with +ithreads useflag, and see if the error goes away.

Thanks and Cheers!
My Hocoslamfy highscore: 107. Also try Freedroid for GCW0!

pcercuei

  • ***
  • Posts: 1428
    • My devblog
Re: perl with threads reguired for using toolchain?
« Reply #1 on: December 25, 2013, 04:03:26 pm »
Do you have ./configure? If it was generated, then don't care about those errors.

Wild Penguin (OP)

  • *
  • Posts: 69
Re: perl with threads reguired for using toolchain?
« Reply #2 on: December 25, 2013, 04:12:19 pm »
Code: [Select]
$ ./configure
configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

autogen.sh creates install-sh, among other things.

FWIW, compiling perl with +ithreads makes my perl work with the toolchain. So I'm happy with this as it is. Though, for the record, the description of the +ithreads use flag from Gentoo:

Quote from: Gentoo Documentation
Enable Perl threads, has some compatibility problems


This is just something to consider for the dev team ;-)
My Hocoslamfy highscore: 107. Also try Freedroid for GCW0!

 

Post a new topic