Compiling with gcc options

Hi,
I am trying to convert a standalone 'C' library code consisting of ~ 100 h files + 200 c files into 'swc' and run it.
The starting point is a c file called jaz.c.
If I compile using command --> gcc jaz.c -O3 -Wall -swc -o jaz.swc, the swc file which is generated is very small size of 141 kb, and the application does not run.
So I decided to change the strategy. I used the following command first to create '.o' files -->
gcc -I. xfname.c                             //'xfname.c' gets converted to 'xfname.o'
-g -c                                             //various compiler options starts
-DW_NOTACC
-DSSA_CPU_X86_64=1
-DSSA_CPU_LITTLEENDIAN=1
-DSSA_CPU_64BIT_LONG=1
-DSSA_CPU_64BIT_PTR=1
-DSSA_OS_UNIX=1
-DSSA_OS_LINUX_ANY=1
-DSSA_OS_UNIX_LAX=1
-D_XOPEN_SOURCE=500
-D_BSD_SOURCE
-D_SVID_SOURCE
-DEJSAS=1
-DFMTDLL_COMPILE=1
-IC:/FormatDocs/Standalone/TKLAX/h       //Path to various 'h' files/
-IC:/FormatDocs/Standalone/TKPOS/h       //  -- " " ---
-IC:/FormatDocs/Standalone/TKPKT/h
-IC:/FormatDocs/Standalone/LAX/h
-IC:/FormatDocs/Standalone/A64/h
-IC:/FormatDocs/Standalone/UNX/h
After running the command I get ~ 200 .o file.
Then I used the command
gcc -I. jaz.c
xfload.o
xfname.o
--                                    //All 200 '.o' files included here
-O3 -Wall -swc -o jaz.swc
By this strategy the compiler generates a huge swc file of ~ 515 kb.
But when I run this application the Flash AS error occours
TypeError: Error #1006: value is not a function.
at cmodule.jaz::FSM_format/work()[1344.achacks.as:68077]
at <anonymous>()[1344.achacks.as:3341]
at <anonymous>()[1344.achacks.as:3902]
I wanted to ask 2 questions.
- Is this way of 2 stage gcc compiling (1st gcc creates .o file, and next gcc creates swc) correct.
- What is the meaning of this run time error  "value is not a function."
Thanks,
-Yogen

Alright that did work for what I intended it to do - i.e. have gcc and make available in /usr/bin and functionning correctly. Now Xcode in itself however ... crashes everytime upon opening. Not that I need it now, but I certainly will someday - and not in that long a time, in all probability. It says it could not load the iPhone emulator plugin - and it is just the last of many errors, it says. Check Xcode's crash details out here. Thanks a lot already though !

Similar Messages

  • Bad performance of PARI when compiling with GCC for SPARC 4.2.0

    Hi,
    I've compiled pari (2.3.3) with gcc 4.2.0 and with an old gcc 3.3.2 on a Sun Fire V240 and Solaris 10.
    The performance of pari compiled with gcc 4.2.0 is terrible. I've tried it with '-O3 -fast' and without this flags with the same result.
    First compiled with gcc 3.3.2 without any special CFLAGS and run make bench:
    * Testing objets for gp-sta..TIME=4 for gp-dyn..TIME=4
    * Testing analyz for gp-sta..TIME=82 for gp-dyn..TIME=80
    * Testing number for gp-sta..TIME=63 for gp-dyn..TIME=62
    * Testing polyser for gp-sta..TIME=19 for gp-dyn..TIME=19
    * Testing linear for gp-sta..TIME=30 for gp-dyn..TIME=29
    * Testing elliptic for gp-sta..TIME=50 for gp-dyn..TIME=51
    * Testing sumiter for gp-sta..TIME=45 for gp-dyn..TIME=47
    * Testing graph for gp-sta..TIME=25 for gp-dyn..TIME=25
    * Testing program for gp-sta..TIME=94 for gp-dyn..TIME=94
    * Testing trans for gp-sta..TIME=228 for gp-dyn..TIME=225
    * Testing nfields for gp-sta..TIME=434 for gp-dyn..TIME=433
    +++ Total bench for gp-sta is 726
    +++ Total bench for gp-dyn is 722
    Then compiled with gcc 4.2.0 again without any special flags and run make bench:
    * Testing objets for gp-sta..TIME=4 for gp-dyn..TIME=4
    * Testing analyz for gp-sta..TIME=82 for gp-dyn..TIME=83
    * Testing number for gp-sta..TIME=62 for gp-dyn..TIME=65
    * Testing polyser for gp-sta..TIME=19 for gp-dyn..TIME=19
    * Testing linear for gp-sta..BUG [1686975] for gp-dyn..BUG [1608146]
    * Testing elliptic for gp-sta..TIME=50 for gp-dyn..TIME=52
    * Testing sumiter for gp-sta..TIME=51 for gp-dyn..TIME=50
    * Testing graph for gp-sta..TIME=28 for gp-dyn..TIME=28
    * Testing program for gp-sta..TIME=98 for gp-dyn..TIME=97
    * Testing trans for gp-sta..BUG [613000] for gp-dyn..BUG [606558]
    * Testing nfields for gp-sta..BUG [3648091] for gp-dyn..BUG [3716170]
    +++ [BUG] Total bench for gp-sta is 3029987
    +++ [BUG] Total bench for gp-dyn is 2958336
    Do anybody know this problem or can tell me what the problem could be?
    Thanks!!
    Rainer W.

    Here are the compiler options I used to compile it with gcc4.
    C compiler is /usr/local/gcc4/gcc/bin/gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer
    Executable linker is /usr/local/gcc4/gcc/bin/gcc -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer
    Dynamic Lib linker is /usr/local/gcc4/gcc/bin/gcc -shared -mimpure-text $(CFLAGS) $(DLCFLAGS) -Wl,-G,-h,$(LIBPARI_SONAME)
    If I use the -fast option I get the same result may be a little bit worse.
    Here are some compilation lines:
    Making gp in Osolaris-sparcv9
    make[2]: Entering directory `/no_backup/pari/pari-2.3.3/Osolaris-sparcv9'
    File ../src/funclist not changed.
    ../config/genkernel ../src/kernel/sparcv8_micro/asm0-common.h ../src/kernel/sparcv8_micro/asm0.h > parilvl0.h
    cat ../src/kernel/none/tune.h ../src/kernel/none/int.h ../src/kernel/none/level1.h > parilvl1.h
    cat parilvl0.h parilvl1.h > pariinl.h
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/language -I/usr/local/include -o gp.o ../src/gp/gp.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/graph -o gp_init.o ../src/gp/gp_init.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I../src/language -I/usr/local/include -o gp_rl.o ../src/gp/gp_rl.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -DDL_DFLT_NAME=NULL -o highlvl.o ../src/gp/highlvl.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o whatnow.o ../src/gp/whatnow.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -I/usr/openwin/include -o plotX.o ../src/graph/plotX.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o anal.o ../src/language/anal.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o compat.o ../src/language/compat.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o default.o ../src/language/default.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o errmsg.o ../src/language/errmsg.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o es.o ../src/language/es.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o init.o ../src/language/init.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o intnum.o ../src/language/intnum.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o members.o ../src/language/members.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o sumiter.o ../src/language/sumiter.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o aprcl.o ../src/modules/aprcl.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o elldata.o ../src/modules/elldata.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o elliptic.o ../src/modules/elliptic.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o galois.o ../src/modules/galois.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o groupid.o ../src/modules/groupid.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o kummer.o ../src/modules/kummer.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o mpqs.o ../src/modules/mpqs.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o nffactor.o ../src/modules/nffactor.c
    /usr/local/gcc4/gcc/bin/gcc -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer -I. -I../src/headers -o part.o ../src/modules/part.c

  • Compiling with debug option

    How to give user Compiling with debug option, i have try to by giving grant debug any procedure and debug connect session but it failed.
    Any ideas?
    Edited by: rootsman on Jul 15, 2010 12:00 AM

    Post the error screenshot..
    eg:
    grant DEBUG CONNECT SESSION to username;
    grant DEBUG ANY PROCEDURE to username;
    Check the below explanation:
    DEBUGGING:
    DEBUG CONNECT SESSION
    Connect the current session to a debugger that uses the Java Debug Wire Protocol (JDWP).
    DEBUG ANY PROCEDURE
    Debug all PL/SQL and Java code in any database object; displayinformation on all SQL statements executed by the application
    Note: Granting this privilege is equivalent to granting the DEBUG object privilege on all applicable objects in the database.

  • Programming in C compiling with gcc

    Hi there,
    I've been working on this for a few days but can't seem to figure it out. I am taking an intro to programming class in which we are supposed to write command line C programs, to be compiled with gcc and tested on Linux's, specifically using Kate.
    I have installed Xcode and the Command Line Tools and have checked in xcode preferences and confirmed the install of command line tools worked. For some reason my "developer" folder is not where it should be, in usr.
    I know that v4 of Xcode works differently in this way but I am confused as to what this means for me and trying to write in C on my mac!
    Thanks everyone

    Xcode is a plain old OS X application now.
    There is no developer folder.

  • Help!Apache compiling with gcc in Solaris 10

    Greetings
    I am having problems with Apache 1.3.
    When I am running the script ./src/Configure my output is:
    #./Configure
    Using config file: Configuration
    Creating Makefile
    + configured for Solaris 2100 platform
    + setting C pre-processor to gcc -E
    + using "tr [a-z] [A-Z]" to uppercase
    + checking for system header files
    + adding selected modules
    ./helpers/TestCompile: make: not found
    + using builtin Expat
    ./Configure: make: not found
    + checking sizeof various data types
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    ./helpers/TestCompile: make: not found
    + doing sanity check on compiler and options
    ./helpers/TestCompile: make: not found
    ** A test compilation with your Makefile configuration
    ** failed. The below error output from the compilation
    ** test will give you an idea what is failing. Note that
    ** Apache requires an ANSI C Compiler, such as gcc.
    ======== Error Output for sanity check ========
    ./helpers/TestCompile: make: not found
    ============= End of Error Report =============
    Aborting!
    I am root, my PATH is
    /usr/bin:/usr/ucb:/etc:/usr/local/bin:/opt/netscape:/usr/css/bin/:/bin:/usr/openwin/bin:/usr/sbin:/
    I am missing something stupid, I know but I can't find it!!!!Help please I am a newbie.
    I am curious. Has anyone been able to compile succesfully apache server with gcc in Solaris 10?
    Thanks,

    Thanks,
    It was only that.!!!
    But now I have the following problem, I can't create executables when I type make. The output is:
    when I am in the src/folder
    #make
    ===> regex
    <=== regex
    ===> os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> $i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== $i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    but when I am typing one step up is.
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    I am newbie with Solaris and gcc so I have no so much idea what is missing there.
    Thanks,
    Juan

  • Debugging servers with gdb and compiled with gcc

    I have trouble debugging my servers on Solaris.
    Setup: Solaris 8 (2.8?)
    [user@ ~]$ gcc -v
    Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/specs
    Configured with: ../configure disable-nls with-as=/usr/ccs/bin/as --with-
    ld=/usr/ccs/bin/ld
    Thread model: posix
    gcc version 3.2.3
    [ ~]$ gdb -v
    GNU gdb 5.0
    Copyright 2000 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "sparc-sun-solaris2.8".
    I can run the server, debug and step through the code, inspecting variables. But when i
    type "cont" to continue and let the server finish, what heppens is:
    The server finishes (bec i get my result back to the client)
    GDB hangs saying "Continue" and i wont get the GDB-promt back.
    I have to kill the gdb from the unixprompt
    Question: Has anyone tried to run and debug tuxedo servers using gcc and gdb?
    any input is of value even if someone has had success on linux with gcc and gdb.
    My guess is that it has to do with the threading of gdb and tuxedo that will not match.
    Mats Gårdstad Friberg
    Datarutin AB Sweden

    options=('debug' 'staticlibs')
    these are the options i have set in the PKGBUILD, i might try giving CFLAGS directly, but compiling libc on this old dualcore takes quite a bit of time unfortunately

  • Problem in compiling with -g option

    I am using forte5.1 compiler. While compiling my whole source code with -g option, for some of the files, the compilation is successfully but for some files I am getting en error as ">> Assertion (../link/dbg_stcomm.cc, line 271) while processing srsCallbacks.C at line 0. Error code 1. make:Fatal error". If I try to compile the whole source code without -g option my whole compilation is successfull. I have downloaded all the required patches for this. Previously I was using compiler 5.0 and I was not getting any error with -g option. Can u just tell me why am I facing this problem specifically with forte5.1 and not with 5.0. How can I resolve this problem so as to compile the whole source code with -g option?

    Hi,
    I think you will need patch:
    Patch-ID# 109490-01
    Synopsis: C++ 5.1: Patch for Forte Development 6 C++ compiler
    As it appears that you are hitting bug id # 4312608
    "Assertion: (../links/dbg_stcomm.cc, line 271)"
    Can you confirm whether you are having this patch by doing:
    "CC -V" or "showrev -p"
    Thanks,
    Gopinath.
    Sun - DTS.

  • Kdegraphics-3.2.2 needs a patch to compile with gcc-3.4

    Hi,
    I've tried to compile kdegraphics-3.2.2 with gcc-3.4 without succes, even after changing things in the PKGBUILD file. Just before I gave up I found this patch :-)
    Patch can be found here:
    http://bugs.gentoo.org/show_bug.cgi?id=48596
    I've downloaded the attachment and renamed it to 'v3.2.2-with-gcc-3.4.patch'.
    Just add the following line in PKGBUILD after 'cd $startdir/src/$pkgname-$pkgver'
    patch -p3 < ${startdir}/v3.2.2-with-gcc-3.4.patch

    make it an bug report

  • Cannot include Mfreadwrite.lib when compiling with gcc

    My makefile contains the Mfreadwrite.lib, but the liking fails. First it says it cannot find the lib, but then I copy it (.DLL and .LIB) in my local folder, but then it complains that the file format is unknown.
    Does anyone know what this issue might be?
    OS: Windows 8.1 Pro
    Compiler: Mingw32 gcc
    Thanks
     

    Hi,
    According to your description, I don't think this is Windows problem. It's more relate app development. You can access to MSDN Forum for further assistance with this problem:
    https://social.msdn.microsoft.com/Forums/en-US/home
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Compiling with GCC/makefile : apparent link edition fail

    Hello all Apple developers ,
    I have a slight GCC compiling issue (actually, a makefile one) : it says it can't find the header files for the standard llibraries, stdio and stdlib. What's up with that ? What am I missing to get it working ? I know I had to plaay around with the system a bit to get makefile anyway, but it should work ... Thanks in advance for your help !

    Alright that did work for what I intended it to do - i.e. have gcc and make available in /usr/bin and functionning correctly. Now Xcode in itself however ... crashes everytime upon opening. Not that I need it now, but I certainly will someday - and not in that long a time, in all probability. It says it could not load the iPhone emulator plugin - and it is just the last of many errors, it says. Check Xcode's crash details out here. Thanks a lot already though !

  • I can't compile with gcc Solaris 2.6

    I downloaded the binary gcc-3.0.1-sol26-sparc-local and I used the pkgadd command, but when I want to compile the tcpwrappers, the next messages is showed.
    ld: fatal: file values-Xa.o: cannot open file: No such file or directory
    ld: fatal: File processing errors. No output written to tcpd
    collect2: ld returned 1 exit status
    and my variables are:
    CC=gcc
    EDITOR=vi
    HOME=/export/home/usr/vreyes
    HZ=100
    LOGNAME=vreyes
    MAIL=/var/mail/vreyes
    MANPATH=/usr/local/man:/usr/man:/usr/local/X11/man
    PAGER=less
    PATH=/usr/local/bin:/bin:/usr/ccs/bin:/etc:/usr/etc:/usr/local/X11/bin:/usr/ucb:/usr/openwin/bin:/usr/local/etc:/usr/sbin
    PS1=#
    PWD=/export/home/usr/vreyes/tcp_wrappers_7.6
    SHELL=/bin/csh
    TERM=xterm
    TZ=Mexico/General
    USER=vreyes
    XAUTHORITY=/home/vreyes/.Xauthority
    LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/local/X11/lib:/usr/dt/lib:/usr/openwin/lib:/usr/ccs/lib

    first check if values-Xa.o exists ? I think this is where you'll find it : /usr/ccs/lib/
    I suspect your problem is that if you are using Makefiles etc they do not contain the full PATH to this binary/lib hence your error.
    If the above fails or is not appropriate check out http://gcc.gnu.org or do a search say using yahoo for "values-Xa.o" & "gcc" lots of hits !

  • Compiling with gcc-multilib

    Hello
    I was just about to compile a version of wine, as it works best with a program I am running.
    However, it required 32 bit devel libraries, so I installed multilib-devel.
    ./configure worked fine, however, running the "make" command posts command not found.
    Is there a symlink I have to make to get 'make' to appear as a command, so i can continue to compile wine?

    This might actually help:
    pacman -S make
    Greetings
    matse

  • "no symbolic information for "main" compile with -g option

    Hi I get the above message, and I'm sure that my make file specifies -g option. Does any one know what might be happening here?

    Hi I get the above message, and I'm sure that my make file specifies -g option. Does any one know what might be happening here?

  • Issue with gcc compiler installation

    Hi ,
    To install the C Compiler(gcc compiler) on Solaris 9.0 ,I unzipped the following tar files SUNW0gccfss.tar.bz2 and gccfss_src.tar.bz2 but after that when I type gcc ,I get that "SUNW0gccfss is not installed".
    Even I used cc command to compile the C Program but I get this error message "language optional software package not installed"
    Please advise.
    Thanks
    Bala

    For Sun Studio tools you can download from http://developers.sun.com/sunstudio/downloads/index.jsp . Note the "cc" is /usr/ucb/cc normal shell script which will pickup the sun studio compiler if its installed. If its not present then it throws the error messaget "language optional software package not installed"
    If you are looking for compiling with GCC. Grab hold of the Solaris Companion CD from http://www.sun.com/software/solaris/freeware/ and install the all the gcc releated . The CD has "installer" script to install all the development packages.

  • Compiling Apache 1.3 with gcc

    Hi all,
    I have trying to set up Apache server in Soalris 10, and to compile with gcc but I am having problems.
    The first part of ./configure --prefix=... is fine, but when I type make I am getting this:
    # make
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    # svcadm
    Usage: svcadm [-v] enable [-rt] {FMRI | pattern}...
    svcadm [-v] disable [-t] {FMRI | pattern}...
    svcadm [-v] restart {FMRI | pattern}...
    svcadm [-v] refresh {FMRI | pattern}...
    svcadm [-v] mark [-It] {degraded | maintenance} {FMRI | pattern}...
    svcadm [-v] clear {FMRI | pattern}...
    svcadm [-v] delegate restarter_FMRI {FMRI | pattern}...
    svcadm [-v] milestone [-d] milestone_FMRI
    # svcadm -v
    Usage: svcadm [-v] enable [-rt] {FMRI | pattern}...
    svcadm [-v] disable [-t] {FMRI | pattern}...
    svcadm [-v] restart {FMRI | pattern}...
    svcadm [-v] refresh {FMRI | pattern}...
    svcadm [-v] mark [-It] {degraded | maintenance} {FMRI | pattern}...
    svcadm [-v] clear {FMRI | pattern}...
    svcadm [-v] delegate restarter_FMRI {FMRI | pattern}...
    svcadm [-v] milestone [-d] milestone_FMRI
    # make
    ===> src
    ===> src/regex
    <=== src/regex
    ===> src/os/unix
    gcc -c -I../../os/unix -I../../include -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED `../../apaci` os.c
    In file included from /usr/include/sys/wait.h:24,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:292: error: parse error before '}' token
    /usr/include/sys/siginfo.h:294: error: parse error before '}' token
    /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
    /usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
    /usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
    /usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
    /usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
    /usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
    /usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
    /usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
    /usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
    /usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
    /usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
    /usr/include/sys/siginfo.h:426: error: parse error before '}' token
    /usr/include/sys/siginfo.h:428: error: parse error before '}' token
    /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
    /usr/include/sys/siginfo.h:437: error: parse error before '}' token
    In file included from /usr/include/sys/procset.h:24,
    from /usr/include/sys/wait.h:25,
    from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1079,
    from os.c:21:
    /usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
    In file included from ../../include/ap_config.h:1096,
    from os.c:21:
    /usr/include/signal.h:111: error: parse error before "siginfo_t"
    /usr/include/signal.h:113: error: parse error before "siginfo_t"
    *** Error code 1
    make: Fatal error: Command failed for target `os.o'
    Current working directory /web-download/apache_1.3.33/src/os/unix
    *** Error code 1
    The following command caused the error:
    for i in regex os/unix ap main lib modules; do \
    echo "===> src/$i"; \
    case ".Solaris 2100" in \
    .OS390 | .TPF) ( cd $i && make SDP='src/' OPTIM='') || exit 1;; \
    *) ( cd $i && make SDP='src/' CC='gcc' AUX_CFLAGS=' -DSOLARIS2=2100 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`' RANLIB='ranlib' OPTIM='') || exit 1;; \
    esac; \
    echo "<=== src/$i"; \
    done
    make: Fatal error: Command failed for target `subdirs'
    Current working directory /web-download/apache_1.3.33/src
    *** Error code 1
    The following command caused the error:
    case "xi86pc-sun-solaris2.2100" in \
    x*390*) C89STEPS="0xffffffff"; export C89STEPS;; \
    esac; \
    cd ./src; make SDP=src/ all
    make: Fatal error: Command failed for target `build-std'
    Current working directory /web-download/apache_1.3.33
    *** Error code 1
    The following command caused the error:
    make -f ./Makefile root= build-std
    make: Fatal error: Command failed for target `build'
    And I have no idea what is the problem. Has anyone experience the same?
    I am newbie so...
    Thanks,
    Juan

    Compiling Apache 1.3 with gcc on linux or unix? If you are using unix, I would be compiling with cc and not gcc. You have gcc set to compile using regular expressions and I believe that has to be specified during SunOS install as posix compliant.

Maybe you are looking for

  • Mail app opens every email in separate windows on launch

    I can't use my Mail app currently, as every time I launch the app, it starts opening every email I have ever received in cascade windows until the program freezes. Is there a way to reset Mail preferences or something? I don't have Time Machine worki

  • Z61m radio will not power on

    I don't use wireless often but when I tried today i could not get the radio to power on. The little light is on (blinks every 5 sec.) the icon has the red slash through it but when I go to Access Connection I can not turn the radio on. Same thing wit

  • ARE 1 FORM

    what is the need of ARE1 for why it is maintained how to do the configuration and how it will creat with refference to each invoice generated please tell me the SD setting and configuration. with regards subrat

  • REM Activity Backflush

    Hi All,     In repetetive manufacturing scenario when do the backflush for materials and activities I can see the material GI/GR through the movement type I have defined in REM profile where can I see what all re the activities that are backflushed.

  • Navigable Messages

    When I throw a field related error to the message controller in Web Dynpro, it is relatively easy for me to instruct the message to be cognizant of the error  location, so that clicking on the message will set focus to the offending element.  Is ther