You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Philip M. Gollucci (JIRA)" <ji...@apache.org> on 2009/09/29 04:00:17 UTC

[jira] Closed: (INFRA-2077) 32-bit gcc broken on minotaur

     [ https://issues.apache.org/jira/browse/INFRA-2077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philip M. Gollucci closed INFRA-2077.
-------------------------------------

    Resolution: Fixed

This has never worked on FreeBSD since inception and will probably not work ever.

As a work around, you can use -B/usr/lib32 instead of -L/usr/lib32

There is a possible but incomplete patch here
http://people.freebsd.org/~peter/hammer.diff

and a discussion thread here
http://lists.freebsd.org/pipermail/freebsd-amd64/2008-December/011777.html

You can follow the freebsd bug here --
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/139146

> 32-bit gcc broken on minotaur
> -----------------------------
>
>                 Key: INFRA-2077
>                 URL: https://issues.apache.org/jira/browse/INFRA-2077
>             Project: Infrastructure
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Martin Sebor
>            Assignee: Philip M. Gollucci
>
> The gcc installed on minotaur can successfully generate 64-bit binaries but when invoked with the -m32 option to generate 32-bit code the linker fails to find the corresponding 32-bit libgcc.so (see below). It appears as though the compiler driver doesn't pass -L/usr/lib32 (the location of the 32-bit libgcc) to the linker. Unfortunately, specifying -L/usr/lib32 manually gives the error: /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for -lgcc.
> $ uname -n && echo "int main () { }" > t.c && gcc -v --help 2>&1 | grep m32 && gcc -m32 t.c
> minotaur.apache.org
>   -m32                        Generate 32bit i386 code
> /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for -lgcc
> /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for -lgcc
> /usr/bin/ld: cannot find -lgcc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.