From: Dave Brolley <brolley@redhat.com>
To: Avinash Malik <avimalik@gmail.com>
Cc: sid@sources.redhat.com
Subject: Re: Fwd: Regarding the sid simulator [patch][commit]
Date: Wed, 29 Nov 2006 21:20:00 -0000 [thread overview]
Message-ID: <456DF9A8.6070002@redhat.com> (raw)
In-Reply-To: <c1cd9c970611272348vf4f1d00wf7ec77f7c3c18db2@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2357 bytes --]
I've committed the attached patch which should correct the problem of
shCfg.cxx being compiled and linked twice.
Dave
Avinash Malik wrote:
> On 11/28/06, Frank Ch. Eigler <fche@redhat.com> wrote:
>> Hi -
>>
>> On Tue, Nov 28, 2006 at 12:31:01PM +1300, Avinash Malik wrote:
>> > [...]
>> > After a lot of work arounds I could get sid compiled and
>> installed.
>> > But I still cannot target the SHboard since that gives me a internal
>> > compiler error: segmentation fault.
>>
>> These are the errors I'm seeing building today's cvs sid with FC5's
>> gcc-4.1.1:
>>
>> make[1]: Entering directory `..../sid/main/dynamic'
>> /bin/sh ./libtool --tag=CXX --mode=link c++ -DSIDTARGET_SH
>> -DSIDTARGET_SH64 -g -O2 -o sid -export-dynamic -static
>> -export-symbols-regex '[a-zA-Z0-9]*_library$'
>> ../../component/cfgroot/libconfig.la mainDynamic.o baseCfg.o
>> commonCfg.o shCfg.o shCfg.o -L../../../libiberty/pic
>> -L../../../libiberty -liberty
>> c++ -DSIDTARGET_SH -DSIDTARGET_SH64 -g -O2 -o sid mainDynamic.o
>> baseCfg.o commonCfg.o shCfg.o shCfg.o -Wl,--export-dynamic
>> ../../component/cfgroot/.libs/libconfig.a -ldl -L....libiberty/pic
>> -L....libiberty -liberty
>> shCfg.o: In function `~ShBoardCfg':
>> ../../../../src/sid/main/dynamic/shCfg.cxx:13: multiple definition of
>> `ShBoardCfg::ShBoardCfg(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > const&,
>> std::basic_string<char, std::char_traits<char>, std::allocator<char>
>> > const&, SessionCfg*, std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> > const&)'
>> shCfg.o:../../../../src/sid/main/dynamic/shCfg.cxx:13: first defined
>> here
>> shCfg.o: In function `mk_sh5_64media(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >, SessionCfg*)':
>> ../../../../src/sid/main/dynamic/shCfg.cxx:219: multiple definition
>> of `mk_sh5_64media(std::basic_string<char, std::char_traits<char>,
>> std::allocator<char> >, SessionCfg*)'
>> shCfg.o:../../../../src/sid/main/dynamic/shCfg.cxx:219: first defined
>> here
>> shCfg.o: In function `mk_sh5_32media(std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >, SessionCfg*)':
>>
>> So there is definitely a problem. And from the compiler command line,
>> it's easy to see: shCfg.o is being listed and linked twice. Dave?
>
[-- Attachment #2: sh-config.ChangeLog --]
[-- Type: text/plain, Size: 380 bytes --]
2006-11-29 Dave Brolley <brolley@redhat.com>
* sidtargets.m4 (sidtarget_sh_or_sh64): New variable.
(SIDTARGET_SH_OR_SH64): New automake conditional using
sidtarget_sh_or_sh64.
2006-11-29 Dave Brolley <brolley@redhat.com>
* Makefile.am (TARGETCFGS): Set based on SIDTARGET_SH_OR_SH64.
* Makefile.in: Regenerated.
* aclocal.m4: Regenerated.
* configure: Regenerated.
[-- Attachment #3: sh-config.patch.txt --]
[-- Type: text/plain, Size: 2924 bytes --]
Index: sid/config/sidtargets.m4
===================================================================
RCS file: /cvs/src/src/sid/config/sidtargets.m4,v
retrieving revision 1.8
diff -c -p -r1.8 sidtargets.m4
*** sid/config/sidtargets.m4 18 Oct 2006 18:42:36 -0000 1.8
--- sid/config/sidtargets.m4 29 Nov 2006 21:07:56 -0000
*************** sidtarget_mt=$sidtarget_default
*** 45,50 ****
--- 45,51 ----
sidtarget_ppc=$sidtarget_default
sidtarget_sh=$sidtarget_default
sidtarget_sh64=$sidtarget_default
+ sidtarget_sh_or_sh64=$sidtarget_default
sidtarget_xstormy16=$sidtarget_default
dnl Iterate over all listed targets
*************** do
*** 60,67 ****
mt*) sidtarget_mt=1 ;;
powerpc*) sidtarget_ppc=1 ;;
ppc*) sidtarget_ppc=1 ;;
! sh64*) sidtarget_sh64=1 ;;
! sh*) sidtarget_sh=1 ;;
xstormy16*) sidtarget_xstormy16=1 ;;
*) AC_MSG_WARN("Unknown target $targ") ;;
esac
--- 61,70 ----
mt*) sidtarget_mt=1 ;;
powerpc*) sidtarget_ppc=1 ;;
ppc*) sidtarget_ppc=1 ;;
! sh64*) sidtarget_sh64=1
! sidtarget_sh_or_sh64=1 ;;
! sh*) sidtarget_sh=1
! sidtarget_sh_or_sh64=1 ;;
xstormy16*) sidtarget_xstormy16=1 ;;
*) AC_MSG_WARN("Unknown target $targ") ;;
esac
*************** AC_SUBST(sidtarget_sh64)
*** 132,137 ****
--- 135,145 ----
AM_CONDITIONAL(SIDTARGET_SH64,[test "x$sidtarget_sh64" = x1])
AC_MSG_RESULT($sidtarget_sh64)
+ AC_MSG_CHECKING(SH or SH64 family support)
+ AC_SUBST(sidtarget_sh_or_sh64)
+ AM_CONDITIONAL(SIDTARGET_SH_OR_SH64,[test "x$sidtarget_sh_or_sh64" = x1])
+ AC_MSG_RESULT($sidtarget_sh_or_sh64)
+
AC_MSG_CHECKING(Sanyo Xstormy16 family support)
AC_SUBST(sidtarget_xstormy16)
AM_CONDITIONAL(SIDTARGET_XSTORMY16,[test "x$sidtarget_xstormy16" = x1])
Index: sid/main/dynamic/Makefile.am
===================================================================
RCS file: /cvs/src/src/sid/main/dynamic/Makefile.am,v
retrieving revision 1.13
diff -c -p -r1.13 Makefile.am
*** sid/main/dynamic/Makefile.am 18 Oct 2006 18:46:17 -0000 1.13
--- sid/main/dynamic/Makefile.am 29 Nov 2006 21:07:56 -0000
*************** TARGETCFGS = ""
*** 11,23 ****
TARGETDEFINES =
if SIDTARGET_SH
- TARGETCFGS += shCfg.cxx
TARGETDEFINES += -DSIDTARGET_SH
endif
if SIDTARGET_SH64
- TARGETCFGS += shCfg.cxx
TARGETDEFINES += -DSIDTARGET_SH64
endif
# If sid is being compiled without shared library support, arrange to
# statically link in a bunch of component libraries using libtool's
--- 11,24 ----
TARGETDEFINES =
if SIDTARGET_SH
TARGETDEFINES += -DSIDTARGET_SH
endif
if SIDTARGET_SH64
TARGETDEFINES += -DSIDTARGET_SH64
endif
+ if SIDTARGET_SH_OR_SH64
+ TARGETCFGS += shCfg.cxx
+ endif
# If sid is being compiled without shared library support, arrange to
# statically link in a bunch of component libraries using libtool's
next prev parent reply other threads:[~2006-11-29 21:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <c1cd9c970611262354h2b5e928cib4ac5c7ee4390269@mail.gmail.com>
2006-11-27 13:03 ` Regarding the sid simulator Frank Ch. Eigler
[not found] ` <c1cd9c970611271523hd2e9721n6da6c054754e0976@mail.gmail.com>
[not found] ` <c1cd9c970611271531x37001d3k59da231d5c6a7506@mail.gmail.com>
2006-11-27 23:57 ` Fwd: " Frank Ch. Eigler
2006-11-28 7:48 ` Avinash Malik
2006-11-28 23:54 ` Frank Ch. Eigler
2006-11-29 21:20 ` Dave Brolley [this message]
2006-11-29 21:25 ` Fwd: Regarding the sid simulator [patch][commit] Frank Ch. Eigler
2006-11-29 21:30 ` Dave Brolley
2006-11-29 21:33 ` Frank Ch. Eigler
2006-11-30 18:52 ` Dave Brolley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=456DF9A8.6070002@redhat.com \
--to=brolley@redhat.com \
--cc=avimalik@gmail.com \
--cc=sid@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).