• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

"C compiler cannot create executables" with poudriere/armv6

tuaris

Active Member

Thanks: 2
Messages: 114

#1
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/poudri...1-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/poudri.../2018-01-21_16h16m02s/logs/cgminer-4.10.0.log
 

acheron

Well-Known Member

Thanks: 172
Messages: 438

#2
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

Thanks: 5,898
Best answers: 7
Messages: 26,528

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

tobik@

Daemon
Developer

Thanks: 1,287
Best answers: 1
Messages: 1,870

#4
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/poudri...1-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/poudri.../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

Thanks: 5,898
Best answers: 7
Messages: 26,528

#5
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