Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213838 - cross-arm-linux-gnu/gcc-4.2.3 pkg_postinst fails
Summary: cross-arm-linux-gnu/gcc-4.2.3 pkg_postinst fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Lowest normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 15:00 UTC by Joseba Montejo
Modified: 2008-04-08 03:08 UTC (History)
0 users

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


Attachments
cross-arm-linux-gnu-info.log (cross-arm-linux-gnu-info.log,11.20 KB, text/plain)
2008-03-18 15:13 UTC, Joseba Montejo
Details
cross-arm-linux-gnu-gcc-stage2.log (cross-arm-linux-gnu-gcc-stage2.log.tar.gz,65.28 KB, application/octet-stream)
2008-03-18 15:14 UTC, Joseba Montejo
Details
ld.so.conf (ld.so.conf,606 bytes, text/plain)
2008-03-26 07:44 UTC, Joseba Montejo
Details
05gcc-arm-linux-gnu (05gcc-arm-linux-gnu,120 bytes, text/plain)
2008-03-26 07:45 UTC, Joseba Montejo
Details
/etc/profile.env (profile.env,2.29 KB, text/plain)
2008-04-07 08:52 UTC, Joseba Montejo
Details
Result for 'emerge --verbose --info' (emerge_info,10.23 KB, text/plain)
2008-04-07 08:54 UTC, Joseba Montejo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joseba Montejo 2008-03-18 15:00:34 UTC
Trying to generate the toolchain to develop applications for an ARM aquitectured platform with Linux, on a x86 host (PC), I run into an error, and the tools are not generated.

The crossdev version is 0.9.18-r7.

max joseba # crossdev --target arm-linux-gnu
--------------------------------------------------------------------------------
 * Host Portage ARCH:     x86
 * Target Portage ARCH:   arm
 * Target System:         arm-linux-gnu
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/arm-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/arm-linux-gnu
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...     [ ok
]
 * Log: /var/log/portage/cross-arm-linux-gnu-binutils.log
 * Emerging cross-binutils ...                                            [ ok
]
 * Log: /var/log/portage/cross-arm-linux-gnu-gcc-stage1.log
 * Emerging cross-gcc-stage1 ...                                          [ ok
]
 * Log: /var/log/portage/cross-arm-linux-gnu-linux-headers.log
 * Emerging cross-linux-headers ...                                       [ ok
]
 * Log: /var/log/portage/cross-arm-linux-gnu-glibc.log
 * Emerging cross-glibc ...                                               [ ok
]
 * Log: /var/log/portage/cross-arm-linux-gnu-gcc-stage2.log
 * Emerging cross-gcc-stage2 ...

 * gcc failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-arm-linux-gnu-info.log
 * /var/log/portage/cross-arm-linux-gnu-gcc-stage2.log
Comment 1 Joseba Montejo 2008-03-18 15:13:11 UTC
Created attachment 146494 [details]
cross-arm-linux-gnu-info.log
Comment 2 Joseba Montejo 2008-03-18 15:14:46 UTC
Created attachment 146495 [details]
cross-arm-linux-gnu-gcc-stage2.log
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-18 17:05:33 UTC
>>> Original instance of package unmerged safely.
/usr/bin/python: error while loading shared libraries: /usr/lib/gcc/arm-linux-gnu/4.2.3/libgcc_s.so.1: ELF file OS ABI invalid
 * 
 * ERROR: cross-arm-linux-gnu/gcc-4.2.3 failed.
Comment 4 SpanKY gentoo-dev 2008-03-19 02:12:59 UTC
post your /etc/env.d/05gcc and /etc/ld.so.conf files as attachments
Comment 5 Joseba Montejo 2008-03-26 07:44:08 UTC
Created attachment 147337 [details]
ld.so.conf
Comment 6 Joseba Montejo 2008-03-26 07:45:38 UTC
Created attachment 147338 [details]
05gcc-arm-linux-gnu
Comment 7 Joseba Montejo 2008-03-26 07:47:01 UTC
(In reply to comment #4)
> post your /etc/env.d/05gcc and /etc/ld.so.conf files as attachments
> 

I have posted the files, as you required.
Comment 8 SpanKY gentoo-dev 2008-04-07 05:52:01 UTC
well that doesnt make much sense as the ldconfig files dont include any paths to the arm toolchain

post your /etc/profile.env file as an attachment as well as `emerge --verbose --info`
Comment 9 Joseba Montejo 2008-04-07 08:52:07 UTC
Created attachment 148964 [details]
/etc/profile.env
Comment 10 Joseba Montejo 2008-04-07 08:54:25 UTC
Created attachment 148966 [details]
Result for 'emerge --verbose --info'
Comment 11 Joseba Montejo 2008-04-07 08:55:36 UTC
(In reply to comment #8)
> well that doesnt make much sense as the ldconfig files dont include any paths
> to the arm toolchain
> 
> post your /etc/profile.env file as an attachment as well as `emerge --verbose
> --info`
> 

There you have.
Comment 12 SpanKY gentoo-dev 2008-04-07 22:55:50 UTC
hrm, looks like this dates back to some crap eradicator merged in and i didnt notice:
http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.71&r2=1.72

gcc-compiler_pkg_postinst() {
    export LD_LIBRARY_PATH=${LIBPATH}:${LD_LIBRARY_PATH}

that's clearly wrong
Comment 13 SpanKY gentoo-dev 2008-04-08 03:08:21 UTC
dropped the relevant line in cvs

http://sources.gentoo.org/eclass/toolchain.eclass?r1=1.350&r2=1.351