LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Jeremy Bennett<jeremy.bennett@e...>
    Date: Fri Jul 11 09:08:35 CEST 2008
    Subject: [openrisc] How to make uClibc -- It always fails
    Top
    Hi Kobe,

    Just a thought. Have you also built Linux for OR32 first (that will
    generate the target specific headers) and are you picking up the headers
    from that Linux build when you make uClibc.

    I wonder if your setting of KERNEL_SOURCE is correct. I see you have it
    set to "/orp/tmp/or1k/uclinux/uClinux-2.0.x". I got uClibc to work using
    Linux 2.6.19 with the MoF patches and some extra patches of my own (not
    the old uClinux build on the OpenCores website). You might like to try
    using this instead (see the Embecosm appliation note 2 for how to build
    this).

    For reference I've pasted in my .config for uClibc, which worked in my
    build. I have my OR32 tools in /opt/or32/bin, which is on the start of
    my $PATH. You might like to cross check against your settings.

    Hope this helps.


    Jeremy

    #
    # 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_or32=y
    # TARGET_powerpc is not set
    # TARGET_sh is not set
    # TARGET_sh64 is not set
    # TARGET_sparc is not set
    # TARGET_v850 is not set
    # TARGET_x86_64 is not set

    #
    # Target Architecture Features and Options
    #
    HAVE_ELF=y
    TARGET_ARCH="or32"
    ARCH_HAS_C_SYMBOL_PREFIX=y
    CROSS="or32-uclinux-"
    CONFIG_OR32=y
    # ARCH_LITTLE_ENDIAN is not set
    # ARCH_BIG_ENDIAN is not set
    # ARCH_HAS_NO_MMU is not set
    ARCH_HAS_MMU=y
    UCLIBC_HAS_FLOATS=y
    # HAS_FPU is not set
    UCLIBC_HAS_SOFT_FLOAT=y
    # DO_C99_MATH is not set
    KERNEL_SOURCE="/home/jeremy/projects/openrisc/linux-2.6.19"
    C_SYMBOL_PREFIX="_"
    HAVE_DOT_CONFIG=y

    #
    # General Library Settings
    #
    # HAVE_NO_PIC is not set
    # DOPIC is not set
    HAVE_NO_SHARED=y
    ARCH_HAS_NO_LDSO=y
    DL_FINI_CRT_COMPAT=y
    # UCLIBC_CTOR_DTOR is not set
    HAS_NO_THREADS=y
    # UCLIBC_HAS_LFS is not set
    UCLIBC_STATIC_LDCONFIG=y
    # MALLOC is not set
    # MALLOC_SIMPLE is not set
    MALLOC_STANDARD=y
    # MALLOC_GLIBC_COMPAT is not set
    UCLIBC_DYNAMIC_ATEXIT=y
    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 is not set

    #
    # 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 is not set # UCLIBC_HAS_LOCALE is not set # UCLIBC_HAS_HEXADECIMAL_FLOATS is not set # UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set # USE_OLD_VFPRINTF 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_SHUTDOWN_ON_ABORT 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 is not set UCLIBC_HAS_GLOB=y # # Library Installation Options # RUNTIME_PREFIX="/opt/or32" DEVEL_PREFIX="/opt/or32" # # uClibc security related options # # UCLIBC_SECURITY is not set # # uClibc development/debugging options # CROSS_COMPILER_PREFIX="or32-uclinux-" # DODEBUG is not set # DOASSERTS is not set WARNINGS="-Wall" # UCLIBC_MJN3_ONLY is not set - Tel: +44 (1202) 416955 Cell: +44 (7970) 676050 SkypeID: jeremybennett Email: jeremy.bennett@e... Web: www.embecosm.com -----Original Message----- From: kobegpfan@y... Reply-To: List about OpenRISC project <openrisc@o...> To: openrisc@o... Subject: Re: [openrisc] How to make uClibc -- It always fails Date: Fri, 11 Jul 2008 03:35:07 +0200 (CEST) Hi, Rich and Jeremy Thanks for your response that's very helpful. I checked the cross tool chains (or32 binutils and gcc), I can assure it works fine. Then based on your both suggestion, especailly by following MOF-opencores-build3, I made uclibc again. The previous error disappeared .... But unfortunately, new error arose as I listed below. "or32-uclinux-"gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno- strict-aliasing -fno-builtin -nostdinc -D_LIBC -I../../include -I. -Os - funit-at-a-time -isystem /opt/or32-uclinux/lib/gcc/or32- uclinux/3.4.4/include -DNDEBUG -D_DL_FINI_CRT_COMPAT -c ptsname.c -o ptsname.o ptsname.c:86:3: #error "__UNIX98PTY_ONLY__ enabled but TIOCGPTN ioctl not supported by your kernel." ptsname.c: In function `ptsname_r': ptsname.c:71: warning: unused variable `ptyno' make[2]: *** [ptsname.o] Error 1 make[2]: Leaving directory `/orp/tmp/uClibc-0.9.28.3/libc/stdlib' make[1]: *** [_dir_stdlib] Error 2 make[1]: Leaving directory `/orp/tmp/uClibc-0.9.28.3/libc' make: *** [_dir_libc] Error 2 In MOF-opencores_build3, it is said that "If you happen to get some header errors in asm just go to those files and remove the '#include linux/config.h' since it is depracated." But this error seems have nothing to do with this hint. Actually I am a hardware engineer. You know it's really a hard work for me to debug it. I googled but found no useful information. I have no choice but assort to your help. Best regards, Kobe ----- Original Message ----- From: rich_daddio at yahoo.com<rich_daddio@y...> To: Date: Thu Jul 10 14:22:20 CEST 2008 Subject: [openrisc] How to make uClibc -- It always fails > Hi, > Check out: > http://www.meansoffreedom.com/opencores_build3.html > click on sampledotconfig either copy to .config it or duplicate the > feature set for a start. > We do not support PIC at this time so you are enabling a feature > not > supported. > Please let me know how you make out either on the list or via > rich_daddio at yahoo.com. > Thanks & Best Regards, > Rich d > ----- Original Message ----- > From: kobegpfan at yahoo.com<kobegpfan at y...> > To: > Date: Thu Jul 10 03:04:32 CEST 2008 > Subject: [openrisc] How to make uClibc -- It always fails > > I refered to several articles here and there. I used > > uClibc-0.9.28.3 and > > patched it with the 2 files released in meansoffreedom: > > (1) uClibc-0.9.28-or32-libc-support.bz2 > > (2) uClibc-0.9.28-or32-unified.bz2. > > And then I run "make menuconfig" to modify something > like > > this > > TARGET_ARCH="or32" > > KERNEL_SOURCE="/orp/tmp/or1k/uclinux/uClinux-2.0.x" > > CROSS="or32-uclinux-" > > RUNTIME_PREFIX="/opt/$(TARGET_ARCH)-uclinux" > > DEVEL_PREFIX="/opt/$(TARGET_ARCH)-uclinux" > > The above setting can be checked in .config file. > > Then I ran the following commands: > > (1)# ln -s extra/Configs/Config.or32.uclinux Config > > (2)# make all install > > But it stops with the following errors: > > make[3]: Entering directory > > `/orp/tmp/uClibc-0.9.28.3/libc/misc/regex' > > "or32-uclinux-"gcc -Wall -Wstrict-prototypes > > -Wno-trigraphs -fno- > > strict-aliasing -fno-builtin -nostdinc -D_LIBC > -I../../../include > > -I. - > > Os -funit-at-a-time -isystem /opt/or32-uclinux/lib/gcc/or32- > > uclinux/3.4.4/include -DNDEBUG -fPIC -c regex.c -o regex.o > > /tmp/cconHoRg.s: Assembler messages: > > /tmp/cconHoRg.s:3837: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3846: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3847: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3848: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3849: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3857: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3863: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3864: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3865: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:3866: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:5083: Error: operation combines symbols in > > different > > segments > > /tmp/cconHoRg.s:5084: Error: operation combines symbols in > > different > > segments > > make[3]: *** [regex.o] Error 1 > > make[3]: Leaving directory > > `/orp/tmp/uClibc-0.9.28.3/libc/misc/regex' > > make[2]: *** [_dir_regex] Error 2 > > make[2]: Leaving directory > `/orp/tmp/uClibc-0.9.28.3/libc/misc' > > make[1]: *** [_dir_misc] Error 2 > > make[1]: Leaving directory `/orp/tmp/uClibc-0.9.28.3/libc' > > make: *** [_dir_libc] Error 2 > > I don't know what's happening and how to fix it. Would you > please > > give > > me a hand? > > > > > > _______________________________________________ http://www.opencores.org/mailman/listinfo/openrisc

    ReferenceAuthor
    [openrisc] How to make uClibc -- It always failsKobegpfan

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.