New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perl 5.8.8 does not compile on Solaris 8 with -Dusethreads #8929
Comments
From jaevans@clearcase.mdconsult.comCreated by jaevans@clearcase.mdconsult.comThis is a bug report for perl from jaevans@clearcase.mdconsult.com, ----------------------------------------------------------------- Making DynaLoader (static) The only change from the configuration below is the inclusion of -Dusethreads to the config_args Perl Info
|
From @doughera88On Thu, 14 Jun 2007, jaevans @ clearcase . mdconsult . com wrote:
I was able to compile with gcc-3.4.3 on Solaris 8 with -Dusethreads What happened the first time through? What you have reported above is
could you please include the output of the ./myconfig file from the Thanks.
-- |
The RT System itself - Status changed from 'new' to 'open' |
From Ja.Evans@Elsevier.com
Oops. I ran 'make clean' and 'make' again to get the error message to copy into perlbug. I've deleted the directory and re-did the Configure and make to get the error message again. So much for saving time with the make clean :) Here is the output of the first run with -Dusethreads: Making DynaLoader (static) Here is the output of ./myconfig: For each build I'm deleting the perl-5.8.8 directory, untaring, re-configuring, and re-building. The process is controlled by a makefile, so I get the same result every time. Thanks, james evans |
From @doughera88On Fri, 15 Jun 2007, Evans, James (ELS) wrote:
Ouch. Obviously, that's not supposed to happen.
Ah. I see the problem. You're missing -D_REENTRANT in the ccflags. Use which C compiler? [cc] *** However, any setting of the C compiler flags (e.g. for thread support) However, it then happily continued on its way, so you probably never In any case, the workaround is simple: Include -Dcc=gcc in your build Please let us know if this solves the problem. Thanks, -- |
@doughera88 - Status changed from 'open' to 'resolved' |
From @doughera88On Fri, 15 Jun 2007, Andy Dougherty wrote:
Perhaps it would be better to split the trygcc script into its own However, that was too much metaconfig fiddling for me today, so I just Inline Patch--- metaconfig-20070423/U/perl/Checkcc.U 2007-01-16 11:33:37.000000000 -0500
+++ metaconfig-andy/U/perl/Checkcc.U 2007-06-15 11:32:36.000000000 -0400
@@ -53,15 +53,36 @@
case "$cc" in
*gcc*) trygcc=no ;;
esac
- case "`$cc -v -c try.c 2>&1`" in
- *gcc*) trygcc=no ;;
- esac
+ # Skip this test because it gives a false match on output like:
+ # ./trygcc: line 23: cc: command not found
+ # case "`$cc -v -c try.c 2>&1`" in
+ # *gcc*) trygcc=no ;;
+ # esac
if $test X"$trygcc" = Xyes; then
if gcc -o try -c try.c; then
echo " "
echo "You seem to have a working gcc, though." >&4
- rp="Would you like to use it?"
- dflt=y
+ # Switching compilers may undo the work of hints files.
+ # The most common problem is -D_REENTRANT for threads.
+ # This heuristic catches that case, but gets false positives
+ # if -Dusethreads was not actually specified. Better to
+ # bail out here with a useful message than fail
+ # mysteriously later. Should we perhaps just try to
+ # re-invoke Configure -Dcc=gcc config_args ?
+ if $test -f usethreads.cbu; then
+ $cat >&4 <<EOM
+
+*** However, any setting of the C compiler flags (e.g. for thread support)
+*** will be lost. It may be necessary for you to restart Configure and
+*** add -Dcc=gcc to your Configure command line.
+
+EOM
+ rp="Would you like to go ahead and try gcc anyway?"
+ dflt=n
+ else
+ rp="Would you like to use it?"
+ dflt=y
+ fi
if $test -f myread; then
. ./myread
else
@@ -74,15 +95,6 @@
fi
case "$ans" in
[yY]*) cc=gcc; ccname=gcc; ccflags=''; despair=no;
- if $test -f usethreads.cbu; then
- $cat >&4 <<EOM
-
-*** However, any setting of the C compiler flags (e.g. for thread support)
-*** has been lost. It may be necessary to pass -Dcc=gcc to Configure
-*** (together with e.g. -Dusethreads).
-
-EOM
- fi;;
esac
fi
fi
-- Andy Dougherty doughera@lafayette.edu |
From @TuxOn Fri, 15 Jun 2007 12:05:36 -0400 (EDT), Andy Dougherty
Thanks, applied as changes #31394 and #31395
-- |
Migrated from rt.perl.org#43216 (status was 'resolved')
Searchable as RT43216$
The text was updated successfully, but these errors were encountered: