"C compiler cannot create executables" with poudriere/armv6

tuaris

Active Member

Reaction score: 3
Messages: 123

I created a new port PR 218156 (net-p2p/cgminer) and it builds fine on i386 and amd64. Then I setup poudriere and QEMU to test it for armv6 and it fails to configure. The error is:

Code:
checking whether the C compiler works... no
configure: error: in `/wrkdirs/usr/ports/net-p2p/cgminer/work/cgminer-4.10.0':
configure: error: C compiler cannot create executables
Build Log:
http://pkg.ny-us.morante.net/poudriere/data/11armv6-default/2018-01-21_02h03m08s/logs/errors/cgminer-4.10.0.log

If I change the port to use GCC, it builds successfully.
http://pkg.ny-us.morante.net/poudriere/data/11armv6-default/2018-01-21_16h16m02s/logs/cgminer-4.10.0.log
 

acheron

Well-Known Member

Reaction score: 186
Messages: 462

Does your port respect CC?
Your log show nothing, we need the real error that can be found in config.log
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 6,926
Messages: 28,850

Can you post the contents of the port's Makefile here?
 

tobik@

Daemon
Developer

Reaction score: 1,361
Messages: 1,909

The port is already posted in PR 218156.
I created a new port PR 218156 (net-p2p/cgminer) and it builds fine on i386 and amd64. Then I setup poudriere and QEMU to test it for armv6 and it fails to configure. The error is:

Code:
checking whether the C compiler works... no
configure: error: in `/wrkdirs/usr/ports/net-p2p/cgminer/work/cgminer-4.10.0':
configure: error: C compiler cannot create executables
Build Log:
http://pkg.ny-us.morante.net/poudriere/data/11armv6-default/2018-01-21_02h03m08s/logs/errors/cgminer-4.10.0.log

If I change the port to use GCC, it builds successfully.
http://pkg.ny-us.morante.net/poudriere/data/11armv6-default/2018-01-21_16h16m02s/logs/cgminer-4.10.0.log
Remove CFLAGS+= -Wall -march=native from the port's Makefile. -march=native does not belong in a port and Clang doesn't support it on armv6.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 6,926
Messages: 28,850

The port is already posted in PR 218156.
Yes, but it's a SHAR, which is a little difficult to read from a Windows laptop. If it was posted in a readable form here I'm sure more people would be able to take a quick look at it.
 
Top