Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 38903
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Dave Korn <davek@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: Dave Korn <dave.korn.cygwin@gmail.com>
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
libiberty-cyghack-removal-patch.diff Remove troublesome clause from libiberty configure patch 2009-01-18 00:31 753 bytes Edit | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 38903 depends on: Show dependency tree
Show dependency graph
Bug 38903 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: 2009-07-29 09:27 Opened: 2009-01-18 00:29
[refs: http://gcc.gnu.org/ml/gcc/2009-01/threads.html#00060
       http://gcc.gnu.org/ml/gcc/2009-01/threads.html#00216 ]

Bootstrap on cygwin is currently failing during stage 3 with:

          /home/andy/live-gcc/my_gcc/./gcc/xgcc
-B/home/andy/live-gcc/my_gcc/./gcc/ -B/usr/local/i686-pc-cygwin/bin/
-B/usr/local/i686-pc-cygwin/lib/ -isystem
/usr/local/i686-pc-cygwin/include -isystem
/usr/local/i686-pc-cygwin/sys-include -c -DHAVE_CONFIG_H -g -O2    -I.
-I../../../gcc/libiberty/../include  -W -Wall -Wwrite-strings
-Wc++-compat -Wstrict-prototypes -pedantic
../../../gcc/libiberty/strsignal.c -o pic/strsignal.o; \
        else true; fi
/home/andy/live-gcc/my_gcc/./gcc/xgcc
-B/home/andy/live-gcc/my_gcc/./gcc/ -B/usr/local/i686-pc-cygwin/bin/
-B/usr/local/i686-pc-cygwin/lib/ -isystem
/usr/local/i686-pc-cygwin/include -isystem
/usr/local/i686-pc-cygwin/sys-include -c -DHAVE_CONFIG_H -g -O2    -I.
-I../../../gcc/libiberty/../include  -W -Wall -Wwrite-strings
-Wc++-compat -Wstrict-prototypes -pedantic
../../../gcc/libiberty/strsignal.c -o strsignal.o
../../../gcc/libiberty/strsignal.c:408: error: conflicting types for
'strsignal'
/usr/include/string.h:78: note: previous declaration of 'strsignal' was here
make[2]: *** [strsignal.o] Error 1
make[2]: Leaving directory
`/home/andy/live-gcc/my_gcc/i686-pc-cygwin/libiberty'
make[1]: *** [all-target-libiberty] Error 2
make[1]: Leaving directory `/home/andy/live-gcc/my_gcc'
make: *** [all] Error 2

This happens because libiberty configure has a hard-coded hack that kicks in
when building libiberty as a target library, which causes strsignal (and a
couple of others) to be removed from the list of functions for configure to
check against the system libraries, causing the libiberty versions to be built
when they aren't needed.  (They used to be required; formerly, Cygwin pulled in
the object files from libiberty when linking the DLL, but this was fixed some
time ago and the hack has been obsolete since then).  I am testing a patch to
remove the hack.

------- Comment #1 From Dave Korn 2009-01-18 00:31 -------
Created an attachment (id=17131) [edit]
Remove troublesome clause from libiberty configure

Now testing vs. both src/ and gcc/

------- Comment #2 From Dave Korn 2009-01-18 21:40 -------
Fixed on HEAD by r.143487; sorry, forgot to put the PR/ reference in the SVN
logfile.

------- Comment #3 From Dave Korn 2009-01-26 09:48 -------
http://gcc.gnu.org/ml/gcc/2009-01/msg00367.html
Confirmed by OP.

------- Comment #4 From Dave Korn 2009-07-29 09:23 -------
Reopening against 4.3.4 RC 20090727.

------- Comment #5 From Dave Korn 2009-07-29 11:45 -------
Subject: Bug 38903

Author: davek
Date: Wed Jul 29 11:45:30 2009
New Revision: 150209

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150209
Log:
        PR bootstrap/38903: Backport fix from HEAD.
        * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
        as it no longer shares libiberty object files.
        * configure: Regenerated.


Modified:
    branches/gcc-4_3-branch/libiberty/ChangeLog
    branches/gcc-4_3-branch/libiberty/configure
    branches/gcc-4_3-branch/libiberty/configure.ac

------- Comment #6 From Dave Korn 2009-07-29 12:08 -------
Fixed on gcc-4_3-branch.
Not present on gcc-4_4-branch, fix was applied to HEAD before branching.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug