-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Find FreeBSD XDev Tools #85
Comments
A few people have found that they need the following (WITHOUT_TESTS works around a recent problem with FreeBSD-CURRENT; that should be fixed soon): make XDEV=arm XDEV_ARCH=armv6 WITH_GCC=1 WITH_GCC_BOOTSTRAP=1 WITHOUT_CLANG=1 WITHOUT_CLANG_BOOTSTRAP=1 WITHOUT_CLANG_IS_CC=1 WITHOUT_TESTS=1 xdev If you installed the xdev tools previously in this VM, you may need to remove them first: $ sudo rm -rf /usr/armv6-freebsd/ You can also ask questions like this in the freebsd-arm mailing list. |
Hi, I have tried that, I still receive the error. This is why I thought it may be a Crochet-FreeBSD issue. I tried it again today and I still get the error. Any other thoughts? p.s. If it helps, I can provide the VirtualBox VM. |
Crochet tries to find the xdev tools by running the following command. What do you see when you run it manually? $ armv6-freebsd-cc |
Hi Tim, I get command not found. In the make log, I noticed a series of entries with a double leading slash, e.g.: I am building the tools from /usr/src/FreeBSD/head. I do not believe I did that last year when I had a successful build. -thoth- |
Then the xdev build failed.
I don't think this is a problem. For some reason, the xdev build is not installing the cross-compiler as it should. Do the logs mention installing things into /usr/armv6-freebsd/bin anywhere? What's the last thing in the log when you try the xdev build?
It's worth trying to do it from /usr/src to see if that makes a difference. If it does, please file a bug at FreeBSD.org so someone will take a look and hopefully fix it. Tim |
Hi Tim, grepping the log for /usr/armv6-freebsd/bin returns no results. It looks like I have several items being installed into I have tried with the FreeBSD source in /usr/src with similar results. I will say that having the FreeBSD source in /usr/src rather than /usr/src/FreeBSD/* really bugs me. However, that is not the current problem I need to fix. The last item in the log is: I think you are right and that this is an issue with FreeBSD. Thank you again for taking the time. -thoth- |
Hi Tim, Regardless of where I have the FreeBSD source and regardless of which switches I use, nothing is copied to /usr/armv6-freebsd/bin. -thoth- |
On Aug 23, 2014, at 6:43 PM, ThothK notifications@github.com wrote:
I checked a recent FreeBSD VM I have here. You should compare this to your system: $ ls /usr/armv6-freebsd/usr/bin/ $ ls -l /usr/bin/armv6-freebsd-cc $ armv6-freebsd-cc --version |
Hi Tim, I apologize for the late response. First I was trying different tests, then work related tasks consumed more time than expected. When I used Crochet-FreeBSD with FreeBSD S10 Stable, it worked fine. I will clone the VM and try it again with /head to check the directories you mention. -thoth- |
Hi Tim, Checking the VM in which I used FreeBSD/head to build the ARM tools, I see the following: When I use FreeBSD10 Stable, there are more files in /usr/armv6-freebsd/usr/bin as well as /usr/bin/armv6-freebsd-cc. Normally I stay away from /head for any project. I do not know what I was thinking. I thought that everything worked fine with crochet.sh using FreeBSD 10 Stable. However, I have an error regarding U-Boot. I am going to close this issue and create a new one addressing that. -thoth- |
10.1 stable does not appear to build gcc as part of xdev tools with the documented make command. is this still required for building uboot? |
Unfortunately, yes, some form of GCC is still required for that. Although
Best, Tim |
as documented on a different thread make XDEV=arm XDEV_ARCH=armv6 WITH_GCC=1 WITH_GCC_BOOTSTRAP=1 WITHOUT_CLANG=1 WITHOUT_CLANG_BOOTSTRAP=1 WITHOUT_CLANG_IS_CC=1 WITHOUT_TESTS=1 xdev the end result does not contain gcc with 10.1-RELEASE or 10-STABLE (as of today's date) |
In 11-CURRENT, there are actually two xdev targets now: xdev-links adds symlinks to /usr/bin. Crochet should no longer require the links from /usr/bin, though. Do you have a /usr/armv6-freebsd directory? That’s where the ‘xdev’ target is supposed to install it’s results. |
yes, the expected directory structure is created -- however, it remains only populated with clang, clang++ and the associated utilities from binutils... cc, cpp, are all the same size as the clang executable, and when used with the '-v' version option, they identify as the LLVM clang 3.4.1. i have tried initial triage by wading through the makefile hell, to see what the expected configuration flags might be, but im not finding any of the combinations i use traverse into gnu/usr.bin and pickup the GNU compiler... |
You should definitely ask this question on freebsd-arm or freebsd-hackers mailing lists. People there will be more familiar with the details of xdev especially on 10.0 and 10.1. (I only use 11-CURRENT on my boxes here.) Tim |
Hi MMitchel, As a side note to your question, I used UBoot 2014.04 -thoth- |
and the issue of building GCC with the xdev tools still remains. thank you mdm
|
Hi,
I am working on a prototype for something I want to suggest to the company I am currently working for. Part of this was to show how easy it is to build FreeBSD for the BeagleBone Black. Unfortunately, I have been unable to build FreeBSD for the BBB successfully for the last several months.
I have created a FreeBSD VM several times using /head, FreeBSD version 11.0. I have tried a variety of little tweaks to no avail.
A snippet of what I get when I run crochet.sh is:
Building FreeBSD version: 11.0
Image name is:
/usr/src/crochet-freebsd/work/FreeBSD-armv6-11.0-BEAGLEBONE-r269526.img
...
Can't find appropriate FreeBSD xdev tools.
Tested: armv6-freebsd-cc
...
I have build the cross platform development tools using:
make XDEV=arm XDEV_ARCH=armv6 xdev
and later, when the process started to fail:
make XDEV=arm XDEV_ARCH=armv6 xdev | tee -a /Logs/fbsd_armbuild.log
I have also tried the make command suggested by crochet when it fails:
make XDEV=arm XDEV_ARCH=armv6 WITH_GCC ...
What did I miss? Any suggestions?
The last time I successfully built a FreeBSD image was last year.
-ThothK-
The text was updated successfully, but these errors were encountered: