Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian GCC (http://www.linux-archive.org/debian-gcc/)
-   -   Bug#645021: gcc-4.6: build error on REVERSE_CROSS (files in "4.6.1" dir instead of "4.6") (http://www.linux-archive.org/debian-gcc/586471-bug-645021-gcc-4-6-build-error-reverse_cross-files-4-6-1-dir-instead-4-6-a.html)

Matthias Klose 10-11-2011 09:47 PM

Bug#645021: gcc-4.6: build error on REVERSE_CROSS (files in "4.6.1" dir instead of "4.6")
 
On 10/11/2011 10:49 PM, Kyle Moffett wrote:
> Source: gcc-4.6
> Version: 4.6.1-15
> Severity: wishlist
>
> When building in REVERSE_CROSS mode (IE: when trying to build a native
> compiler for another architecture with an existing cross-compiler, the
> build fails with the following error:
>
> $ apt-get gcc-4.6=4.6.1-15
> $ ( cd gcc-4.6-4.6.1 && dpkg-buildpackage -apowerpcspe -b -us -uc )
> [...]
> dh_movefiles: debian/tmp/usr/lib/gcc/powerpc-linux-gnuspe/4.6/libgcov.a not found (supposed to put it in gcc-4.6)
>
> It looks like it is being put in the wrong directory:
>
> $ find . -name '*libgcov*'
> ./gcc-4.6-4.6.1/debian/tmp/usr/lib/gcc/powerpc-linux-gnuspe/4.6.1/libgcov.a
> ./gcc-4.6-4.6.1/build/powerpc-linux-gnuspe/libgcc/libgcov.a
> ./gcc-4.6-4.6.1/build/gcc/libgcov.a
>
> There seem to have been some similar bugs regarding recent changes to
> the "gcc -print-file-name" command, EG: #643891, #644849
>
> Unfortunately I'm not having any luck figuring out what I need to fix to
> make this build. Any help would be much appreciated.

is gcc-base-version.diff applied? I think we should build every cross build with
this patch.

gcc/BASE-VER now does omit the subminor version number. gcc/FULL-VER does have
it (used to print the version number for gcc --version).

Ludovic, please could you rebase gnat-4.6 to -15 and see if this works for gnat
as well?

Matthias



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4E94B98B.6030609@debian.org">http://lists.debian.org/4E94B98B.6030609@debian.org

"Moffett, Kyle D" 10-12-2011 04:03 PM

Bug#645021: gcc-4.6: build error on REVERSE_CROSS (files in "4.6.1" dir instead of "4.6")
 
On Oct 11, 2011, at 17:47, Matthias Klose wrote:
> On 10/11/2011 10:49 PM, Kyle Moffett wrote:
>> Source: gcc-4.6
>> Version: 4.6.1-15
>> Severity: wishlist
>>
>> When building in REVERSE_CROSS mode (IE: when trying to build a native
>> compiler for another architecture with an existing cross-compiler, the
>> build fails with the following error:
>>
>> $ apt-get gcc-4.6=4.6.1-15
>> $ ( cd gcc-4.6-4.6.1 && dpkg-buildpackage -apowerpcspe -b -us -uc )
>> [...]
>> dh_movefiles: debian/tmp/usr/lib/gcc/powerpc-linux-gnuspe/4.6/libgcov.a not found (supposed to put it in gcc-4.6)
>>
>> It looks like it is being put in the wrong directory:
>>
>> $ find . -name '*libgcov*'
>> ./gcc-4.6-4.6.1/debian/tmp/usr/lib/gcc/powerpc-linux-gnuspe/4.6.1/libgcov.a
>> ./gcc-4.6-4.6.1/build/powerpc-linux-gnuspe/libgcc/libgcov.a
>> ./gcc-4.6-4.6.1/build/gcc/libgcov.a
>>
>> There seem to have been some similar bugs regarding recent changes to
>> the "gcc -print-file-name" command, EG: #643891, #644849
>>
>> Unfortunately I'm not having any luck figuring out what I need to fix to
>> make this build. Any help would be much appreciated.
>
> is gcc-base-version.diff applied? I think we should build every cross build with
> this patch.
>
> gcc/BASE-VER now does omit the subminor version number. gcc/FULL-VER does have
> it (used to print the version number for gcc --version).

Yeah, gcc-base-version.diff is applied. I should mention, I do get *most*
files in the "4.6" directory. It's just that I get some files in "4.6.1".

Specifically, in debian/tmp/usr/lib/gcc/powerpc-linux-gnuspe/4.6.1:
crtbegin.o
crtbeginS.o
crtbeginT.o
crtend.o
crtendS.o
ecrti.o
ecrtn.o
libgcc.a
libgcc_eh.a
libgcov.a
ncrti.o
ncrtn.o

While everything else is in the "4.6" directory:
collect2
finclude
include/*.h
include-fixed/*.h
install-tools/include
lto-wrapper
lto1
plugin/include/*.h

Cheers,
Kyle Moffett

--
Curious about my work on the Debian powerpcspe port?
I'm keeping a blog here: http://pureperl.blogspot.com/


--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 36B26565-1C1B-49E1-8D45-27282847AF7C@boeing.com">http://lists.debian.org/36B26565-1C1B-49E1-8D45-27282847AF7C@boeing.com

Matthias Klose 10-23-2011 02:03 PM

Bug#645021: gcc-4.6: build error on REVERSE_CROSS (files in "4.6.1" dir instead of "4.6")
 
On 10/12/2011 06:03 PM, Moffett, Kyle D wrote:
> Yeah, gcc-base-version.diff is applied. I should mention, I do get *most*
> files in the "4.6" directory. It's just that I get some files in "4.6.1".
>
> Specifically, in debian/tmp/usr/lib/gcc/powerpc-linux-gnuspe/4.6.1:
> crtbegin.o
> crtbeginS.o
> crtbeginT.o
> crtend.o
> crtendS.o
> ecrti.o
> ecrtn.o
> libgcc.a
> libgcc_eh.a
> libgcov.a
> ncrti.o
> ncrtn.o

should be fixed now in svn; please could you recheck?

Matthias



--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4EA41EAB.8020408@debian.org">http://lists.debian.org/4EA41EAB.8020408@debian.org


All times are GMT. The time now is 07:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.