Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 526618 - sys-devel/gcc-4.8.3-r99[gcj] with sys-libs/musl - checking netdb.h usability... In file included from .../work/gcc-4.8.3/boehm-gc/os_dep.c:44:0: /usr/include/asm/sigcontext.h:134:8: error: redefinition of 'struct _fpstate'
Summary: sys-devel/gcc-4.8.3-r99[gcj] with sys-libs/musl - checking netdb.h usability....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-24 07:05 UTC by Philipp Ammann
Modified: 2014-10-25 17:41 UTC (History)
1 user (show)

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


Attachments
gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,317.92 KB, application/x-bzip-compressed-tar)
2014-10-24 07:05 UTC, Philipp Ammann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Ammann 2014-10-24 07:05:01 UTC
Created attachment 387284 [details]
gcc-build-logs.tar.bz2

gcc-4.8.3 with gcj enabled fails to compile on musl.

I found these patches from alpine, they apply correctly but do *not* resolve the issue:

http://git.alpinelinux.org/cgit/aports/tree/main/gcc/fix-gcj-iconv-musl.patch?id=20eae13751573f2ba970f44d16674cbaaf69e101
http://git.alpinelinux.org/cgit/aports/tree/main/gcc/fix-gcj-musl.patch?id=20eae13751573f2ba970f44d16674cbaaf69e101
Comment 1 SpanKY gentoo-dev 2014-10-24 15:42:46 UTC
there is no gcc-4.8.3-r99 in the tree
Comment 2 Philipp Ammann 2014-10-24 15:50:14 UTC
(In reply to SpanKY from comment #1)
> there is no gcc-4.8.3-r99 in the tree

No, it's from the musl branch in the hardened-overlay, that's why I CC'd blueness.
Comment 3 SpanKY gentoo-dev 2014-10-24 16:17:42 UTC
toolchain@ only handles ebuilds in the main tree.  overlays are handled by the respective overlay owners.
Comment 4 Anthony Basile gentoo-dev 2014-10-25 13:10:52 UTC
(In reply to Philipp Ammann from comment #0)
> Created attachment 387284 [details]
> gcc-build-logs.tar.bz2
> 
> gcc-4.8.3 with gcj enabled fails to compile on musl.
> 
> I found these patches from alpine, they apply correctly but do *not* resolve
> the issue:
> 
> http://git.alpinelinux.org/cgit/aports/tree/main/gcc/fix-gcj-iconv-musl.
> patch?id=20eae13751573f2ba970f44d16674cbaaf69e101
> http://git.alpinelinux.org/cgit/aports/tree/main/gcc/fix-gcj-musl.
> patch?id=20eae13751573f2ba970f44d16674cbaaf69e101

Those patches are not going to fix that error.  Re-sync and try emerging gcc-4.8.3 again.
Comment 5 Philipp Ammann 2014-10-25 16:12:53 UTC
(In reply to Anthony Basile from comment #4)
> Those patches are not going to fix that error.  Re-sync and try emerging
> gcc-4.8.3 again.

Anthony,

it worked, thanks a lot for the patch! I'm trying to bootstrap a JDK on a musl system. Cross you finger I'm not running into any major bugs ;-)

Regards,
Philipp
Comment 6 Anthony Basile gentoo-dev 2014-10-25 17:41:15 UTC
(In reply to Philipp Ammann from comment #5)
> (In reply to Anthony Basile from comment #4)
> > Those patches are not going to fix that error.  Re-sync and try emerging
> > gcc-4.8.3 again.
> 
> Anthony,
> 
> it worked, thanks a lot for the patch! I'm trying to bootstrap a JDK on a
> musl system. Cross you finger I'm not running into any major bugs ;-)
> 
> Regards,
> Philipp

let me know if you get it.