Opened 11 years ago

Closed 11 years ago

#10093 closed bug (fixed)

Configure can't find gcc

Reported by: idefix Owned by: pulkomandy
Priority: normal Milestone: R1
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Using hrev46224 (haiku-nightly-hrev46224-x86gcc2hybrid-anyboot.tar.xz).

With bug:10087 being fixed, running configure on a freshly cloned haiku git repo (hrev46225) now gives the following error:

/Build> git clone git://git.haiku-os.org/haiku
Cloning into 'haiku'...
remote: Counting objects: 556161, done.
remote: Compressing objects: 100% (124105/124105), done.
remote: Total 556161 (delta 432175), reused 550777 (delta 427421)
Receiving objects: 100% (556161/556161), 282.72 MiB | 954.00 KiB/s, done.
Resolving deltas: 100% (432175/432175), done.
Checking connectivity... done
Checking out files: 100% (41438/41438), done.
/Build> cd haiku/
/Build/haiku> ./configure 
Build tool "gcc" not found.
/Build/haiku> 

Change History (5)

comment:1 by siarzhuk, 11 years ago

BTW, I have workarounded this problem by setting the HAIKU_CC_x86_gcc2 environment variable to the path of gcc binary on my system.

comment:2 by bonefish, 11 years ago

Owner: changed from bonefish to pulkomandy
Status: newassigned

To blame is hrev46157, the removal of the which script from the image. Either it should be re-added or the "which" package needs to be added for all architectures.

comment:3 by pulkomandy, 11 years ago

Our which script didn't work in chrooted build environment (for example haikuporter) as /etc/profile somehow wasn't sourced, that's why I replaced it with a binary version.

I can provide a package for gcc2 (will add it to the repo), however I can't do it for other archs. Can someone else provide packages ?

Also, I'm still unsure if it should be a depends of haiku_devel, or if we should leave people installing it. Seems not having which is very unexpected in most configure scripts. It's not part of POSIX, however.

Version 0, edited 11 years ago by pulkomandy (next)

comment:4 by bonefish, 11 years ago

POSIX or not, I think which is mostly taken for granted. I think we should add it as a "mandatory" package (cf. the root Jamfile).

comment:5 by mmadia, 11 years ago

Resolution: fixed
Status: assignedclosed

Hopefully fixed in hrev46266. Forgot to mention the ticket number in the commit message. Untested on other non-x86 archs.

Note: See TracTickets for help on using tickets.