Skip Menu |

This queue is for tickets about the Tie-Hash-Indexed CPAN distribution.

Report information
The Basics
Id: 5228
Status: resolved
Priority: 0/
Queue: Tie-Hash-Indexed

People
Owner: Nobody in particular
Requestors: cyberian [...] arcor.de
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.03
Fixed in: (no value)



Subject: cc1: Invalid option `-fmessage-length=0'
Version 0.03 of Tie::HASH::Indexed does not build on SuSE Linux 9.0. The relevant message is "cc1: Invalid option `-fmessage-length=0'". Removing this option manual in Makefile, enable building (with warnings) and all tests are okay. My installed version of Perl is 5.8.1, the compiler is gcc version 2.95.3 20010315 (SuSE). Both are installed from original SuSE RPM. See my log for details: flint:~/.cpan/build/Tie-Hash-Indexed-0.03 # make cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -pipe -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fPIC "-I/usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE" -DNDEBUG Indexed.c cc1: Invalid option `-fmessage-length=0' In file included from /usr/include/asm/sigcontext.h:4, from /usr/include/bits/sigcontext.h:28, from /usr/include/signal.h:326, from /usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE/unixish.h:107, from /usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE/perl.h:1969, from Indexed.xs:30: /usr/include/linux/compiler.h:71: warning: `__attribute_used__' redefined /usr/include/sys/cdefs.h:195: warning: this is the location of the previous definition Indexed.c: In function `XS_Tie__Hash__Indexed_TIEHASH': Indexed.xs:228: warning: unused variable `method' Indexed.c: In function `XS_Tie__Hash__Indexed_NEXTKEY': Indexed.c:429: warning: unused variable `last' Indexed.c: In function `XS_Tie__Hash__Indexed_STORABLE_freeze': Indexed.c:594: warning: unused variable `cloning' Indexed.c: In function `XS_Tie__Hash__Indexed_STORABLE_thaw': Indexed.c:644: warning: unused variable `cloning' make: *** [Indexed.o] Fehler 1 flint:~/.cpan/build/Tie-Hash-Indexed-0.03 # vi Makefile flint:~/.cpan/build/Tie-Hash-Indexed-0.03 # make cc -c -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -Wall -pipe -DVERSION=\"0.03\" -DXS_VERSION=\"0.03\" -fPIC "-I/usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE" -DNDEBUG Indexed.c In file included from /usr/include/asm/sigcontext.h:4, from /usr/include/bits/sigcontext.h:28, from /usr/include/signal.h:326, from /usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE/unixish.h:107, from /usr/lib/perl5/5.8.1/i586-linux-thread-multi/CORE/perl.h:1969, from Indexed.xs:30: /usr/include/linux/compiler.h:71: warning: `__attribute_used__' redefined /usr/include/sys/cdefs.h:195: warning: this is the location of the previous definition Indexed.c: In function `XS_Tie__Hash__Indexed_TIEHASH': Indexed.xs:228: warning: unused variable `method' Indexed.c: In function `XS_Tie__Hash__Indexed_NEXTKEY': Indexed.c:429: warning: unused variable `last' Indexed.c: In function `XS_Tie__Hash__Indexed_STORABLE_freeze': Indexed.c:594: warning: unused variable `cloning' Indexed.c: In function `XS_Tie__Hash__Indexed_STORABLE_thaw': Indexed.c:644: warning: unused variable `cloning' Running Mkbootstrap for Tie::Hash::Indexed () chmod 644 Indexed.bs rm -f blib/arch/auto/Tie/Hash/Indexed/Indexed.so LD_RUN_PATH="" cc -shared Indexed.o -o blib/arch/auto/Tie/Hash/Indexed/Indexed.so chmod 755 blib/arch/auto/Tie/Hash/Indexed/Indexed.so cp Indexed.bs blib/arch/auto/Tie/Hash/Indexed/Indexed.bs chmod 644 blib/arch/auto/Tie/Hash/Indexed/Indexed.bs Manifying blib/man3/Tie::Hash::Indexed.3pm flint:~/.cpan/build/Tie-Hash-Indexed-0.03 # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/101_basic.......ok t/102_storable....ok All tests successful. Files=2, Tests=51, 0 wallclock secs ( 0.34 cusr + 0.03 csys = 0.37 CPU) flint:~/.cpan/build/Tie-Hash-Indexed-0.03 #
Date: Mon, 9 Feb 2004 21:03:07 +0100
From: Marcus Holland-Moritz <mhx-cpan [...] gmx.net>
To: bug-Tie-Hash-Indexed [...] rt.cpan.org
Subject: Re: [cpan #5228] cc1: Invalid option `-fmessage-length=0'
RT-Send-Cc:
On 2004-02-06, at 01:38:29 -0500, Guest via RT wrote: Show quoted text
> This message about Tie-Hash-Indexed was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=5228 > > > Version 0.03 of Tie::HASH::Indexed does not build on SuSE Linux 9.0. The relevant > message is "cc1: Invalid option `-fmessage-length=0'". Removing this option manual > in Makefile, enable building (with warnings) and all tests are okay. > > My installed version of Perl is 5.8.1, the compiler is gcc version 2.95.3 20010315 > (SuSE). Both are installed from original SuSE RPM.
Thanks a lot for your report. However, this is not a problem of Tie::Hash::Indexed, but rather of a broken installation. The Makefile is generated by perl based on the Makefile.PL in my distribution. The Makefile.PL doesn't do anything with compiler options except for checking for a debugging version of perl. Thus, all of the compiler options are taken from the Config module, which holds all the information on how your perl was configured. I don't have access to a SuSE 9.0 installation, but AFAIK the gcc that ships with 9.0 is gcc-3.3.1. I guess that's also what SuSE used to build perl. Somehow you have a _very_ old gcc-2.95.3 installed, which (obviously) doesn't recognize the -fmessage-length option. Modern gcc's do. You can use perl -MConfig -e'print $Config{gccversion}' to figure out which gcc was used to build your perl. If you don't use the same gcc to build XS modules and your vendor used "exotic" options to configure perl, you'll most likely run into the same trouble with other XS modules. Please let me know if this helped you. Marcus -- BOFH Excuse #221: The mainframe needs to rest. It's getting old, you know.
Just tested Tie-Hash-Indexed-0.03 on a fresh SuSE 9.0 installation and it built without problems. Marcus