Opened 11 years ago

Closed 9 years ago

#10082 closed bug (fixed)

Installing gcc with pkgman results in a broken gcc

Reported by: jessicah Owned by: nobody
Priority: normal Milestone: R1
Component: - General Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I installed gcc using pkgman install gcc; pretty straight-forward. Then I tried to compile some software, and it couldn't compile anything, with the following error:

/packages/gcc-2.95.3/.self/develop/tools/i586-pc-haiku/bin/ld: crti.o: No such file: No such file or directory

Indeed, running a query I couldn't find crti.o. It also seems a large majority of headers are missing (there was no iostream header for example).

I then installed the gcc_x86 package to see if that would help, since it's a gcc2h build. Looking at the gcc_x86 package, it looks vastly more complete than the gcc package (headers exist, for example). But I still couldn't run gcc2 successfully.

Also, is there a haiku_devel package that includes all the Haiku headers? Where would one get those from using pkgman?

Change History (2)

comment:1 by scottmc, 11 years ago

I've seen this happen with haikuporter as well if I leave out haiku_devel, add it in and the error goes away. I noticed that crti.o was in system/devel/lib, but that directory wasn't listed in LIBRARY_PATH.

comment:2 by diver, 9 years ago

Resolution: fixed
Status: newclosed

I think this was fixed in newer gcc package.

Note: See TracTickets for help on using tickets.