1
我想交叉編譯一個i.mx51平臺的代碼。 我使用飛思卡爾的平臺所提供的gcc,見下圖:所有的gcc編譯器都支持@FILE標誌嗎?
[email protected]:/media/sf_repos/1109$ /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc --version
arm-none-linux-gnueabi-gcc (GCC) 4.1.2
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
裏面我是用利用@標誌,它是在GCC可生成文件。
@FILE Read options from FILE
但使用所提供的gcc和使用@FILE指向我的命令文件,我得到:
arm-none-linux-gnueabi-gcc: @hello.o_command: No such file or directory
arm-none-linux-gnueabi-gcc: no input files
(我知道這個問題可能是太特定) 沒有人有任何想法關於這個問題?在-v --help中,我可以看到@FILE被提及,所以應該支持它!
你可以發佈導致此錯誤的Makefile的可行段嗎?或者你可以創建一個測試,你手動輸入一個gcc命令行來編譯這個方法的簡單測試文件,並且它在你使用主機gcc而不是跨gcc時起作用? –
我覺得這個問題類似於http://stackoverflow.com/questions/7139685/does-gcc-support-command-files – Yousf
幾乎相同的問題http://stackoverflow.com/questions/15106937/do-all- gcc-versions-support-gccs-file-option – auselen