No support for --sysroot

Bug #901130 reported by Simon Hausmann
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcc-4.6-armel-cross (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:qt4-3.1-amd64:qt4-3.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric

gcc-4.6-arm-linux-gnueabi:
  Installed: 4.6.1-9ubuntu3cross1.55
  Candidate: 4.6.1-9ubuntu3cross1.55
  Version table:
 *** 4.6.1-9ubuntu3cross1.55 0
        500 http://no.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages
        100 /var/lib/dpkg/status

It looks like the arm cross compiler doesn't support --sysroot:

$ mkdir -p mysysroot/usr/include
$ echo > mysysroot/usr/include/test.h
$ echo "#include <test.h>" > test.cpp

$ arm-linux-gnueabi-cpp-4.6 --sysroot=$PWD/mysysroot test.cpp
# 1 "test.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "test.cpp"
test.cpp:1:18: fatal error: test.h: No such file or directory
compilation terminated.

Where as the regular cpp works:

cpp --sysroot=$PWD/mysysroot test.cpp

# 1 "test.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "test.cpp"
# 1 "/home/foobar/test/mysysroot/usr/include/test.h" 1 3 4
# 1 "test.cpp" 2

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcc-4.6-armel-cross (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.