Tagged: gcc Toggle Comment Threads | Keyboard Shortcuts

  • CG 5:04 pm on April 23, 2010 Permalink | Reply
    Tags: , gcc,   

    “problems in gcc” solved 

    After fussing about the compiler since yesterday and having nightmare last night about cannot finish the grad study before dec, apparently there’s nothing wrong with the compiler (hopefully). It’s only “typos”!

    Oh my! 😀 S**t happens. Especially during grad school 😀

    • Budi Rahardjo 5:21 am on April 24, 2010 Permalink | Reply

      grrrr …

      • Bobby 1:07 pm on April 24, 2010 Permalink | Reply

        paraaaah, makanya pakai editor yang rada bagusan, pake terminal mulu sih. ato settingan editornya pakai backgound yang warnanya jadi bikin mata ga cape walau koding lama banget.

        • CG 4:45 am on April 25, 2010 Permalink

          itu terlalu kontras ya untuk koding lama2x?

      • CG 4:44 am on April 25, 2010 Permalink | Reply

        @rahard: ampun 😀

        • Bobby 2:10 pm on April 26, 2010 Permalink

          @cg, sangat ga nyaman, mata akan lebih santai klo cahaya nya redup. coba aja pelototin lampu, ga enak kan.

  • CG 11:42 am on March 3, 2010 Permalink | Reply
    Tags: architecture 32-bit, architecture 64-bit, gcc, ,   

    gcc compiling problems on snow leopard 

    Problems due to upgrading from 32-bit to 64-bit architecture.

    The error messages:

    ld: warning: in poly_func.o, file is not of required architecture
    ld: warning: in eliptic_poly.o, file is not of required architecture
    ld: warning: in polymain.o, file is not of required architecture

    Can be resolved by modifying the makefile, and instruct the compiler to compile it in 32-bit using -m32.
    The sourcecode of the Makefile:

    CFLAGS=-g -m32
    poly: polymain.o poly_func.o eliptic_poly.o eliptic_poly_main.o
    	gcc -o poly polymain.o poly_func.o eliptic_poly.o eliptic_poly_main.o
    poly_protocol.o: poly_protocol.c field2n.h
    	gcc -c poly_protocol.c
    polymain.o: polymain.c field2n.h
    	gcc $(CFLAGS) -c polymain.c
    poly_func.o: poly_func.c field2n.h
    	gcc $(CFLAGS) -c poly_func.c
    eliptic_poly.o: eliptic_poly.c field2n.h
    	gcc $(CFLAGS) -c eliptic_poly.c
    eliptic_poly_main.o: eliptic_poly_main.c field2n.h
    	gcc -c eliptic_poly_main.c
    polyCG: polyCG.o poly_func.o eliptic_poly.o polymain.o
    	gcc -o polyCG polyCG.o poly_func.o eliptic_poly.o polymain.o
    polyCG.o: polyCG.c field2n.h
    	gcc -c polyCG.c
    poly_mul_partial_CG: poly_mul_partial_CG.o poly_func.o eliptic_poly.o \
    	gcc -o poly_mul_partial_CG poly_mul_partial_CG.o \
    	poly_func.o eliptic_poly.o polymain.o
    poly_mul_partial_CG.o: poly_mul_partial_CG.c field2n.h
    	gcc -c poly_mul_partial_CG.c
    poly_mul_CG: poly_mul_CG.o poly_func.o eliptic_poly.o polymain.o
    	gcc -o poly_mul_CG poly_mul_CG.o poly_func.o eliptic_poly.o polymain.o
    poly_mul_CG.o: poly_mul_CG.c field2n.h
    	gcc -c poly_mul_CG.c
    test_left_right_eq: test_left_right_eq.o poly_func.o eliptic_poly.o polymain.o
    	gcc -o test_left_right_eq test_left_right_eq.o poly_func.o eliptic_poly.o polymain.o
    test_left_right_eq.o: test_left_right_eq.c field2n.h
    	gcc -c test_left_right_eq.c
    eliptic_poly_main_CG: eliptic_poly_main_CG.o poly_func.o eliptic_poly.o polymain.o
    	gcc -o eliptic_poly_main_CG eliptic_poly_main_CG.o poly_func.o eliptic_poly.o polymain.o
    eliptic_poly_main_CG.o: eliptic_poly_main_CG.c field2n.h
    small_curve_CG: small_curve_CG.o poly_func.o eliptic_poly.o polymain.o
    	gcc -o small_curve_CG small_curve_CG.o poly_func.o eliptic_poly.o polymain.o
    small_curve_CG.o: small_curve_CG.c field2n.h
    	gcc -c small_curve_CG.c
    test_protocol_CG: test_protocol_CG.o poly_func.o eliptic_poly.o polymain.o
    	gcc -o test_protocol_CG test_protocol_CG.o poly_func.o eliptic_poly.o polymain.o
    test_protocol_CG.o: test_protocol_CG.c field2n.h
    	gcc -c test_protocol_CG.c
    calc_x_to_get_y: calc_x_to_get_y.o poly_func.o eliptic_poly.o polymain.o
    	gcc $(CFLAGS) -o calc_x_to_get_y calc_x_to_get_y.o poly_func.o eliptic_poly.o polymain.o
    calc_x_to_get_y.o: calc_x_to_get_y.c field2n.h
    	gcc $(CFLAGS) -c calc_x_to_get_y.c
    point_field2n_test: point_field2n_test.o poly_func.o eliptic_poly.o polymain.o
    	gcc $(CFLAGS) -o point_field2n_test point_field2n_test.o poly_func.o eliptic_poly.o polymain.o
    point_field2n_test.o: point_field2n_test.c field2n.h
    	gcc $(CFLAGS) -c point_field2n_test.c
    junk: junk.o poly_func.o eliptic_poly.o polymain.o
    	gcc $(CFLAGS) -o junk junk.o poly_func.o eliptic_poly.o polymain.o
    junk.o: junk.c field2n.h
    	gcc $(CFLAGS) -c junk.c

    Thank you for the big help of the coding wizard 🙂

    *Similar problems on this:
    1. http://www.mail-archive.com/pd-list@iem.at/msg30035.html
    2. http://gmplib.org/list-archives/gmp-bugs/2009-October/001636.html
    3. http://stackoverflow.com/questions/1455720/mac-osx-10-6-compiler-a-puzzling-experience-with-32-vs-64-bit
    4. http://gmplib.org/list-archives/gmp-bugs/2009-November/001696.html
    5. http://trac.macports.org/ticket/20933

    • Budi Rahardjo 11:54 am on March 3, 2010 Permalink | Reply

      🙂 … ha … more compling problem(s).
      I am going to wait before upgrading to snow leopard.

      • CG 5:28 pm on March 3, 2010 Permalink | Reply

        don’t 🙂 we need a stabile and predictable platform to test the simulator 🙂

        • bobby 11:31 pm on March 4, 2010 Permalink

          bukannya tadi di kelas udah beres, lancar lancar aja kan

        • CG 4:27 am on March 5, 2010 Permalink

          @bobby: ya, sementara lancar 🙂 semoga gak ada masalah lagi. sudah install mac update 🙂

  • CG 10:21 am on February 28, 2010 Permalink | Reply
    Tags: gcc, ,   

    gcc now works on snow leopard 

    After upgrading to Snow Leopard, I encountered some incompability problems. One of them is the wifi problem that has been resolved. And gcc problem has just also been resolved 🙂

    Like has been said here, here and here, the gcc problems can be solved easily by installing xcode from the Snow Leopard media installation.
    (luckily I don’t have to do this, this and this 😉 )

    Now I can get back to coding. Yay!

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc