Discussion:
[Tinycc-devel] Bug in tinygcc linker?
Alexander Pyattaev
15 years ago
Permalink
Hello.
I have installed tinygcc just to play around and tried to use it on quite big
pure-c project. It compiled everything nicely, except for the linking phase:

# tcc -v -o model/model model/antenna.o model/channel.o
model/channel_model_friss.o model/channel_probe.o model/conf_utils.o
model/main.o model/model.o model/model_internal.o model/node.o
model/regen_functs.o model/ringbuffer.o model/scheduler.o model/statistics.o
model/traffic_generator.o model/transmission.o -Llib -lm -lc2o -lconfig -lgsl
tcc version 0.9.25
-> model/antenna.o
-> model/channel.o
-> model/channel_model_friss.o
-> model/channel_probe.o
-> model/conf_utils.o
-> model/main.o
-> model/model.o
-> model/model_internal.o
-> model/node.o
-> model/regen_functs.o
-> model/ringbuffer.o
-> model/scheduler.o
-> model/statistics.o
-> model/traffic_generator.o
-> model/transmission.o
tcc: undefined symbol 'strcpy'
I do not think any kind of arguments can make it forget where to get stdlib
function....
I can not send you the code (unfortunately, it is closed), but if you need
more testing just email me.

Alex.
Thomas Preud'homme
15 years ago
Permalink
...
Are you trying with latest tcc from the mob branch ? Because there is a
linkage problem on amd64 which have been fixed here (commit bcc9137)
Post by Alexander Pyattaev
Alex.
Tom
Post by Alexander Pyattaev
_______________________________________________
Tinycc-devel mailing list
http://lists.nongnu.org/mailman/listinfo/tinycc-devel
Alexander Pyattaev
15 years ago
Permalink
Tom,
updating to latest git (mob branch) fixed the trouble. Unfortunately, the
release in gentoo repository does not have this fix yet. I will, however, post
a bug to gentoo so that they get newer version.
Alex.
...
Thomas Preud'homme
15 years ago
Permalink
Post by Alexander Pyattaev
Tom,
updating to latest git (mob branch) fixed the trouble. Unfortunately, the
release in gentoo repository does not have this fix yet. I will, however,
post a bug to gentoo so that they get newer version.
Alex.
Try to apply just commit to the source in gentoo and if it solve your problem
then suggest them to cherry-pick that only patch if they don't want to package
a new version.

Best regards,

Tom
...
Pedro A ARANDA
15 years ago
Permalink
Post by Thomas Preud'homme
Post by Alexander Pyattaev
Tom,
updating to latest git (mob branch) fixed the trouble. Unfortunately, the
release in gentoo repository does not have this fix yet. I will, however,
post a bug to gentoo so that they get newer version.
Alex.
Try to apply just commit to the source in gentoo and if it solve your problem
then suggest them to cherry-pick that only patch if they don't want to package
a new version.
Best regards,
Tom
Dear all,

wouldn't it this be the right moment to try to come out with a new version
in the trunk?

Just humbly asking...

/PA

Loading...