Probably, reason is different repositories.
Do not copy other people's configurations.

Look at /etc/opkg/distfeeds.conf
Uncomment "base" and "packages" (usually 2 and 5 lines)

opkg updage
opkg install gcc