Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179408 - dev-libs/dietlibc-0.30-r2 stable request
Summary: dev-libs/dietlibc-0.30-r2 stable request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 11:17 UTC by Benedikt Böhm (RETIRED)
Modified: 2008-05-13 14:25 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fixed Makefile.add in powerpc/ (150_ppc_rename-powerpc.patch,40.09 KB, patch)
2007-06-07 23:35 UTC, José Costa
Details | Diff
fixed Makefile.add in powerpc64/ (155_ppc64_rename-powerpc64.patch,41.77 KB, patch)
2007-06-07 23:35 UTC, José Costa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benedikt Böhm (RETIRED) gentoo-dev 2007-05-22 11:17:37 UTC
Please mark 0.30-r2 stable, so we can get rid of the old crap ...
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2007-05-23 03:34:42 UTC
From the man page:

       diet  tries  to be smart for cross compiling.  If the first argument is
       not gcc but sparc-linux-gcc, diet will guess that  you  want  to  cross
       compile   for   sparc  and  use  bin-sparc/dietlibc.a  instead  of  the
       dietlibc.a for your default architecture.

This means that for hppa, diet incorrectly tries to find library archives in /usr/diet/lib-hppa2.0 because of hppa2.0-unknown-linux-gnu, instead of /usr/diet/parisc where the files really are. This means that it does build sys-libs/libvserver, but doesn't properly build app-shells/shish with USE=diet.

Other than that, stable for HPPA.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2007-05-23 06:04:59 UTC
This is  amore or less known issues, we aready have a patch that renames ppc to powerpc for similar reason ... but eventually this has to be fixed upstream.. will try to contact fefe about this ..
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2007-05-23 13:39:27 UTC
alpha stable
Comment 4 nixnut (RETIRED) gentoo-dev 2007-06-01 20:40:29 UTC
won't work on ppc:

>>> Compiling source in /var/tmp/portage/dev-libs/dietlibc-0.30/work/dietlibc-0.30 ...
Makefile:66: *** unknown architecture, please fix Makefile.  Stop.

!!! ERROR: dev-libs/dietlibc-0.30 failed.

You have a patch for this?
Comment 5 Benedikt Böhm (RETIRED) gentoo-dev 2007-06-02 13:27:01 UTC
fortunately the new epatch breaks a lot of patches that are not named like the author of epatch wishes them to be named *sigh*

so i assume 150_ppc_rename-powerpc.patch has not even got applied in your build, right?
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2007-06-02 13:30:08 UTC
hm.. although it applies fine here .. hm .. maybe i only got that impression because of the apache ebuilds ;)
Comment 7 nixnut (RETIRED) gentoo-dev 2007-06-02 17:16:27 UTC
(In reply to comment #5)
> fortunately the new epatch breaks a lot of patches that are not named like the
> author of epatch wishes them to be named *sigh*
> 
> so i assume 150_ppc_rename-powerpc.patch has not even got applied in your
> build, right?
> 

>>> Unpacking dietlibc-0.30-patches-r0.tar.bz2 to /var/tmp/portage/dev-libs/dietlibc-0.30/work
 * Applying 00_all_custom-cflags.patch ...                                [ ok ]
 * Applying 01_all_nostrip.patch ...                                      [ ok ]
 * Applying 02_all_want-stackgap.patch ...                                [ ok ]
 * Applying 03_all_ppc-rename.patch ...                                   [ ok ]
 * Applying 04_all_prefix.patch ...                                       [ ok ]
 * Applying 20_all_dirent-prototype.patch ...                             [ ok ]
 * Applying 21_all_nice.patch ...                                         [ ok ]
 * Applying 40_sparc64_Makefile.patch ...                                 [ ok ]
 * Applying 42_arm_waitpid.patch ...                                      [ ok ]
 * Applying 43_ia64_no-fno-omit-frame-pointer.patch ...                   [ ok ]
 * Applying 45_parisc_iitlbp.patch ...                                    [ ok ]
>>> Source unpacked.

Guess it doesn't
Comment 8 nixnut (RETIRED) gentoo-dev 2007-06-02 17:20:38 UTC
Not too suprising since that patch is not in the tarball dietlibc-0.30-patches-r0.tar.bz2
Comment 9 Benedikt Böhm (RETIRED) gentoo-dev 2007-06-02 18:52:31 UTC
ah, this bug is about dietlibc-0.30-r2 not r0 :)
Comment 10 José Costa 2007-06-07 22:17:30 UTC
on ppc64 (64ul):

gcc -m64 -I. -isystem include -O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec -fomit-frame-pointer -c libregex/rx.c -o bin-powerpc64/rx.o -D__dietlibc__
make: *** No rule to make target `bin-powerpc64/__longjmp.o', needed by `bin-powerpc64/dietlibc.a'.  Stop.


Do you want emerge --info and build.log?
Comment 11 José Costa 2007-06-07 23:35:19 UTC
Created attachment 121462 [details, diff]
fixed Makefile.add in powerpc/
Comment 12 José Costa 2007-06-07 23:35:39 UTC
Created attachment 121464 [details, diff]
fixed Makefile.add in powerpc64/
Comment 13 José Costa 2007-06-07 23:37:17 UTC
Okay, fixed the patches. Now it compiles cleanly on ppc64 (64ul).

the powerpc/Makefile.add had the wrong VPATH because of the changes in the dirs.
Comment 14 Markus Rothe (RETIRED) gentoo-dev 2007-06-08 04:43:27 UTC
José Costa: Good work. Are those patches your work? Have they been sent upstream? I'll try those out once I get some spare time and include them in portage.
Comment 15 José Costa 2007-06-08 11:43:44 UTC
(In reply to comment #14)
> José Costa: Good work. Are those patches your work? Have they been sent
> upstream? I'll try those out once I get some spare time and include them in
> portage.
> 

No, the patches are from Hollow.
Comment 16 Benedikt Böhm (RETIRED) gentoo-dev 2007-06-11 12:17:15 UTC
all ppc/ppc64 bugs we could find have been fixed in 0.31_pre20070611, won't backport it to 0.30, therefore removing ppc teams...
Comment 17 Luca Lesinigo 2008-05-13 10:17:13 UTC
(In reply to comment #1)
> This means that for hppa, diet incorrectly tries to find library archives in
> /usr/diet/lib-hppa2.0 because of hppa2.0-unknown-linux-gnu, instead of
> /usr/diet/parisc where the files really are. This means that it does build
> sys-libs/libvserver, but doesn't properly build app-shells/shish with USE=diet.
> Other than that, stable for HPPA.

I still see the same behavior trying to emerge sys-cluster/util-vserver-0.30.215 - it fails with dev-libs/dietlibc-0.30-r2 and -0.31_pre20070612 too:

[.....]
diet -Os hppa2.0-unknown-linux-gnu-gcc -O2 -pipe -march=2.0 -std=c99 -Wall -pedantic -W -funit-at-a-time -o tests/getctx tests/getctx.o  lib/libvserver.a -lcompat
hppa2.0-unknown-linux-gnu-gcc: /usr/diet/lib-hppa2.0/start.o: No such file or directory
hppa2.0-unknown-linux-gnu-gcc: /usr/diet/lib-hppa2.0/libc.a: No such file or directory
[.....]

AFAIK, this isn't RESOLVED neither FIXED on hppa.
Comment 18 Luca Lesinigo 2008-05-13 14:25:35 UTC
Just to clarify:
 $ diet gcc <whatever>
will use the correct path (/usr/diet/lib-parisc)
 $ diet hppa2.0-unknown-linux-gnu-gcc <whatever>
will try to use a wrong path derived from the CHOST embedded in gcc's command (/usr/diet/lib-hppa2.0).

The problem arise from the fact that hppa2.0-unknown-linux-gnu is the default CHOST on Gentoo/hppa2.0 so it'll be probably used by any crosscompile-aware ebuild/Makefile/whatever.
Probably a renaming patch like the one for ppc would be the way to go.