public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 4.8 search path usr/... instead of /usr/...
@ 2012-12-02  2:04 y y
  2012-12-02 11:08 ` Jonathan Wakely
  0 siblings, 1 reply; 4+ messages in thread
From: y y @ 2012-12-02  2:04 UTC (permalink / raw)
  To: gcc-help

Hi,
I have built gcc 4.8 successfully with the configuration:
../gcc-trunk/configure -v --with-pkgversion='ubuntu12.04-64'
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --enable-plugin --enable-objc-gc
--disable-werror --with-arch-32=native --with-tune=native
--enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu

However, when I try to compile a test file, the search path is really strange:
ignoring nonexistent
directory“usr/include/c++/4.8”******************************************There
is no slash!
ignoring nonexistent
directory“usr/include/c++/4.8/x86_64-linux-gnu/.”********************There
is no slash!
ignoring nonexistent
directory“usr/include/c++/4.8/backward”******************************There
is no slash!
ignoring nonexistent directory“/usr/local/include/x86_64-linux-gnu”
ignoring nonexistent
directory“/usr/lib/gcc/x86_64-linux-gnu/4.8.0/../../../../x86_64-linux-gnu/include”

Any one can help? Thank you!

Regards,
Yao Yuan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc 4.8 search path usr/... instead of /usr/...
  2012-12-02  2:04 gcc 4.8 search path usr/... instead of /usr/ y y
@ 2012-12-02 11:08 ` Jonathan Wakely
  2012-12-03  3:41   ` tmp15711
  2012-12-04 20:40   ` Christer Solskogen
  0 siblings, 2 replies; 4+ messages in thread
From: Jonathan Wakely @ 2012-12-02 11:08 UTC (permalink / raw)
  To: y y; +Cc: gcc-help

On Dec 2, 2012 2:04 AM, "y y" wrote:
>
> Hi,
> I have built gcc 4.8 successfully with the configuration:
> ../gcc-trunk/configure -v --with-pkgversion='ubuntu12.04-64'
> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
> --program-suffix=-4.8 --enable-shared --enable-linker-build-id
> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
> --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8
> --libdir=/usr/lib --enable-nls --with-sysroot=/

Why are you using --with-sysroot ?

--enable-clocale=gnu
> --enable-libstdcxx-debug --enable-libstdcxx-time=yes
> --enable-gnu-unique-object --enable-plugin --enable-objc-gc
> --disable-werror --with-arch-32=native --with-tune=native
> --enable-checking=release --build=x86_64-linux-gnu
> --host=x86_64-linux-gnu --target=x86_64-linux-gnu
>
> However, when I try to compile a test file, the search path is really strange:
> ignoring nonexistent
> directory“usr/include/c++/4.8”******************************************There
> is no slash!
> ignoring nonexistent
> directory“usr/include/c++/4.8/x86_64-linux-gnu/.”********************There
> is no slash!
> ignoring nonexistent
> directory“usr/include/c++/4.8/backward”******************************There
> is no slash!
> ignoring nonexistent directory“/usr/local/include/x86_64-linux-gnu”
> ignoring nonexistent
> directory“/usr/lib/gcc/x86_64-linux-gnu/4.8.0/../../../../x86_64-linux-gnu/include”
>
> Any one can help? Thank you!
>
> Regards,
> Yao Yuan.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc 4.8 search path usr/... instead of /usr/...
  2012-12-02 11:08 ` Jonathan Wakely
@ 2012-12-03  3:41   ` tmp15711
  2012-12-04 20:40   ` Christer Solskogen
  1 sibling, 0 replies; 4+ messages in thread
From: tmp15711 @ 2012-12-03  3:41 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

> On Dec 2, 2012 2:04 AM, "y y" wrote:
>>
>> Hi,
>> I have built gcc 4.8 successfully with the configuration:
>> ../gcc-trunk/configure -v --with-pkgversion='ubuntu12.04-64'
>> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
>> --program-suffix=-4.8 --enable-shared --enable-linker-build-id
>> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
>> --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8
>> --libdir=/usr/lib --enable-nls --with-sysroot=/
>
> Why are you using --with-sysroot ?

Thank you! That's the problem! Just remove it!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcc 4.8 search path usr/... instead of /usr/...
  2012-12-02 11:08 ` Jonathan Wakely
  2012-12-03  3:41   ` tmp15711
@ 2012-12-04 20:40   ` Christer Solskogen
  1 sibling, 0 replies; 4+ messages in thread
From: Christer Solskogen @ 2012-12-04 20:40 UTC (permalink / raw)
  To: gcc-help

On 12/2/12 12:08 PM, Jonathan Wakely wrote:

> Why are you using --with-sysroot ?
>

Ubuntu (and Debian, maybe?) use --with-sysroot=/.
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 
4.7.2-2ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs 
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr 
--program-suffix=-4.7 --enable-shared --enable-linker-build-id 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--enable-gnu-unique-object --enable-plugin --enable-objc-gc 
--disable-werror --with-arch-32=i686 --with-tune=generic 
--enable-checking=release --build=x86_64-linux-gnu 
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)

Is there any reason to do that?

-- 
chs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-12-04 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-02  2:04 gcc 4.8 search path usr/... instead of /usr/ y y
2012-12-02 11:08 ` Jonathan Wakely
2012-12-03  3:41   ` tmp15711
2012-12-04 20:40   ` Christer Solskogen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).