gcc -m32 option on amd64.



Hi guys,

I am trying gcc -m32 on freebsd 6.1 amd64 env, but it does not seems to be
working. i also installed /usr/port/lang/linux-libgcc/ but did not help
what i did is=>
echo "main () {}" > t.c; gcc -m32 t.c
/usr/bin/ld: skipping
incompatible /usr/local/lib/gcc/x86_64-portbld-freebsd6.1/4.2.0/gcc/x86_64-portbld-freebsd6.1/4.2.0/libgcc.a
when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status

how can we make this working?

Thanks
Sharad Chandra
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • compilation (make) error
    ... g incompatible ../mht/libmht.a when searching for -lmht ... collect2: ld returned 1 exit status ...
    (comp.lang.cpp)
  • Re: Scriptbasic - Compiling the generated C code
    ... compiler), which I have used in the past, tell me that it has a GCC ... a command line similar to Microsoft C. ... collect2: ld returned 1 exit status ...
    (comp.os.linux.development.system)
  • Re: PyQt-x11-gpl-3.16 compile error
    ... collect2: ld returned 1 exit status ... Checking to see if the qtnetwork module should be built... ... distributions, and may also work for other distributions. ...
    (comp.lang.python)
  • g++ on HPUX
    ... I get a linker error from HPs linker: ... collect2: ld returned 1 exit status ... How can I check the gcc installation/enivronment? ...
    (comp.sys.hp.hpux)
  • Re: [SQLite] Compiling in PHP statically?
    ... collect2: ld returned 1 exit status ... make: Leaving directory ... make clean ...
    (comp.lang.php)