Re: gcc cross-compiler for linux
On Tue, 25 Nov 2008 23:31:10 +0100 Tijl Coosemans <[EMAIL PROTECTED]> wrote: > From that error message I'd say you probably need to populate > /usr/local/i386-linux/include with glibc and linux kernel headers. How can I populate it with them? Manually installing them in this directory? May be the devel/cross-binutils port should do it? Is there any port that can populate it? Thanks Xavier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: gcc cross-compiler for linux
Lowell, Thanks a lot for this link. Now I see that I need to use the cross-gcc compiler. I am using Matlab inside the linux emulator, and I nedd to create some "mex" files from matlab. In order to create these mes files, matlab needs access to a gcc compiler that produces linux elf files. I think I cannot use the gentoo-stage3 port, because in order to use I would need to chroot and it is not so easy from matlab. Also, when using this compiler I should be able to acces to the "linux"-matlab header files, but if I "chroot" to the gentoo port I won't be able to access them. I tried to install the devel/cross-gcc port, but I get errors when compiling it. I have some doubts about the wiki link you sent me: 1) What really means "null-mount the home directory"? I google-d some info, but I didn't find good information. What really exactly means "corresponding entries in the passwd and shadow files are required then"? 2) What really means "All you have to do is to compile the ports and add includes and libs from the linux system your target in your development"? Do I have to include the linux headers during devel/cross-gcc port building? Or do I have to include them when cross-compiling my code? What options do I have to use when building the linux gcc cross-compiler? I use make TGTARCH=i386 TGTABI=linux install clean Thanks a lot for your help Cheers Xavier On Tue, 25 Nov 2008 15:04:27 -0500 Lowell Gilbert <[EMAIL PROTECTED]> wrote: > Xavier Otazu <[EMAIL PROTECTED]> writes: > > > I would like to compile a C++ code to be executed within the linux > > emulator. > > http://wiki.freebsd.org/linux-xdev > > -- > Lowell Gilbert, embedded/networking software engineer, Boston area > http://be-well.ilk.org/~lowell/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
gcc cross-compiler for linux
Hello, I would like to compile a C++ code to be executed within the linux emulator. I tried to install the cross-gcc port, but when building I always receive the same compilation error related to gthreads. I use the following options when compiling the cross-gcc port: make TGTARCH=i386 TGTABI=linux install clean I also tried several combinations like "i386-pc" and "linux-gnu". When building, I get the following error message: /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/xgcc -B/usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/ -B/usr/local/i386-linux/bin/ -B/usr/local/i386-linux/lib/ -isystem /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc -isystem /usr/local/i386-linux/include -isystem /usr/local/i386-linux/sys-include -O2 -O2 -O2 -fno-strict-aliasing -pipe -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -I../.././gcc/../libdecnumber -I../libdecnumber -fexceptions -c ../.././gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o In file included from /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/gthr-default.h:1, from ../.././gcc/gthr.h:114, from ../.././gcc/unwind-dw2.c:42: ../.././gcc/gthr-posix.h:43:21: error: pthread.h: No such file or directory ../.././gcc/gthr-posix.h:44:20: error: unistd.h: No such file or directory In file included from /usr/ports/devel/cross-gcc/work/gcc-4.2.3/host-i386-portbld-freebsd7.1/gcc/gthr-default.h:1, from ../.././gcc/gthr.h:114, from ../.././gcc/unwind-dw2.c:42: ../.././gcc/gthr-posix.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_key_t' ../.././gcc/gthr-posix.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_once_t' ../.././gcc/gthr-posix.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_mutex_t' ../.././gcc/gthr-posix.h:49: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__gthread_recursive_mutex_t' ../.././gcc/gthr-posix.h:92: error: 'pthread_once' undeclared here (not in a function) ../.././gcc/gthr-posix.h:93: error: 'pthread_getspecific' undeclared here (not in a function) Thank you in advance Xavier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
vmware3 does not recognize hard disk raw device
Hello: I've installed vmware3 on freebsd 6.0 from fresh ports. When configuring a new virtual machine, it tells me that all the /dev/hd? devices (i.e. /compat/linux/devhd?) are not read/write. I made a soft link from this device (in /compat/linux/dev/hda) to /dev/ad0. Then it recognizes read/write acces. But when powering on the machine it tells me that it is not a raw device and it does not boot. I have crw-r- 1 root operator0, 86 Nov 13 12:02 /dev/ad0 and lrwxr-xr-x 1 root wheel 8 Nov 9 21:21 /compat/linux/dev/hda@ -> /dev/ad0 The original hda device created by the port is brwxrwxrwx 1 root wheel0, 0x00010002 Jun 12 21:12 /compat/linux/dev/hda_orig* I tried to create it using the minor and major characters 0 and 86, as in /dev/ad0, but it do not produce a working device. I have linux, aio, acpi and linprocfs modules loaded. The /dev/ad0 disk I wan to boot in vmware is different from the one in which FreeBSD is installed (/dev/ad3) Any suggestions? Thanks in advance Xavier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kern.mxdsiz option and ld-elf incompatibility
Hello: I am a newbie in FreeBSD. For the last days I am installing FreeBSD 6.0 and the usual tools I use in Linux. I installed 'wine' and it worked perfectly, but a problem appeared when changing a kernel boot option. I defined ' kern.maxdsiz="1500M" ' in the /boot/loader.conf file in order to enlarge available data for my programs. My computer has 750Mb physical RAM and 1521Mb swap space. When defining high amounts of datasize using this kernel option, wine complains with a "/libexec/ld-elf.so.1 not found". But when defining moderated amounts of datasize, for example kern.maxdsiz="700M", it works fine. Is it a kernel bug, or do I have to tweak some other kernel options? Thanks in advance Xavier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"