Skip to contentSkip to conversation

Hi, all,

DISCUSSION Mike Frysinger 5 participants 20 messages Jan 20, 2008 – Jan 28, 2008 SuperH

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2-fde- glibc.c:291: undefined reference to `dl_iterate_phdr'

How can I solve.
Any suggestion will be appreciated.

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.
-mike

#1 lore raw
Quoted 4 lines · Mike Frysinger
Quoted 3 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

Quoted 8 lines
Quoted 5 lines

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2-fd e- glibc.c:291: undefined reference to `dl_iterate_phdr'

How can I solve.
Any suggestion will be appreciated.

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.

and more importantly, what exactly are you doing
-mike

#2 lore raw
In reply to Mike Frysinger
Quoted 13 lines · Mike Frysinger
Quoted 11 lines · Mike Frysinger
Quoted 9 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2-fd e- glibc.c:291: undefined reference to `dl_iterate_phdr'

How can I solve.
Any suggestion will be appreciated.

Quoted 7 lines
Quoted 3 lines

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.

and more importantly, what exactly are you doing
-mike

Hi Mike,
I think that Fabio is trying to linking statically a C++ application against uClibc. If so, (Fabio please clarify), the problem is extactly the same
I posted on uClibc list last week (mmove _dl_iterate_phdr from libdl.a to libc.a).

I have a already fixed it for nptl/sh4 branch... I'm just now merging the patch
for the uClibc branch and post it for a wider review on uClibc.

I'll put Fabio into the loop.. anyway Fabio should post his full command line
used to build/link his application.

Cheers,
Carmelo

#3 lore raw
In reply to Mike Frysinger
Quoted 15 lines · Carmelo AMOROSO
Quoted 14 lines · Mike Frysinger
Quoted 12 lines · Mike Frysinger
Quoted 8 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2- fd e- glibc.c:291: undefined reference to `dl_iterate_phdr'

How can I solve.
Any suggestion will be appreciated.

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.

Quoted 8 lines
Quoted 2 lines

and more importantly, what exactly are you doing
-mike

I think that Fabio is trying to linking statically a C++ application against uClibc. If so, (Fabio please clarify), the problem is extactly the same
I posted on uClibc list last week (mmove _dl_iterate_phdr from libdl.a to libc.a).

there are other ways to hit the failure, so i wanted to see what he was attempting before suggesting a workaround.
-mike

#4 lore raw
In reply to Mike Frysinger

Hi all,
this are more info.
Please tell me is this enough or you need more.
The kernel headers for buildign stage 2 of toolchain is 2.6.17 patched for sh2a 7203 by MCP data. If needed I attach the patch.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build/target/bin> ./sh-linux-g++ -dumpversion
3.4.6

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build/target/bin> ./sh-linux-g++ -dumpmachine
sh-linux

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build/target/bin> ./sh-linux-g++ -print-multi-lib
.;
pic;@fPIC
mb;@mb
m3e;@m3e
m4;@m4
mb/m3e;@mb@m3e
mb/m4;@mb@m4
pic/mb;@fPIC@mb
pic/m3e;@fPIC@m3e
pic/m4;@fPIC@m4
pic/mb/m3e;@fPIC@mb@m3e
pic/mb/m4;@fPIC@mb@m4

uClib is 0.9.27 with this config
#
# Automatically generated make config: don't edit
#
# TARGET_alpha is not set
# TARGET_arm is not set
# TARGET_bfin is not set
# TARGET_cris is not set
# TARGET_e1 is not set
# TARGET_frv is not set
# TARGET_h8300 is not set
# TARGET_i386 is not set
# TARGET_i960 is not set
# TARGET_m68k is not set
# TARGET_microblaze is not set
# TARGET_mips is not set
# TARGET_nios is not set
# TARGET_nios2 is not set
# TARGET_powerpc is not set
TARGET_sh=y
# TARGET_sparc is not set
# TARGET_v850 is not set

#
# Target Architecture Features and Options
#
HAVE_ELF=y
ARCH_SUPPORTS_LITTLE_ENDIAN=y
TARGET_ARCH="sh"
ARCH_SUPPORTS_BIG_ENDIAN=y
HAVE_DOT_HIDDEN=y
CONFIG_SH2=y
# CONFIG_SH3 is not set
# CONFIG_SH4 is not set
# CONFIG_SH5 is not set
# ARCH_LITTLE_ENDIAN is not set
ARCH_BIG_ENDIAN=y
ARCH_HAS_NO_MMU=y
UCLIBC_HAS_FLOATS=y
HAS_FPU=y
DO_C99_MATH=y
WARNINGS="-Wall"
KERNEL_SOURCE="$(KERNEL_SOURCE_DIRECTORY)"
UCLIBC_UCLINUX_BROKEN_MUNMAP=y
EXCLUDE_BRK=y
C_SYMBOL_PREFIX=""
HAVE_DOT_CONFIG=y

#
# General Library Settings
#
# HAVE_NO_PIC is not set
# DOPIC is not set
# HAVE_NO_SHARED is not set
ARCH_HAS_NO_LDSO=y
# UCLIBC_CTOR_DTOR is not set
# HAS_NO_THREADS is not set
UCLIBC_HAS_THREADS=y
# PTHREADS_DEBUG_SUPPORT is not set
# UCLIBC_HAS_LFS is not set
MALLOC=y
# MALLOC_SIMPLE is not set
# MALLOC_STANDARD is not set
# MALLOC_GLIBC_COMPAT is not set
# UCLIBC_DYNAMIC_ATEXIT is not set
HAS_SHADOW=y
UNIX98PTY_ONLY=y
ASSUME_DEVPTS=y
UCLIBC_HAS_TM_EXTENSIONS=y
UCLIBC_HAS_TZ_CACHING=y
UCLIBC_HAS_TZ_FILE=y
UCLIBC_HAS_TZ_FILE_READ_MANY=y
UCLIBC_TZ_FILE_PATH="/etc/TZ"

#
# Networking Support
#
# UCLIBC_HAS_IPV6 is not set
UCLIBC_HAS_RPC=y
UCLIBC_HAS_FULL_RPC=y

#
# String and Stdio Support
#
UCLIBC_HAS_STRING_GENERIC_OPT=y
UCLIBC_HAS_STRING_ARCH_OPT=y
UCLIBC_HAS_CTYPE_TABLES=y
UCLIBC_HAS_CTYPE_SIGNED=y
UCLIBC_HAS_CTYPE_UNSAFE=y
# UCLIBC_HAS_CTYPE_CHECKED is not set
# UCLIBC_HAS_CTYPE_ENFORCED is not set
UCLIBC_HAS_WCHAR=y
# UCLIBC_HAS_LOCALE is not set
# UCLIBC_HAS_HEXADECIMAL_FLOATS is not set
# UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
# UCLIBC_HAS_SCANF_GLIBC_A_FLAG is not set
# UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set
# UCLIBC_HAS_STDIO_BUFSIZ_256 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_512 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set
# UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set
UCLIBC_HAS_STDIO_BUFSIZ_4096=y
# UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set
# UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set
UCLIBC_HAS_STDIO_GETC_MACRO=y
UCLIBC_HAS_STDIO_PUTC_MACRO=y
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
# UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE is not set
# UCLIBC_HAS_GLIBC_CUSTOM_STREAMS is not set
# UCLIBC_HAS_PRINTF_M_SPEC is not set
UCLIBC_HAS_ERRNO_MESSAGES=y
# UCLIBC_HAS_SYS_ERRLIST is not set
UCLIBC_HAS_SIGNUM_MESSAGES=y
# UCLIBC_HAS_SYS_SIGLIST is not set
UCLIBC_HAS_GNU_GETOPT=y

#
# Big and Tall
#
UCLIBC_HAS_REGEX=y
# UCLIBC_HAS_WORDEXP is not set
UCLIBC_HAS_FTW=y
UCLIBC_HAS_GLOB=y

#
# Library Installation Options
#
RUNTIME_PREFIX="/"
DEVEL_PREFIX="/usr/"

#
# uClibc security related options
#
# UCLIBC_SECURITY is not set

#
# uClibc development/debugging options
#
# DODEBUG is not set
# DOASSERTS is not set
# UCLIBC_MALLOC_DEBUGGING is not set
# UCLIBC_MJN3_ONLY is not set

Alle 08:46, lunedì 21 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 39 lines
Quoted 8 lines · Mike Frysinger
Quoted 7 lines · Mike Frysinger
Quoted 6 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2- fd e- glibc.c:291: undefined reference to `dl_iterate_phdr'

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

How can I solve.
Any suggestion will be appreciated.

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.

and more importantly, what exactly are you doing
-mike

Hi Mike,
I think that Fabio is trying to linking statically a C++ application against uClibc. If so, (Fabio please clarify), the problem is extactly the same
I posted on uClibc list last week (mmove _dl_iterate_phdr from libdl.a to libc.a).

I have a already fixed it for nptl/sh4 branch... I'm just now merging the patch
for the uClibc branch and post it for a wider review on uClibc.

I'll put Fabio into the loop.. anyway Fabio should post his full command line
used to build/link his application.

Cheers,
Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini
#5 lore raw
In reply to Mike Frysinger

This is the error
make[2]: Entering directory /home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o c++1stApp.elf2flt: In function _Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2-fde-glibc.c:291:
undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build'
make: *** [c++1stApp] Error 2

Alle 08:46, lunedì 21 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 35 lines
Quoted 8 lines · Mike Frysinger
Quoted 7 lines · Mike Frysinger
Quoted 6 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2- fd e- glibc.c:291: undefined reference to `dl_iterate_phdr'

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

How can I solve.
Any suggestion will be appreciated.

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.

and more importantly, what exactly are you doing
-mike

Hi Mike,
I think that Fabio is trying to linking statically a C++ application against uClibc. If so, (Fabio please clarify), the problem is extactly the same
I posted on uClibc list last week (mmove _dl_iterate_phdr from libdl.a to libc.a).

I have a already fixed it for nptl/sh4 branch... I'm just now merging the patch
for the uClibc branch and post it for a wider review on uClibc.

I'll put Fabio into the loop.. anyway Fabio should post his full command line
used to build/link his application.

Cheers,
Carmelo

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini
#6 lore raw
In reply to Mike Frysinger

Sorry Carmelo,
could you explain me better how you solved the problem? Regards

Alle 08:46, lunedì 21 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 39 lines
Quoted 8 lines · Mike Frysinger
Quoted 7 lines · Mike Frysinger
Quoted 6 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2- fd e- glibc.c:291: undefined reference to `dl_iterate_phdr'

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

How can I solve.
Any suggestion will be appreciated.

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.

and more importantly, what exactly are you doing
-mike

Hi Mike,
I think that Fabio is trying to linking statically a C++ application against uClibc. If so, (Fabio please clarify), the problem is extactly the same
I posted on uClibc list last week (mmove _dl_iterate_phdr from libdl.a to libc.a).

I have a already fixed it for nptl/sh4 branch... I'm just now merging the patch
for the uClibc branch and post it for a wider review on uClibc.

I'll put Fabio into the loop.. anyway Fabio should post his full command line
used to build/link his application.

Cheers,
Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini
#7 lore raw
In reply to Mike Frysinger
Quoted 5 lines · Fabio Giovagnini

Sorry Carmelo,
could you explain me better how you solved the problem? Regards

There is a problem into uClibc when statically linking a C++ application, but it's not clear if this is what you are trying to do.... even if the output
is the same as in my case.
So you should attach the whole command line used to build you app, further the verbose output (using -v)
could be useful.

Carmelo

Quoted 47 lines

Alle 08:46, lunedì 21 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 43 lines
Quoted 10 lines · Mike Frysinger
Quoted 8 lines · Mike Frysinger
Quoted 6 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2- fd e- glibc.c:291: undefined reference to `dl_iterate_phdr'

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines

How can I solve.
Any suggestion will be appreciated.

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.

and more importantly, what exactly are you doing
-mike

Hi Mike,
I think that Fabio is trying to linking statically a C++ application against uClibc. If so, (Fabio please clarify), the problem is extactly the same
I posted on uClibc list last week (mmove _dl_iterate_phdr from libdl.a to libc.a).

I have a already fixed it for nptl/sh4 branch... I'm just now merging the patch
for the uClibc branch and post it for a wider review on uClibc.

I'll put Fabio into the loop.. anyway Fabio should post his full command line
used to build/link his application.

Cheers,
Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#8 lore raw
In reply to Mike Frysinger

You understood properly about what I have been trying to do. Iwas trying to
link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory /home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]: Entering directory /home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp'
sh-linux-g++ -m3e -mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp
Reading specs from
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/spe
cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix
gcc version 3.4.6
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-linux/3.4.6
/cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase
main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory "/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/include" ignoring nonexistent directory "/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/..
/../../../sh-linux/include" #include "..." search starts here:
#include <...> search starts here:
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/../
../../../include/c++/3.4.6
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/../
../../../include/c++/3.4.6/sh-linux
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/../
../../../include/c++/3.4.6/backward
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/inc
lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/../
../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb
-Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2-fde-gl ibc.c:291: undefined reference to `dl_iterate_phdr' collect2: ld returned 1
exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build'
make: *** [c++1stApp] Error 2

Thanks a lot and best regards

Alle 18:14, lunedì 21 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 13 lines
Quoted 3 lines · Fabio Giovagnini

Sorry Carmelo,
could you explain me better how you solved the problem? Regards

There is a problem into uClibc when statically linking a C++ application, but it's not clear if this is what you are trying to do.... even if the output
is the same as in my case.
So you should attach the whole command line used to build you app, further the verbose output (using -v)
could be useful.

Quoted 42 lines

Carmelo

Quoted 40 lines

Alle 08:46, lunedì 21 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 39 lines
Quoted 8 lines · Mike Frysinger
Quoted 7 lines · Mike Frysinger
Quoted 6 lines · Fabio Giovagnini

I have such a problem with.
sh-uclibc-g++ 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw 2- fd e- glibc.c:291: undefined reference to `dl_iterate_phdr'

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

How can I solve.
Any suggestion will be appreciated.

a one line error isnt exactly useful ... you didnt say what version of uClibc you're using or what you're using for a build system.

and more importantly, what exactly are you doing
-mike

Hi Mike,
I think that Fabio is trying to linking statically a C++ application against uClibc. If so, (Fabio please clarify), the problem is extactly the same
I posted on uClibc list last week (mmove _dl_iterate_phdr from libdl.a to libc.a).

I have a already fixed it for nptl/sh4 branch... I'm just now merging the patch
for the uClibc branch and post it for a wider review on uClibc.

I'll put Fabio into the loop.. anyway Fabio should post his full command line
used to build/link his application.

Cheers,
Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

-------------------------------------------------------

#9 lore raw
In reply to Mike Frysinger
Quoted 54 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to
link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory /home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]: Entering directory /home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp'
sh-linux-g++ -m3e -mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp
Reading specs from
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/spe
cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix
gcc version 3.4.6
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-linux/3.4.6
/cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase
main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory "/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/include" ignoring nonexistent directory "/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/..
/../../../sh-linux/include" #include "..." search starts here:
#include <...> search starts here:
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/../
../../../include/c++/3.4.6
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/../
../../../include/c++/3.4.6/sh-linux
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/../
../../../include/c++/3.4.6/backward
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/inc
lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238
/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/../
../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb
-Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2-fde-gl ibc.c:291: undefined reference to `dl_iterate_phdr' collect2: ld returned 1
exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build'
make: *** [c++1stApp] Error 2

Quoted 2 lines

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

See if the work-around works for you.

Carmelo

#10 lore raw
In reply to Mike Frysinger

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 11 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP
data for building the minimal sysstem?

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 113 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 77 lines
Quoted 64 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory /home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]: Entering directory /home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++ -m3e -mb -v
-DGNU_SOURCE -Wall -c -o main.o main.cpp Reading specs from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/ spe cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target
--target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-linux/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory
"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/include" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6 /.. /../../../sh-linux/include" #include "..." search starts here:
#include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3.4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr' collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build'
make: *** [c++1stApp] Error 2

Quoted 1 line

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 7 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw
In reply to Mike Frysinger

Ok, so to solve my problem of linking statically a c++ application with uclibc I need to move the function
dl_iterate_phdr
form
libdl
to libc
ar Carmelo suggest.
Is it correct?

Alle 10:34, martedì 22 gennaio 2008, Kieran Bingham ha scritto:

Quoted 145 lines

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 11 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP data for building the minimal sysstem?

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 117 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 83 lines
Quoted 70 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]:
Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++ -m3e
-mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp Reading specs from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ spe cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target
--target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-linu x/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/include" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3 .4.6 /.. /../../../sh-linux/include" #include "..." search starts
here: #include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o
c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw 2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make: *** [c++1stApp] Error 2

Quoted 1 line

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 7 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini
#12 lore raw
In reply to Mike Frysinger
Quoted 6 lines · Kieran Bingham

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Correct, there's no plan to support shared flat. Shared libraries via ELF FDPIC will be forthcoming, and we'll keep uClibc updated as that work moves along. That's not to say that shared flat can't be made to work, we simply have no plans of supporting it. If someone else wants to work on this, there's no technical reason why we can't support it.

#13 lore raw
In reply to Mike Frysinger
Quoted 9 lines · Fabio Giovagnini

Ok, so to solve my problem of linking statically a c++ application with uclibc I need to move the function
dl_iterate_phdr
form
libdl
to libc
ar Carmelo suggest.
Is it correct?

Yes, you should.. but I suggest you waiting for the the patched uClibc.

I could suggest another work-around. You may patch your gcc to use the generic
unwind implementation instead unwind-dw2-fde instead of the glibc one unwind-dw2-fde-glibc.
Patch gcc/config/t-linux (from gcc source) changing the line

# Use unwind-dw2-fde-glibc
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \

with
# Use unwind-dw2-fde
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \

This temporary work-around worked for me before fixing uClibc. Generic unwind-dw2-fde doesn't use the _dl_iterate_phdr.

Carmelo

Quoted 155 lines

Alle 10:34, martedì 22 gennaio 2008, Kieran Bingham ha scritto:

Quoted 150 lines

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 6 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"
Quoted 6 lines

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP data for building the minimal sysstem?

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 120 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 84 lines
Quoted 70 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]:
Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++ -m3e
-mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp Reading specs from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ spe cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target
--target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-linu x/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/include" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3 .4.6 /.. /../../../sh-linux/include" #include "..." search starts
here: #include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o
c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw 2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make: *** [c++1stApp] Error 2

Quoted 2 lines

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 8 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#14 lore raw
In reply to Mike Frysinger

I'll try ASAP and keep you informed.

Reagards.

Alle 11:13, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 181 lines
Quoted 8 lines · Fabio Giovagnini

Ok, so to solve my problem of linking statically a c++ application with uclibc I need to move the function
dl_iterate_phdr
form
libdl
to libc
ar Carmelo suggest.
Is it correct?

Yes, you should.. but I suggest you waiting for the the patched uClibc.

I could suggest another work-around. You may patch your gcc to use the generic
unwind implementation instead unwind-dw2-fde instead of the glibc one unwind-dw2-fde-glibc.
Patch gcc/config/t-linux (from gcc source) changing the line

# Use unwind-dw2-fde-glibc
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \

with
# Use unwind-dw2-fde
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \

This temporary work-around worked for me before fixing uClibc. Generic unwind-dw2-fde doesn't use the _dl_iterate_phdr.

Carmelo

Quoted 146 lines

Alle 10:34, martedì 22 gennaio 2008, Kieran Bingham ha scritto:

Quoted 145 lines

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 11 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP data for building the minimal sysstem?

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 117 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 83 lines
Quoted 70 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]:
Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++ -m3e
-mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp Reading specs from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ spe cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target
--target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-linu x/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp

(quoted diff) +0 -2
-quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall
-version -o /tmp/ccik376j.s ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/include" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3 .4.6 /.. /../../../sh-linux/include" #include "..." search starts
here: #include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o
c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw 2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make: *** [c++1stApp] Error 2

Quoted 1 line

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 7 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini
#15 lore raw
In reply to Mike Frysinger

Now following the suggetion of Carmelo, I got a working gcc / g++ - uclibc based tool-chian for my sh7203 based board.
About libiberty compilation I had a lot of problems related to the missing of target specifig compiling option (-mb, -m3e, ...) at the moment of cross compiling of the librery.
I solved the problem manually into the make file, but each time you reconfigure the problem appears again obviusly.
I can compress the tollchain source dir ad put on our fpt server. I' not so smart doing patches and I think it is better that a guy starter than me gives a look at my work before considering it good also for others.

Keiram let me know if you like to download from our server so that a send you username and passwrod for a temporary account.

P.S.
I got on the trget Hello World!!! in c++.
This give me the capabiliti of developing on target usign alse c++ GUI framework based on libSDL.org

Best regards.

Alle 10:34, martedì 22 gennaio 2008, Kieran Bingham ha scritto:

Quoted 145 lines

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 11 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP data for building the minimal sysstem?

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 117 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 83 lines
Quoted 70 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]:
Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++ -m3e
-mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp Reading specs from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ spe cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target
--target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-linu x/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/include" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3 .4.6 /.. /../../../sh-linux/include" #include "..." search starts
here: #include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o
c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw 2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make: *** [c++1stApp] Error 2

Quoted 1 line

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 7 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini
#16 lore raw
In reply to Mike Frysinger

Definitively I have mate a tar.bz2 with gcc-3.4.6 modified to mak it able to build properly on top of binutils-2.17 (from sh7203-uclinux-1.4 of MPC Data) and on uClibc-0.9.27-sh2 form same source.

The only problem stiill present is I have to modify the files build/stage/gcc/sh-linux/pic/libiberty/Mikefole to add ac CC line -m4 and
The only problem stiill present is I have to modify the files build/stage/gcc/sh-linux/pic/mb/libiberty/Mikefole to add ac CC line -m4

otherwise I get an assembler error.

But for my purpouse the toolchain work; I have benn able to compile a very sample application based on SDL and GUIlib (you can check on libsdl.org.) GUIlib a a c++ framework for building a graphical application. The app is 540 kbyte, so also the size is good for me.

I think havign c++ working on such a target is a very usefull think.

Let me know if you like to download the tar.bz2 from my server. If yes I'll open a tempiorary account and I send you all the necessary infos.

Best reagrds

Alle 20:50, mercoledì 23 gennaio 2008, Fabio Giovagnini ha scritto:

Quoted 168 lines

Now following the suggetion of Carmelo, I got a working gcc / g++ - uclibc based tool-chian for my sh7203 based board.
About libiberty compilation I had a lot of problems related to the missing of target specifig compiling option (-mb, -m3e, ...) at the moment of cross compiling of the librery.
I solved the problem manually into the make file, but each time you reconfigure the problem appears again obviusly.
I can compress the tollchain source dir ad put on our fpt server. I' not so smart doing patches and I think it is better that a guy starter than me gives a look at my work before considering it good also for others.

Keiram let me know if you like to download from our server so that a send you username and passwrod for a temporary account.

P.S.
I got on the trget Hello World!!! in c++.
This give me the capabiliti of developing on target usign alse c++ GUI framework based on libSDL.org

Best regards.

Alle 10:34, martedì 22 gennaio 2008, Kieran Bingham ha scritto:

Quoted 146 lines

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 11 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP data for building the minimal sysstem?

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 118 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 84 lines
Quoted 71 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]:
Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++ -m3e
-mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp Reading specs
from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/
3. 4.6/ spe cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target
--target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-li nu x/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp

(quoted diff) +0 -2
-quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall
-version -o /tmp/ccik376j.s ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/includ e" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux /3 .4.6 /.. /../../../sh-linux/include" #include "..." search starts
here: #include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/
3. 4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/
3. 4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/
3. 4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/
3. 4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/
3. 4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o
c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind- dw 2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make: *** [c++1stApp] Error 2

Quoted 1 line

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 7 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini
#17 lore raw
In reply to Mike Frysinger

Yes, FTP access would be appreciated.

E-Mail the details privately to my work address if you could please? [email protected]

I'll try and fix the autoconfigure issue you are having and integrate it into the SH7203 build scripts, then get an update on the website when I can.

--
Cheers
Kieran

Quoted 185 lines · Fabio Giovagnini

Now following the suggetion of Carmelo, I got a working gcc / g++ - uclibc based tool-chian for my sh7203 based board.
About libiberty compilation I had a lot of problems related to the missing of target specifig compiling option (-mb, -m3e, ...) at the moment of cross compiling of the librery.
I solved the problem manually into the make file, but each time you reconfigure the problem appears again obviusly.
I can compress the tollchain source dir ad put on our fpt server. I' not so smart doing patches and I think it is better that a guy starter than me gives a look at my work before considering it good also for others.

Keiram let me know if you like to download from our server so that a send you username and passwrod for a temporary account.

P.S.
I got on the trget Hello World!!! in c++.
This give me the capabiliti of developing on target usign alse c++ GUI framework based on libSDL.org

Best regards.

Alle 10:34, martedì 22 gennaio 2008, Kieran Bingham ha scritto:

Quoted 20 lines

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 11 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP data for building the minimal sysstem?

Quoted 125 lines

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 117 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 83 lines
Quoted 70 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]:
Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++ -m3e
-mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp Reading specs from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ spe cs Configured with:
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target
--target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh-linu x/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/include" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3 .4.6 /.. /../../../sh-linux/include" #include "..." search starts
here: #include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linux/3. 4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o
c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwind-dw 2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make: *** [c++1stApp] Error 2

Quoted 1 line

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 7 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

#18 lore raw
In reply to Mike Frysinger

Ok.
I'll send you infos as soon as it will be availables.

Regards

Alle 00:47, giovedì 24 gennaio 2008, Kieran Bingham ha scritto:

Quoted 199 lines

Yes, FTP access would be appreciated.

E-Mail the details privately to my work address if you could please? [email protected]

I'll try and fix the autoconfigure issue you are having and integrate it into the SH7203 build scripts, then get an update on the website when I can.

--
Cheers
Kieran

Quoted 185 lines · Fabio Giovagnini

Now following the suggetion of Carmelo, I got a working gcc / g++ - uclibc based tool-chian for my sh7203 based board.
About libiberty compilation I had a lot of problems related to the missing of target specifig compiling option (-mb, -m3e, ...) at the moment of cross compiling of the librery.
I solved the problem manually into the make file, but each time you reconfigure the problem appears again obviusly.
I can compress the tollchain source dir ad put on our fpt server. I' not so smart doing patches and I think it is better that a guy starter than me gives a look at my work before considering it good also for others.

Keiram let me know if you like to download from our server so that a send you username and passwrod for a temporary account.

P.S.
I got on the trget Hello World!!! in c++.
This give me the capabiliti of developing on target usign alse c++ GUI framework based on libSDL.org

Best regards.

Alle 10:34, martedì 22 gennaio 2008, Kieran Bingham ha scritto:

Quoted 20 lines

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 11 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in
extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP data for building the minimal sysstem?

Quoted 127 lines

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 119 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 85 lines
Quoted 72 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]:
Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++
-m3e -mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp Reading
specs from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ spe cs Configured with:

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh- linu x/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/incl ude" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-lin ux/3 .4.6 /.. /../../../sh-linux/include" #include "..." search starts here: #include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwin d-dw 2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make: *** [c++1stApp] Error 2

Quoted 1 line

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 7 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini
#19 lore raw
In reply to Mike Frysinger

Hi Kieran, did you receive all the suff to update the toolchain?

Let me know.

Thanks

Alle 00:47, giovedì 24 gennaio 2008, Kieran Bingham ha scritto:

Quoted 204 lines

Yes, FTP access would be appreciated.

E-Mail the details privately to my work address if you could please? [email protected]

I'll try and fix the autoconfigure issue you are having and integrate it into the SH7203 build scripts, then get an update on the website when I can.

--
Cheers
Kieran

Quoted 181 lines · Fabio Giovagnini

Now following the suggetion of Carmelo, I got a working gcc / g++ - uclibc based tool-chian for my sh7203 based board.
About libiberty compilation I had a lot of problems related to the missing of target specifig compiling option (-mb, -m3e, ...) at the moment of cross compiling of the librery.
I solved the problem manually into the make file, but each time you reconfigure the problem appears again obviusly.
I can compress the tollchain source dir ad put on our fpt server. I' not so smart doing patches and I think it is better that a guy starter than me gives a look at my work before considering it good also for others.

Keiram let me know if you like to download from our server so that a send you username and passwrod for a temporary account.

P.S.
I got on the trget Hello World!!! in c++.
This give me the capabiliti of developing on target usign alse c++ GUI framework based on libSDL.org

Best regards.

Alle 10:34, martedì 22 gennaio 2008, Kieran Bingham ha scritto:

Quoted 20 lines

Hi Fabio,

The SH2/SH2a does not have any support for shared librarys yet. I think its something renesas are thinking about but they haven't got to yet.

This was a problem we hit while working on the board too.

Quoted 11 lines

3) I looked for ARCH_HAS_NO_LDSO and I found in
extra/Configs/Config.sh config CONFIG_SH2

        select ARCH_HAS_NO_MMU
        select ARCH_HAS_NO_LDSO
        bool "SH2"

so I got the answer to my question.

Well.
Setting ARCH_HAS_NO_LDSO is needed by my sh27203 target or is a choice of MCP data for building the minimal sysstem?

Quoted 127 lines

No, this was not a choice of MPC Data. We didn't change anything in that uClibc source tree.

Carmello: What is this `dl_iterate_phdr' - is it something that is part of dynamic linking / shared libraries?
--
Kieran

Quoted 119 lines

Thanks a lot.

Ciao

Alle 08:58, martedì 22 gennaio 2008, Carmelo AMOROSO ha scritto:

Quoted 85 lines
Quoted 72 lines · Fabio Giovagnini

You understood properly about what I have been trying to do. Iwas trying to link a simple c++ application staticxally using uclibc.

This is the output you are asking for.
If it is not enogh tell me what to add more.

fgiovagnini@aurio02:~/sh7203-uClinux-1.4/build> make c++1stApp make -f Makefile.c++1stApp
make[1]: Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make -e -C /home/fgiovagnini/sh7203-uClinux-1.4/build/../c++1stApp make[2]:
Entering directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' sh-linux-g++
-m3e -mb -v -DGNU_SOURCE -Wall -c -o main.o main.cpp Reading
specs from

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ spe cs Configured with:

/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/configure --prefix=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --target=sh-linux --with-sysroot=/home/fgiovagnini/sh7203-uClinux-1.4/build/target --enable-languages=c,c++ --disable-shared Thread model: posix gcc version 3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/libexec/gcc/sh- linu x/3. 4.6 /cc1plus -quiet -v -D_GNU_SOURCE -DGNU_SOURCE main.cpp -quiet -dumpbase main.cpp -m3e -mb -auxbase-strip main.o -Wall -version -o /tmp/ccik376j.s ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/local/incl ude" ignoring nonexistent directory

"/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-lin ux/3 .4.6 /.. /../../../sh-linux/include" #include "..." search starts here: #include <...> search starts here:

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ ../ ../../../include/c++/3.4.6

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ ../ ../../../include/c++/3.4.6/sh-linux

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ ../ ../../../include/c++/3.4.6/backward

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ inc lude /home/fgiovagnini/sh7203-uClinux-1.4/build/target/usr/include End of search list.
GNU C++ version 3.4.6 (sh-linux)
compiled by GNU C version 4.1.0 (SUSE Linux).
GGC heuristics: --param ggc-min-expand™ --param ggc-min-heapsize9238

/home/fgiovagnini/sh7203-uClinux-1.4/build/target/lib/gcc/sh-linu x/3. 4.6/ ../ ../../../sh-linux/bin/as -big -o main.o /tmp/ccik376j.s sh-linux-g++ -m3e -mb -Wl,-EB -Wl,-elf2flt=-s65536 -o c++1stApp main.o c++1stApp.elf2flt: In function `_Unwind_Find_FDE':
/home/fgiovagnini/sh7203-uClinux-1.4/build/../gcc-3.4.6/gcc/unwin d-dw 2-fd e-gl ibc.c:291: undefined reference to `dl_iterate_phdr'
collect2: ld returned 1 exit status
make[2]: *** [c++1stApp] Error 1
make[2]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/c++1stApp' make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/fgiovagnini/sh7203-uClinux-1.4/build' make: *** [c++1stApp] Error 2

Quoted 1 line

Thanks a lot and best regards

As a work-around, you may try to arrange your makefile to link statically against libdl.a where actually _dl_iterate_phdr is defined. The final solution consists of moving the _dl_iterate_phdr from libdl.a to libc.a,
but it needs some other changes. I've already have a working solution for uClibc-nptl
for sh4, but this is still missing from the trunk.
I'm working to merge it to trunk asas. Then you need to use the latest uClibc.

Quoted 7 lines

See if the work-around works for you.

Carmelo
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

aurion.giovagnini
-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

Quoted 4 lines

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini

-
To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 14 lines
Fabio Giovagnini

Aurion s.r.l.
via degli orti 11,
40050 Funo di Argelato (BO)
P.I e C.F.
00885711200
Tel. +39.335.8350919
Fax +39.051.8659009

www.aurion-tech.com

account telefono VoIP skype (www.skype.com):
aurion.giovagnini